cxml-ruby 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ruby.yml +23 -0
- data/.gitignore +14 -0
- data/.rspec +1 -0
- data/.rubocop.yml +175 -0
- data/Gemfile +2 -0
- data/LICENSE +18 -0
- data/README.md +94 -0
- data/Rakefile +6 -0
- data/cxml-ruby.gemspec +27 -0
- data/lib/cxml/accounting.rb +27 -0
- data/lib/cxml/additional_cost.rb +10 -0
- data/lib/cxml/additional_deduction.rb +12 -0
- data/lib/cxml/address.rb +16 -0
- data/lib/cxml/bill_to.rb +10 -0
- data/lib/cxml/browser_form_post.rb +13 -0
- data/lib/cxml/charge.rb +9 -0
- data/lib/cxml/classification.rb +9 -0
- data/lib/cxml/confirmation_header.rb +16 -0
- data/lib/cxml/confirmation_item.rb +14 -0
- data/lib/cxml/confirmation_request.rb +25 -0
- data/lib/cxml/confirmation_status.rb +32 -0
- data/lib/cxml/contact.rb +16 -0
- data/lib/cxml/country.rb +9 -0
- data/lib/cxml/credential.rb +49 -0
- data/lib/cxml/credential_mac.rb +26 -0
- data/lib/cxml/deducted_price.rb +9 -0
- data/lib/cxml/deduction_amount.rb +9 -0
- data/lib/cxml/description.rb +9 -0
- data/lib/cxml/discount.rb +10 -0
- data/lib/cxml/discount_percent.rb +9 -0
- data/lib/cxml/distribution.rb +11 -0
- data/lib/cxml/document.rb +71 -0
- data/lib/cxml/document_node.rb +126 -0
- data/lib/cxml/document_reference.rb +9 -0
- data/lib/cxml/due_amount.rb +9 -0
- data/lib/cxml/email.rb +10 -0
- data/lib/cxml/errors.rb +7 -0
- data/lib/cxml/extrinsic.rb +10 -0
- data/lib/cxml/from.rb +9 -0
- data/lib/cxml/gross_amount.rb +9 -0
- data/lib/cxml/header.rb +29 -0
- data/lib/cxml/id_reference.rb +13 -0
- data/lib/cxml/invoice_detail_discount.rb +13 -0
- data/lib/cxml/invoice_detail_header_indicator.rb +11 -0
- data/lib/cxml/invoice_detail_header_order.rb +24 -0
- data/lib/cxml/invoice_detail_item.rb +55 -0
- data/lib/cxml/invoice_detail_item_reference.rb +17 -0
- data/lib/cxml/invoice_detail_line_indicator.rb +14 -0
- data/lib/cxml/invoice_detail_line_shipping.rb +11 -0
- data/lib/cxml/invoice_detail_line_special_handling.rb +11 -0
- data/lib/cxml/invoice_detail_order.rb +24 -0
- data/lib/cxml/invoice_detail_order_info.rb +10 -0
- data/lib/cxml/invoice_detail_order_summary.rb +32 -0
- data/lib/cxml/invoice_detail_request.rb +40 -0
- data/lib/cxml/invoice_detail_request_header.rb +54 -0
- data/lib/cxml/invoice_detail_shipping.rb +27 -0
- data/lib/cxml/invoice_detail_summary.rb +18 -0
- data/lib/cxml/invoice_id_info.rb +10 -0
- data/lib/cxml/invoice_partner.rb +10 -0
- data/lib/cxml/item_detail.rb +27 -0
- data/lib/cxml/item_id.rb +10 -0
- data/lib/cxml/item_in.rb +14 -0
- data/lib/cxml/item_out.rb +17 -0
- data/lib/cxml/master_agreement_reference.rb +9 -0
- data/lib/cxml/message.rb +13 -0
- data/lib/cxml/modification.rb +15 -0
- data/lib/cxml/modification_detail.rb +16 -0
- data/lib/cxml/modifications.rb +23 -0
- data/lib/cxml/money.rb +35 -0
- data/lib/cxml/name.rb +9 -0
- data/lib/cxml/net_amount.rb +9 -0
- data/lib/cxml/order_reference.rb +12 -0
- data/lib/cxml/order_request.rb +33 -0
- data/lib/cxml/order_request_header.rb +66 -0
- data/lib/cxml/parser.rb +37 -0
- data/lib/cxml/payment_term.rb +28 -0
- data/lib/cxml/period.rb +10 -0
- data/lib/cxml/postal_address.rb +35 -0
- data/lib/cxml/protocol.rb +57 -0
- data/lib/cxml/punch_out_order_message.rb +33 -0
- data/lib/cxml/punch_out_order_message_header.rb +20 -0
- data/lib/cxml/punch_out_setup_request.rb +31 -0
- data/lib/cxml/punch_out_setup_response.rb +9 -0
- data/lib/cxml/request.rb +21 -0
- data/lib/cxml/response.rb +20 -0
- data/lib/cxml/segment.rb +12 -0
- data/lib/cxml/sender.rb +10 -0
- data/lib/cxml/ship_to.rb +10 -0
- data/lib/cxml/shipping.rb +10 -0
- data/lib/cxml/shipping_amount.rb +10 -0
- data/lib/cxml/special_handling_amount.rb +11 -0
- data/lib/cxml/start_page.rb +13 -0
- data/lib/cxml/state.rb +9 -0
- data/lib/cxml/status.rb +27 -0
- data/lib/cxml/subtotal_amount.rb +9 -0
- data/lib/cxml/supplier_setup.rb +13 -0
- data/lib/cxml/tax.rb +42 -0
- data/lib/cxml/tax_adjustment_amount.rb +9 -0
- data/lib/cxml/tax_amount.rb +9 -0
- data/lib/cxml/tax_detail.rb +44 -0
- data/lib/cxml/tax_location.rb +9 -0
- data/lib/cxml/taxable_amount.rb +9 -0
- data/lib/cxml/to.rb +9 -0
- data/lib/cxml/total.rb +10 -0
- data/lib/cxml/total_allowances.rb +9 -0
- data/lib/cxml/total_amount_without_tax.rb +9 -0
- data/lib/cxml/total_charges.rb +9 -0
- data/lib/cxml/unit_price.rb +9 -0
- data/lib/cxml/version.rb +5 -0
- data/lib/cxml.rb +39 -0
- data/spec/credential_spec.rb +37 -0
- data/spec/cxml_spec.rb +6 -0
- data/spec/document_spec.rb +155 -0
- data/spec/fixtures/.gitkeep +0 -0
- data/spec/fixtures/envelope.xml +31 -0
- data/spec/fixtures/envelope2.xml +36 -0
- data/spec/fixtures/invoice_backed_and_unbacked_by_pos.xml +106 -0
- data/spec/fixtures/invoice_backed_by_multiple_pos.xml +97 -0
- data/spec/fixtures/invoice_taxes_at_line.xml +82 -0
- data/spec/fixtures/invoice_taxes_at_line_multiple_taxes.xml +403 -0
- data/spec/fixtures/invoice_taxes_at_total.xml +78 -0
- data/spec/fixtures/item_in.xml +11 -0
- data/spec/fixtures/order_request.cxml +121 -0
- data/spec/fixtures/punch_out_order_message_doc.xml +32 -0
- data/spec/fixtures/punch_out_setup_request_doc.xml +32 -0
- data/spec/fixtures/punch_out_setup_request_doc_coupa.xml +42 -0
- data/spec/fixtures/punch_out_setup_request_doc_with_ship_to.xml +46 -0
- data/spec/fixtures/purchase_order_request_200.xml +132 -0
- data/spec/fixtures/request_doc.xml +79 -0
- data/spec/fixtures/response_status_200.xml +11 -0
- data/spec/fixtures/response_status_400.xml +5 -0
- data/spec/header_spec.rb +54 -0
- data/spec/invoice_detail_request_spec.rb +88 -0
- data/spec/item_detail_spec.rb +44 -0
- data/spec/item_id_spec.rb +40 -0
- data/spec/item_in_spec.rb +41 -0
- data/spec/money_spec.rb +44 -0
- data/spec/parser_spec.rb +6 -0
- data/spec/protocol_spec.rb +16 -0
- data/spec/punch_out_order_message_header_spec.rb +36 -0
- data/spec/punch_out_order_message_spec.rb +43 -0
- data/spec/punch_out_setup_request_spec.rb +60 -0
- data/spec/purchase_order_request_spec.rb +40 -0
- data/spec/request_spec.rb +36 -0
- data/spec/response_spec.rb +58 -0
- data/spec/sender_spec.rb +32 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/status_spec.rb +44 -0
- data/spec/support/helpers.rb +5 -0
- metadata +317 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">
|
3
|
+
<cXML timestamp="2000-12-28T16:56:03-08:00" payloadID="12345666@10.10.83.39">
|
4
|
+
<Header>
|
5
|
+
<From>
|
6
|
+
<Credential domain="DUNS">
|
7
|
+
<Identity>123456789</Identity>
|
8
|
+
</Credential>
|
9
|
+
</From>
|
10
|
+
<To>
|
11
|
+
<Credential domain="NetworkID">
|
12
|
+
<Identity>AN01000000001</Identity>
|
13
|
+
</Credential>
|
14
|
+
</To>
|
15
|
+
<Sender>
|
16
|
+
<Credential domain="DUNS">
|
17
|
+
<Identity>123456789</Identity>
|
18
|
+
<SharedSecret>abracadabra</SharedSecret>
|
19
|
+
</Credential>
|
20
|
+
</Sender>
|
21
|
+
</Header>
|
22
|
+
<Request>
|
23
|
+
<CatalogUploadRequest operation="new">
|
24
|
+
<CatalogName xml:lang="en">Winter Prices</CatalogName>
|
25
|
+
<Description xml:lang="en">premiere-level prices</Description>
|
26
|
+
<Attachment>
|
27
|
+
<URL>cid:part2.PCO28.975@saturn.workchairs.com</URL>
|
28
|
+
</Attachment>
|
29
|
+
</CatalogUploadRequest>
|
30
|
+
</Request>
|
31
|
+
</cXML>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">
|
3
|
+
<cXML payloadID="123@sendercompany.com"
|
4
|
+
timestamp="2003-11-20T23:59:45-07:00">
|
5
|
+
<Header>
|
6
|
+
<From>
|
7
|
+
<!-- Sender -->
|
8
|
+
<Credential domain="AribaNetworkUserId">
|
9
|
+
<Identity>sender@sendercompany.com</Identity>
|
10
|
+
</Credential>
|
11
|
+
</From>
|
12
|
+
<To>
|
13
|
+
<!-- Recipient -->
|
14
|
+
<Credential domain="AribaNetworkUserId">
|
15
|
+
<Identity>recipient@recipientcompany.com</Identity>
|
16
|
+
</Credential>
|
17
|
+
</To>
|
18
|
+
<Sender>
|
19
|
+
<!-- Sender -->
|
20
|
+
<Credential domain="AribaNetworkUserId">
|
21
|
+
<Identity>sender@sendercompany.com</Identity>
|
22
|
+
<SharedSecret>abracadabra</SharedSecret>
|
23
|
+
</Credential>
|
24
|
+
<UserAgent>Sender Application 1.0</UserAgent>
|
25
|
+
</Sender>
|
26
|
+
</Header>
|
27
|
+
<Request deploymentMode="production">
|
28
|
+
<CopyRequest>
|
29
|
+
<cXMLAttachment>
|
30
|
+
<Attachment>
|
31
|
+
<URL>cid:222@sendercompany.com</URL>
|
32
|
+
</Attachment>
|
33
|
+
</cXMLAttachment>
|
34
|
+
</CopyRequest>
|
35
|
+
</Request>
|
36
|
+
</cXML>
|
@@ -0,0 +1,106 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.020/InvoiceDetail.dtd">
|
3
|
+
<cXML payloadID="20101222 190337.2999" timestamp="2010-12-22T19:03:37Z" version="1.0">
|
4
|
+
<Header>
|
5
|
+
<From>
|
6
|
+
<Credential domain="DUNS">
|
7
|
+
<!-- Supplier Domain from Supplier Invoice Credentials -->
|
8
|
+
<Identity>supplier-test</Identity>
|
9
|
+
</Credential>
|
10
|
+
</From>
|
11
|
+
<To>
|
12
|
+
<Credential domain="TESTDOMAIN">
|
13
|
+
<!-- Buyer Domain from Supplier Invoice Credentials -->
|
14
|
+
<Identity>buyer-test</Identity>
|
15
|
+
</Credential>
|
16
|
+
</To>
|
17
|
+
<Sender>
|
18
|
+
<Credential domain="TESTDOMAIN">
|
19
|
+
<!-- Buyer Domain from Supplier Invoice Credentials -->
|
20
|
+
<Identity>testidentity</Identity>
|
21
|
+
<!-- Supplier Identity from Supplier Invoice Credentials -->
|
22
|
+
<SharedSecret>TESTSECRET</SharedSecret>
|
23
|
+
<!-- Shared Secret from Supplier Invoice Credentials -->
|
24
|
+
</Credential>
|
25
|
+
<UserAgent>Coupa Out Wcf Service</UserAgent>
|
26
|
+
</Sender>
|
27
|
+
</Header>
|
28
|
+
<Request deploymentMode="production">
|
29
|
+
<InvoiceDetailRequest>
|
30
|
+
<InvoiceDetailRequestHeader invoiceDate="2010-12-16T00:00:00Z" invoiceID="INVOICENUMBER" operation="new" purpose="standard">
|
31
|
+
<!-- InvoiceID=Invoice Number -->
|
32
|
+
<InvoiceDetailHeaderIndicator />
|
33
|
+
<InvoiceDetailLineIndicator isAccountingInLine="yes" />
|
34
|
+
<PaymentTerm payInNumberOfDays="30" />
|
35
|
+
</InvoiceDetailRequestHeader>
|
36
|
+
<InvoiceDetailOrder>
|
37
|
+
<InvoiceDetailOrderInfo>
|
38
|
+
<OrderReference>
|
39
|
+
<!-- PO ID listed in PayloadID Notice different Order Reference than below contract -->
|
40
|
+
<DocumentReference payloadID="E14994" />
|
41
|
+
</OrderReference>
|
42
|
+
</InvoiceDetailOrderInfo>
|
43
|
+
<InvoiceDetailItem invoiceLineNumber="1" quantity="3">
|
44
|
+
<UnitOfMeasure>EA</UnitOfMeasure>
|
45
|
+
<UnitPrice>
|
46
|
+
<Money currency="USD">100</Money>
|
47
|
+
</UnitPrice>
|
48
|
+
<InvoiceDetailItemReference lineNumber="1">
|
49
|
+
<Description xml:lang="en">Item1</Description>
|
50
|
+
<!-- Line Item Description -->
|
51
|
+
</InvoiceDetailItemReference>
|
52
|
+
<SubtotalAmount>
|
53
|
+
<Money currency="USD">200</Money>
|
54
|
+
</SubtotalAmount>
|
55
|
+
</InvoiceDetailItem>
|
56
|
+
</InvoiceDetailOrder>
|
57
|
+
<InvoiceDetailOrder>
|
58
|
+
<InvoiceDetailOrderInfo>
|
59
|
+
<MasterAgreementReference>
|
60
|
+
<DocumentReference payloadID="l" />
|
61
|
+
<!-- PayloadID= Contract Number or leave blank if invoicing with no backing document -->
|
62
|
+
</MasterAgreementReference>
|
63
|
+
</InvoiceDetailOrderInfo>
|
64
|
+
<InvoiceDetailItem invoiceLineNumber="2" quantity="2">
|
65
|
+
<UnitOfMeasure>EA</UnitOfMeasure>
|
66
|
+
<UnitPrice>
|
67
|
+
<Money currency="USD">10</Money>
|
68
|
+
</UnitPrice>
|
69
|
+
<InvoiceDetailItemReference lineNumber="1">
|
70
|
+
<Description xml:lang="en">Non PO or Contract Line Item Description </Description>
|
71
|
+
</InvoiceDetailItemReference>
|
72
|
+
<SubtotalAmount>
|
73
|
+
<Money currency="USD">20</Money>
|
74
|
+
</SubtotalAmount>
|
75
|
+
</InvoiceDetailItem>
|
76
|
+
</InvoiceDetailOrder>
|
77
|
+
<InvoiceDetailSummary>
|
78
|
+
<SubtotalAmount>
|
79
|
+
<Money currency="USD">220.00</Money>
|
80
|
+
</SubtotalAmount>
|
81
|
+
<Tax>
|
82
|
+
<Money currency="USD">0</Money>
|
83
|
+
<Description xml:lang="en">TaxStuff</Description>
|
84
|
+
<TaxDetail category="tax" purpose="tax" taxPointDate="2010-12-16T00:00:00Z">
|
85
|
+
<TaxableAmount>
|
86
|
+
<Money currency="USD" />
|
87
|
+
</TaxableAmount>
|
88
|
+
<TaxAmount>
|
89
|
+
<Money currency="USD">0</Money>
|
90
|
+
</TaxAmount>
|
91
|
+
<TaxLocation xml:lang="en">CA</TaxLocation>
|
92
|
+
</TaxDetail>
|
93
|
+
</Tax>
|
94
|
+
<SpecialHandlingAmount>
|
95
|
+
<Money currency="USD">0</Money>
|
96
|
+
</SpecialHandlingAmount>
|
97
|
+
<ShippingAmount>
|
98
|
+
<Money currency="USD">0</Money>
|
99
|
+
</ShippingAmount>
|
100
|
+
<NetAmount>
|
101
|
+
<Money currency="USD">0</Money>
|
102
|
+
</NetAmount>
|
103
|
+
</InvoiceDetailSummary>
|
104
|
+
</InvoiceDetailRequest>
|
105
|
+
</Request>
|
106
|
+
</cXML>
|
@@ -0,0 +1,97 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.020/InvoiceDetail.dtd">
|
3
|
+
<cXML payloadID="20101222 190337.2999" timestamp="2010-12-22T19:03:37Z" version="1.0">
|
4
|
+
<Header>
|
5
|
+
<From>
|
6
|
+
<Credential domain="COUPA">
|
7
|
+
<Identity>SupplierID</Identity>
|
8
|
+
</Credential>
|
9
|
+
</From>
|
10
|
+
<To>
|
11
|
+
<Credential domain="COUPA">
|
12
|
+
<Identity>BuyerID</Identity>
|
13
|
+
</Credential>
|
14
|
+
</To>
|
15
|
+
<Sender>
|
16
|
+
<Credential domain="COUPA">
|
17
|
+
<Identity>SupplierID</Identity>
|
18
|
+
<SharedSecret>123456secret</SharedSecret>
|
19
|
+
</Credential>
|
20
|
+
<UserAgent>Coupa Integration V01</UserAgent>
|
21
|
+
</Sender>
|
22
|
+
</Header>
|
23
|
+
<Request deploymentMode="production">
|
24
|
+
<InvoiceDetailRequest>
|
25
|
+
<InvoiceDetailRequestHeader invoiceDate="2010-12-16T00:00:00Z" invoiceID="INV00001" operation="new" purpose="standard">
|
26
|
+
<InvoiceDetailHeaderIndicator />
|
27
|
+
<InvoiceDetailLineIndicator isAccountingInLine="yes" />
|
28
|
+
<PaymentTerm payInNumberOfDays="30" />
|
29
|
+
</InvoiceDetailRequestHeader>
|
30
|
+
<InvoiceDetailOrder>
|
31
|
+
<InvoiceDetailOrderInfo>
|
32
|
+
<OrderReference>
|
33
|
+
<DocumentReference payloadID="2252" />
|
34
|
+
</OrderReference>
|
35
|
+
</InvoiceDetailOrderInfo>
|
36
|
+
<InvoiceDetailItem invoiceLineNumber="1" quantity="2.00">
|
37
|
+
<UnitOfMeasure>EA</UnitOfMeasure>
|
38
|
+
<UnitPrice>
|
39
|
+
<Money currency="USD">100</Money>
|
40
|
+
</UnitPrice>
|
41
|
+
<InvoiceDetailItemReference lineNumber="1">
|
42
|
+
<Description xml:lang="en">Item1</Description>
|
43
|
+
</InvoiceDetailItemReference>
|
44
|
+
<SubtotalAmount>
|
45
|
+
<Money currency="USD">200</Money>
|
46
|
+
</SubtotalAmount>
|
47
|
+
</InvoiceDetailItem>
|
48
|
+
</InvoiceDetailOrder>
|
49
|
+
<InvoiceDetailOrder>
|
50
|
+
<InvoiceDetailOrderInfo>
|
51
|
+
<OrderReference>
|
52
|
+
<DocumentReference payloadID="2253" />
|
53
|
+
</OrderReference>
|
54
|
+
</InvoiceDetailOrderInfo>
|
55
|
+
<InvoiceDetailItem invoiceLineNumber="2" quantity="2">
|
56
|
+
<UnitOfMeasure>EA</UnitOfMeasure>
|
57
|
+
<UnitPrice>
|
58
|
+
<Money currency="USD">10</Money>
|
59
|
+
</UnitPrice>
|
60
|
+
<InvoiceDetailItemReference lineNumber="1">
|
61
|
+
<Description xml:lang="en">Test Item</Description>
|
62
|
+
</InvoiceDetailItemReference>
|
63
|
+
<SubtotalAmount>
|
64
|
+
<Money currency="USD">20</Money>
|
65
|
+
</SubtotalAmount>
|
66
|
+
</InvoiceDetailItem>
|
67
|
+
</InvoiceDetailOrder>
|
68
|
+
<InvoiceDetailSummary>
|
69
|
+
<SubtotalAmount>
|
70
|
+
<Money currency="USD">220.00</Money>
|
71
|
+
</SubtotalAmount>
|
72
|
+
<Tax>
|
73
|
+
<Money currency="USD">0</Money>
|
74
|
+
<Description xml:lang="en">TaxStuff</Description>
|
75
|
+
<TaxDetail category="tax" purpose="tax" taxPointDate="2010-12-16T00:00:00Z">
|
76
|
+
<TaxableAmount>
|
77
|
+
<Money currency="USD" />
|
78
|
+
</TaxableAmount>
|
79
|
+
<TaxAmount>
|
80
|
+
<Money currency="USD">0</Money>
|
81
|
+
</TaxAmount>
|
82
|
+
<TaxLocation xml:lang="en">CA</TaxLocation>
|
83
|
+
</TaxDetail>
|
84
|
+
</Tax>
|
85
|
+
<SpecialHandlingAmount>
|
86
|
+
<Money currency="USD">0</Money>
|
87
|
+
</SpecialHandlingAmount>
|
88
|
+
<ShippingAmount>
|
89
|
+
<Money currency="USD">0</Money>
|
90
|
+
</ShippingAmount>
|
91
|
+
<NetAmount>
|
92
|
+
<Money currency="USD">0</Money>
|
93
|
+
</NetAmount>
|
94
|
+
</InvoiceDetailSummary>
|
95
|
+
</InvoiceDetailRequest>
|
96
|
+
</Request>
|
97
|
+
</cXML>
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.020/InvoiceDetail.dtd">
|
3
|
+
<cXML version="1.0" payloadID="1240598937@devtrunk.coupahost.com" timestamp="2009-05-04T01:24:51-07:00">
|
4
|
+
<Header>
|
5
|
+
<From>
|
6
|
+
<Credential domain="DUNS">
|
7
|
+
<Identity>supplierid</Identity>
|
8
|
+
</Credential>
|
9
|
+
</From>
|
10
|
+
<To>
|
11
|
+
<Credential domain="DUNS">
|
12
|
+
<Identity>buyerid</Identity>
|
13
|
+
</Credential>
|
14
|
+
</To>
|
15
|
+
<Sender>
|
16
|
+
<Credential domain="DUNS">
|
17
|
+
<Identity>supplierid</Identity>
|
18
|
+
<SharedSecret>secret</SharedSecret>
|
19
|
+
</Credential>
|
20
|
+
<UserAgent>Your Very Own Agent 1.23</UserAgent>
|
21
|
+
</Sender>
|
22
|
+
</Header>
|
23
|
+
<Request deploymentMode="production">
|
24
|
+
<InvoiceDetailRequest>
|
25
|
+
<InvoiceDetailRequestHeader invoiceID="3495" purpose="standard" operation="new" invoiceDate="2009-05-01T11:45:51-07:00">
|
26
|
+
<InvoiceDetailHeaderIndicator />
|
27
|
+
<InvoiceDetailLineIndicator isTaxInLine="yes" isAccountingInLine="yes" />
|
28
|
+
<PaymentTerm payInNumberOfDays="30" />
|
29
|
+
</InvoiceDetailRequestHeader>
|
30
|
+
<InvoiceDetailOrder>
|
31
|
+
<InvoiceDetailOrderInfo>
|
32
|
+
<OrderReference>
|
33
|
+
<DocumentReference payloadID="123" />
|
34
|
+
</OrderReference>
|
35
|
+
</InvoiceDetailOrderInfo>
|
36
|
+
<InvoiceDetailItem invoiceLineNumber="1" quantity="1">
|
37
|
+
<UnitOfMeasure>EA</UnitOfMeasure>
|
38
|
+
<UnitPrice>
|
39
|
+
<Money currency="USD">365</Money>
|
40
|
+
</UnitPrice>
|
41
|
+
<InvoiceDetailItemReference lineNumber="1">
|
42
|
+
<Description xml:lang="en">NEW 1 NINTENDO WII GAME CONSOLE + WII FIT BUNDLE +GAMES</Description>
|
43
|
+
</InvoiceDetailItemReference>
|
44
|
+
<SubtotalAmount>
|
45
|
+
<Money currency="USD">365</Money>
|
46
|
+
</SubtotalAmount>
|
47
|
+
<Tax>
|
48
|
+
<Money currency="USD">8</Money>
|
49
|
+
<Description xml:lang="en">total tax</Description>
|
50
|
+
<TaxDetail purpose="tax" category="CA" percentageRate="8.25" taxPointDate="2009-04-24T11:45:51-07:00">
|
51
|
+
<TaxableAmount>
|
52
|
+
<Money currency="USD">365</Money>
|
53
|
+
</TaxableAmount>
|
54
|
+
<TaxAmount>
|
55
|
+
<Money currency="USD">8</Money>
|
56
|
+
</TaxAmount>
|
57
|
+
<TaxLocation xml:lang="en">CA</TaxLocation>
|
58
|
+
</TaxDetail>
|
59
|
+
</Tax>
|
60
|
+
</InvoiceDetailItem>
|
61
|
+
</InvoiceDetailOrder>
|
62
|
+
<InvoiceDetailSummary>
|
63
|
+
<SubtotalAmount>
|
64
|
+
<Money currency="USD">365</Money>
|
65
|
+
</SubtotalAmount>
|
66
|
+
<Tax>
|
67
|
+
<Money currency="USD">8</Money>
|
68
|
+
<Description xml:lang="en">total tax</Description>
|
69
|
+
</Tax>
|
70
|
+
<SpecialHandlingAmount>
|
71
|
+
<Money currency="USD">5</Money>
|
72
|
+
</SpecialHandlingAmount>
|
73
|
+
<ShippingAmount>
|
74
|
+
<Money currency="USD">30</Money>
|
75
|
+
</ShippingAmount>
|
76
|
+
<NetAmount>
|
77
|
+
<Money currency="USD" />
|
78
|
+
</NetAmount>
|
79
|
+
</InvoiceDetailSummary>
|
80
|
+
</InvoiceDetailRequest>
|
81
|
+
</Request>
|
82
|
+
</cXML>
|