KashFlowAPI.pm

filter: Statementstmt 45.5% 36 / 79 Branchbran 0.0% 0 / 22 Conditioncond 0.0% 0 / 11 MC/DCmcdc 0.0% 0 / 7 Subroutinesub 56.2% 9 / 16 Podpod n/a totaltotal 33.3% 45 / 135 CC 18 SCAR 34.5
CC
18
Cov
32%
_call
90.0
__ANON__
30.0
AUTOLOAD
12.0
CRAP 31.4
↑ Summary KashFlow.pm »
1 package KashFlowAPI;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 # THIS HAS BEEN HEAVILY HACKED. DO NOT REGENERATE
7  
8 # Generated by SOAP::Lite (v0.710.10) for Perl -- soaplite.com
9 # Copyright (C) 2000-2006 Paul Kulchenko, Byrne Reese
10 # -- generated at [Thu Dec 31 10:51:16 2009]
11 # -- generated from https://securedwebapp.com/api/service.asmx?wsdl
12 4 my %methods = (
13 GetDigitaCSVFile => {
14 endpoint => 'https://securedwebapp.com/api/service.asmx',
15 soapaction => 'KashFlow/GetDigitaCSVFile',
16 namespace => 'KashFlow',
17 parameters => [
18 SOAP::Data->new(
19 name => 'UserName',
20 type => 'xsd:string',
21 attr => {}
22 ),
23 SOAP::Data->new(
24 name => 'Password',
25 type => 'xsd:string',
26 attr => {}
27 ),
28 SOAP::Data->new(
29 name => 'StartDate',
30 type => 'xsd:dateTime',
31 attr => {}
32 ),
33 SOAP::Data->new(
34 name => 'EndDate',
35 type => 'xsd:dateTime',
36 attr => {}
37 ),
38 ], # end parameters
39 }, # end GetDigitaCSVFile
40 EmailInvoice => {
41 endpoint => 'https://securedwebapp.com/api/service.asmx',
42 soapaction => 'KashFlow/EmailInvoice',
43 namespace => 'KashFlow',
44 parameters => [
45 SOAP::Data->new(
46 name => 'UserName',
47 type => 'xsd:string',
48 attr => {}
49 ),
50 SOAP::Data->new(
51 name => 'Password',
52 type => 'xsd:string',
53 attr => {}
54 ),
55 SOAP::Data->new(
56 name => 'InvoiceNumber',
57 type => 'xsd:int',
58 attr => {}
59 ),
60 SOAP::Data->new(
61 name => 'FromEmail',
62 type => 'xsd:string',
63 attr => {}
64 ),
65 SOAP::Data->new(
66 name => 'FromName',
67 type => 'xsd:string',
68 attr => {}
69 ),
70 SOAP::Data->new(
71 name => 'SubjectLine',
72 type => 'xsd:string',
73 attr => {}
74 ),
75 SOAP::Data->new( name => 'Body', type => 'xsd:string', attr => {} ),
76 SOAP::Data->new(
77 name => 'RecipientEmail',
78 type => 'xsd:string',
79 attr => {}
80 ),
81 ], # end parameters
82 }, # end EmailInvoice
83 GetNominalLedger => {
84 endpoint => 'https://securedwebapp.com/api/service.asmx',
85 soapaction => 'KashFlow/GetNominalLedger',
86 namespace => 'KashFlow',
87 parameters => [
88 SOAP::Data->new(
89 name => 'UserName',
90 type => 'xsd:string',
91 attr => {}
92 ),
93 SOAP::Data->new(
94 name => 'Password',
95 type => 'xsd:string',
96 attr => {}
97 ),
98 SOAP::Data->new(
99 name => 'StartDate',
100 type => 'xsd:dateTime',
101 attr => {}
102 ),
103 SOAP::Data->new(
104 name => 'EndDate',
105 type => 'xsd:dateTime',
106 attr => {}
107 ),
108 SOAP::Data->new(
109 name => 'NominalID',
110 type => 'xsd:int',
111 attr => {}
112 ),
113 ], # end parameters
114 }, # end GetNominalLedger
115 GetJournals => {
116 endpoint => 'https://securedwebapp.com/api/service.asmx',
117 soapaction => 'KashFlow/GetJournals',
118 namespace => 'KashFlow',
119 parameters => [
120 SOAP::Data->new(
121 name => 'UserName',
122 type => 'xsd:string',
123 attr => {}
124 ),
125 SOAP::Data->new(
126 name => 'Password',
127 type => 'xsd:string',
128 attr => {}
129 ),
130 ], # end parameters
131 }, # end GetJournals
132 GetBankTxTypes => {
133 endpoint => 'https://securedwebapp.com/api/service.asmx',
134 soapaction => 'KashFlow/GetBankTxTypes',
135 namespace => 'KashFlow',
136 parameters => [
137 SOAP::Data->new(
138 name => 'UserName',
139 type => 'xsd:string',
140 attr => {}
141 ),
142 SOAP::Data->new(
143 name => 'Password',
144 type => 'xsd:string',
145 attr => {}
146 ),
147 ], # end parameters
148 }, # end GetBankTxTypes
149 SetCustomerVATNumber => {
150 endpoint => 'https://securedwebapp.com/api/service.asmx',
151 soapaction => 'KashFlow/SetCustomerVATNumber',
152 namespace => 'KashFlow',
153 parameters => [
154 SOAP::Data->new(
155 name => 'UserName',
156 type => 'xsd:string',
157 attr => {}
158 ),
159 SOAP::Data->new(
160 name => 'Password',
161 type => 'xsd:string',
162 attr => {}
163 ),
164 SOAP::Data->new(
165 name => 'CustVATNumber',
166 type => 'xsd:string',
167 attr => {}
168 ),
169 SOAP::Data->new(
170 name => 'CustomerCode',
171 type => 'xsd:string',
172 attr => {}
173 ),
174 ], # end parameters
175 }, # end SetCustomerVATNumber
176 GetQuotes => {
177 endpoint => 'https://securedwebapp.com/api/service.asmx',
178 soapaction => 'KashFlow/GetQuotes',
179 namespace => 'KashFlow',
180 parameters => [
181 SOAP::Data->new(
182 name => 'UserName',
183 type => 'xsd:string',
184 attr => {}
185 ),
186 SOAP::Data->new(
187 name => 'Password',
188 type => 'xsd:string',
189 attr => {}
190 ),
191 ], # end parameters
192 }, # end GetQuotes
193 GetPaypalLink => {
194 endpoint => 'https://securedwebapp.com/api/service.asmx',
195 soapaction => 'KashFlow/GetPaypalLink',
196 namespace => 'KashFlow',
197 parameters => [
198 SOAP::Data->new(
199 name => 'UserName',
200 type => 'xsd:string',
201 attr => {}
202 ),
203 SOAP::Data->new(
204 name => 'Password',
205 type => 'xsd:string',
206 attr => {}
207 ),
208 SOAP::Data->new(
209 name => 'InvoiceNumber',
210 type => 'xsd:int',
211 attr => {}
212 ),
213 ], # end parameters
214 }, # end GetPaypalLink
215 GetVATRates => {
216 endpoint => 'https://securedwebapp.com/api/service.asmx',
217 soapaction => 'KashFlow/GetVATRates',
218 namespace => 'KashFlow',
219 parameters => [
220 SOAP::Data->new(
221 name => 'UserName',
222 type => 'xsd:string',
223 attr => {}
224 ),
225 SOAP::Data->new(
226 name => 'Password',
227 type => 'xsd:string',
228 attr => {}
229 ),
230 ], # end parameters
231 }, # end GetVATRates
232 GetVATReport => {
233 endpoint => 'https://securedwebapp.com/api/service.asmx',
234 soapaction => 'KashFlow/GetVATReport',
235 namespace => 'KashFlow',
236 parameters => [
237 SOAP::Data->new(
238 name => 'UserName',
239 type => 'xsd:string',
240 attr => {}
241 ),
242 SOAP::Data->new(
243 name => 'Password',
244 type => 'xsd:string',
245 attr => {}
246 ),
247 SOAP::Data->new(
248 name => 'StartDate',
249 type => 'xsd:dateTime',
250 attr => {}
251 ),
252 SOAP::Data->new(
253 name => 'EndDate',
254 type => 'xsd:dateTime',
255 attr => {}
256 ),
257 ], # end parameters
258 }, # end GetVATReport
259 InsertReceipt => {
260 endpoint => 'https://securedwebapp.com/api/service.asmx',
261 soapaction => 'KashFlow/InsertReceipt',
262 namespace => 'KashFlow',
263 parameters => [
264 SOAP::Data->new(
265 name => 'UserName',
266 type => 'xsd:string',
267 attr => {}
268 ),
269 SOAP::Data->new(
270 name => 'Password',
271 type => 'xsd:string',
272 attr => {}
273 ),
274 SOAP::Data->new( name => 'Inv', type => 'tns:Invoice', attr => {} ),
275 ], # end parameters
276 }, # end InsertReceipt
277 UpdateReceipt => {
278 endpoint => 'https://securedwebapp.com/api/service.asmx',
279 soapaction => 'KashFlow/UpdateReceipt',
280 namespace => 'KashFlow',
281 parameters => [
282 SOAP::Data->new(
283 name => 'UserName',
284 type => 'xsd:string',
285 attr => {}
286 ),
287 SOAP::Data->new(
288 name => 'Password',
289 type => 'xsd:string',
290 attr => {}
291 ),
292 SOAP::Data->new(
293 name => 'Receipt',
294 type => 'tns:Invoice',
295 attr => {}
296 ),
297 ], # end parameters
298 }, # end UpdateReceipt
299 DeleteQuote => {
300 endpoint => 'https://securedwebapp.com/api/service.asmx',
301 soapaction => 'KashFlow/DeleteQuote',
302 namespace => 'KashFlow',
303 parameters => [
304 SOAP::Data->new(
305 name => 'UserName',
306 type => 'xsd:string',
307 attr => {}
308 ),
309 SOAP::Data->new(
310 name => 'Password',
311 type => 'xsd:string',
312 attr => {}
313 ),
314 SOAP::Data->new(
315 name => 'QuoteNumber',
316 type => 'xsd:int',
317 attr => {}
318 ),
319 ], # end parameters
320 }, # end DeleteQuote
321 DeleteInvoiceByID => {
322 endpoint => 'https://securedwebapp.com/api/service.asmx',
323 soapaction => 'KashFlow/DeleteInvoiceByID',
324 namespace => 'KashFlow',
325 parameters => [
326 SOAP::Data->new(
327 name => 'UserName',
328 type => 'xsd:string',
329 attr => {}
330 ),
331 SOAP::Data->new(
332 name => 'Password',
333 type => 'xsd:string',
334 attr => {}
335 ),
336 SOAP::Data->new(
337 name => 'InvoiceID',
338 type => 'xsd:int',
339 attr => {}
340 ),
341 ], # end parameters
342 }, # end DeleteInvoiceByID
343 DeleteInvoiceLine => {
344 endpoint => 'https://securedwebapp.com/api/service.asmx',
345 soapaction => 'KashFlow/DeleteInvoiceLine',
346 namespace => 'KashFlow',
347 parameters => [
348 SOAP::Data->new(
349 name => 'UserName',
350 type => 'xsd:string',
351 attr => {}
352 ),
353 SOAP::Data->new(
354 name => 'Password',
355 type => 'xsd:string',
356 attr => {}
357 ),
358 SOAP::Data->new( name => 'LineID', type => 'xsd:int', attr => {} ),
359 SOAP::Data->new(
360 name => 'InvoiceNumber',
361 type => 'xsd:int',
362 attr => {}
363 ),
364 ], # end parameters
365 }, # end DeleteInvoiceLine
366 SageFileImport => {
367 endpoint => 'https://securedwebapp.com/api/service.asmx',
368 soapaction => 'KashFlow/SageFileImport',
369 namespace => 'KashFlow',
370 parameters => [
371 SOAP::Data->new( name => 'iSetID', type => 'xsd:int', attr => {} ),
372 ], # end parameters
373 }, # end SageFileImport
374 UpdateInvoice => {
375 endpoint => 'https://securedwebapp.com/api/service.asmx',
376 soapaction => 'KashFlow/UpdateInvoice',
377 namespace => 'KashFlow',
378 parameters => [
379 SOAP::Data->new(
380 name => 'UserName',
381 type => 'xsd:string',
382 attr => {}
383 ),
384 SOAP::Data->new(
385 name => 'Password',
386 type => 'xsd:string',
387 attr => {}
388 ),
389 SOAP::Data->new( name => 'Inv', type => 'tns:Invoice', attr => {} ),
390 ], # end parameters
391 }, # end UpdateInvoice
392 InsertJournal => {
393 endpoint => 'https://securedwebapp.com/api/service.asmx',
394 soapaction => 'KashFlow/InsertJournal',
395 namespace => 'KashFlow',
396 parameters => [
397 SOAP::Data->new(
398 name => 'UserName',
399 type => 'xsd:string',
400 attr => {}
401 ),
402 SOAP::Data->new(
403 name => 'Password',
404 type => 'xsd:string',
405 attr => {}
406 ),
407 SOAP::Data->new(
408 name => 'Jnl',
409 type => 'tns:JournalEntry',
410 attr => {}
411 ),
412 ], # end parameters
413 }, # end InsertJournal
414 InsertInvoicePayment => {
415 endpoint => 'https://securedwebapp.com/api/service.asmx',
416 soapaction => 'KashFlow/InsertInvoicePayment',
417 namespace => 'KashFlow',
418 parameters => [
419 SOAP::Data->new(
420 name => 'UserName',
421 type => 'xsd:string',
422 attr => {}
423 ),
424 SOAP::Data->new(
425 name => 'Password',
426 type => 'xsd:string',
427 attr => {}
428 ),
429 SOAP::Data->new(
430 name => 'InvoicePayment',
431 type => 'tns:Payment',
432 attr => {}
433 ),
434 ], # end parameters
435 }, # end InsertInvoicePayment
436 GetInvoicesForCustomer => {
437 endpoint => 'https://securedwebapp.com/api/service.asmx',
438 soapaction => 'KashFlow/GetInvoicesForCustomer',
439 namespace => 'KashFlow',
440 parameters => [
441 SOAP::Data->new(
442 name => 'UserName',
443 type => 'xsd:string',
444 attr => {}
445 ),
446 SOAP::Data->new(
447 name => 'Password',
448 type => 'xsd:string',
449 attr => {}
450 ),
451 SOAP::Data->new( name => 'CustID', type => 'xsd:int', attr => {} ),
452 ], # end parameters
453 }, # end GetInvoicesForCustomer
454 GetInvoices_Unpaid => {
455 endpoint => 'https://securedwebapp.com/api/service.asmx',
456 soapaction => 'KashFlow/GetInvoices_Unpaid',
457 namespace => 'KashFlow',
458 parameters => [
459 SOAP::Data->new(
460 name => 'UserName',
461 type => 'xsd:string',
462 attr => {}
463 ),
464 SOAP::Data->new(
465 name => 'Password',
466 type => 'xsd:string',
467 attr => {}
468 ),
469 ], # end parameters
470 }, # end GetInvoices_Unpaid
471 GetInvoices_Overdue => {
472 endpoint => 'https://securedwebapp.com/api/service.asmx',
473 soapaction => 'KashFlow/GetInvoices_Overdue',
474 namespace => 'KashFlow',
475 parameters => [
476 SOAP::Data->new(
477 name => 'UserName',
478 type => 'xsd:string',
479 attr => {}
480 ),
481 SOAP::Data->new(
482 name => 'Password',
483 type => 'xsd:string',
484 attr => {}
485 ),
486 ], # end parameters
487 }, # end GetInvoices_Overdue
488 GetInvoicesByDateRange => {
489 endpoint => 'https://securedwebapp.com/api/service.asmx',
490 soapaction => 'KashFlow/GetInvoicesByDateRange',
491 namespace => 'KashFlow',
492 parameters => [
493 SOAP::Data->new(
494 name => 'UserName',
495 type => 'xsd:string',
496 attr => {}
497 ),
498 SOAP::Data->new(
499 name => 'Password',
500 type => 'xsd:string',
501 attr => {}
502 ),
503 SOAP::Data->new(
504 name => 'StartDate',
505 type => 'xsd:dateTime',
506 attr => {}
507 ),
508 SOAP::Data->new(
509 name => 'EndDate',
510 type => 'xsd:dateTime',
511 attr => {}
512 ),
513 ], # end parameters
514 }, # end GetInvoicesForCustomer
515 GetTrialBalance => {
516 endpoint => 'https://securedwebapp.com/api/service.asmx',
517 soapaction => 'KashFlow/GetTrialBalance',
518 namespace => 'KashFlow',
519 parameters => [
520 SOAP::Data->new(
521 name => 'UserName',
522 type => 'xsd:string',
523 attr => {}
524 ),
525 SOAP::Data->new(
526 name => 'Password',
527 type => 'xsd:string',
528 attr => {}
529 ),
530 SOAP::Data->new(
531 name => 'StartDate',
532 type => 'xsd:dateTime',
533 attr => {}
534 ),
535 SOAP::Data->new(
536 name => 'EndDate',
537 type => 'xsd:dateTime',
538 attr => {}
539 ),
540 ], # end parameters
541 }, # end GetTrialBalance
542 GetReceiptPayment => {
543 endpoint => 'https://securedwebapp.com/api/service.asmx',
544 soapaction => 'KashFlow/GetReceiptPayment',
545 namespace => 'KashFlow',
546 parameters => [
547 SOAP::Data->new(
548 name => 'UserName',
549 type => 'xsd:string',
550 attr => {}
551 ),
552 SOAP::Data->new(
553 name => 'Password',
554 type => 'xsd:string',
555 attr => {}
556 ),
557 SOAP::Data->new(
558 name => 'ReceiptNumber',
559 type => 'xsd:int',
560 attr => {}
561 ),
562 ], # end parameters
563 }, # end GetReceiptPayment
564 DeleteQuoteByID => {
565 endpoint => 'https://securedwebapp.com/api/service.asmx',
566 soapaction => 'KashFlow/DeleteQuoteByID',
567 namespace => 'KashFlow',
568 parameters => [
569 SOAP::Data->new(
570 name => 'UserName',
571 type => 'xsd:string',
572 attr => {}
573 ),
574 SOAP::Data->new(
575 name => 'Password',
576 type => 'xsd:string',
577 attr => {}
578 ),
579 SOAP::Data->new( name => 'QuoteID', type => 'xsd:int', attr => {} ),
580 ], # end parameters
581 }, # end DeleteQuoteByID
582 GetReceipt => {
583 endpoint => 'https://securedwebapp.com/api/service.asmx',
584 soapaction => 'KashFlow/GetReceipt',
585 namespace => 'KashFlow',
586 parameters => [
587 SOAP::Data->new(
588 name => 'UserName',
589 type => 'xsd:string',
590 attr => {}
591 ),
592 SOAP::Data->new(
593 name => 'Password',
594 type => 'xsd:string',
595 attr => {}
596 ),
597 SOAP::Data->new(
598 name => 'ReceiptNumber',
599 type => 'xsd:int',
600 attr => {}
601 ),
602 ], # end parameters
603 }, # end GetReceipt
604 GetCustomerByEmail => {
605 endpoint => 'https://securedwebapp.com/api/service.asmx',
606 soapaction => 'KashFlow/GetCustomerByEmail',
607 namespace => 'KashFlow',
608 parameters => [
609 SOAP::Data->new(
610 name => 'UserName',
611 type => 'xsd:string',
612 attr => {}
613 ),
614 SOAP::Data->new(
615 name => 'Password',
616 type => 'xsd:string',
617 attr => {}
618 ),
619 SOAP::Data->new(
620 name => 'CustomerEmail',
621 type => 'xsd:string',
622 attr => {}
623 ),
624 ], # end parameters
625 }, # end GetCustomerByEmail
626 DeleteInvoice => {
627 endpoint => 'https://securedwebapp.com/api/service.asmx',
628 soapaction => 'KashFlow/DeleteInvoice',
629 namespace => 'KashFlow',
630 parameters => [
631 SOAP::Data->new(
632 name => 'UserName',
633 type => 'xsd:string',
634 attr => {}
635 ),
636 SOAP::Data->new(
637 name => 'Password',
638 type => 'xsd:string',
639 attr => {}
640 ),
641 SOAP::Data->new(
642 name => 'InvoiceNumber',
643 type => 'xsd:int',
644 attr => {}
645 ),
646 ], # end parameters
647 }, # end DeleteInvoice
648 SetSupplierVATNumber => {
649 endpoint => 'https://securedwebapp.com/api/service.asmx',
650 soapaction => 'KashFlow/SetSupplierVATNumber',
651 namespace => 'KashFlow',
652 parameters => [
653 SOAP::Data->new(
654 name => 'UserName',
655 type => 'xsd:string',
656 attr => {}
657 ),
658 SOAP::Data->new(
659 name => 'Password',
660 type => 'xsd:string',
661 attr => {}
662 ),
663 SOAP::Data->new(
664 name => 'SupVATNumber',
665 type => 'xsd:string',
666 attr => {}
667 ),
668 SOAP::Data->new(
669 name => 'SupplierCode',
670 type => 'xsd:string',
671 attr => {}
672 ),
673 ], # end parameters
674 }, # end SetSupplierVATNumber
675 GetNominalCodesExtended => {
676 endpoint => 'https://securedwebapp.com/api/service.asmx',
677 soapaction => 'KashFlow/GetNominalCodesExtended',
678 namespace => 'KashFlow',
679 parameters => [
680 SOAP::Data->new(
681 name => 'UserName',
682 type => 'xsd:string',
683 attr => {}
684 ),
685 SOAP::Data->new(
686 name => 'Password',
687 type => 'xsd:string',
688 attr => {}
689 ),
690 ], # end parameters
691 }, # end GetNominalCodesExtended
692 DeleteSupplier => {
693 endpoint => 'https://securedwebapp.com/api/service.asmx',
694 soapaction => 'KashFlow/DeleteSupplier',
695 namespace => 'KashFlow',
696 parameters => [
697 SOAP::Data->new(
698 name => 'UserName',
699 type => 'xsd:string',
700 attr => {}
701 ),
702 SOAP::Data->new(
703 name => 'Password',
704 type => 'xsd:string',
705 attr => {}
706 ),
707 SOAP::Data->new(
708 name => 'SupplierID',
709 type => 'xsd:int',
710 attr => {}
711 ),
712 ], # end parameters
713 }, # end DeleteSupplier
714 InsertInvoiceLineWithInvoiceNumber => {
715 endpoint => 'https://securedwebapp.com/api/service.asmx',
716 soapaction => 'KashFlow/InsertInvoiceLineWithInvoiceNumber',
717 namespace => 'KashFlow',
718 parameters => [
719 SOAP::Data->new(
720 name => 'UserName',
721 type => 'xsd:string',
722 attr => {}
723 ),
724 SOAP::Data->new(
725 name => 'Password',
726 type => 'xsd:string',
727 attr => {}
728 ),
729 SOAP::Data->new(
730 name => 'InvoiceNumber',
731 type => 'xsd:int',
732 attr => {}
733 ),
734 SOAP::Data->new(
735 name => 'InvLine',
736 type => 'tns:InvoiceLine',
737 attr => {}
738 ),
739 ], # end parameters
740 }, # end InsertInvoiceLineWithInvoiceNumber
741 AutoAuthIP => {
742 endpoint => 'https://securedwebapp.com/api/service.asmx',
743 soapaction => 'KashFlow/AutoAuthIP',
744 namespace => 'KashFlow',
745 parameters => [
746 SOAP::Data->new(
747 name => 'UserName',
748 type => 'xsd:string',
749 attr => {}
750 ),
751 SOAP::Data->new(
752 name => 'Password',
753 type => 'xsd:string',
754 attr => {}
755 ),
756 SOAP::Data->new(
757 name => 'appName',
758 type => 'xsd:string',
759 attr => {}
760 ),
761 SOAP::Data->new(
762 name => 'AutoAuthKey',
763 type => 'xsd:string',
764 attr => {}
765 ),
766 ], # end parameters
767 }, # end AutoAuthIP
768 GetQuoteByID => {
769 endpoint => 'https://securedwebapp.com/api/service.asmx',
770 soapaction => 'KashFlow/GetQuoteByID',
771 namespace => 'KashFlow',
772 parameters => [
773 SOAP::Data->new(
774 name => 'UserName',
775 type => 'xsd:string',
776 attr => {}
777 ),
778 SOAP::Data->new(
779 name => 'Password',
780 type => 'xsd:string',
781 attr => {}
782 ),
783 SOAP::Data->new( name => 'QuoteID', type => 'xsd:int', attr => {} ),
784 ], # end parameters
785 }, # end GetQuoteByID
786 DeleteQuoteLine => {
787 endpoint => 'https://securedwebapp.com/api/service.asmx',
788 soapaction => 'KashFlow/DeleteQuoteLine',
789 namespace => 'KashFlow',
790 parameters => [
791 SOAP::Data->new(
792 name => 'UserName',
793 type => 'xsd:string',
794 attr => {}
795 ),
796 SOAP::Data->new(
797 name => 'Password',
798 type => 'xsd:string',
799 attr => {}
800 ),
801 SOAP::Data->new( name => 'LineID', type => 'xsd:int', attr => {} ),
802 SOAP::Data->new(
803 name => 'QuoteNumber',
804 type => 'xsd:int',
805 attr => {}
806 ),
807 ], # end parameters
808 }, # end DeleteQuoteLine
809 InsertSupplier => {
810 endpoint => 'https://securedwebapp.com/api/service.asmx',
811 soapaction => 'KashFlow/InsertSupplier',
812 namespace => 'KashFlow',
813 parameters => [
814 SOAP::Data->new(
815 name => 'UserName',
816 type => 'xsd:string',
817 attr => {}
818 ),
819 SOAP::Data->new(
820 name => 'Password',
821 type => 'xsd:string',
822 attr => {}
823 ),
824 SOAP::Data->new(
825 name => 'supl',
826 type => 'tns:Supplier',
827 attr => {}
828 ),
829 ], # end parameters
830 }, # end InsertSupplier
831 GetProfitAndLoss => {
832 endpoint => 'https://securedwebapp.com/api/service.asmx',
833 soapaction => 'KashFlow/GetProfitAndLoss',
834 namespace => 'KashFlow',
835 parameters => [
836 SOAP::Data->new(
837 name => 'UserName',
838 type => 'xsd:string',
839 attr => {}
840 ),
841 SOAP::Data->new(
842 name => 'Password',
843 type => 'xsd:string',
844 attr => {}
845 ),
846 SOAP::Data->new(
847 name => 'StartDate',
848 type => 'xsd:dateTime',
849 attr => {}
850 ),
851 SOAP::Data->new(
852 name => 'EndDate',
853 type => 'xsd:dateTime',
854 attr => {}
855 ),
856 ], # end parameters
857 }, # end GetProfitAndLoss
858 SageFile => {
859 endpoint => 'https://securedwebapp.com/api/service.asmx',
860 soapaction => 'KashFlow/SageFile',
861 namespace => 'KashFlow',
862 parameters => [
863 SOAP::Data->new(
864 name => 'buffer',
865 type => 'xsd:base64Binary',
866 attr => {}
867 ),
868 SOAP::Data->new(
869 name => 'reference',
870 type => 'xsd:string',
871 attr => {}
872 ),
873 ], # end parameters
874 }, # end SageFile
875 DeleteJournal => {
876 endpoint => 'https://securedwebapp.com/api/service.asmx',
877 soapaction => 'KashFlow/DeleteJournal',
878 namespace => 'KashFlow',
879 parameters => [
880 SOAP::Data->new(
881 name => 'UserName',
882 type => 'xsd:string',
883 attr => {}
884 ),
885 SOAP::Data->new(
886 name => 'Password',
887 type => 'xsd:string',
888 attr => {}
889 ),
890 SOAP::Data->new(
891 name => 'JournalNumber',
892 type => 'xsd:int',
893 attr => {}
894 ),
895 ], # end parameters
896 }, # end DeleteJournal
897 GetSuppliers => {
898 endpoint => 'https://securedwebapp.com/api/service.asmx',
899 soapaction => 'KashFlow/GetSuppliers',
900 namespace => 'KashFlow',
901 parameters => [
902 SOAP::Data->new(
903 name => 'UserName',
904 type => 'xsd:string',
905 attr => {}
906 ),
907 SOAP::Data->new(
908 name => 'Password',
909 type => 'xsd:string',
910 attr => {}
911 ),
912 ], # end parameters
913 }, # end GetSuppliers
914 InsertNominalCode => {
915 endpoint => 'https://securedwebapp.com/api/service.asmx',
916 soapaction => 'KashFlow/InsertNominalCode',
917 namespace => 'KashFlow',
918 parameters => [
919 SOAP::Data->new(
920 name => 'UserName',
921 type => 'xsd:string',
922 attr => {}
923 ),
924 SOAP::Data->new(
925 name => 'Password',
926 type => 'xsd:string',
927 attr => {}
928 ),
929 SOAP::Data->new( name => 'name', type => 'xsd:string', attr => {} ),
930 SOAP::Data->new( name => 'code', type => 'xsd:int', attr => {} ),
931 SOAP::Data->new(
932 name => 'classification',
933 type => 'xsd:int',
934 attr => {}
935 ),
936 SOAP::Data->new( name => 'nomtype', type => 'xsd:int', attr => {} ),
937 ], # end parameters
938 }, # end InsertNominalCode
939 GetBankBalance => {
940 endpoint => 'https://securedwebapp.com/api/service.asmx',
941 soapaction => 'KashFlow/GetBankBalance',
942 namespace => 'KashFlow',
943 parameters => [
944 SOAP::Data->new(
945 name => 'UserName',
946 type => 'xsd:string',
947 attr => {}
948 ),
949 SOAP::Data->new(
950 name => 'Password',
951 type => 'xsd:string',
952 attr => {}
953 ),
954 SOAP::Data->new(
955 name => 'AccountID',
956 type => 'xsd:int',
957 attr => {}
958 ),
959 SOAP::Data->new(
960 name => 'BalanceDate',
961 type => 'xsd:dateTime',
962 attr => {}
963 ),
964 ], # end parameters
965 }, # end GetBankBalance
966 GetBankOverview => {
967 endpoint => 'https://securedwebapp.com/api/service.asmx',
968 soapaction => 'KashFlow/GetBankOverview',
969 namespace => 'KashFlow',
970 parameters => [
971 SOAP::Data->new(
972 name => 'UserName',
973 type => 'xsd:string',
974 attr => {}
975 ),
976 SOAP::Data->new(
977 name => 'Password',
978 type => 'xsd:string',
979 attr => {}
980 ),
981 ], # end parameters
982 }, # end GetBankOverview
983 GetSupplierByID => {
984 endpoint => 'https://securedwebapp.com/api/service.asmx',
985 soapaction => 'KashFlow/GetSupplierByID',
986 namespace => 'KashFlow',
987 parameters => [
988 SOAP::Data->new(
989 name => 'UserName',
990 type => 'xsd:string',
991 attr => {}
992 ),
993 SOAP::Data->new(
994 name => 'Password',
995 type => 'xsd:string',
996 attr => {}
997 ),
998 SOAP::Data->new(
999 name => 'SupplierID',
1000 type => 'xsd:int',
1001 attr => {}
1002 ),
1003 ], # end parameters
1004 }, # end GetSupplierByID
1005 GetReceiptsForSupplier => {
1006 endpoint => 'https://securedwebapp.com/api/service.asmx',
1007 soapaction => 'KashFlow/GetReceiptsForSupplier',
1008 namespace => 'KashFlow',
1009 parameters => [
1010 SOAP::Data->new(
1011 name => 'UserName',
1012 type => 'xsd:string',
1013 attr => {}
1014 ),
1015 SOAP::Data->new(
1016 name => 'Password',
1017 type => 'xsd:string',
1018 attr => {}
1019 ),
1020 SOAP::Data->new(
1021 name => 'SupplierID',
1022 type => 'xsd:int',
1023 attr => {}
1024 ),
1025 ], # end parameters
1026 }, # end GetReceiptsForSupplier
1027 DeleteInvoicePayment => {
1028 endpoint => 'https://securedwebapp.com/api/service.asmx',
1029 soapaction => 'KashFlow/DeleteInvoicePayment',
1030 namespace => 'KashFlow',
1031 parameters => [
1032 SOAP::Data->new(
1033 name => 'UserName',
1034 type => 'xsd:string',
1035 attr => {}
1036 ),
1037 SOAP::Data->new(
1038 name => 'Password',
1039 type => 'xsd:string',
1040 attr => {}
1041 ),
1042 SOAP::Data->new(
1043 name => 'InvoicePaymentNumber',
1044 type => 'xsd:int',
1045 attr => {}
1046 ),
1047 ], # end parameters
1048 }, # end DeleteInvoicePayment
1049 GetInvoicePayment => {
1050 endpoint => 'https://securedwebapp.com/api/service.asmx',
1051 soapaction => 'KashFlow/GetInvoicePayment',
1052 namespace => 'KashFlow',
1053 parameters => [
1054 SOAP::Data->new(
1055 name => 'UserName',
1056 type => 'xsd:string',
1057 attr => {}
1058 ),
1059 SOAP::Data->new(
1060 name => 'Password',
1061 type => 'xsd:string',
1062 attr => {}
1063 ),
1064 SOAP::Data->new(
1065 name => 'InvoiceNumber',
1066 type => 'xsd:int',
1067 attr => {}
1068 ),
1069 ], # end parameters
1070 }, # end GetInvoicePayment
1071 GetReceiptAttachments => {
1072 endpoint => 'https://securedwebapp.com/api/service.asmx',
1073 soapaction => 'KashFlow/GetReceiptAttachments',
1074 namespace => 'KashFlow',
1075 parameters => [
1076 SOAP::Data->new(
1077 name => 'UserName',
1078 type => 'xsd:string',
1079 attr => {}
1080 ),
1081 SOAP::Data->new(
1082 name => 'Password',
1083 type => 'xsd:string',
1084 attr => {}
1085 ),
1086 SOAP::Data->new(
1087 name => 'ReceiptID',
1088 type => 'xsd:int',
1089 attr => {}
1090 ),
1091 ], # end parameters
1092 }, # end GetReceiptAttachments
1093 GetBankAccounts => {
1094 endpoint => 'https://securedwebapp.com/api/service.asmx',
1095 soapaction => 'KashFlow/GetBankAccounts',
1096 namespace => 'KashFlow',
1097 parameters => [
1098 SOAP::Data->new(
1099 name => 'UserName',
1100 type => 'xsd:string',
1101 attr => {}
1102 ),
1103 SOAP::Data->new(
1104 name => 'Password',
1105 type => 'xsd:string',
1106 attr => {}
1107 ),
1108 ], # end parameters
1109 }, # end GetBankAccounts
1110 GetQuotesForCustomer => {
1111 endpoint => 'https://securedwebapp.com/api/service.asmx',
1112 soapaction => 'KashFlow/GetQuotesForCustomer',
1113 namespace => 'KashFlow',
1114 parameters => [
1115 SOAP::Data->new(
1116 name => 'UserName',
1117 type => 'xsd:string',
1118 attr => {}
1119 ),
1120 SOAP::Data->new(
1121 name => 'Password',
1122 type => 'xsd:string',
1123 attr => {}
1124 ),
1125 SOAP::Data->new( name => 'CustID', type => 'xsd:int', attr => {} ),
1126 ], # end parameters
1127 }, # end GetQuotesForCustomer
1128 DeleteBankTransaction => {
1129 endpoint => 'https://securedwebapp.com/api/service.asmx',
1130 soapaction => 'KashFlow/DeleteBankTransaction',
1131 namespace => 'KashFlow',
1132 parameters => [
1133 SOAP::Data->new(
1134 name => 'UserName',
1135 type => 'xsd:string',
1136 attr => {}
1137 ),
1138 SOAP::Data->new(
1139 name => 'Password',
1140 type => 'xsd:string',
1141 attr => {}
1142 ),
1143 SOAP::Data->new(
1144 name => 'TransactionID',
1145 type => 'xsd:int',
1146 attr => {}
1147 ),
1148 ], # end parameters
1149 }, # end DeleteBankTransaction
1150 GetInvoiceByID => {
1151 endpoint => 'https://securedwebapp.com/api/service.asmx',
1152 soapaction => 'KashFlow/GetInvoiceByID',
1153 namespace => 'KashFlow',
1154 parameters => [
1155 SOAP::Data->new(
1156 name => 'UserName',
1157 type => 'xsd:string',
1158 attr => {}
1159 ),
1160 SOAP::Data->new(
1161 name => 'Password',
1162 type => 'xsd:string',
1163 attr => {}
1164 ),
1165 SOAP::Data->new(
1166 name => 'InvoiceID',
1167 type => 'xsd:int',
1168 attr => {}
1169 ),
1170 ], # end parameters
1171 }, # end GetInvoiceByID
1172 DeleteReceiptLine => {
1173 endpoint => 'https://securedwebapp.com/api/service.asmx',
1174 soapaction => 'KashFlow/DeleteReceiptLine',
1175 namespace => 'KashFlow',
1176 parameters => [
1177 SOAP::Data->new(
1178 name => 'UserName',
1179 type => 'xsd:string',
1180 attr => {}
1181 ),
1182 SOAP::Data->new(
1183 name => 'Password',
1184 type => 'xsd:string',
1185 attr => {}
1186 ),
1187 SOAP::Data->new( name => 'LineID', type => 'xsd:int', attr => {} ),
1188 SOAP::Data->new(
1189 name => 'ReceiptNumber',
1190 type => 'xsd:int',
1191 attr => {}
1192 ),
1193 ], # end parameters
1194 }, # end DeleteReceiptLine
1195 InsertQuote => {
1196 endpoint => 'https://securedwebapp.com/api/service.asmx',
1197 soapaction => 'KashFlow/InsertQuote',
1198 namespace => 'KashFlow',
1199 parameters => [
1200 SOAP::Data->new(
1201 name => 'UserName',
1202 type => 'xsd:string',
1203 attr => {}
1204 ),
1205 SOAP::Data->new(
1206 name => 'Password',
1207 type => 'xsd:string',
1208 attr => {}
1209 ),
1210 SOAP::Data->new(
1211 name => 'Quote',
1212 type => 'tns:Invoice',
1213 attr => {}
1214 ),
1215 ], # end parameters
1216 }, # end InsertQuote
1217 GetProjects => {
1218 endpoint => 'https://securedwebapp.com/api/service.asmx',
1219 soapaction => 'KashFlow/GetProjects',
1220 namespace => 'KashFlow',
1221 parameters => [
1222 SOAP::Data->new(
1223 name => 'UserName',
1224 type => 'xsd:string',
1225 attr => {}
1226 ),
1227 SOAP::Data->new(
1228 name => 'Password',
1229 type => 'xsd:string',
1230 attr => {}
1231 ),
1232 ], # end parameters
1233 }, # end GetProjects
1234 GetCustomerCurrency => {
1235 endpoint => 'https://securedwebapp.com/api/service.asmx',
1236 soapaction => 'KashFlow/GetCustomerCurrency',
1237 namespace => 'KashFlow',
1238 parameters => [
1239 SOAP::Data->new(
1240 name => 'UserName',
1241 type => 'xsd:string',
1242 attr => {}
1243 ),
1244 SOAP::Data->new(
1245 name => 'Password',
1246 type => 'xsd:string',
1247 attr => {}
1248 ),
1249 SOAP::Data->new(
1250 name => 'CustomerCode',
1251 type => 'xsd:string',
1252 attr => {}
1253 ),
1254 ], # end parameters
1255 }, # end GetCustomerCurrency
1256 GetNominalCodes => {
1257 endpoint => 'https://securedwebapp.com/api/service.asmx',
1258 soapaction => 'KashFlow/GetNominalCodes',
1259 namespace => 'KashFlow',
1260 parameters => [
1261 SOAP::Data->new(
1262 name => 'UserName',
1263 type => 'xsd:string',
1264 attr => {}
1265 ),
1266 SOAP::Data->new(
1267 name => 'Password',
1268 type => 'xsd:string',
1269 attr => {}
1270 ),
1271 ], # end parameters
1272 }, # end GetNominalCodes
1273 UpdateJournal => {
1274 endpoint => 'https://securedwebapp.com/api/service.asmx',
1275 soapaction => 'KashFlow/UpdateJournal',
1276 namespace => 'KashFlow',
1277 parameters => [
1278 SOAP::Data->new(
1279 name => 'UserName',
1280 type => 'xsd:string',
1281 attr => {}
1282 ),
1283 SOAP::Data->new(
1284 name => 'Password',
1285 type => 'xsd:string',
1286 attr => {}
1287 ),
1288 SOAP::Data->new(
1289 name => 'Jnl',
1290 type => 'tns:JournalEntry',
1291 attr => {}
1292 ),
1293 ], # end parameters
1294 }, # end UpdateJournal
1295 PrintInvoice => {
1296 endpoint => 'https://securedwebapp.com/api/service.asmx',
1297 soapaction => 'KashFlow/PrintInvoice',
1298 namespace => 'KashFlow',
1299 parameters => [
1300 SOAP::Data->new(
1301 name => 'UserName',
1302 type => 'xsd:string',
1303 attr => {}
1304 ),
1305 SOAP::Data->new(
1306 name => 'Password',
1307 type => 'xsd:string',
1308 attr => {}
1309 ),
1310 SOAP::Data->new(
1311 name => 'InvoiceNumber',
1312 type => 'xsd:int',
1313 attr => {}
1314 ),
1315 SOAP::Data->new(
1316 name => 'InvoiceNumberList',
1317 type => 'xsd:string',
1318 attr => {}
1319 ),
1320 ], # end parameters
1321 }, # end PrintInvoice
1322 GetMonthlyProfitAndLoss => {
1323 endpoint => 'https://securedwebapp.com/api/service.asmx',
1324 soapaction => 'KashFlow/GetMonthlyProfitAndLoss',
1325 namespace => 'KashFlow',
1326 parameters => [
1327 SOAP::Data->new(
1328 name => 'UserName',
1329 type => 'xsd:string',
1330 attr => {}
1331 ),
1332 SOAP::Data->new(
1333 name => 'Password',
1334 type => 'xsd:string',
1335 attr => {}
1336 ),
1337 SOAP::Data->new(
1338 name => 'StartDate',
1339 type => 'xsd:dateTime',
1340 attr => {}
1341 ),
1342 SOAP::Data->new(
1343 name => 'EndDate',
1344 type => 'xsd:dateTime',
1345 attr => {}
1346 ),
1347 ], # end parameters
1348 }, # end GetMonthlyProfitAndLoss
1349 GetJournal => {
1350 endpoint => 'https://securedwebapp.com/api/service.asmx',
1351 soapaction => 'KashFlow/GetJournal',
1352 namespace => 'KashFlow',
1353 parameters => [
1354 SOAP::Data->new(
1355 name => 'UserName',
1356 type => 'xsd:string',
1357 attr => {}
1358 ),
1359 SOAP::Data->new(
1360 name => 'Password',
1361 type => 'xsd:string',
1362 attr => {}
1363 ),
1364 SOAP::Data->new(
1365 name => 'JournalNumber',
1366 type => 'xsd:int',
1367 attr => {}
1368 ),
1369 ], # end parameters
1370 }, # end GetJournal
1371 GetRecPayMethods => {
1372 endpoint => 'https://securedwebapp.com/api/service.asmx',
1373 soapaction => 'KashFlow/GetRecPayMethods',
1374 namespace => 'KashFlow',
1375 parameters => [
1376 SOAP::Data->new(
1377 name => 'UserName',
1378 type => 'xsd:string',
1379 attr => {}
1380 ),
1381 SOAP::Data->new(
1382 name => 'Password',
1383 type => 'xsd:string',
1384 attr => {}
1385 ),
1386 ], # end parameters
1387 }, # end GetRecPayMethods
1388 GetCustomerSources => {
1389 endpoint => 'https://securedwebapp.com/api/service.asmx',
1390 soapaction => 'KashFlow/GetCustomerSources',
1391 namespace => 'KashFlow',
1392 parameters => [
1393 SOAP::Data->new(
1394 name => 'UserName',
1395 type => 'xsd:string',
1396 attr => {}
1397 ),
1398 SOAP::Data->new(
1399 name => 'Password',
1400 type => 'xsd:string',
1401 attr => {}
1402 ),
1403 ], # end parameters
1404 }, # end GetCustomerSources
1405 GetCustomerVATNumber => {
1406 endpoint => 'https://securedwebapp.com/api/service.asmx',
1407 soapaction => 'KashFlow/GetCustomerVATNumber',
1408 namespace => 'KashFlow',
1409 parameters => [
1410 SOAP::Data->new(
1411 name => 'UserName',
1412 type => 'xsd:string',
1413 attr => {}
1414 ),
1415 SOAP::Data->new(
1416 name => 'Password',
1417 type => 'xsd:string',
1418 attr => {}
1419 ),
1420 SOAP::Data->new(
1421 name => 'CustomerCode',
1422 type => 'xsd:string',
1423 attr => {}
1424 ),
1425 ], # end parameters
1426 }, # end GetCustomerVATNumber
1427 InsertReceiptLine => {
1428 endpoint => 'https://securedwebapp.com/api/service.asmx',
1429 soapaction => 'KashFlow/InsertReceiptLine',
1430 namespace => 'KashFlow',
1431 parameters => [
1432 SOAP::Data->new(
1433 name => 'UserName',
1434 type => 'xsd:string',
1435 attr => {}
1436 ),
1437 SOAP::Data->new(
1438 name => 'Password',
1439 type => 'xsd:string',
1440 attr => {}
1441 ),
1442 SOAP::Data->new(
1443 name => 'ReceiptID',
1444 type => 'xsd:int',
1445 attr => {}
1446 ),
1447 SOAP::Data->new(
1448 name => 'InvLine',
1449 type => 'tns:InvoiceLine',
1450 attr => {}
1451 ),
1452 ], # end parameters
1453 }, # end InsertReceiptLine
1454 DeleteReceiptAttachment => {
1455 endpoint => 'https://securedwebapp.com/api/service.asmx',
1456 soapaction => 'KashFlow/DeleteReceiptAttachment',
1457 namespace => 'KashFlow',
1458 parameters => [
1459 SOAP::Data->new(
1460 name => 'UserName',
1461 type => 'xsd:string',
1462 attr => {}
1463 ),
1464 SOAP::Data->new(
1465 name => 'Password',
1466 type => 'xsd:string',
1467 attr => {}
1468 ),
1469 SOAP::Data->new(
1470 name => 'ReceiptID',
1471 type => 'xsd:int',
1472 attr => {}
1473 ),
1474 SOAP::Data->new(
1475 name => 'AttachmentID',
1476 type => 'xsd:int',
1477 attr => {}
1478 ),
1479 ], # end parameters
1480 }, # end DeleteReceiptAttachment
1481 DeleteCustomer => {
1482 endpoint => 'https://securedwebapp.com/api/service.asmx',
1483 soapaction => 'KashFlow/DeleteCustomer',
1484 namespace => 'KashFlow',
1485 parameters => [
1486 SOAP::Data->new(
1487 name => 'UserName',
1488 type => 'xsd:string',
1489 attr => {}
1490 ),
1491 SOAP::Data->new(
1492 name => 'Password',
1493 type => 'xsd:string',
1494 attr => {}
1495 ),
1496 SOAP::Data->new(
1497 name => 'CustomerID',
1498 type => 'xsd:int',
1499 attr => {}
1500 ),
1501 ], # end parameters
1502 }, # end DeleteCustomer
1503 GetCustomerByID => {
1504 endpoint => 'https://securedwebapp.com/api/service.asmx',
1505 soapaction => 'KashFlow/GetCustomerByID',
1506 namespace => 'KashFlow',
1507 parameters => [
1508 SOAP::Data->new(
1509 name => 'UserName',
1510 type => 'xsd:string',
1511 attr => {}
1512 ),
1513 SOAP::Data->new(
1514 name => 'Password',
1515 type => 'xsd:string',
1516 attr => {}
1517 ),
1518 SOAP::Data->new(
1519 name => 'CustomerID',
1520 type => 'xsd:int',
1521 attr => {}
1522 ),
1523 ], # end parameters
1524 }, # end GetCustomerByID
1525 GetRemoteLoginURL => {
1526 endpoint => 'https://securedwebapp.com/api/service.asmx',
1527 soapaction => 'KashFlow/GetRemoteLoginURL',
1528 namespace => 'KashFlow',
1529 parameters => [
1530 SOAP::Data->new(
1531 name => 'UserName',
1532 type => 'xsd:string',
1533 attr => {}
1534 ),
1535 SOAP::Data->new(
1536 name => 'Password',
1537 type => 'xsd:string',
1538 attr => {}
1539 ),
1540 ], # end parameters
1541 }, # end GetRemoteLoginURL
1542 GetInvPayMethods => {
1543 endpoint => 'https://securedwebapp.com/api/service.asmx',
1544 soapaction => 'KashFlow/GetInvPayMethods',
1545 namespace => 'KashFlow',
1546 parameters => [
1547 SOAP::Data->new(
1548 name => 'UserName',
1549 type => 'xsd:string',
1550 attr => {}
1551 ),
1552 SOAP::Data->new(
1553 name => 'Password',
1554 type => 'xsd:string',
1555 attr => {}
1556 ),
1557 ], # end parameters
1558 }, # end GetInvPayMethods
1559 SetSupplierCurrency => {
1560 endpoint => 'https://securedwebapp.com/api/service.asmx',
1561 soapaction => 'KashFlow/SetSupplierCurrency',
1562 namespace => 'KashFlow',
1563 parameters => [
1564 SOAP::Data->new(
1565 name => 'UserName',
1566 type => 'xsd:string',
1567 attr => {}
1568 ),
1569 SOAP::Data->new(
1570 name => 'Password',
1571 type => 'xsd:string',
1572 attr => {}
1573 ),
1574 SOAP::Data->new(
1575 name => 'CurrencyCode',
1576 type => 'xsd:string',
1577 attr => {}
1578 ),
1579 SOAP::Data->new(
1580 name => 'SupplierCode',
1581 type => 'xsd:string',
1582 attr => {}
1583 ),
1584 ], # end parameters
1585 }, # end SetSupplierCurrency
1586 GetSupplierCurrency => {
1587 endpoint => 'https://securedwebapp.com/api/service.asmx',
1588 soapaction => 'KashFlow/GetSupplierCurrency',
1589 namespace => 'KashFlow',
1590 parameters => [
1591 SOAP::Data->new(
1592 name => 'UserName',
1593 type => 'xsd:string',
1594 attr => {}
1595 ),
1596 SOAP::Data->new(
1597 name => 'Password',
1598 type => 'xsd:string',
1599 attr => {}
1600 ),
1601 SOAP::Data->new(
1602 name => 'SupplierCode',
1603 type => 'xsd:string',
1604 attr => {}
1605 ),
1606 ], # end parameters
1607 }, # end GetSupplierCurrency
1608 DeleteReceipt => {
1609 endpoint => 'https://securedwebapp.com/api/service.asmx',
1610 soapaction => 'KashFlow/DeleteReceipt',
1611 namespace => 'KashFlow',
1612 parameters => [
1613 SOAP::Data->new(
1614 name => 'UserName',
1615 type => 'xsd:string',
1616 attr => {}
1617 ),
1618 SOAP::Data->new(
1619 name => 'Password',
1620 type => 'xsd:string',
1621 attr => {}
1622 ),
1623 SOAP::Data->new(
1624 name => 'ReceiptNumber',
1625 type => 'xsd:int',
1626 attr => {}
1627 ),
1628 ], # end parameters
1629 }, # end DeleteReceipt
1630 SetCustomerCurrency => {
1631 endpoint => 'https://securedwebapp.com/api/service.asmx',
1632 soapaction => 'KashFlow/SetCustomerCurrency',
1633 namespace => 'KashFlow',
1634 parameters => [
1635 SOAP::Data->new(
1636 name => 'UserName',
1637 type => 'xsd:string',
1638 attr => {}
1639 ),
1640 SOAP::Data->new(
1641 name => 'Password',
1642 type => 'xsd:string',
1643 attr => {}
1644 ),
1645 SOAP::Data->new(
1646 name => 'CurrencyCode',
1647 type => 'xsd:string',
1648 attr => {}
1649 ),
1650 SOAP::Data->new(
1651 name => 'CustomerCode',
1652 type => 'xsd:string',
1653 attr => {}
1654 ),
1655 ], # end parameters
1656 }, # end SetCustomerCurrency
1657 DeleteInvoiceLineWithInvoiceID => {
1658 endpoint => 'https://securedwebapp.com/api/service.asmx',
1659 soapaction => 'KashFlow/DeleteInvoiceLineWithInvoiceID',
1660 namespace => 'KashFlow',
1661 parameters => [
1662 SOAP::Data->new(
1663 name => 'UserName',
1664 type => 'xsd:string',
1665 attr => {}
1666 ),
1667 SOAP::Data->new(
1668 name => 'Password',
1669 type => 'xsd:string',
1670 attr => {}
1671 ),
1672 SOAP::Data->new( name => 'LineID', type => 'xsd:int', attr => {} ),
1673 SOAP::Data->new(
1674 name => 'InvoiceID',
1675 type => 'xsd:int',
1676 attr => {}
1677 ),
1678 ], # end parameters
1679 }, # end DeleteInvoiceLineWithInvoiceID
1680 InsertReceiptLineFromNumber => {
1681 endpoint => 'https://securedwebapp.com/api/service.asmx',
1682 soapaction => 'KashFlow/InsertReceiptLineFromNumber',
1683 namespace => 'KashFlow',
1684 parameters => [
1685 SOAP::Data->new(
1686 name => 'UserName',
1687 type => 'xsd:string',
1688 attr => {}
1689 ),
1690 SOAP::Data->new(
1691 name => 'Password',
1692 type => 'xsd:string',
1693 attr => {}
1694 ),
1695 SOAP::Data->new(
1696 name => 'ReceiptNumber',
1697 type => 'xsd:int',
1698 attr => {}
1699 ),
1700 SOAP::Data->new(
1701 name => 'InvLine',
1702 type => 'tns:InvoiceLine',
1703 attr => {}
1704 ),
1705 ], # end parameters
1706 }, # end InsertReceiptLineFromNumber
1707 UpdateInvoiceHeader => {
1708 endpoint => 'https://securedwebapp.com/api/service.asmx',
1709 soapaction => 'KashFlow/UpdateInvoiceHeader',
1710 namespace => 'KashFlow',
1711 parameters => [
1712 SOAP::Data->new(
1713 name => 'UserName',
1714 type => 'xsd:string',
1715 attr => {}
1716 ),
1717 SOAP::Data->new(
1718 name => 'Password',
1719 type => 'xsd:string',
1720 attr => {}
1721 ),
1722 SOAP::Data->new( name => 'Inv', type => 'tns:Invoice', attr => {} ),
1723 ], # end parameters
1724 }, # end UpdateInvoiceHeader
1725 ConvertQuoteToInvoice => {
1726 endpoint => 'https://securedwebapp.com/api/service.asmx',
1727 soapaction => 'KashFlow/ConvertQuoteToInvoice',
1728 namespace => 'KashFlow',
1729 parameters => [
1730 SOAP::Data->new(
1731 name => 'UserName',
1732 type => 'xsd:string',
1733 attr => {}
1734 ),
1735 SOAP::Data->new(
1736 name => 'Password',
1737 type => 'xsd:string',
1738 attr => {}
1739 ),
1740 SOAP::Data->new( name => 'QuoteID', type => 'xsd:int', attr => {} ),
1741 SOAP::Data->new(
1742 name => 'CustomerID',
1743 type => 'xsd:int',
1744 attr => {}
1745 ),
1746 SOAP::Data->new(
1747 name => 'CopyQuoteReference',
1748 type => 'xsd:int',
1749 attr => {}
1750 ),
1751 SOAP::Data->new(
1752 name => 'deleteQuoteAfterConversion',
1753 type => 'xsd:int',
1754 attr => {}
1755 ),
1756 ], # end parameters
1757 }, # end ConvertQuoteToInvoice
1758 createAccount => {
1759 endpoint => 'https://securedwebapp.com/api/service.asmx',
1760 soapaction => 'KashFlow/createAccount',
1761 namespace => 'KashFlow',
1762 parameters => [
1763 SOAP::Data->new(
1764 name => 'AccountCreationKey',
1765 type => 'xsd:string',
1766 attr => {}
1767 ),
1768 SOAP::Data->new(
1769 name => 'Username',
1770 type => 'xsd:string',
1771 attr => {}
1772 ),
1773 SOAP::Data->new(
1774 name => 'password',
1775 type => 'xsd:string',
1776 attr => {}
1777 ),
1778 SOAP::Data->new(
1779 name => 'memorableword',
1780 type => 'xsd:string',
1781 attr => {}
1782 ),
1783 SOAP::Data->new(
1784 name => 'EmailAddress',
1785 type => 'xsd:string',
1786 attr => {}
1787 ),
1788 SOAP::Data->new(
1789 name => 'CompanyName',
1790 type => 'xsd:string',
1791 attr => {}
1792 ),
1793 SOAP::Data->new(
1794 name => 'Addr1',
1795 type => 'xsd:string',
1796 attr => {}
1797 ),
1798 SOAP::Data->new(
1799 name => 'Addr2',
1800 type => 'xsd:string',
1801 attr => {}
1802 ),
1803 SOAP::Data->new(
1804 name => 'Addr3',
1805 type => 'xsd:string',
1806 attr => {}
1807 ),
1808 SOAP::Data->new(
1809 name => 'Addr4',
1810 type => 'xsd:string',
1811 attr => {}
1812 ),
1813 SOAP::Data->new(
1814 name => 'Postcode',
1815 type => 'xsd:string',
1816 attr => {}
1817 ),
1818 SOAP::Data->new(
1819 name => 'ContactName',
1820 type => 'xsd:string',
1821 attr => {}
1822 ),
1823 SOAP::Data->new(
1824 name => 'Telephone',
1825 type => 'xsd:string',
1826 attr => {}
1827 ),
1828 SOAP::Data->new(
1829 name => 'VATRegistered',
1830 type => 'xsd:int',
1831 attr => {}
1832 ),
1833 SOAP::Data->new(
1834 name => 'VATNumber',
1835 type => 'xsd:string',
1836 attr => {}
1837 ),
1838 SOAP::Data->new(
1839 name => 'USSettings',
1840 type => 'xsd:int',
1841 attr => {}
1842 ),
1843 SOAP::Data->new(
1844 name => 'promocode',
1845 type => 'xsd:string',
1846 attr => {}
1847 ),
1848 ], # end parameters
1849 }, # end createAccount
1850 UpdateQuoteHeader => {
1851 endpoint => 'https://securedwebapp.com/api/service.asmx',
1852 soapaction => 'KashFlow/UpdateQuoteHeader',
1853 namespace => 'KashFlow',
1854 parameters => [
1855 SOAP::Data->new(
1856 name => 'UserName',
1857 type => 'xsd:string',
1858 attr => {}
1859 ),
1860 SOAP::Data->new(
1861 name => 'Password',
1862 type => 'xsd:string',
1863 attr => {}
1864 ),
1865 SOAP::Data->new(
1866 name => 'Quote',
1867 type => 'tns:Invoice',
1868 attr => {}
1869 ),
1870 ], # end parameters
1871 }, # end UpdateQuoteHeader
1872 AttachFileToReceipt => {
1873 endpoint => 'https://securedwebapp.com/api/service.asmx',
1874 soapaction => 'KashFlow/AttachFileToReceipt',
1875 namespace => 'KashFlow',
1876 parameters => [
1877 SOAP::Data->new(
1878 name => 'UserName',
1879 type => 'xsd:string',
1880 attr => {}
1881 ),
1882 SOAP::Data->new(
1883 name => 'Password',
1884 type => 'xsd:string',
1885 attr => {}
1886 ),
1887 SOAP::Data->new(
1888 name => 'ReceiptNo',
1889 type => 'xsd:int',
1890 attr => {}
1891 ),
1892 SOAP::Data->new(
1893 name => 'Base64String',
1894 type => 'xsd:string',
1895 attr => {}
1896 ),
1897 SOAP::Data->new(
1898 name => 'ContentType',
1899 type => 'xsd:string',
1900 attr => {}
1901 ),
1902 SOAP::Data->new(
1903 name => 'Filename',
1904 type => 'xsd:string',
1905 attr => {}
1906 ),
1907 SOAP::Data->new(
1908 name => 'FileExtension',
1909 type => 'xsd:string',
1910 attr => {}
1911 ),
1912 SOAP::Data->new(
1913 name => 'FileSize',
1914 type => 'xsd:string',
1915 attr => {}
1916 ),
1917 ], # end parameters
1918 }, # end AttachFileToReceipt
1919 UpdateJournalHeader => {
1920 endpoint => 'https://securedwebapp.com/api/service.asmx',
1921 soapaction => 'KashFlow/UpdateJournalHeader',
1922 namespace => 'KashFlow',
1923 parameters => [
1924 SOAP::Data->new(
1925 name => 'UserName',
1926 type => 'xsd:string',
1927 attr => {}
1928 ),
1929 SOAP::Data->new(
1930 name => 'Password',
1931 type => 'xsd:string',
1932 attr => {}
1933 ),
1934 SOAP::Data->new(
1935 name => 'Jnl',
1936 type => 'tns:JournalEntry',
1937 attr => {}
1938 ),
1939 ], # end parameters
1940 }, # end UpdateJournalHeader
1941 isStillQuote => {
1942 endpoint => 'https://securedwebapp.com/api/service.asmx',
1943 soapaction => 'KashFlow/isStillQuote',
1944 namespace => 'KashFlow',
1945 parameters => [
1946 SOAP::Data->new(
1947 name => 'UserName',
1948 type => 'xsd:string',
1949 attr => {}
1950 ),
1951 SOAP::Data->new(
1952 name => 'Password',
1953 type => 'xsd:string',
1954 attr => {}
1955 ),
1956 SOAP::Data->new( name => 'QuoteID', type => 'xsd:int', attr => {} ),
1957 ], # end parameters
1958 }, # end isStillQuote
1959 UpdateSupplier => {
1960 endpoint => 'https://securedwebapp.com/api/service.asmx',
1961 soapaction => 'KashFlow/UpdateSupplier',
1962 namespace => 'KashFlow',
1963 parameters => [
1964 SOAP::Data->new(
1965 name => 'UserName',
1966 type => 'xsd:string',
1967 attr => {}
1968 ),
1969 SOAP::Data->new(
1970 name => 'Password',
1971 type => 'xsd:string',
1972 attr => {}
1973 ),
1974 SOAP::Data->new(
1975 name => 'sup',
1976 type => 'tns:Supplier',
1977 attr => {}
1978 ),
1979 ], # end parameters
1980 }, # end UpdateSupplier
1981 DeleteReceiptByID => {
1982 endpoint => 'https://securedwebapp.com/api/service.asmx',
1983 soapaction => 'KashFlow/DeleteReceiptByID',
1984 namespace => 'KashFlow',
1985 parameters => [
1986 SOAP::Data->new(
1987 name => 'UserName',
1988 type => 'xsd:string',
1989 attr => {}
1990 ),
1991 SOAP::Data->new(
1992 name => 'Password',
1993 type => 'xsd:string',
1994 attr => {}
1995 ),
1996 SOAP::Data->new(
1997 name => 'ReceiptID',
1998 type => 'xsd:int',
1999 attr => {}
2000 ),
2001 ], # end parameters
2002 }, # end DeleteReceiptByID
2003 InsertQuoteLine => {
2004 endpoint => 'https://securedwebapp.com/api/service.asmx',
2005 soapaction => 'KashFlow/InsertQuoteLine',
2006 namespace => 'KashFlow',
2007 parameters => [
2008 SOAP::Data->new(
2009 name => 'UserName',
2010 type => 'xsd:string',
2011 attr => {}
2012 ),
2013 SOAP::Data->new(
2014 name => 'Password',
2015 type => 'xsd:string',
2016 attr => {}
2017 ),
2018 SOAP::Data->new( name => 'QuoteID', type => 'xsd:int', attr => {} ),
2019 SOAP::Data->new(
2020 name => 'QuoteLine',
2021 type => 'tns:InvoiceLine',
2022 attr => {}
2023 ),
2024 ], # end parameters
2025 }, # end InsertQuoteLine
2026 GetQuoteByNumber => {
2027 endpoint => 'https://securedwebapp.com/api/service.asmx',
2028 soapaction => 'KashFlow/GetQuoteByNumber',
2029 namespace => 'KashFlow',
2030 parameters => [
2031 SOAP::Data->new(
2032 name => 'UserName',
2033 type => 'xsd:string',
2034 attr => {}
2035 ),
2036 SOAP::Data->new(
2037 name => 'Password',
2038 type => 'xsd:string',
2039 attr => {}
2040 ),
2041 SOAP::Data->new(
2042 name => 'QuoteNumber',
2043 type => 'xsd:int',
2044 attr => {}
2045 ),
2046 ], # end parameters
2047 }, # end GetQuoteByNumber
2048 DeleteReceiptLineWithReceiptID => {
2049 endpoint => 'https://securedwebapp.com/api/service.asmx',
2050 soapaction => 'KashFlow/DeleteReceiptLineWithReceiptID',
2051 namespace => 'KashFlow',
2052 parameters => [
2053 SOAP::Data->new(
2054 name => 'UserName',
2055 type => 'xsd:string',
2056 attr => {}
2057 ),
2058 SOAP::Data->new(
2059 name => 'Password',
2060 type => 'xsd:string',
2061 attr => {}
2062 ),
2063 SOAP::Data->new( name => 'LineID', type => 'xsd:int', attr => {} ),
2064 SOAP::Data->new(
2065 name => 'ReceiptID',
2066 type => 'xsd:int',
2067 attr => {}
2068 ),
2069 ], # end parameters
2070 }, # end DeleteReceiptLineWithReceiptID
2071 DeleteJournalByID => {
2072 endpoint => 'https://securedwebapp.com/api/service.asmx',
2073 soapaction => 'KashFlow/DeleteJournalByID',
2074 namespace => 'KashFlow',
2075 parameters => [
2076 SOAP::Data->new(
2077 name => 'UserName',
2078 type => 'xsd:string',
2079 attr => {}
2080 ),
2081 SOAP::Data->new(
2082 name => 'Password',
2083 type => 'xsd:string',
2084 attr => {}
2085 ),
2086 SOAP::Data->new(
2087 name => 'JournalID',
2088 type => 'xsd:int',
2089 attr => {}
2090 ),
2091 ], # end parameters
2092 }, # end DeleteJournalByID
2093 InsertInvoice => {
2094 endpoint => 'https://securedwebapp.com/api/service.asmx',
2095 soapaction => 'KashFlow/InsertInvoice',
2096 namespace => 'KashFlow',
2097 parameters => [
2098 SOAP::Data->new(
2099 name => 'UserName',
2100 type => 'xsd:string',
2101 attr => {}
2102 ),
2103 SOAP::Data->new(
2104 name => 'Password',
2105 type => 'xsd:string',
2106 attr => {}
2107 ),
2108 SOAP::Data->new( name => 'Inv', type => 'tns:Invoice', attr => {} ),
2109 ], # end parameters
2110 }, # end InsertInvoice
2111 GetInvoice => {
2112 endpoint => 'https://securedwebapp.com/api/service.asmx',
2113 soapaction => 'KashFlow/GetInvoice',
2114 namespace => 'KashFlow',
2115 parameters => [
2116 SOAP::Data->new(
2117 name => 'UserName',
2118 type => 'xsd:string',
2119 attr => {}
2120 ),
2121 SOAP::Data->new(
2122 name => 'Password',
2123 type => 'xsd:string',
2124 attr => {}
2125 ),
2126 SOAP::Data->new(
2127 name => 'InvoiceNumber',
2128 type => 'xsd:int',
2129 attr => {}
2130 ),
2131 ], # end parameters
2132 }, # end GetInvoice
2133 GetCustomers => {
2134 endpoint => 'https://securedwebapp.com/api/service.asmx',
2135 soapaction => 'KashFlow/GetCustomers',
2136 namespace => 'KashFlow',
2137 parameters => [
2138 SOAP::Data->new(
2139 name => 'UserName',
2140 type => 'xsd:string',
2141 attr => {}
2142 ),
2143 SOAP::Data->new(
2144 name => 'Password',
2145 type => 'xsd:string',
2146 attr => {}
2147 ),
2148 ], # end parameters
2149 }, # end GetCustomers
2150 GetCustomersModifiedSince => {
2151 endpoint => 'https://securedwebapp.com/api/service.asmx',
2152 soapaction => 'KashFlow/GetCustomersModifiedSince',
2153 namespace => 'KashFlow',
2154 parameters => [
2155 SOAP::Data->new(
2156 name => 'UserName',
2157 type => 'xsd:string',
2158 attr => {}
2159 ),
2160 SOAP::Data->new(
2161 name => 'Password',
2162 type => 'xsd:string',
2163 attr => {}
2164 ),
2165 SOAP::Data->new(
2166 name => 'ModifiedSince',
2167 type => 'xsd:dateTime',
2168 attr => {}
2169 ),
2170 ], # end parameters
2171 }, # end GetCustomersModifiedSince
2172 UpdateReceiptHeader => {
2173 endpoint => 'https://securedwebapp.com/api/service.asmx',
2174 soapaction => 'KashFlow/UpdateReceiptHeader',
2175 namespace => 'KashFlow',
2176 parameters => [
2177 SOAP::Data->new(
2178 name => 'UserName',
2179 type => 'xsd:string',
2180 attr => {}
2181 ),
2182 SOAP::Data->new(
2183 name => 'Password',
2184 type => 'xsd:string',
2185 attr => {}
2186 ),
2187 SOAP::Data->new(
2188 name => 'Receipt',
2189 type => 'tns:Invoice',
2190 attr => {}
2191 ),
2192 ], # end parameters
2193 }, # end UpdateReceiptHeader
2194 DeleteQuoteLineWithQuoteID => {
2195 endpoint => 'https://securedwebapp.com/api/service.asmx',
2196 soapaction => 'KashFlow/DeleteQuoteLineWithQuoteID',
2197 namespace => 'KashFlow',
2198 parameters => [
2199 SOAP::Data->new(
2200 name => 'UserName',
2201 type => 'xsd:string',
2202 attr => {}
2203 ),
2204 SOAP::Data->new(
2205 name => 'Password',
2206 type => 'xsd:string',
2207 attr => {}
2208 ),
2209 SOAP::Data->new( name => 'LineID', type => 'xsd:int', attr => {} ),
2210 SOAP::Data->new( name => 'QuoteID', type => 'xsd:int', attr => {} ),
2211 ], # end parameters
2212 }, # end DeleteQuoteLineWithQuoteID
2213 InsertInvoiceLine => {
2214 endpoint => 'https://securedwebapp.com/api/service.asmx',
2215 soapaction => 'KashFlow/InsertInvoiceLine',
2216 namespace => 'KashFlow',
2217 parameters => [
2218 SOAP::Data->new(
2219 name => 'UserName',
2220 type => 'xsd:string',
2221 attr => {}
2222 ),
2223 SOAP::Data->new(
2224 name => 'Password',
2225 type => 'xsd:string',
2226 attr => {}
2227 ),
2228 SOAP::Data->new(
2229 name => 'InvoiceID',
2230 type => 'xsd:int',
2231 attr => {}
2232 ),
2233 SOAP::Data->new(
2234 name => 'InvLine',
2235 type => 'tns:InvoiceLine',
2236 attr => {}
2237 ),
2238 ], # end parameters
2239 }, # end InsertInvoiceLine
2240 InsertReceiptPayment => {
2241 endpoint => 'https://securedwebapp.com/api/service.asmx',
2242 soapaction => 'KashFlow/InsertReceiptPayment',
2243 namespace => 'KashFlow',
2244 parameters => [
2245 SOAP::Data->new(
2246 name => 'UserName',
2247 type => 'xsd:string',
2248 attr => {}
2249 ),
2250 SOAP::Data->new(
2251 name => 'Password',
2252 type => 'xsd:string',
2253 attr => {}
2254 ),
2255 SOAP::Data->new(
2256 name => 'ReceiptPayment',
2257 type => 'tns:Payment',
2258 attr => {}
2259 ),
2260 ], # end parameters
2261 }, # end InsertReceiptPayment
2262 UpdateQuote => {
2263 endpoint => 'https://securedwebapp.com/api/service.asmx',
2264 soapaction => 'KashFlow/UpdateQuote',
2265 namespace => 'KashFlow',
2266 parameters => [
2267 SOAP::Data->new(
2268 name => 'UserName',
2269 type => 'xsd:string',
2270 attr => {}
2271 ),
2272 SOAP::Data->new(
2273 name => 'Password',
2274 type => 'xsd:string',
2275 attr => {}
2276 ),
2277 SOAP::Data->new(
2278 name => 'Quote',
2279 type => 'tns:Invoice',
2280 attr => {}
2281 ),
2282 ], # end parameters
2283 }, # end UpdateQuote
2284 DeleteReceiptPayment => {
2285 endpoint => 'https://securedwebapp.com/api/service.asmx',
2286 soapaction => 'KashFlow/DeleteReceiptPayment',
2287 namespace => 'KashFlow',
2288 parameters => [
2289 SOAP::Data->new(
2290 name => 'UserName',
2291 type => 'xsd:string',
2292 attr => {}
2293 ),
2294 SOAP::Data->new(
2295 name => 'Password',
2296 type => 'xsd:string',
2297 attr => {}
2298 ),
2299 SOAP::Data->new(
2300 name => 'ReceiptPaymentNumber',
2301 type => 'xsd:int',
2302 attr => {}
2303 ),
2304 ], # end parameters
2305 }, # end DeleteReceiptPayment
2306 GetSupplier => {
2307 endpoint => 'https://securedwebapp.com/api/service.asmx',
2308 soapaction => 'KashFlow/GetSupplier',
2309 namespace => 'KashFlow',
2310 parameters => [
2311 SOAP::Data->new(
2312 name => 'UserName',
2313 type => 'xsd:string',
2314 attr => {}
2315 ),
2316 SOAP::Data->new(
2317 name => 'Password',
2318 type => 'xsd:string',
2319 attr => {}
2320 ),
2321 SOAP::Data->new(
2322 name => 'SupplierCode',
2323 type => 'xsd:string',
2324 attr => {}
2325 ),
2326 ], # end parameters
2327 }, # end GetSupplier
2328 GetSupplierVATNumber => {
2329 endpoint => 'https://securedwebapp.com/api/service.asmx',
2330 soapaction => 'KashFlow/GetSupplierVATNumber',
2331 namespace => 'KashFlow',
2332 parameters => [
2333 SOAP::Data->new(
2334 name => 'UserName',
2335 type => 'xsd:string',
2336 attr => {}
2337 ),
2338 SOAP::Data->new(
2339 name => 'Password',
2340 type => 'xsd:string',
2341 attr => {}
2342 ),
2343 SOAP::Data->new(
2344 name => 'SupplierCode',
2345 type => 'xsd:string',
2346 attr => {}
2347 ),
2348 ], # end parameters
2349 }, # end GetSupplierVATNumber
2350 GetCustomer => {
2351 endpoint => 'https://securedwebapp.com/api/service.asmx',
2352 soapaction => 'KashFlow/GetCustomer',
2353 namespace => 'KashFlow',
2354 parameters => [
2355 SOAP::Data->new(
2356 name => 'UserName',
2357 type => 'xsd:string',
2358 attr => {}
2359 ),
2360 SOAP::Data->new(
2361 name => 'Password',
2362 type => 'xsd:string',
2363 attr => {}
2364 ),
2365 SOAP::Data->new(
2366 name => 'CustomerCode',
2367 type => 'xsd:string',
2368 attr => {}
2369 ),
2370 ], # end parameters
2371 }, # end GetCustomer
2372 GetAccountOverview => {
2373 endpoint => 'https://securedwebapp.com/api/service.asmx',
2374 soapaction => 'KashFlow/GetAccountOverview',
2375 namespace => 'KashFlow',
2376 parameters => [
2377 SOAP::Data->new(
2378 name => 'UserName',
2379 type => 'xsd:string',
2380 attr => {}
2381 ),
2382 SOAP::Data->new(
2383 name => 'Password',
2384 type => 'xsd:string',
2385 attr => {}
2386 ),
2387 ], # end parameters
2388 }, # end GetAccountOverview
2389 GetBankTransactions => {
2390 endpoint => 'https://securedwebapp.com/api/service.asmx',
2391 soapaction => 'KashFlow/GetBankTransactions',
2392 namespace => 'KashFlow',
2393 parameters => [
2394 SOAP::Data->new(
2395 name => 'UserName',
2396 type => 'xsd:string',
2397 attr => {}
2398 ),
2399 SOAP::Data->new(
2400 name => 'Password',
2401 type => 'xsd:string',
2402 attr => {}
2403 ),
2404 SOAP::Data->new(
2405 name => 'AccountID',
2406 type => 'xsd:int',
2407 attr => {}
2408 ),
2409 ], # end parameters
2410 }, # end GetBankTransactions
2411 isUserVATRegistered => {
2412 endpoint => 'https://securedwebapp.com/api/service.asmx',
2413 soapaction => 'KashFlow/isUserVATRegistered',
2414 namespace => 'KashFlow',
2415 parameters => [
2416 SOAP::Data->new(
2417 name => 'UserName',
2418 type => 'xsd:string',
2419 attr => {}
2420 ),
2421 SOAP::Data->new(
2422 name => 'Password',
2423 type => 'xsd:string',
2424 attr => {}
2425 ),
2426 ], # end parameters
2427 }, # end isUserVATRegistered
2428 UpdateBankTransaction => {
2429 endpoint => 'https://securedwebapp.com/api/service.asmx',
2430 soapaction => 'KashFlow/UpdateBankTransaction',
2431 namespace => 'KashFlow',
2432 parameters => [
2433 SOAP::Data->new(
2434 name => 'UserName',
2435 type => 'xsd:string',
2436 attr => {}
2437 ),
2438 SOAP::Data->new(
2439 name => 'Password',
2440 type => 'xsd:string',
2441 attr => {}
2442 ),
2443 SOAP::Data->new(
2444 name => 'bp',
2445 type => 'tns:BankTransaction',
2446 attr => {}
2447 ),
2448 SOAP::Data->new(
2449 name => 'TransactionID',
2450 type => 'xsd:int',
2451 attr => {}
2452 ),
2453 ], # end parameters
2454 }, # end UpdateBankTransaction
2455 GetInvoicesByDateRange => {
2456 endpoint => 'https://securedwebapp.com/api/service.asmx',
2457 soapaction => 'KashFlow/GetInvoicesByDateRange',
2458 namespace => 'KashFlow',
2459 parameters => [
2460 SOAP::Data->new(
2461 name => 'UserName',
2462 type => 'xsd:string',
2463 attr => {}
2464 ),
2465 SOAP::Data->new(
2466 name => 'Password',
2467 type => 'xsd:string',
2468 attr => {}
2469 ),
2470 SOAP::Data->new(
2471 name => 'StartDate',
2472 type => 'xsd:dateTime',
2473 attr => {}
2474 ),
2475 SOAP::Data->new(
2476 name => 'EndDate',
2477 type => 'xsd:dateTime',
2478 attr => {}
2479 ),
2480 ], # end parameters
2481 }, # end GetInvoicesByDateRange
2482 GetBalanceSheet => {
2483 endpoint => 'https://securedwebapp.com/api/service.asmx',
2484 soapaction => 'KashFlow/GetBalanceSheet',
2485 namespace => 'KashFlow',
2486 parameters => [
2487 SOAP::Data->new(
2488 name => 'UserName',
2489 type => 'xsd:string',
2490 attr => {}
2491 ),
2492 SOAP::Data->new(
2493 name => 'Password',
2494 type => 'xsd:string',
2495 attr => {}
2496 ),
2497 SOAP::Data->new(
2498 name => 'Date',
2499 type => 'xsd:dateTime',
2500 attr => {}
2501 ),
2502 ], # end parameters
2503 }, # end GetBalanceSheet
2504 CreateBankAccount => {
2505 endpoint => 'https://securedwebapp.com/api/service.asmx',
2506 soapaction => 'KashFlow/CreateBankAccount',
2507 namespace => 'KashFlow',
2508 parameters => [
2509 SOAP::Data->new(
2510 name => 'UserName',
2511 type => 'xsd:string',
2512 attr => {}
2513 ),
2514 SOAP::Data->new(
2515 name => 'Password',
2516 type => 'xsd:string',
2517 attr => {}
2518 ),
2519 SOAP::Data->new(
2520 name => 'AccountName',
2521 type => 'xsd:string',
2522 attr => {}
2523 ),
2524 SOAP::Data->new(
2525 name => 'NominalCode',
2526 type => 'xsd:int',
2527 attr => {}
2528 ),
2529 ], # end parameters
2530 }, # end CreateBankAccount
2531 InsertBankTransaction => {
2532 endpoint => 'https://securedwebapp.com/api/service.asmx',
2533 soapaction => 'KashFlow/InsertBankTransaction',
2534 namespace => 'KashFlow',
2535 parameters => [
2536 SOAP::Data->new(
2537 name => 'UserName',
2538 type => 'xsd:string',
2539 attr => {}
2540 ),
2541 SOAP::Data->new(
2542 name => 'Password',
2543 type => 'xsd:string',
2544 attr => {}
2545 ),
2546 SOAP::Data->new(
2547 name => 'bp',
2548 type => 'tns:BankTransaction',
2549 attr => {}
2550 ),
2551 ], # end parameters
2552 }, # end InsertBankTransaction
2553 InsertCustomer => {
2554 endpoint => 'https://securedwebapp.com/api/service.asmx',
2555 soapaction => 'KashFlow/InsertCustomer',
2556 namespace => 'KashFlow',
2557 parameters => [
2558 SOAP::Data->new(
2559 name => 'UserName',
2560 type => 'xsd:string',
2561 attr => {}
2562 ),
2563 SOAP::Data->new(
2564 name => 'Password',
2565 type => 'xsd:string',
2566 attr => {}
2567 ),
2568 SOAP::Data->new(
2569 name => 'custr'
2570 ) #, type => 'tns:Customer', attr => {}),
2571 ], # end parameters
2572 }, # end InsertCustomer
2573 GetReceipts => {
2574 endpoint => 'https://securedwebapp.com/api/service.asmx',
2575 soapaction => 'KashFlow/GetReceipts',
2576 namespace => 'KashFlow',
2577 parameters => [
2578 SOAP::Data->new(
2579 name => 'UserName',
2580 type => 'xsd:string',
2581 attr => {}
2582 ),
2583 SOAP::Data->new(
2584 name => 'Password',
2585 type => 'xsd:string',
2586 attr => {}
2587 ),
2588 ], # end parameters
2589 }, # end GetReceipts
2590 GetProducts => {
2591 endpoint => 'https://securedwebapp.com/api/service.asmx',
2592 soapaction => 'KashFlow/GetProducts',
2593 namespace => 'KashFlow',
2594 parameters => [
2595 SOAP::Data->new(
2596 name => 'UserName',
2597 type => 'xsd:string',
2598 attr => {}
2599 ),
2600 SOAP::Data->new(
2601 name => 'Password',
2602 type => 'xsd:string',
2603 attr => {}
2604 ),
2605 ], # end parameters
2606 }, # end GetProducts
2607 GetCurrencies => {
2608 endpoint => 'https://securedwebapp.com/api/service.asmx',
2609 soapaction => 'KashFlow/GetCurrencies',
2610 namespace => 'KashFlow',
2611 parameters => [
2612 SOAP::Data->new(
2613 name => 'UserName',
2614 type => 'xsd:string',
2615 attr => {}
2616 ),
2617 SOAP::Data->new(
2618 name => 'Password',
2619 type => 'xsd:string',
2620 attr => {}
2621 ),
2622 ], # end parameters
2623 }, # end GetCurrencies
2624 UpdateCustomer => {
2625 endpoint => 'https://securedwebapp.com/api/service.asmx',
2626 soapaction => 'KashFlow/UpdateCustomer',
2627 namespace => 'KashFlow',
2628 parameters => [
2629 SOAP::Data->new(
2630 name => 'UserName',
2631 type => 'xsd:string',
2632 attr => {}
2633 ),
2634 SOAP::Data->new(
2635 name => 'Password',
2636 type => 'xsd:string',
2637 attr => {}
2638 ),
2639 SOAP::Data->new(
2640 name => 'custr',
2641 type => 'tns:Customer',
2642 attr => {}
2643 ),
2644 ], # end parameters
2645 }, # end UpdateCustomer
2646 ); # end my %methods
2647  
2648 4 ▶use SOAP::Lite;
Subroutine BEGIN: called CC=1 SCAR=0.0
2649 4 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
2650 4 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
2651  
2652 4 ▶use vars qw(@ISA $AUTOLOAD @EXPORT_OK %EXPORT_TAGS);
Subroutine BEGIN: called CC=1 SCAR=0.0
2653 4 @ISA = qw(Exporter SOAP::Lite);
2654 4 @EXPORT_OK = ( keys %methods );
2655 4 %EXPORT_TAGS = ( 'all' => [@EXPORT_OK] );
2656  
2657 0 ▶sub _call {
Subroutine _call: not called CC=9 SCAR=45.0
2658 0 my ( $self, $method ) = ( shift, shift );
2659 0 ▶ my $name =
Branch: 1 branch
BranchTrueFalseTotal
UNIVERSAL::isa($method, 'SOAP::Data') ? : 0 0 0
2660 UNIVERSAL::isa( $method => 'SOAP::Data' ) ? $method->name : $method;
2661 0 my %method = %{ $methods{$name} };
2662 $self->proxy( $method{endpoint}
2663 0 ▶ || Carp::croak "No server address (proxy) specified" )
Branch: 1 branch
BranchTrueFalseTotal
unless $self->proxy 0 0 0
Condition0%0/2
$method{'endpoint'} || Carp::croak('No server address (proxy) specified')
l!l
00
MC/DC0%0/1
$method{'endpoint'} || Carp::croak('No server address (proxy) specified')
$method{'endpoint'}
Truth table0%0/2
A
A= $method{'endpoint'}
Aresult
11
00
2664 unless $self->proxy;
2665 0 my @templates = @{ $method{parameters} };
2666 0 my @parameters = ();
2667 0 foreach my $param (@_) {
2668 0 ▶ if (@templates) {
Branch: 1 branch
BranchTrueFalseTotal
if (@templates) { } 0 0 0
2669 0 my $template = shift @templates;
2670 0 my ( $prefix, $typename ) =
2671 SOAP::Utils::splitqname( $template->type );
2672 0 my $method = 'as_' . $typename;
2673  
2674 # TODO - if can('as_'.$typename) {...}
2675 #my $result = $self->serializer->$method($param, $template->name, $template->type, $template->attr);
2676 #push(@parameters, $template->value($result->[2]));
2677 0 push @parameters, $template->value($param);
2678  
2679 # XXX Don't use serialiser
2680 }
2681 else {
2682 0 push( @parameters, $param );
2683 }
2684 }
2685  
2686 #$self->endpoint($method{endpoint})
2687 #->ns($method{namespace})
2688 # ->on_action(sub{qq!"$method{soapaction}"!});
2689 0 $self->uri('KashFlow')->proxy('https://securedwebapp.com/api/service.asmx');
2690 0 $self->soapversion("1.1"); # XXX
2691 0 ▶ $self->on_action( sub { sprintf '%s/%s', @_ } );
Subroutine __ANON__: not called CC=1 SCAR=6.9
2692  
2693  
2694 0 $self->serializer->register_ns( "KashFlow", "tns" );
2695 0 $self->serializer->register_ns( "KashFlow/AbstractTypes", "s1" );
2696  
2697 0 my $som = $self->SUPER::call( $method => @parameters );
2698 0 ▶ if ( $self->want_som ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->want_som) 0 0 0
2699 0 return $som;
2700 }
2701 0 ▶ UNIVERSAL::isa( $som => 'SOAP::SOM' )
Branch: 2 branches
BranchTrueFalseTotal
UNIVERSAL::isa($som, 'SOAP::SOM') ? : 0 0 0
wantarray ? : 0 0 0
2702 ? wantarray
2703 ? $som->paramsall
2704 : $som->result
2705 : $som;
2706 }
2707  
2708 4 ▶sub BEGIN {
Subroutine BEGIN: called CC=2 SCAR=8.1
2709 4 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
2710 4 for my $method (qw(want_som)) {
2711 4 my $field = '_' . $method;
2712 0 ▶ *$method = sub {
Subroutine __ANON__: not called CC=2 SCAR=17.9
2713 0 my $self = shift->new;
2714 @_
2715 ? ( $self->{$field} = shift, return $self )
2716 0 ▶ : return $self->{$field};
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
2717 }
2718 4 }
2719 }
2720 4 ▶no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
2721 4 for my $method (@EXPORT_OK) {
2722 460 my %method = %{ $methods{$method} };
2723 0 ▶ *$method = sub {
Subroutine __ANON__: not called CC=5 SCAR=34.0
2724 0 ▶ my $self =
Branch: 2 branches
BranchTrueFalseTotal
UNIVERSAL::isa($_[0], __PACKAGE__) ? : 0 0 0
ref $_[0] ? : 0 0 0
Condition0%0/6
(shift())->self or __PACKAGE__->self(__PACKAGE__->new)
l!l&&r!l&&!r
000
__PACKAGE__->self or __PACKAGE__->self(__PACKAGE__->new)
l!l&&r!l&&!r
000
MC/DC0%0/2
(shift())->self or __PACKAGE__->self(__PACKAGE__->new)
(shift())->self __PACKAGE__->self(__PACKAGE__->new)
MC/DC0%0/2
__PACKAGE__->self or __PACKAGE__->self(__PACKAGE__->new)
__PACKAGE__->self __PACKAGE__->self(__PACKAGE__->new)
Truth table0%0/3
A or B
A= (shift())->selfB= __PACKAGE__->self(__PACKAGE__->new)
ABresult
1X1
011
000
Truth table0%0/3
A or B
A= __PACKAGE__->selfB= __PACKAGE__->self(__PACKAGE__->new)
ABresult
1X1
011
000
2725 UNIVERSAL::isa( $_[0] => __PACKAGE__ )
2726 ? ref $_[0]
2727 ? shift # OBJECT
2728 # CLASS, either get self or create new and assign to self
2729 : ( shift->self || __PACKAGE__->self( __PACKAGE__->new ) )
2730  
2731 # function call, either get self or create new and assign to self
2732 : ( __PACKAGE__->self || __PACKAGE__->self( __PACKAGE__->new ) );
2733 0 $self->_call( $method, @_ );
2734 }
2735 460 }
2736  
2737 0 ▶sub AUTOLOAD {
Subroutine AUTOLOAD: not called CC=3 SCAR=24.8
2738 0 my $method = substr( $AUTOLOAD, rindex( $AUTOLOAD, '::' ) + 2 );
2739 0 ▶ return if $method eq 'DESTROY' || $method eq 'want_som';
Branch: 1 branch
BranchTrueFalseTotal
if $method eq "DESTROY" or $method eq "want_som" 0 0 0
Condition0%0/3
$method eq "DESTROY" or $method eq "want_som"
l!l&&r!l&&!r
000
MC/DC0%0/2
$method eq "DESTROY" or $method eq "want_som"
$method eq "DESTROY" $method eq "want_som"
Truth table0%0/3
A or B
A= $method eq "DESTROY"B= $method eq "want_som"
ABresult
1X1
011
000
2740 0 die
2741 "Unrecognized method '$method'. List of available method(s): @EXPORT_OK\n";
2742 }
2743  
2744 0 ▶sub SOAP::Serializer::as_InvoiceLineSet {
Subroutine as_InvoiceLineSet: not called CC=2 SCAR=17.9
2745 0 my $self = shift;
2746 0 my ( $value, $name, $type, $attr ) = @_;
2747 0 ▶ if ( ref $value->{anyType} ne 'ARRAY' ) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $value->{"anyType"} ne "ARRAY") 0 0 0
2748 0 return [ "Lines", {}, [ $self->encode_object( $value->{anyType} ) ] ];
2749  
2750 }
2751 return [
2752 0 "Lines", {}, [ map { $self->encode_object($_) } @{ $value->{anyType} } ]
2753 ];
2754 }
2755  
2756 0 ▶sub SOAP::Serializer::as_InvoiceLine {
Subroutine as_InvoiceLine: not called CC=1 SCAR=6.9
2757 0 my $self = shift;
2758 0 my ( $value, $name, $type, $attr ) = @_;
2759 return [
2760 "anyType",
2761 { 'xsi:type' => 'InvoiceLine', %$attr },
2762 0 [ map { $self->encode_object( $value->{$_}, $_ ) } keys %$value ]
2763 ];
2764 }
2765  
2766 4 1;
2767  
2768 __END__
↑ Summary KashFlow.pm »