mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-10-01 01:35:42 -04:00
protobuf update to support cash by mail
This commit is contained in:
parent
f256fafa7d
commit
466a1d62ec
25
dist/protobuf/pb_pb.d.ts
vendored
25
dist/protobuf/pb_pb.d.ts
vendored
@ -3575,6 +3575,11 @@ export class PaymentAccountPayload extends jspb.Message {
|
||||
hasVerseAccountPayload(): boolean;
|
||||
clearVerseAccountPayload(): PaymentAccountPayload;
|
||||
|
||||
getCashByAtmAccountPayload(): CashByAtmAccountPayload | undefined;
|
||||
setCashByAtmAccountPayload(value?: CashByAtmAccountPayload): PaymentAccountPayload;
|
||||
hasCashByAtmAccountPayload(): boolean;
|
||||
clearCashByAtmAccountPayload(): PaymentAccountPayload;
|
||||
|
||||
getMessageCase(): PaymentAccountPayload.MessageCase;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
@ -3626,6 +3631,7 @@ export namespace PaymentAccountPayload {
|
||||
celPayAccountPayload?: CelPayAccountPayload.AsObject,
|
||||
moneseAccountPayload?: MoneseAccountPayload.AsObject,
|
||||
verseAccountPayload?: VerseAccountPayload.AsObject,
|
||||
cashByAtmAccountPayload?: CashByAtmAccountPayload.AsObject,
|
||||
}
|
||||
|
||||
export enum MessageCase {
|
||||
@ -3665,6 +3671,7 @@ export namespace PaymentAccountPayload {
|
||||
CEL_PAY_ACCOUNT_PAYLOAD = 37,
|
||||
MONESE_ACCOUNT_PAYLOAD = 38,
|
||||
VERSE_ACCOUNT_PAYLOAD = 39,
|
||||
CASH_BY_ATM_ACCOUNT_PAYLOAD = 40,
|
||||
}
|
||||
}
|
||||
|
||||
@ -4825,6 +4832,24 @@ export namespace PayByMailAccountPayload {
|
||||
}
|
||||
}
|
||||
|
||||
export class CashByAtmAccountPayload extends jspb.Message {
|
||||
getExtraInfo(): string;
|
||||
setExtraInfo(value: string): CashByAtmAccountPayload;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CashByAtmAccountPayload.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CashByAtmAccountPayload): CashByAtmAccountPayload.AsObject;
|
||||
static serializeBinaryToWriter(message: CashByAtmAccountPayload, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CashByAtmAccountPayload;
|
||||
static deserializeBinaryFromReader(message: CashByAtmAccountPayload, reader: jspb.BinaryReader): CashByAtmAccountPayload;
|
||||
}
|
||||
|
||||
export namespace CashByAtmAccountPayload {
|
||||
export type AsObject = {
|
||||
extraInfo: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class PromptPayAccountPayload extends jspb.Message {
|
||||
getPromptPayId(): string;
|
||||
setPromptPayId(value: string): PromptPayAccountPayload;
|
||||
|
210
dist/protobuf/pb_pb.js
vendored
210
dist/protobuf/pb_pb.js
vendored
@ -45,6 +45,7 @@ goog.exportSymbol('proto.io.haveno.protobuffer.BuyerAsTakerTrade', null, global)
|
||||
goog.exportSymbol('proto.io.haveno.protobuffer.ByteArray', null, global);
|
||||
goog.exportSymbol('proto.io.haveno.protobuffer.CapitualAccountPayload', null, global);
|
||||
goog.exportSymbol('proto.io.haveno.protobuffer.CashAppAccountPayload', null, global);
|
||||
goog.exportSymbol('proto.io.haveno.protobuffer.CashByAtmAccountPayload', null, global);
|
||||
goog.exportSymbol('proto.io.haveno.protobuffer.CashDepositAccountPayload', null, global);
|
||||
goog.exportSymbol('proto.io.haveno.protobuffer.CelPayAccountPayload', null, global);
|
||||
goog.exportSymbol('proto.io.haveno.protobuffer.ChaseQuickPayAccountPayload', null, global);
|
||||
@ -2603,6 +2604,27 @@ if (goog.DEBUG && !COMPILED) {
|
||||
*/
|
||||
proto.io.haveno.protobuffer.PayByMailAccountPayload.displayName = 'proto.io.haveno.protobuffer.PayByMailAccountPayload';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.io.haveno.protobuffer.CashByAtmAccountPayload, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.displayName = 'proto.io.haveno.protobuffer.CashByAtmAccountPayload';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -30112,7 +30134,7 @@ proto.io.haveno.protobuffer.RawTransactionInput.prototype.setValue = function(va
|
||||
* @private {!Array<!Array<number>>}
|
||||
* @const
|
||||
*/
|
||||
proto.io.haveno.protobuffer.PaymentAccountPayload.oneofGroups_ = [[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]];
|
||||
proto.io.haveno.protobuffer.PaymentAccountPayload.oneofGroups_ = [[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]];
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
@ -30153,7 +30175,8 @@ proto.io.haveno.protobuffer.PaymentAccountPayload.MessageCase = {
|
||||
SWIFT_ACCOUNT_PAYLOAD: 36,
|
||||
CEL_PAY_ACCOUNT_PAYLOAD: 37,
|
||||
MONESE_ACCOUNT_PAYLOAD: 38,
|
||||
VERSE_ACCOUNT_PAYLOAD: 39
|
||||
VERSE_ACCOUNT_PAYLOAD: 39,
|
||||
CASH_BY_ATM_ACCOUNT_PAYLOAD: 40
|
||||
};
|
||||
|
||||
/**
|
||||
@ -30232,7 +30255,8 @@ proto.io.haveno.protobuffer.PaymentAccountPayload.toObject = function(includeIns
|
||||
swiftAccountPayload: (f = msg.getSwiftAccountPayload()) && proto.io.haveno.protobuffer.SwiftAccountPayload.toObject(includeInstance, f),
|
||||
celPayAccountPayload: (f = msg.getCelPayAccountPayload()) && proto.io.haveno.protobuffer.CelPayAccountPayload.toObject(includeInstance, f),
|
||||
moneseAccountPayload: (f = msg.getMoneseAccountPayload()) && proto.io.haveno.protobuffer.MoneseAccountPayload.toObject(includeInstance, f),
|
||||
verseAccountPayload: (f = msg.getVerseAccountPayload()) && proto.io.haveno.protobuffer.VerseAccountPayload.toObject(includeInstance, f)
|
||||
verseAccountPayload: (f = msg.getVerseAccountPayload()) && proto.io.haveno.protobuffer.VerseAccountPayload.toObject(includeInstance, f),
|
||||
cashByAtmAccountPayload: (f = msg.getCashByAtmAccountPayload()) && proto.io.haveno.protobuffer.CashByAtmAccountPayload.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -30462,6 +30486,11 @@ proto.io.haveno.protobuffer.PaymentAccountPayload.deserializeBinaryFromReader =
|
||||
reader.readMessage(value,proto.io.haveno.protobuffer.VerseAccountPayload.deserializeBinaryFromReader);
|
||||
msg.setVerseAccountPayload(value);
|
||||
break;
|
||||
case 40:
|
||||
var value = new proto.io.haveno.protobuffer.CashByAtmAccountPayload;
|
||||
reader.readMessage(value,proto.io.haveno.protobuffer.CashByAtmAccountPayload.deserializeBinaryFromReader);
|
||||
msg.setCashByAtmAccountPayload(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -30796,6 +30825,14 @@ proto.io.haveno.protobuffer.PaymentAccountPayload.serializeBinaryToWriter = func
|
||||
proto.io.haveno.protobuffer.VerseAccountPayload.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getCashByAtmAccountPayload();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
40,
|
||||
f,
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -32170,6 +32207,43 @@ proto.io.haveno.protobuffer.PaymentAccountPayload.prototype.hasVerseAccountPaylo
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional CashByAtmAccountPayload cash_by_atm_account_payload = 40;
|
||||
* @return {?proto.io.haveno.protobuffer.CashByAtmAccountPayload}
|
||||
*/
|
||||
proto.io.haveno.protobuffer.PaymentAccountPayload.prototype.getCashByAtmAccountPayload = function() {
|
||||
return /** @type{?proto.io.haveno.protobuffer.CashByAtmAccountPayload} */ (
|
||||
jspb.Message.getWrapperField(this, proto.io.haveno.protobuffer.CashByAtmAccountPayload, 40));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.io.haveno.protobuffer.CashByAtmAccountPayload|undefined} value
|
||||
* @return {!proto.io.haveno.protobuffer.PaymentAccountPayload} returns this
|
||||
*/
|
||||
proto.io.haveno.protobuffer.PaymentAccountPayload.prototype.setCashByAtmAccountPayload = function(value) {
|
||||
return jspb.Message.setOneofWrapperField(this, 40, proto.io.haveno.protobuffer.PaymentAccountPayload.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.io.haveno.protobuffer.PaymentAccountPayload} returns this
|
||||
*/
|
||||
proto.io.haveno.protobuffer.PaymentAccountPayload.prototype.clearCashByAtmAccountPayload = function() {
|
||||
return this.setCashByAtmAccountPayload(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.io.haveno.protobuffer.PaymentAccountPayload.prototype.hasCashByAtmAccountPayload = function() {
|
||||
return jspb.Message.getField(this, 40) != null;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -40592,6 +40666,136 @@ proto.io.haveno.protobuffer.PayByMailAccountPayload.prototype.setExtraInfo = fun
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.io.haveno.protobuffer.CashByAtmAccountPayload.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.io.haveno.protobuffer.CashByAtmAccountPayload} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
extraInfo: jspb.Message.getFieldWithDefault(msg, 1, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.io.haveno.protobuffer.CashByAtmAccountPayload}
|
||||
*/
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.io.haveno.protobuffer.CashByAtmAccountPayload;
|
||||
return proto.io.haveno.protobuffer.CashByAtmAccountPayload.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.io.haveno.protobuffer.CashByAtmAccountPayload} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.io.haveno.protobuffer.CashByAtmAccountPayload}
|
||||
*/
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setExtraInfo(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.io.haveno.protobuffer.CashByAtmAccountPayload} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getExtraInfo();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string extra_info = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.prototype.getExtraInfo = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.io.haveno.protobuffer.CashByAtmAccountPayload} returns this
|
||||
*/
|
||||
proto.io.haveno.protobuffer.CashByAtmAccountPayload.prototype.setExtraInfo = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
|
Loading…
Reference in New Issue
Block a user