xeroizer 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.bundle/config +2 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +22 -0
- data/LICENSE.txt +20 -0
- data/README.md +416 -0
- data/Rakefile +39 -0
- data/VERSION +1 -0
- data/lib/.DS_Store +0 -0
- data/lib/big_decimal_to_s.rb +9 -0
- data/lib/class_level_inheritable_attributes.rb +25 -0
- data/lib/nokogiri_utils.rb +58 -0
- data/lib/xeroizer.rb +55 -0
- data/lib/xeroizer/ca-certificates.crt +2642 -0
- data/lib/xeroizer/exceptions.rb +94 -0
- data/lib/xeroizer/generic_application.rb +40 -0
- data/lib/xeroizer/http.rb +148 -0
- data/lib/xeroizer/http_encoding_helper.rb +49 -0
- data/lib/xeroizer/models/account.rb +60 -0
- data/lib/xeroizer/models/address.rb +31 -0
- data/lib/xeroizer/models/branding_theme.rb +22 -0
- data/lib/xeroizer/models/contact.rb +46 -0
- data/lib/xeroizer/models/credit_note.rb +113 -0
- data/lib/xeroizer/models/currency.rb +18 -0
- data/lib/xeroizer/models/invoice.rb +138 -0
- data/lib/xeroizer/models/item.rb +27 -0
- data/lib/xeroizer/models/item_purchase_sale_details.rb +17 -0
- data/lib/xeroizer/models/journal.rb +25 -0
- data/lib/xeroizer/models/journal_line.rb +28 -0
- data/lib/xeroizer/models/line_item.rb +43 -0
- data/lib/xeroizer/models/manual_journal.rb +42 -0
- data/lib/xeroizer/models/manual_journal_line.rb +24 -0
- data/lib/xeroizer/models/option.rb +15 -0
- data/lib/xeroizer/models/organisation.rb +23 -0
- data/lib/xeroizer/models/payment.rb +30 -0
- data/lib/xeroizer/models/phone.rb +25 -0
- data/lib/xeroizer/models/tax_rate.rb +25 -0
- data/lib/xeroizer/models/tracking_category.rb +23 -0
- data/lib/xeroizer/models/tracking_category_child.rb +17 -0
- data/lib/xeroizer/oauth.rb +130 -0
- data/lib/xeroizer/partner_application.rb +44 -0
- data/lib/xeroizer/private_application.rb +27 -0
- data/lib/xeroizer/public_application.rb +21 -0
- data/lib/xeroizer/record/application_helper.rb +22 -0
- data/lib/xeroizer/record/base.rb +116 -0
- data/lib/xeroizer/record/base_model.rb +138 -0
- data/lib/xeroizer/record/base_model_http_proxy.rb +134 -0
- data/lib/xeroizer/record/model_definition_helper.rb +94 -0
- data/lib/xeroizer/record/record_association_helper.rb +94 -0
- data/lib/xeroizer/record/validation_helper.rb +59 -0
- data/lib/xeroizer/record/validators/associated_validator.rb +33 -0
- data/lib/xeroizer/record/validators/inclusion_of_validator.rb +22 -0
- data/lib/xeroizer/record/validators/presence_of_validator.rb +19 -0
- data/lib/xeroizer/record/validators/validator.rb +24 -0
- data/lib/xeroizer/record/xml_helper.rb +113 -0
- data/lib/xeroizer/response.rb +17 -0
- data/test/stub_responses/accounts.xml +589 -0
- data/test/stub_responses/api_exception.xml +153 -0
- data/test/stub_responses/bogus_oauth_error +1 -0
- data/test/stub_responses/branding_themes.xml +20 -0
- data/test/stub_responses/contact.xml +40 -0
- data/test/stub_responses/contacts.xml +3349 -0
- data/test/stub_responses/create_credit_note.xml +104 -0
- data/test/stub_responses/create_invoice.xml +64 -0
- data/test/stub_responses/credit_note.xml +69 -0
- data/test/stub_responses/credit_note_not_found_error.xml +1 -0
- data/test/stub_responses/credit_notes.xml +149 -0
- data/test/stub_responses/currencies.xml +12 -0
- data/test/stub_responses/invalid_api_key_error.xml +1 -0
- data/test/stub_responses/invalid_consumer_key +1 -0
- data/test/stub_responses/invalid_request_token +1 -0
- data/test/stub_responses/invoice.xml +91 -0
- data/test/stub_responses/invoice_not_found_error.xml +1 -0
- data/test/stub_responses/invoices.xml +1728 -0
- data/test/stub_responses/items.xml +112 -0
- data/test/stub_responses/manual_journal.xml +45 -0
- data/test/stub_responses/manual_journals.xml +40 -0
- data/test/stub_responses/organisation.xml +16 -0
- data/test/stub_responses/organisations.xml +16 -0
- data/test/stub_responses/rate_limit_exceeded +1 -0
- data/test/stub_responses/records/contact-043892a1-aef1-4c18-88d8-b8ccb6d31466.xml +38 -0
- data/test/stub_responses/records/contact-09664078-efe2-4a88-89a5-67eac9b0047b.xml +40 -0
- data/test/stub_responses/records/contact-0a4cf37b-a1a8-4753-9ee2-f9207f63a8ff.xml +48 -0
- data/test/stub_responses/records/contact-0e74f929-11b9-4255-a035-1fdfe573e676.xml +40 -0
- data/test/stub_responses/records/contact-0f471ca5-15c9-405e-a1b9-7cc35194b673.xml +38 -0
- data/test/stub_responses/records/contact-13cd4c47-baa6-4f07-93f6-6442310df4bf.xml +47 -0
- data/test/stub_responses/records/contact-158a2667-82ee-43bf-8f33-a6cc9524092d.xml +38 -0
- data/test/stub_responses/records/contact-17465072-6fa3-40bf-bc42-97765d9e1bea.xml +38 -0
- data/test/stub_responses/records/contact-1975b0ed-b7ba-4c61-bae8-2aa6d78b0dee.xml +39 -0
- data/test/stub_responses/records/contact-1b2be6e9-8d58-4da9-aaf8-4fe5471b653c.xml +53 -0
- data/test/stub_responses/records/contact-1c40da58-fe1d-4e97-b729-b2abdae94d9e.xml +38 -0
- data/test/stub_responses/records/contact-258176a5-c622-4394-9c94-6f88c3ea12e5.xml +40 -0
- data/test/stub_responses/records/contact-299dd3a0-a417-4a37-8a04-2f55e91963e5.xml +40 -0
- data/test/stub_responses/records/contact-2be39278-5154-4ed1-8eb0-676f25acfc66.xml +40 -0
- data/test/stub_responses/records/contact-2e58cff6-488c-4a32-884b-baf848010229.xml +40 -0
- data/test/stub_responses/records/contact-2faccd41-935e-40aa-b74e-e2fc28ac34c3.xml +38 -0
- data/test/stub_responses/records/contact-31af01e7-2ca7-45b9-a500-b02db996568e.xml +38 -0
- data/test/stub_responses/records/contact-344f1113-a25b-4344-b82e-bedeacc17c8e.xml +40 -0
- data/test/stub_responses/records/contact-3e776c4b-ea9e-4bb1-96be-6b0c7a71a37f.xml +39 -0
- data/test/stub_responses/records/contact-3fc1fc6c-e5ff-4e40-b6f3-7eb535637d87.xml +38 -0
- data/test/stub_responses/records/contact-416ab20c-5357-4beb-a740-e8d175d71efb.xml +38 -0
- data/test/stub_responses/records/contact-41a42865-f15a-4fa1-b643-47877608f557.xml +54 -0
- data/test/stub_responses/records/contact-42771b60-19a7-4692-af81-dd9f9b9362d4.xml +43 -0
- data/test/stub_responses/records/contact-451ceb28-9610-44c9-8f35-3225482f2413.xml +40 -0
- data/test/stub_responses/records/contact-4ab343ad-1ebb-4afe-9d48-1814a93c2081.xml +38 -0
- data/test/stub_responses/records/contact-4bb77692-42d4-4565-85a0-8849eb85e039.xml +39 -0
- data/test/stub_responses/records/contact-4dec292f-3ab7-46a8-83e4-5fb5eac42c7f.xml +40 -0
- data/test/stub_responses/records/contact-4e2f192e-8397-4d4d-97ca-a4fc5ac531bf.xml +38 -0
- data/test/stub_responses/records/contact-5188c17c-7786-4436-ad6e-9da2997386d0.xml +40 -0
- data/test/stub_responses/records/contact-52442753-b1c4-40b7-9b79-c33997de5837.xml +40 -0
- data/test/stub_responses/records/contact-565acaa9-e7f3-4fbf-80c3-16b081ddae10.xml +38 -0
- data/test/stub_responses/records/contact-571a2414-81ff-4f8f-8498-d91d83793131.xml +44 -0
- data/test/stub_responses/records/contact-58697449-85ef-46ae-83fc-6a9446f037fb.xml +40 -0
- data/test/stub_responses/records/contact-58bf2ae3-5144-4628-8de2-e165ac2bcdc6.xml +40 -0
- data/test/stub_responses/records/contact-5d41dafd-eb7e-42c1-bd5a-ba3be1da0960.xml +38 -0
- data/test/stub_responses/records/contact-5f005a09-5ce4-4fb4-8096-e69c18be636e.xml +38 -0
- data/test/stub_responses/records/contact-60d578d9-3e10-4aef-b5dc-9d9fd60a3633.xml +47 -0
- data/test/stub_responses/records/contact-62392126-dba4-4a75-b907-5875ebf75259.xml +40 -0
- data/test/stub_responses/records/contact-642c7fb5-e8e5-48e1-a710-39a18c6c3217.xml +40 -0
- data/test/stub_responses/records/contact-64aebf9c-bb89-4b38-b99b-405bd1ece6fd.xml +40 -0
- data/test/stub_responses/records/contact-64eedbc9-1fa0-485a-837f-705f23188161.xml +38 -0
- data/test/stub_responses/records/contact-65e96c9f-1595-4653-9a8a-2a36d49223c2.xml +40 -0
- data/test/stub_responses/records/contact-67d26b93-ccb4-4890-9bf1-284b70ea755d.xml +38 -0
- data/test/stub_responses/records/contact-69d3e538-44b3-4e00-a5f6-7dddcb6e0656.xml +40 -0
- data/test/stub_responses/records/contact-6a8450bc-f81a-4bb0-a8f6-aa4afe9497c7.xml +40 -0
- data/test/stub_responses/records/contact-6c70e424-41d6-4b9b-af3e-b3a9f3589106.xml +40 -0
- data/test/stub_responses/records/contact-6de0b0cf-560c-4503-aab3-e1543c329deb.xml +54 -0
- data/test/stub_responses/records/contact-72dd6a02-396e-42a2-a4d6-cc3fa75dfece.xml +41 -0
- data/test/stub_responses/records/contact-755f1475-d255-43a8-bedc-5ea7fd26c71f.xml +51 -0
- data/test/stub_responses/records/contact-78a9d0a0-3d8c-4f84-af3e-f260bf4a9dc0.xml +38 -0
- data/test/stub_responses/records/contact-79aa39ca-22b0-42c2-9026-78757a29d665.xml +42 -0
- data/test/stub_responses/records/contact-804f4140-5978-48fe-ba20-b56e5b834b18.xml +40 -0
- data/test/stub_responses/records/contact-812d4f28-1681-4241-8e34-d15c5520ba35.xml +38 -0
- data/test/stub_responses/records/contact-860b99a9-0958-4c8d-a98f-bb1f092b16bb.xml +60 -0
- data/test/stub_responses/records/contact-87c8da45-97cc-46be-b170-398da0eacfb8.xml +40 -0
- data/test/stub_responses/records/contact-8a154a19-6c6c-404b-bbc9-6deae2d18251.xml +38 -0
- data/test/stub_responses/records/contact-8bb6931d-2865-44e9-9a23-ed1fb9c7a46c.xml +40 -0
- data/test/stub_responses/records/contact-936c9759-01da-4063-b472-424ab9f48212.xml +38 -0
- data/test/stub_responses/records/contact-9d12a994-9640-4b75-95cc-3de1e9d0ef09.xml +38 -0
- data/test/stub_responses/records/contact-9fe59245-1fbb-4157-93c3-dc97388f3746.xml +40 -0
- data/test/stub_responses/records/contact-a06a7225-6f8a-4522-8400-c534dd43a16e.xml +40 -0
- data/test/stub_responses/records/contact-a76a85fe-73a2-46fa-aba7-791f36103cdb.xml +40 -0
- data/test/stub_responses/records/contact-a93b5f40-0346-4d21-9181-431e129911c0.xml +40 -0
- data/test/stub_responses/records/contact-abf272dd-6b1d-4829-af88-c57bf55855e3.xml +38 -0
- data/test/stub_responses/records/contact-ad24c33b-256b-4157-ad56-cbcf0e8db7b1.xml +47 -0
- data/test/stub_responses/records/contact-b107129d-f4c9-438e-9573-64b778527f4a.xml +40 -0
- data/test/stub_responses/records/contact-b233288a-aa26-4b26-9fc7-779d797dd56f.xml +40 -0
- data/test/stub_responses/records/contact-b2b5333a-2546-4975-891f-d71a8a640d23.xml +38 -0
- data/test/stub_responses/records/contact-b4d149bf-1823-4bd2-96da-9032388c9686.xml +40 -0
- data/test/stub_responses/records/contact-b78d4fd1-4306-4d83-a0b9-61458d1c53a2.xml +40 -0
- data/test/stub_responses/records/contact-b7d108a8-d5f7-4f16-a7c9-26eaed98e8de.xml +40 -0
- data/test/stub_responses/records/contact-baeed0f3-7989-4874-99b3-59f23032cb73.xml +38 -0
- data/test/stub_responses/records/contact-bc51a3a1-b7f6-46ca-ac9e-19b87e6ca100.xml +40 -0
- data/test/stub_responses/records/contact-be9f3aab-52f5-4d9c-94b4-87f7d9e5ee8b.xml +38 -0
- data/test/stub_responses/records/contact-c135f994-01e4-427b-9e15-acfe8a477c16.xml +49 -0
- data/test/stub_responses/records/contact-c14edf75-15e4-4a9c-86e4-f52e2fe7cfa4.xml +40 -0
- data/test/stub_responses/records/contact-ca9b9abc-c2dc-4221-8101-31f464d314cc.xml +44 -0
- data/test/stub_responses/records/contact-cc4db604-9ed8-4eef-8a29-51b5b70496a0.xml +38 -0
- data/test/stub_responses/records/contact-cce9b044-be4a-43b3-9dc7-c027d8dd35b2.xml +38 -0
- data/test/stub_responses/records/contact-d0cd2c4f-18a0-4f7c-a32a-2db00f29d298.xml +43 -0
- data/test/stub_responses/records/contact-d6851dc2-9ed9-4515-bc0b-810b09c06a6a.xml +38 -0
- data/test/stub_responses/records/contact-d6a384fb-f46f-41a3-8ac7-b7bc9e0b5efa.xml +46 -0
- data/test/stub_responses/records/contact-d74e61cf-2ad0-4f0d-b9d1-6a808e3f70cf.xml +40 -0
- data/test/stub_responses/records/contact-d9ab0f61-3b56-4e2b-be39-f33c11bd99e3.xml +40 -0
- data/test/stub_responses/records/contact-dbb1f0b5-a71b-4458-8462-104acd0fec6b.xml +38 -0
- data/test/stub_responses/records/contact-dd981bd6-40dd-496d-a282-bf7d3391b8b9.xml +40 -0
- data/test/stub_responses/records/contact-e1826204-cc0a-42a5-a6d0-4b352d9d5953.xml +40 -0
- data/test/stub_responses/records/contact-e2d955db-f366-42dd-87f7-fbdb4da2306f.xml +40 -0
- data/test/stub_responses/records/contact-e32e2130-3d27-443a-8313-48fffa03cf53.xml +40 -0
- data/test/stub_responses/records/contact-e3a68332-d322-4816-8678-73a537c8cd33.xml +38 -0
- data/test/stub_responses/records/contact-e6ac76a3-ca32-4fa1-8ef9-6a4bf8b0ec2a.xml +40 -0
- data/test/stub_responses/records/contact-e6ca965d-7c48-480e-be39-e847307f474a.xml +38 -0
- data/test/stub_responses/records/contact-e77d1f20-2e8e-46ec-9a10-50335a216724.xml +40 -0
- data/test/stub_responses/records/contact-e8b98c13-a424-41d2-ba0e-7b7621411e7a.xml +38 -0
- data/test/stub_responses/records/contact-e8e9a2c2-3e7e-48ed-8528-c3d61b28f276.xml +39 -0
- data/test/stub_responses/records/contact-eb43fcc6-87ec-4a0a-b243-d718bee4e2cb.xml +38 -0
- data/test/stub_responses/records/contact-ef6f54c1-eb45-4956-b8cd-1be82ad665f2.xml +43 -0
- data/test/stub_responses/records/contact-efdb3600-f233-42e2-8f18-ce7e2a95e4b1.xml +38 -0
- data/test/stub_responses/records/contact-f7eca431-5c97-4d24-93fd-004bb8a6c644.xml +40 -0
- data/test/stub_responses/records/contact-fb078879-5d6d-474f-825f-61dc90689349.xml +38 -0
- data/test/stub_responses/records/contact-fc39b273-4aa2-4785-99ca-24672f6c0000.xml +38 -0
- data/test/stub_responses/records/contact-fc9ec3a6-a2fe-4300-a8cb-ca8a0b3662e0.xml +40 -0
- data/test/stub_responses/records/contact-fdf96102-7491-44b6-bf4d-7a77ff25f890.xml +40 -0
- data/test/stub_responses/records/contact-fe61ead1-8afc-4f0b-beda-066620227aad.xml +38 -0
- data/test/stub_responses/records/credit_note-371cd138-1e5c-4ec1-a8c6-a1c10e8bdab1.xml +69 -0
- data/test/stub_responses/records/credit_note-3bffc09b-79f2-490d-b91b-c59b700b43a4.xml +91 -0
- data/test/stub_responses/records/credit_note-43c678ee-f357-48e2-b192-b6e3634762f9.xml +90 -0
- data/test/stub_responses/records/credit_note-482c018b-d329-4e05-9b4f-7a4cfc695aa0.xml +73 -0
- data/test/stub_responses/records/credit_note-4f67130a-749a-4ee6-98b2-743adbc11245.xml +60 -0
- data/test/stub_responses/records/credit_note-50e98404-2fba-4031-af67-8ba4bb227c44.xml +74 -0
- data/test/stub_responses/records/credit_note-7df8949c-b71f-40c0-bbcf-39f2f450f286.xml +73 -0
- data/test/stub_responses/records/credit_note-b356e488-2678-4be4-ad4b-d294df2d48d6.xml +76 -0
- data/test/stub_responses/records/invoice-0032f627-3156-4d30-9b1c-4d3b994dc921.xml +82 -0
- data/test/stub_responses/records/invoice-00c9511b-24b9-4190-a90a-8abf2fe9f4a0.xml +74 -0
- data/test/stub_responses/records/invoice-024d7994-a26c-4c20-9894-13934840fc31.xml +73 -0
- data/test/stub_responses/records/invoice-0e64a623-c2a1-446a-93ed-eb897f118cbc.xml +96 -0
- data/test/stub_responses/records/invoice-15e88e57-2554-4496-a18e-eb3f5c622345.xml +73 -0
- data/test/stub_responses/records/invoice-166f0588-d0ba-458c-b28a-8edd4c8fc463.xml +73 -0
- data/test/stub_responses/records/invoice-1d1ba340-afa2-4f4c-8ff7-a147bda9a47b.xml +91 -0
- data/test/stub_responses/records/invoice-290ef4c4-baec-492b-b4dd-c102826470ae.xml +85 -0
- data/test/stub_responses/records/invoice-30a87092-31b5-4a2c-831e-327486533dd2.xml +77 -0
- data/test/stub_responses/records/invoice-30dbd181-72a8-43df-b392-4241bf43d5fc.xml +68 -0
- data/test/stub_responses/records/invoice-33e4123e-7cdd-4f05-9a0a-eb8adeb2b868.xml +92 -0
- data/test/stub_responses/records/invoice-387db692-26ac-47e6-b6cc-015343809bda.xml +73 -0
- data/test/stub_responses/records/invoice-3b28bf11-ed2f-4cf4-8e9e-fcae730cc292.xml +89 -0
- data/test/stub_responses/records/invoice-3fcb9847-b350-412e-ab90-7d9d774ad881.xml +89 -0
- data/test/stub_responses/records/invoice-4602eda6-abe9-448e-b65f-ae6bea21f0eb.xml +96 -0
- data/test/stub_responses/records/invoice-46441f63-873f-4cdc-a278-b8fe516f3abb.xml +91 -0
- data/test/stub_responses/records/invoice-4ad1ec01-f4a3-41d7-bbb4-d2ab2fec8e65.xml +73 -0
- data/test/stub_responses/records/invoice-4b9afceb-f7c7-4e64-8aac-7b009971fd52.xml +84 -0
- data/test/stub_responses/records/invoice-4edbf6d5-4e92-43af-bedd-7effc0b86833.xml +68 -0
- data/test/stub_responses/records/invoice-4fad1af2-b871-4ac5-a15a-3c5e32d2e2c4.xml +83 -0
- data/test/stub_responses/records/invoice-52ee4d67-cae4-462c-adb2-182c39017f3d.xml +81 -0
- data/test/stub_responses/records/invoice-54585f46-c1a0-4432-bd4f-c1fae2fba59b.xml +66 -0
- data/test/stub_responses/records/invoice-5613938b-9e27-472e-92ae-3b038b669d10.xml +85 -0
- data/test/stub_responses/records/invoice-5aa9451d-95d1-4f95-a966-bbab2573f71c.xml +73 -0
- data/test/stub_responses/records/invoice-5aadcd34-01a9-4b8d-a2bb-d7cc1de9fa45.xml +87 -0
- data/test/stub_responses/records/invoice-5f6deadf-36a2-495a-9980-ceb11e8af9a9.xml +83 -0
- data/test/stub_responses/records/invoice-625ffe1b-f5d8-438e-a376-981de5f5a733.xml +75 -0
- data/test/stub_responses/records/invoice-64cd559e-8e03-46af-b461-8555285cee71.xml +84 -0
- data/test/stub_responses/records/invoice-666f8dbb-bc9a-476c-8ec4-4665d7f83190.xml +63 -0
- data/test/stub_responses/records/invoice-66fbe37f-49b1-43fd-97ed-85114022cd2f.xml +77 -0
- data/test/stub_responses/records/invoice-673dd7cc-beb7-4697-83d4-0c47cb400cc2.xml +85 -0
- data/test/stub_responses/records/invoice-69fc971e-9b37-41c5-9c87-174330f22343.xml +65 -0
- data/test/stub_responses/records/invoice-70e6db69-e5a4-42c7-a397-aa3212c2945f.xml +73 -0
- data/test/stub_responses/records/invoice-766d1289-b440-4675-a656-1a0612ecac77.xml +74 -0
- data/test/stub_responses/records/invoice-76bcb361-f93b-4513-b312-5a4af306d276.xml +66 -0
- data/test/stub_responses/records/invoice-76e3f056-479f-417c-a72b-f3d767899b87.xml +89 -0
- data/test/stub_responses/records/invoice-77b338ef-ecc0-4b95-a0d7-2617b0054611.xml +103 -0
- data/test/stub_responses/records/invoice-7be9956d-5316-4f6b-a66a-d355b3f159b2.xml +82 -0
- data/test/stub_responses/records/invoice-7dae876a-b424-436b-a4e6-17b3fdeec80c.xml +82 -0
- data/test/stub_responses/records/invoice-7e862d93-8dab-4856-8b0c-d844e09d750f.xml +66 -0
- data/test/stub_responses/records/invoice-803f70b0-56d9-4157-9787-41df271777a0.xml +82 -0
- data/test/stub_responses/records/invoice-86102312-aa3f-438c-9938-6840f4d8dda6.xml +74 -0
- data/test/stub_responses/records/invoice-8694c9c5-7097-4449-a708-b8c1982921a4.xml +68 -0
- data/test/stub_responses/records/invoice-86d6e00f-ef56-49f7-9a54-796ccd5ca057.xml +83 -0
- data/test/stub_responses/records/invoice-88e77f0f-54a5-4efc-a979-7e22223cc4d7.xml +65 -0
- data/test/stub_responses/records/invoice-8b0ccb6a-d9b7-4da5-8360-ef7fb157b5aa.xml +65 -0
- data/test/stub_responses/records/invoice-935fc854-8037-4111-8d91-993010c331cc.xml +73 -0
- data/test/stub_responses/records/invoice-95ef3000-c764-4ba9-a66a-b6e2d161f839.xml +62 -0
- data/test/stub_responses/records/invoice-962ef33f-c9d2-4602-9b9f-93a02bea23b3.xml +90 -0
- data/test/stub_responses/records/invoice-9868b472-1983-48e9-8edf-7e81ddf2c03a.xml +83 -0
- data/test/stub_responses/records/invoice-9a448e9b-a9fa-4a8b-98f5-6dc892a37374.xml +62 -0
- data/test/stub_responses/records/invoice-a1d04a14-96a8-4067-a0ff-8136990a354f.xml +91 -0
- data/test/stub_responses/records/invoice-a3bc62ef-f11b-4a9c-a4f9-a342bda371b5.xml +65 -0
- data/test/stub_responses/records/invoice-a6894ca0-60ee-4d45-9dd4-b44fcba46ec5.xml +88 -0
- data/test/stub_responses/records/invoice-a9f765e6-b9bc-4505-a47b-fb3ecb327e7b.xml +85 -0
- data/test/stub_responses/records/invoice-aa0173af-8707-4e7f-8dde-4c7a357bd312.xml +92 -0
- data/test/stub_responses/records/invoice-ab63738a-370a-43a5-bfa3-620d684e66d0.xml +81 -0
- data/test/stub_responses/records/invoice-b0344791-5a8a-40dd-a208-d99a461a6c10.xml +82 -0
- data/test/stub_responses/records/invoice-b1e53910-473c-46a3-b3cb-38ece571220e.xml +66 -0
- data/test/stub_responses/records/invoice-b2c02d0b-41a8-4d4d-97d7-014c78b3547d.xml +91 -0
- data/test/stub_responses/records/invoice-b75b3928-ab72-4424-8b93-9cdbbde4cd72.xml +80 -0
- data/test/stub_responses/records/invoice-bcd8a71f-aa31-4d0f-8a01-13ea26363ddf.xml +92 -0
- data/test/stub_responses/records/invoice-bfbb7c45-de02-45e7-b065-d9863ecfb0d8.xml +65 -0
- data/test/stub_responses/records/invoice-c12aff7e-12bf-4185-8702-460929f19674.xml +76 -0
- data/test/stub_responses/records/invoice-c3380b96-976d-4b3e-8b26-8d01eb6a3742.xml +85 -0
- data/test/stub_responses/records/invoice-c963f2b0-cbe1-4abd-9ccc-7e512c942068.xml +66 -0
- data/test/stub_responses/records/invoice-d62646b9-d0a9-4fdb-9561-756a8b7eba45.xml +63 -0
- data/test/stub_responses/records/invoice-dba2f021-f149-4191-a126-5351d587ab0e.xml +74 -0
- data/test/stub_responses/records/invoice-de5d9c29-21b3-4342-958b-ed72c4bd7ab0.xml +106 -0
- data/test/stub_responses/records/invoice-e3d96555-2876-4364-a46a-7551a4f52611.xml +119 -0
- data/test/stub_responses/records/invoice-e4a0afbd-aea0-450b-ae23-0ce921e84a77.xml +99 -0
- data/test/stub_responses/records/invoice-e9cb9ecb-58ef-43a8-bd20-69a85338142d.xml +74 -0
- data/test/stub_responses/records/invoice-ec9a6f67-7128-4a63-8ba3-5e516f455f9b.xml +92 -0
- data/test/stub_responses/records/invoice-ed0f2587-84fc-4aef-bc4b-b1a262e24484.xml +78 -0
- data/test/stub_responses/records/invoice-f362ca53-8ade-4047-865a-bb64bee5863d.xml +73 -0
- data/test/stub_responses/records/invoice-f571c38b-5be1-41e1-ad5a-ff6184284beb.xml +104 -0
- data/test/stub_responses/records/invoice-f5832195-5cd3-4660-ad3f-b73d9c64f263.xml +83 -0
- data/test/stub_responses/records/invoice-f9c857eb-64cd-4235-a078-d04b52c77ea7.xml +74 -0
- data/test/stub_responses/records/manual_journal-4765d07b-aa03-4e56-9166-50661958c864.xml +38 -0
- data/test/stub_responses/records/manual_journal-53fc5558-5b76-4ecd-ae5c-c4af3ccde87c.xml +31 -0
- data/test/stub_responses/records/manual_journal-bb6cfcfc-4500-4475-bd3a-93ee512428e0.xml +31 -0
- data/test/stub_responses/records/manual_journal-f00a355b-7374-445c-886b-0437bea4095c.xml +45 -0
- data/test/stub_responses/refresh_responses.rb +29 -0
- data/test/stub_responses/tax_rates.xml +118 -0
- data/test/stub_responses/token_expired +1 -0
- data/test/stub_responses/tracking_categories.xml +27 -0
- data/test/stub_responses/unknown_error.xml +1 -0
- data/test/test_helper.rb +49 -0
- data/test/unit/models/contact_test.rb +26 -0
- data/test/unit/models/credit_note_test.rb +37 -0
- data/test/unit/models/invoice_test.rb +51 -0
- data/test/unit/oauth_test.rb +72 -0
- data/test/unit/private_application_test.rb +20 -0
- data/test/unit/record/base_model_test.rb +50 -0
- data/test/unit/record/base_test.rb +57 -0
- data/test/unit/record/model_definition_test.rb +159 -0
- data/test/unit/record/parse_where_hash_test.rb +63 -0
- data/test/unit/record/record_association_test.rb +36 -0
- data/test/unit/record/validators_test.rb +180 -0
- data/xeroizer.gemspec +375 -0
- metadata +533 -0
@@ -0,0 +1,73 @@
|
|
1
|
+
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
2
|
+
<Id>89de6bfb-ff1e-4159-b5d6-fe76ae5643eb</Id>
|
3
|
+
<Status>OK</Status>
|
4
|
+
<ProviderName>Test Provider Name</ProviderName>
|
5
|
+
<DateTimeUTC>2010-12-21T01:04:31.3217637Z</DateTimeUTC>
|
6
|
+
<Invoices>
|
7
|
+
<Invoice>
|
8
|
+
<Contact>
|
9
|
+
<ContactID>dbb1f0b5-a71b-4458-8462-104acd0fec6b</ContactID>
|
10
|
+
<ContactStatus>ACTIVE</ContactStatus>
|
11
|
+
<Name>MCO Cleaning Services</Name>
|
12
|
+
<Addresses>
|
13
|
+
<Address>
|
14
|
+
<AddressType>STREET</AddressType>
|
15
|
+
</Address>
|
16
|
+
<Address>
|
17
|
+
<AddressType>POBOX</AddressType>
|
18
|
+
</Address>
|
19
|
+
</Addresses>
|
20
|
+
<Phones>
|
21
|
+
<Phone>
|
22
|
+
<PhoneType>FAX</PhoneType>
|
23
|
+
</Phone>
|
24
|
+
<Phone>
|
25
|
+
<PhoneType>DDI</PhoneType>
|
26
|
+
</Phone>
|
27
|
+
<Phone>
|
28
|
+
<PhoneType>MOBILE</PhoneType>
|
29
|
+
</Phone>
|
30
|
+
<Phone>
|
31
|
+
<PhoneType>DEFAULT</PhoneType>
|
32
|
+
</Phone>
|
33
|
+
</Phones>
|
34
|
+
<UpdatedDateUTC>2010-11-16T06:44:23.14</UpdatedDateUTC>
|
35
|
+
<IsSupplier>true</IsSupplier>
|
36
|
+
<IsCustomer>false</IsCustomer>
|
37
|
+
</Contact>
|
38
|
+
<Date>2010-11-08T00:00:00</Date>
|
39
|
+
<DueDate>2010-11-23T00:00:00</DueDate>
|
40
|
+
<Status>PAID</Status>
|
41
|
+
<LineAmountTypes>Exclusive</LineAmountTypes>
|
42
|
+
<LineItems>
|
43
|
+
<LineItem>
|
44
|
+
<Description>Office cleaning services</Description>
|
45
|
+
<UnitAmount>155.00</UnitAmount>
|
46
|
+
<TaxType>INPUT</TaxType>
|
47
|
+
<TaxAmount>15.50</TaxAmount>
|
48
|
+
<LineAmount>155.00</LineAmount>
|
49
|
+
<AccountCode>408</AccountCode>
|
50
|
+
<Quantity>1.0000</Quantity>
|
51
|
+
</LineItem>
|
52
|
+
</LineItems>
|
53
|
+
<SubTotal>155.00</SubTotal>
|
54
|
+
<TotalTax>15.50</TotalTax>
|
55
|
+
<Total>170.50</Total>
|
56
|
+
<UpdatedDateUTC>2010-12-09T14:29:27.933</UpdatedDateUTC>
|
57
|
+
<CurrencyCode>AUD</CurrencyCode>
|
58
|
+
<FullyPaidOnDate>2010-11-23T00:00:00</FullyPaidOnDate>
|
59
|
+
<Type>ACCPAY</Type>
|
60
|
+
<InvoiceID>4ad1ec01-f4a3-41d7-bbb4-d2ab2fec8e65</InvoiceID>
|
61
|
+
<Payments>
|
62
|
+
<Payment>
|
63
|
+
<Date>2010-11-23T00:00:00</Date>
|
64
|
+
<Amount>170.50</Amount>
|
65
|
+
<PaymentID>9a26b253-dc27-4f8d-ab1c-f85a30bc3038</PaymentID>
|
66
|
+
</Payment>
|
67
|
+
</Payments>
|
68
|
+
<AmountDue>0.00</AmountDue>
|
69
|
+
<AmountPaid>170.50</AmountPaid>
|
70
|
+
<AmountCredited>0.00</AmountCredited>
|
71
|
+
</Invoice>
|
72
|
+
</Invoices>
|
73
|
+
</Response>
|
@@ -0,0 +1,84 @@
|
|
1
|
+
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
2
|
+
<Id>063142eb-22b5-405e-b4cb-fbb51d709746</Id>
|
3
|
+
<Status>OK</Status>
|
4
|
+
<ProviderName>Test Provider Name</ProviderName>
|
5
|
+
<DateTimeUTC>2010-12-21T01:03:22.7887593Z</DateTimeUTC>
|
6
|
+
<Invoices>
|
7
|
+
<Invoice>
|
8
|
+
<Contact>
|
9
|
+
<ContactID>69d3e538-44b3-4e00-a5f6-7dddcb6e0656</ContactID>
|
10
|
+
<ContactStatus>ACTIVE</ContactStatus>
|
11
|
+
<Name>Blue Winn Polytechnic</Name>
|
12
|
+
<Addresses>
|
13
|
+
<Address>
|
14
|
+
<AddressType>STREET</AddressType>
|
15
|
+
</Address>
|
16
|
+
<Address>
|
17
|
+
<AddressType>POBOX</AddressType>
|
18
|
+
</Address>
|
19
|
+
</Addresses>
|
20
|
+
<Phones>
|
21
|
+
<Phone>
|
22
|
+
<PhoneType>DDI</PhoneType>
|
23
|
+
</Phone>
|
24
|
+
<Phone>
|
25
|
+
<PhoneType>DEFAULT</PhoneType>
|
26
|
+
<PhoneNumber>3036543</PhoneNumber>
|
27
|
+
<PhoneAreaCode>03</PhoneAreaCode>
|
28
|
+
</Phone>
|
29
|
+
<Phone>
|
30
|
+
<PhoneType>MOBILE</PhoneType>
|
31
|
+
</Phone>
|
32
|
+
<Phone>
|
33
|
+
<PhoneType>FAX</PhoneType>
|
34
|
+
</Phone>
|
35
|
+
</Phones>
|
36
|
+
<UpdatedDateUTC>2010-12-09T19:29:28.747</UpdatedDateUTC>
|
37
|
+
<IsSupplier>false</IsSupplier>
|
38
|
+
<IsCustomer>true</IsCustomer>
|
39
|
+
</Contact>
|
40
|
+
<Date>2010-10-12T00:00:00</Date>
|
41
|
+
<DueDate>2010-10-28T00:00:00</DueDate>
|
42
|
+
<Status>PAID</Status>
|
43
|
+
<LineAmountTypes>Exclusive</LineAmountTypes>
|
44
|
+
<LineItems>
|
45
|
+
<LineItem>
|
46
|
+
<Description>Development work - developer onsite per day</Description>
|
47
|
+
<UnitAmount>650.00</UnitAmount>
|
48
|
+
<TaxType>OUTPUT</TaxType>
|
49
|
+
<TaxAmount>325.00</TaxAmount>
|
50
|
+
<LineAmount>3250.00</LineAmount>
|
51
|
+
<AccountCode>200</AccountCode>
|
52
|
+
<Tracking>
|
53
|
+
<TrackingCategory>
|
54
|
+
<Name>Consultant</Name>
|
55
|
+
<Option>Odette Garrison</Option>
|
56
|
+
<TrackingCategoryID>093af706-c2aa-4d97-a4ce-2d205a017eac</TrackingCategoryID>
|
57
|
+
</TrackingCategory>
|
58
|
+
</Tracking>
|
59
|
+
<Quantity>5.0000</Quantity>
|
60
|
+
</LineItem>
|
61
|
+
</LineItems>
|
62
|
+
<SubTotal>3250.00</SubTotal>
|
63
|
+
<TotalTax>325.00</TotalTax>
|
64
|
+
<Total>3575.00</Total>
|
65
|
+
<UpdatedDateUTC>2010-12-03T11:12:26.197</UpdatedDateUTC>
|
66
|
+
<CurrencyCode>AUD</CurrencyCode>
|
67
|
+
<FullyPaidOnDate>2010-11-08T00:00:00</FullyPaidOnDate>
|
68
|
+
<Type>ACCREC</Type>
|
69
|
+
<InvoiceID>4b9afceb-f7c7-4e64-8aac-7b009971fd52</InvoiceID>
|
70
|
+
<InvoiceNumber>ORC1013</InvoiceNumber>
|
71
|
+
<Reference>BWP p.o. R22987</Reference>
|
72
|
+
<Payments>
|
73
|
+
<Payment>
|
74
|
+
<Date>2010-11-08T00:00:00</Date>
|
75
|
+
<Amount>3575.00</Amount>
|
76
|
+
<PaymentID>d3abafa8-b7fa-4edb-b050-3a8485cf44be</PaymentID>
|
77
|
+
</Payment>
|
78
|
+
</Payments>
|
79
|
+
<AmountDue>0.00</AmountDue>
|
80
|
+
<AmountPaid>3575.00</AmountPaid>
|
81
|
+
<AmountCredited>0.00</AmountCredited>
|
82
|
+
</Invoice>
|
83
|
+
</Invoices>
|
84
|
+
</Response>
|
@@ -0,0 +1,68 @@
|
|
1
|
+
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
2
|
+
<Id>95a0318e-8a4f-4b64-84e0-36e73b734ba4</Id>
|
3
|
+
<Status>OK</Status>
|
4
|
+
<ProviderName>Test Provider Name</ProviderName>
|
5
|
+
<DateTimeUTC>2010-12-21T01:03:37.9766481Z</DateTimeUTC>
|
6
|
+
<Invoices>
|
7
|
+
<Invoice>
|
8
|
+
<Contact>
|
9
|
+
<ContactID>3e776c4b-ea9e-4bb1-96be-6b0c7a71a37f</ContactID>
|
10
|
+
<ContactStatus>ACTIVE</ContactStatus>
|
11
|
+
<Name>Bayside Club</Name>
|
12
|
+
<Addresses>
|
13
|
+
<Address>
|
14
|
+
<AddressType>STREET</AddressType>
|
15
|
+
</Address>
|
16
|
+
<Address>
|
17
|
+
<AddressType>POBOX</AddressType>
|
18
|
+
</Address>
|
19
|
+
</Addresses>
|
20
|
+
<Phones>
|
21
|
+
<Phone>
|
22
|
+
<PhoneType>MOBILE</PhoneType>
|
23
|
+
</Phone>
|
24
|
+
<Phone>
|
25
|
+
<PhoneType>DDI</PhoneType>
|
26
|
+
</Phone>
|
27
|
+
<Phone>
|
28
|
+
<PhoneType>DEFAULT</PhoneType>
|
29
|
+
</Phone>
|
30
|
+
<Phone>
|
31
|
+
<PhoneType>FAX</PhoneType>
|
32
|
+
</Phone>
|
33
|
+
</Phones>
|
34
|
+
<UpdatedDateUTC>2012-12-06T04:31:39.377</UpdatedDateUTC>
|
35
|
+
<IsSupplier>false</IsSupplier>
|
36
|
+
<IsCustomer>true</IsCustomer>
|
37
|
+
<DefaultCurrency>AUD</DefaultCurrency>
|
38
|
+
</Contact>
|
39
|
+
<Date>2010-12-09T00:00:00</Date>
|
40
|
+
<DueDate>2010-12-27T00:00:00</DueDate>
|
41
|
+
<BrandingThemeID>aefae6d5-7bbe-4e2e-aadc-302cd07a0fc1</BrandingThemeID>
|
42
|
+
<Status>AUTHORISED</Status>
|
43
|
+
<LineAmountTypes>Inclusive</LineAmountTypes>
|
44
|
+
<LineItems>
|
45
|
+
<LineItem>
|
46
|
+
<Description>Golf balls - white single</Description>
|
47
|
+
<UnitAmount>5.60</UnitAmount>
|
48
|
+
<TaxType>OUTPUT</TaxType>
|
49
|
+
<TaxAmount>20.36</TaxAmount>
|
50
|
+
<LineAmount>224.00</LineAmount>
|
51
|
+
<AccountCode>200</AccountCode>
|
52
|
+
<Quantity>40.0000</Quantity>
|
53
|
+
</LineItem>
|
54
|
+
</LineItems>
|
55
|
+
<SubTotal>203.64</SubTotal>
|
56
|
+
<TotalTax>20.36</TotalTax>
|
57
|
+
<Total>224.00</Total>
|
58
|
+
<UpdatedDateUTC>2012-12-06T14:31:39.39</UpdatedDateUTC>
|
59
|
+
<CurrencyCode>AUD</CurrencyCode>
|
60
|
+
<Type>ACCREC</Type>
|
61
|
+
<InvoiceID>4edbf6d5-4e92-43af-bedd-7effc0b86833</InvoiceID>
|
62
|
+
<InvoiceNumber>ORC1039</InvoiceNumber>
|
63
|
+
<Reference>GB1-White</Reference>
|
64
|
+
<AmountDue>224.00</AmountDue>
|
65
|
+
<AmountPaid>0.00</AmountPaid>
|
66
|
+
</Invoice>
|
67
|
+
</Invoices>
|
68
|
+
</Response>
|
@@ -0,0 +1,83 @@
|
|
1
|
+
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
2
|
+
<Id>d7acf896-494f-4ec0-86e9-353bdec8cee4</Id>
|
3
|
+
<Status>OK</Status>
|
4
|
+
<ProviderName>Test Provider Name</ProviderName>
|
5
|
+
<DateTimeUTC>2010-12-21T01:03:25.8825885Z</DateTimeUTC>
|
6
|
+
<Invoices>
|
7
|
+
<Invoice>
|
8
|
+
<Contact>
|
9
|
+
<ContactID>1b2be6e9-8d58-4da9-aaf8-4fe5471b653c</ContactID>
|
10
|
+
<ContactStatus>ACTIVE</ContactStatus>
|
11
|
+
<Name>Hamilton Smith Pty</Name>
|
12
|
+
<EmailAddress>info@hsg.co</EmailAddress>
|
13
|
+
<Addresses>
|
14
|
+
<Address>
|
15
|
+
<AddressType>STREET</AddressType>
|
16
|
+
</Address>
|
17
|
+
<Address>
|
18
|
+
<AddressType>POBOX</AddressType>
|
19
|
+
<AddressLine1>3 Park Street Industrial Village
|
20
|
+
</AddressLine1>
|
21
|
+
<AddressLine2>Southbank</AddressLine2>
|
22
|
+
<City>Melbourne</City>
|
23
|
+
<PostalCode>3331</PostalCode>
|
24
|
+
</Address>
|
25
|
+
</Addresses>
|
26
|
+
<Phones>
|
27
|
+
<Phone>
|
28
|
+
<PhoneType>DDI</PhoneType>
|
29
|
+
</Phone>
|
30
|
+
<Phone>
|
31
|
+
<PhoneType>FAX</PhoneType>
|
32
|
+
</Phone>
|
33
|
+
<Phone>
|
34
|
+
<PhoneType>DEFAULT</PhoneType>
|
35
|
+
<PhoneNumber>3189080</PhoneNumber>
|
36
|
+
<PhoneAreaCode>03</PhoneAreaCode>
|
37
|
+
</Phone>
|
38
|
+
<Phone>
|
39
|
+
<PhoneType>MOBILE</PhoneType>
|
40
|
+
</Phone>
|
41
|
+
</Phones>
|
42
|
+
<UpdatedDateUTC>2010-12-09T19:28:52.123</UpdatedDateUTC>
|
43
|
+
<ContactGroups>
|
44
|
+
<ContactGroup>
|
45
|
+
<ContactGroupID>26fcca8d-a03b-4968-a80a-a463d5bf30ee</ContactGroupID>
|
46
|
+
<Name>Support Clients (monthly)</Name>
|
47
|
+
<Status>ACTIVE</Status>
|
48
|
+
</ContactGroup>
|
49
|
+
</ContactGroups>
|
50
|
+
<IsSupplier>false</IsSupplier>
|
51
|
+
<IsCustomer>true</IsCustomer>
|
52
|
+
</Contact>
|
53
|
+
<Date>2010-09-08T00:00:00</Date>
|
54
|
+
<DueDate>2010-09-17T00:00:00</DueDate>
|
55
|
+
<Status>PAID</Status>
|
56
|
+
<LineAmountTypes>Exclusive</LineAmountTypes>
|
57
|
+
<LineItems>
|
58
|
+
<LineItem>
|
59
|
+
<Description>Desktop/network support via email & phone.
|
60
|
+
Per month fixed fee for minimum 20 hours/month.</Description>
|
61
|
+
<UnitAmount>500.00</UnitAmount>
|
62
|
+
<TaxType>OUTPUT</TaxType>
|
63
|
+
<TaxAmount>50.00</TaxAmount>
|
64
|
+
<LineAmount>500.00</LineAmount>
|
65
|
+
<AccountCode>200</AccountCode>
|
66
|
+
<Quantity>1.0000</Quantity>
|
67
|
+
</LineItem>
|
68
|
+
</LineItems>
|
69
|
+
<SubTotal>500.00</SubTotal>
|
70
|
+
<TotalTax>50.00</TotalTax>
|
71
|
+
<Total>550.00</Total>
|
72
|
+
<UpdatedDateUTC>2010-11-26T11:56:55.33</UpdatedDateUTC>
|
73
|
+
<CurrencyCode>AUD</CurrencyCode>
|
74
|
+
<FullyPaidOnDate>2010-09-17T00:00:00</FullyPaidOnDate>
|
75
|
+
<Type>ACCREC</Type>
|
76
|
+
<InvoiceID>4fad1af2-b871-4ac5-a15a-3c5e32d2e2c4</InvoiceID>
|
77
|
+
<InvoiceNumber>ORC1003</InvoiceNumber>
|
78
|
+
<AmountDue>0.00</AmountDue>
|
79
|
+
<AmountPaid>0.00</AmountPaid>
|
80
|
+
<AmountCredited>550.00</AmountCredited>
|
81
|
+
</Invoice>
|
82
|
+
</Invoices>
|
83
|
+
</Response>
|
@@ -0,0 +1,81 @@
|
|
1
|
+
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
2
|
+
<Id>7794a33a-ecf4-4193-8686-397c88dc3cd6</Id>
|
3
|
+
<Status>OK</Status>
|
4
|
+
<ProviderName>Test Provider Name</ProviderName>
|
5
|
+
<DateTimeUTC>2010-12-21T01:02:10.8337923Z</DateTimeUTC>
|
6
|
+
<Invoices>
|
7
|
+
<Invoice>
|
8
|
+
<Contact>
|
9
|
+
<ContactID>e8b98c13-a424-41d2-ba0e-7b7621411e7a</ContactID>
|
10
|
+
<ContactStatus>ACTIVE</ContactStatus>
|
11
|
+
<Name>Qantas</Name>
|
12
|
+
<Addresses>
|
13
|
+
<Address>
|
14
|
+
<AddressType>POBOX</AddressType>
|
15
|
+
</Address>
|
16
|
+
<Address>
|
17
|
+
<AddressType>STREET</AddressType>
|
18
|
+
</Address>
|
19
|
+
</Addresses>
|
20
|
+
<Phones>
|
21
|
+
<Phone>
|
22
|
+
<PhoneType>DEFAULT</PhoneType>
|
23
|
+
</Phone>
|
24
|
+
<Phone>
|
25
|
+
<PhoneType>DDI</PhoneType>
|
26
|
+
</Phone>
|
27
|
+
<Phone>
|
28
|
+
<PhoneType>MOBILE</PhoneType>
|
29
|
+
</Phone>
|
30
|
+
<Phone>
|
31
|
+
<PhoneType>FAX</PhoneType>
|
32
|
+
</Phone>
|
33
|
+
</Phones>
|
34
|
+
<UpdatedDateUTC>2010-11-20T05:49:48.123</UpdatedDateUTC>
|
35
|
+
<IsSupplier>true</IsSupplier>
|
36
|
+
<IsCustomer>false</IsCustomer>
|
37
|
+
</Contact>
|
38
|
+
<Date>2010-09-09T00:00:00</Date>
|
39
|
+
<DueDate>2010-09-16T00:00:00</DueDate>
|
40
|
+
<Status>PAID</Status>
|
41
|
+
<LineAmountTypes>Exclusive</LineAmountTypes>
|
42
|
+
<LineItems>
|
43
|
+
<LineItem>
|
44
|
+
<Description>Flights for ICT 08 conference</Description>
|
45
|
+
<UnitAmount>199.00</UnitAmount>
|
46
|
+
<TaxType>INPUT</TaxType>
|
47
|
+
<TaxAmount>19.90</TaxAmount>
|
48
|
+
<LineAmount>199.00</LineAmount>
|
49
|
+
<AccountCode>493</AccountCode>
|
50
|
+
<Tracking>
|
51
|
+
<TrackingCategory>
|
52
|
+
<Name>Consultant</Name>
|
53
|
+
<Option>Odette Garrison</Option>
|
54
|
+
<TrackingCategoryID>093af706-c2aa-4d97-a4ce-2d205a017eac</TrackingCategoryID>
|
55
|
+
</TrackingCategory>
|
56
|
+
</Tracking>
|
57
|
+
<Quantity>1.0000</Quantity>
|
58
|
+
</LineItem>
|
59
|
+
</LineItems>
|
60
|
+
<SubTotal>199.00</SubTotal>
|
61
|
+
<TotalTax>19.90</TotalTax>
|
62
|
+
<Total>218.90</Total>
|
63
|
+
<UpdatedDateUTC>2010-11-26T11:45:11.227</UpdatedDateUTC>
|
64
|
+
<CurrencyCode>AUD</CurrencyCode>
|
65
|
+
<FullyPaidOnDate>2010-09-10T00:00:00</FullyPaidOnDate>
|
66
|
+
<Type>ACCPAY</Type>
|
67
|
+
<InvoiceID>52ee4d67-cae4-462c-adb2-182c39017f3d</InvoiceID>
|
68
|
+
<InvoiceNumber>ICT 08</InvoiceNumber>
|
69
|
+
<Payments>
|
70
|
+
<Payment>
|
71
|
+
<Date>2010-09-10T00:00:00</Date>
|
72
|
+
<Amount>218.90</Amount>
|
73
|
+
<PaymentID>a826f56f-52b0-49cd-974f-dc6697fb33ca</PaymentID>
|
74
|
+
</Payment>
|
75
|
+
</Payments>
|
76
|
+
<AmountDue>0.00</AmountDue>
|
77
|
+
<AmountPaid>218.90</AmountPaid>
|
78
|
+
<AmountCredited>0.00</AmountCredited>
|
79
|
+
</Invoice>
|
80
|
+
</Invoices>
|
81
|
+
</Response>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
2
|
+
<Id>f9022fe6-c85c-41b0-a6bc-f18310a0f2a5</Id>
|
3
|
+
<Status>OK</Status>
|
4
|
+
<ProviderName>Test Provider Name</ProviderName>
|
5
|
+
<DateTimeUTC>2010-12-21T01:05:10.4321399Z</DateTimeUTC>
|
6
|
+
<Invoices>
|
7
|
+
<Invoice>
|
8
|
+
<Contact>
|
9
|
+
<ContactID>8a154a19-6c6c-404b-bbc9-6deae2d18251</ContactID>
|
10
|
+
<ContactStatus>ACTIVE</ContactStatus>
|
11
|
+
<Name>SMART Agency</Name>
|
12
|
+
<Addresses>
|
13
|
+
<Address>
|
14
|
+
<AddressType>POBOX</AddressType>
|
15
|
+
</Address>
|
16
|
+
<Address>
|
17
|
+
<AddressType>STREET</AddressType>
|
18
|
+
</Address>
|
19
|
+
</Addresses>
|
20
|
+
<Phones>
|
21
|
+
<Phone>
|
22
|
+
<PhoneType>MOBILE</PhoneType>
|
23
|
+
</Phone>
|
24
|
+
<Phone>
|
25
|
+
<PhoneType>DDI</PhoneType>
|
26
|
+
</Phone>
|
27
|
+
<Phone>
|
28
|
+
<PhoneType>DEFAULT</PhoneType>
|
29
|
+
</Phone>
|
30
|
+
<Phone>
|
31
|
+
<PhoneType>FAX</PhoneType>
|
32
|
+
</Phone>
|
33
|
+
</Phones>
|
34
|
+
<UpdatedDateUTC>2010-12-09T02:03:42.917</UpdatedDateUTC>
|
35
|
+
<IsSupplier>true</IsSupplier>
|
36
|
+
<IsCustomer>false</IsCustomer>
|
37
|
+
</Contact>
|
38
|
+
<Date>2010-11-28T00:00:00</Date>
|
39
|
+
<DueDate>2010-12-11T00:00:00</DueDate>
|
40
|
+
<Status>AUTHORISED</Status>
|
41
|
+
<LineAmountTypes>Inclusive</LineAmountTypes>
|
42
|
+
<LineItems>
|
43
|
+
<LineItem>
|
44
|
+
<Description>Design prototypes for advertising material</Description>
|
45
|
+
<UnitAmount>2500.00</UnitAmount>
|
46
|
+
<TaxType>INPUT</TaxType>
|
47
|
+
<TaxAmount>227.27</TaxAmount>
|
48
|
+
<LineAmount>2500.00</LineAmount>
|
49
|
+
<AccountCode>400</AccountCode>
|
50
|
+
<Quantity>1.0000</Quantity>
|
51
|
+
</LineItem>
|
52
|
+
</LineItems>
|
53
|
+
<SubTotal>2272.73</SubTotal>
|
54
|
+
<TotalTax>227.27</TotalTax>
|
55
|
+
<Total>2500.00</Total>
|
56
|
+
<UpdatedDateUTC>2010-12-09T12:04:42.68</UpdatedDateUTC>
|
57
|
+
<CurrencyCode>AUD</CurrencyCode>
|
58
|
+
<Type>ACCPAY</Type>
|
59
|
+
<InvoiceID>54585f46-c1a0-4432-bd4f-c1fae2fba59b</InvoiceID>
|
60
|
+
<InvoiceNumber>70209</InvoiceNumber>
|
61
|
+
<AmountDue>2500.00</AmountDue>
|
62
|
+
<AmountPaid>0.00</AmountPaid>
|
63
|
+
<AmountCredited>0.00</AmountCredited>
|
64
|
+
</Invoice>
|
65
|
+
</Invoices>
|
66
|
+
</Response>
|