OfferPayload constructor
OfferPayload({
- String? id,
- Int64? date,
- NodeAddress? ownerNodeAddress,
- PubKeyRing? pubKeyRing,
- OfferDirection? direction,
- Int64? price,
- double? marketPriceMarginPct,
- bool? useMarketBasedPrice,
- Int64? amount,
- Int64? minAmount,
- double? makerFeePct,
- double? takerFeePct,
- double? penaltyFeePct,
- double? buyerSecurityDepositPct,
- double? sellerSecurityDepositPct,
- String? baseCurrencyCode,
- String? counterCurrencyCode,
- String? paymentMethodId,
- String? makerPaymentAccountId,
- String? countryCode,
- Iterable<
String> ? acceptedCountryCodes, - String? bankId,
- Iterable<
String> ? acceptedBankIds, - String? versionNr,
- Int64? blockHeightAtOfferCreation,
- Int64? maxTradeLimit,
- Int64? maxTradePeriod,
- bool? useAutoClose,
- bool? useReOpenAfterAutoClose,
- Int64? lowerClosePrice,
- Int64? upperClosePrice,
- bool? isPrivateOffer,
- String? hashOfChallenge,
- Map<
String, String> ? extraData, - int? protocolVersion,
- NodeAddress? arbitratorSigner,
- List<
int> ? arbitratorSignature, - Iterable<
String> ? reserveTxKeyImages,
Implementation
factory OfferPayload({
$core.String? id,
$fixnum.Int64? date,
NodeAddress? ownerNodeAddress,
PubKeyRing? pubKeyRing,
OfferDirection? direction,
$fixnum.Int64? price,
$core.double? marketPriceMarginPct,
$core.bool? useMarketBasedPrice,
$fixnum.Int64? amount,
$fixnum.Int64? minAmount,
$core.double? makerFeePct,
$core.double? takerFeePct,
$core.double? penaltyFeePct,
$core.double? buyerSecurityDepositPct,
$core.double? sellerSecurityDepositPct,
$core.String? baseCurrencyCode,
$core.String? counterCurrencyCode,
$core.String? paymentMethodId,
$core.String? makerPaymentAccountId,
$core.String? countryCode,
$core.Iterable<$core.String>? acceptedCountryCodes,
$core.String? bankId,
$core.Iterable<$core.String>? acceptedBankIds,
$core.String? versionNr,
$fixnum.Int64? blockHeightAtOfferCreation,
$fixnum.Int64? maxTradeLimit,
$fixnum.Int64? maxTradePeriod,
$core.bool? useAutoClose,
$core.bool? useReOpenAfterAutoClose,
$fixnum.Int64? lowerClosePrice,
$fixnum.Int64? upperClosePrice,
$core.bool? isPrivateOffer,
$core.String? hashOfChallenge,
$core.Map<$core.String, $core.String>? extraData,
$core.int? protocolVersion,
NodeAddress? arbitratorSigner,
$core.List<$core.int>? arbitratorSignature,
$core.Iterable<$core.String>? reserveTxKeyImages,
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (date != null) {
$result.date = date;
}
if (ownerNodeAddress != null) {
$result.ownerNodeAddress = ownerNodeAddress;
}
if (pubKeyRing != null) {
$result.pubKeyRing = pubKeyRing;
}
if (direction != null) {
$result.direction = direction;
}
if (price != null) {
$result.price = price;
}
if (marketPriceMarginPct != null) {
$result.marketPriceMarginPct = marketPriceMarginPct;
}
if (useMarketBasedPrice != null) {
$result.useMarketBasedPrice = useMarketBasedPrice;
}
if (amount != null) {
$result.amount = amount;
}
if (minAmount != null) {
$result.minAmount = minAmount;
}
if (makerFeePct != null) {
$result.makerFeePct = makerFeePct;
}
if (takerFeePct != null) {
$result.takerFeePct = takerFeePct;
}
if (penaltyFeePct != null) {
$result.penaltyFeePct = penaltyFeePct;
}
if (buyerSecurityDepositPct != null) {
$result.buyerSecurityDepositPct = buyerSecurityDepositPct;
}
if (sellerSecurityDepositPct != null) {
$result.sellerSecurityDepositPct = sellerSecurityDepositPct;
}
if (baseCurrencyCode != null) {
$result.baseCurrencyCode = baseCurrencyCode;
}
if (counterCurrencyCode != null) {
$result.counterCurrencyCode = counterCurrencyCode;
}
if (paymentMethodId != null) {
$result.paymentMethodId = paymentMethodId;
}
if (makerPaymentAccountId != null) {
$result.makerPaymentAccountId = makerPaymentAccountId;
}
if (countryCode != null) {
$result.countryCode = countryCode;
}
if (acceptedCountryCodes != null) {
$result.acceptedCountryCodes.addAll(acceptedCountryCodes);
}
if (bankId != null) {
$result.bankId = bankId;
}
if (acceptedBankIds != null) {
$result.acceptedBankIds.addAll(acceptedBankIds);
}
if (versionNr != null) {
$result.versionNr = versionNr;
}
if (blockHeightAtOfferCreation != null) {
$result.blockHeightAtOfferCreation = blockHeightAtOfferCreation;
}
if (maxTradeLimit != null) {
$result.maxTradeLimit = maxTradeLimit;
}
if (maxTradePeriod != null) {
$result.maxTradePeriod = maxTradePeriod;
}
if (useAutoClose != null) {
$result.useAutoClose = useAutoClose;
}
if (useReOpenAfterAutoClose != null) {
$result.useReOpenAfterAutoClose = useReOpenAfterAutoClose;
}
if (lowerClosePrice != null) {
$result.lowerClosePrice = lowerClosePrice;
}
if (upperClosePrice != null) {
$result.upperClosePrice = upperClosePrice;
}
if (isPrivateOffer != null) {
$result.isPrivateOffer = isPrivateOffer;
}
if (hashOfChallenge != null) {
$result.hashOfChallenge = hashOfChallenge;
}
if (extraData != null) {
$result.extraData.addAll(extraData);
}
if (protocolVersion != null) {
$result.protocolVersion = protocolVersion;
}
if (arbitratorSigner != null) {
$result.arbitratorSigner = arbitratorSigner;
}
if (arbitratorSignature != null) {
$result.arbitratorSignature = arbitratorSignature;
}
if (reserveTxKeyImages != null) {
$result.reserveTxKeyImages.addAll(reserveTxKeyImages);
}
return $result;
}