OfferPayload constructor

OfferPayload({
  1. String? id,
  2. Int64? date,
  3. NodeAddress? ownerNodeAddress,
  4. PubKeyRing? pubKeyRing,
  5. OfferDirection? direction,
  6. Int64? price,
  7. double? marketPriceMarginPct,
  8. bool? useMarketBasedPrice,
  9. Int64? amount,
  10. Int64? minAmount,
  11. double? makerFeePct,
  12. double? takerFeePct,
  13. double? penaltyFeePct,
  14. double? buyerSecurityDepositPct,
  15. double? sellerSecurityDepositPct,
  16. String? baseCurrencyCode,
  17. String? counterCurrencyCode,
  18. String? paymentMethodId,
  19. String? makerPaymentAccountId,
  20. String? countryCode,
  21. Iterable<String>? acceptedCountryCodes,
  22. String? bankId,
  23. Iterable<String>? acceptedBankIds,
  24. String? versionNr,
  25. Int64? blockHeightAtOfferCreation,
  26. Int64? maxTradeLimit,
  27. Int64? maxTradePeriod,
  28. bool? useAutoClose,
  29. bool? useReOpenAfterAutoClose,
  30. Int64? lowerClosePrice,
  31. Int64? upperClosePrice,
  32. bool? isPrivateOffer,
  33. String? hashOfChallenge,
  34. Map<String, String>? extraData,
  35. int? protocolVersion,
  36. NodeAddress? arbitratorSigner,
  37. List<int>? arbitratorSignature,
  38. 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;
}