public DestinationRequest(IDestination destination, Money amount, bool subtractFee = false, string label = "") : this(destination, MoneyRequest.Create(amount, subtractFee), label)
 {
 }
 public DestinationRequest(IDestination destination, MoneyRequest amount, string label = "")
 {
     Destination = Guard.NotNull(nameof(destination), destination);
     Amount      = Guard.NotNull(nameof(amount), amount);
     Label       = Guard.Correct(label);
 }
 public DestinationRequest(Script scriptPubKey, Money amount, bool subtractFee = false, string label = "") : this(scriptPubKey, MoneyRequest.Create(amount, subtractFee), label)
 {
 }
 public DestinationRequest(Script scriptPubKey, MoneyRequest amount, string label = "") : this(scriptPubKey.GetDestination(), amount, label)
 {
 }
Example #5
0
 public DestinationRequest(IDestination destination, Money amount, bool subtractFee = false, SmartLabel label = null) : this(destination, MoneyRequest.Create(amount, subtractFee), label)
 {
 }
Example #6
0
 public DestinationRequest(IDestination destination, MoneyRequest amount, SmartLabel label = null)
 {
     Destination = Guard.NotNull(nameof(destination), destination);
     Amount      = Guard.NotNull(nameof(amount), amount);
     Label       = label ?? SmartLabel.Empty;
 }
Example #7
0
 public DestinationRequest(Script scriptPubKey, MoneyRequest amount, SmartLabel label = null) : this(scriptPubKey.GetDestination(), amount, label)
 {
 }
Example #8
0
 public DestinationRequest(Script scriptPubKey, Money amount, bool subtractFee = false, SmartLabel label = null) : this(scriptPubKey, MoneyRequest.Create(amount, subtractFee), label)
 {
 }
Example #9
0
 public PaymentIntent(IDestination destination, MoneyRequest amount, SmartLabel label = null) : this(new DestinationRequest(destination, amount, label))
 {
 }
Example #10
0
 public PaymentIntent(IDestination destination, MoneyRequest amount, string label = "") : this(new DestinationRequest(destination, amount, label))
 {
 }
Example #11
0
 public PaymentIntent(Script scriptPubKey, Money amount, bool subtractFee = false, string label = "") : this(scriptPubKey, MoneyRequest.Create(amount, subtractFee), label)
 {
 }