public static PartyOrAccountReference Create(string href)
        {
            var partyOrTradeSideReference = new PartyOrAccountReference {
                href = href
            };

            return(partyOrTradeSideReference);
        }
示例#2
0
        public static Payment Create(string identifier, PartyOrAccountReference payerPartyReference,
                                     PartyOrAccountReference receiverPartyReference, Money paymentAmount,
                                     AdjustableDate paymentDate, SettlementInformation settlementInformation, PaymentType paymentType,
                                     decimal discountFactor, Money presentValueAmount)
        {
            var payment = new Payment
            {
                discountFactor          = discountFactor,
                discountFactorSpecified = true,
                href = identifier,
                payerPartyReference    = payerPartyReference,
                paymentAmount          = paymentAmount,
                paymentDate            = paymentDate,
                paymentType            = paymentType,
                presentValueAmount     = presentValueAmount,
                receiverPartyReference = receiverPartyReference,
                settlementInformation  = settlementInformation
            };

            return(payment);
        }