Exemple #1
0
        public async Task TestListInstalmentLink()
        {
            InstalmentLink link = await InstalmentLink.Create(
                supplierId : 4000,
                customerEmail : "*****@*****.**",
                invoiceIdentifier : "Test ID",
                invoiceValue : Convert.ToDecimal("422.22"),
                communication : CommunicationOption.NotifyCustomer,
                session : this.Session
                );

            InstalmentLink[] links = await InstalmentLink.RetrieveMany(
                supplierId : 4000,
                limit : 2,
                session : this.Session
                );

            Assert.True(
                links.Length > 0,
                "Actual length: " + links.Length.ToString()
                );


            return;
        }
Exemple #2
0
        public async Task TestCreateInstalmentLink()
        {
            InstalmentLink link = await InstalmentLink.Create(
                supplierId : 4000,
                customerEmail : "*****@*****.**",
                invoiceIdentifier : "Test ID",
                invoiceValue : Convert.ToDecimal("422.22"),
                communication : CommunicationOption.NotifyCustomer,
                session : this.Session
                );

            return;
        }