public override Generated.Operation.OperationBody ToOperationBody()
        {
            var op = new Generated.PaymentOp
            {
                Destination = Destination.AccountId,
                Amount      = new Generated.Int64(Amount),
                Asset       = Asset.ToXDR()
            };

            var body = new Generated.Operation.OperationBody
            {
                PaymentOp    = op,
                Discriminant = Generated.OperationType.Create(Generated.OperationType.OperationTypeEnum.PAYMENT)
            };

            return(body);
        }
        public override Generated.Operation.OperationBody ToOperationBody()
        {
            var op = new PaymentOp
            {
                Destination = this.Destination.AccountId,
                Amount = new Generated.Int64(Amount),
                Asset = this.Asset
            };

            var body = new Generated.Operation.OperationBody
            {
                PaymentOp = op,
                Discriminant = OperationType.Create(OperationType.OperationTypeEnum.PAYMENT)
            };

            return body;
        }
 public Builder(Generated.PaymentOp op)
 {
     Destination = KeyPair.FromXdrPublicKey(op.Destination.InnerValue);
     Asset       = Asset.FromXDR(op.Asset);
     Amount      = op.Amount.InnerValue;
 }
 public Builder(PaymentOp op)
 {
     this.Destination = KeyPair.FromXdrPublicKey(op.Destination.InnerValue);
     this.Asset = op.Asset;
     this.Amount = op.Amount.InnerValue;
 }