コード例 #1
0
        public static Authorization GetAuthorization()
        {
            Authorization authorize = new Authorization();

            authorize.amount         = AmountTest.GetAmount();
            authorize.create_time    = "2013-01-15T15:10:05.123Z";
            authorize.id             = "007";
            authorize.parent_payment = "1000";
            authorize.state          = "Authorized";
            authorize.links          = LinksTest.GetLinksList();
            return(authorize);
        }
コード例 #2
0
        public static Sale GetSale()
        {
            var sale = new Sale();

            sale.amount         = AmountTest.GetAmount();
            sale.id             = "102";
            sale.parent_payment = "103";
            sale.state          = "Approved";
            sale.create_time    = "2013-01-17T18:12:02.347Z";
            sale.links          = LinksTest.GetLinksList();
            return(sale);
        }
コード例 #3
0
ファイル: CaptureTest.cs プロジェクト: rick527/PayPal-NET-SDK
        public static Capture GetCapture()
        {
            Capture cap = new Capture();

            cap.amount         = AmountTest.GetAmount();
            cap.create_time    = "2013-01-15T15:10:05.123Z";
            cap.state          = "Authorized";
            cap.parent_payment = "1000";
            cap.links          = LinksTest.GetLinksList();
            cap.id             = "001";
            return(cap);
        }
コード例 #4
0
        public static BankAccount GetBankAccount()
        {
            var bankAccount = new BankAccount();

            bankAccount.account_name        = "Test Account";
            bankAccount.account_number      = "01234567890123456789";
            bankAccount.account_number_type = "BBAN";
            bankAccount.account_type        = "CHECKING";
            bankAccount.check_type          = "PERSONAL";
            bankAccount.billing_address     = AddressTest.GetAddress();
            bankAccount.links = LinksTest.GetLinksList();
            return(bankAccount);
        }
コード例 #5
0
        public static Refund GetRefund()
        {
            var refund = new Refund();

            refund.capture_id     = "101";
            refund.id             = "102";
            refund.parent_payment = "103";
            refund.sale_id        = "104";
            refund.state          = "Approved";
            refund.amount         = AmountTest.GetAmount();
            refund.create_time    = "2013-01-17T18:12:02.347Z";
            refund.links          = LinksTest.GetLinksList();
            return(refund);
        }