Beispiel #1
0
 static SearchCompanyResponseType SearchCompany()
 {
     return(InvoiceServiceAgent.Instance().SearchCompany(new SearchCompanyRequestType()
     {
         key = AuthToken,
         customerno = CustomerNumber,
         company_name = "Berazy",
         phonetic_search = true,
         number_hits = 10
     }));
 }
Beispiel #2
0
        static PauseInvoiceResponseType PauseInvoice()
        {
            int?ocrNumber = null;

            ThrowIfNull(ocrNumber, "OCR number must be set!");
            return(InvoiceServiceAgent.Instance().PauseInvoice(new PauseInvoiceRequestType()
            {
                key = AuthToken,
                customerno = CustomerNumber,
                ocr = ocrNumber.Value
            }));
        }
Beispiel #3
0
        static SsnCheckResponseType SsnCheck()
        {
            string orgOrSsn = null;

            ThrowIfNull(orgOrSsn, "Organizational number or social security number must be set!");
            return(InvoiceServiceAgent.Instance().SsnCheck(new SsnCheckRequestType()
            {
                key = AuthToken,
                customerno = CustomerNumber,
                ssn = orgOrSsn,
                credit_check = 0
            }));
        }
Beispiel #4
0
        static ResendInvoiceResponseType ResendInvoice()
        {
            int?ocrNumber = null;

            ThrowIfNull(ocrNumber, "OCR number must be set!");
            return(InvoiceServiceAgent.Instance().ResendInvoice(new ResendInvoiceRequestType()
            {
                key = AuthToken,
                customerno = CustomerNumber,
                ocr = ocrNumber.Value,
                co_address1 = "This",
                co_address2 = "is",
                co_address3 = "only",
                co_address4 = "a",
                co_address5 = "test",
                print_setup = 1,
                invoice_state = 1,
                clear_co_address = true
            }));
        }