bws 0.2.1.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +5 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +36 -0
- data/LICENSE +20 -0
- data/README.rdoc +116 -0
- data/Rakefile +56 -0
- data/VERSION +1 -0
- data/bws.gemspec +133 -0
- data/lib/bws.rb +13 -0
- data/lib/bws/acknowledge_order.rb +11 -0
- data/lib/bws/active_isbn_report.rb +27 -0
- data/lib/bws/checkout.rb +30 -0
- data/lib/bws/client.rb +807 -0
- data/lib/bws/create_shipment.rb +11 -0
- data/lib/bws/fillable_orders.rb +15 -0
- data/lib/bws/inventory.rb +58 -0
- data/lib/bws/order.rb +10 -0
- data/lib/bws/order_events.rb +28 -0
- data/lib/bws/orders.rb +14 -0
- data/lib/bws/reject_line_item.rb +11 -0
- data/lib/bws/response.rb +8 -0
- data/lib/bws/unacknowledged_orders.rb +23 -0
- data/test/fixtures/acknowledge_success.xml +11 -0
- data/test/fixtures/active_isbn_report_with_one_isbn_request_body.xml +13 -0
- data/test/fixtures/active_isbn_report_with_one_isbn_success.xml +38 -0
- data/test/fixtures/active_isbn_report_with_two_isbns_request_body.xml +16 -0
- data/test/fixtures/active_isbn_report_with_two_isbns_success.xml +57 -0
- data/test/fixtures/cancel_line_item_success.xml +11 -0
- data/test/fixtures/create_order_request_body.xml +70 -0
- data/test/fixtures/create_order_response_success.xml +14 -0
- data/test/fixtures/create_shipment_success.xml +11 -0
- data/test/fixtures/fillable_success.xml +127 -0
- data/test/fixtures/inventory_by_isbn_success.xml +36 -0
- data/test/fixtures/inventory_success.xml +54 -0
- data/test/fixtures/order_events_by_order_success.xml +68 -0
- data/test/fixtures/order_events_success.xml +65 -0
- data/test/fixtures/order_success.xml +37 -0
- data/test/fixtures/orders_show_success.xml +37 -0
- data/test/fixtures/price_order_request_body.xml +46 -0
- data/test/fixtures/price_order_response_success.xml +63 -0
- data/test/fixtures/single_post_create_order_request_body.xml +62 -0
- data/test/fixtures/single_post_create_order_response_success.xml +13 -0
- data/test/fixtures/unacknowledged_success.xml +122 -0
- data/test/fixtures/unacknowledged_success_0_orders.xml +12 -0
- data/test/fixtures/unacknowledged_success_1_order.xml +37 -0
- data/test/fixtures/validate_credit_card_request_body.xml +39 -0
- data/test/fixtures/validate_credit_card_response_success.xml +14 -0
- data/test/helper.rb +23 -0
- data/test/integration/test_bws_active_isbn_report.rb +28 -0
- data/test/integration/test_bws_retrieve_inventory.rb +31 -0
- data/test/unit/test_bws_acknowledge_order.rb +24 -0
- data/test/unit/test_bws_active_isbn_report.rb +45 -0
- data/test/unit/test_bws_checkout.rb +117 -0
- data/test/unit/test_bws_client.rb +370 -0
- data/test/unit/test_bws_create_shipment.rb +26 -0
- data/test/unit/test_bws_fillable_orders.rb +41 -0
- data/test/unit/test_bws_order.rb +25 -0
- data/test/unit/test_bws_reject_line_item.rb +26 -0
- data/test/unit/test_bws_response.rb +7 -0
- data/test/unit/test_bws_retrieve_inventory.rb +42 -0
- data/test/unit/test_bws_retrieve_inventory_by_isbn.rb +25 -0
- data/test/unit/test_bws_retrieve_order_events.rb +42 -0
- data/test/unit/test_bws_retrieve_order_events_by_order.rb +37 -0
- data/test/unit/test_bws_unacknowledged_orders.rb +74 -0
- data/test/unit/test_retrieve_orders_show.rb +27 -0
- metadata +293 -0
@@ -0,0 +1,127 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<envelope>
|
3
|
+
<header>
|
4
|
+
<response_id>1281476866_69</response_id>
|
5
|
+
</header>
|
6
|
+
<body>
|
7
|
+
<distributor_orders_fillable>
|
8
|
+
<distributor_orders total_pages="1" page="1">
|
9
|
+
<distributor_order>
|
10
|
+
<public_id>BR-A07367256</public_id>
|
11
|
+
|
12
|
+
<offered_at>2010-08-10T17:37:20Z</offered_at>
|
13
|
+
<ordered_at>2010-08-10T17:37:18Z</ordered_at>
|
14
|
+
<acknowledged_at>2010-08-10T07:00:00Z</acknowledged_at>
|
15
|
+
<shipping_method>Ground</shipping_method>
|
16
|
+
<shipping_first_name>Roger</shipping_first_name>
|
17
|
+
<shipping_last_name>Smith</shipping_last_name>
|
18
|
+
|
19
|
+
<shipping_street_address>123 Test St.</shipping_street_address>
|
20
|
+
<shipping_city>Santa Clara</shipping_city>
|
21
|
+
<shipping_state>CA</shipping_state>
|
22
|
+
<shipping_zip>95054</shipping_zip>
|
23
|
+
<distributor_line_items>
|
24
|
+
<distributor_line_item>
|
25
|
+
<public_id>3D7BD4EB9</public_id>
|
26
|
+
|
27
|
+
<title>Understanding Nuclear Engineering Theory and Practice for Dummies</title>
|
28
|
+
<status>accepted</status>
|
29
|
+
<inventory_type>BookRenterInventory</inventory_type>
|
30
|
+
<inventory_sku>X0001234</inventory_sku>
|
31
|
+
<inventory_isbn>9780077377489</inventory_isbn>
|
32
|
+
</distributor_line_item>
|
33
|
+
</distributor_line_items>
|
34
|
+
|
35
|
+
</distributor_order>
|
36
|
+
<distributor_order>
|
37
|
+
<public_id>BR-A04221177</public_id>
|
38
|
+
<offered_at>2010-08-10T17:37:24Z</offered_at>
|
39
|
+
<ordered_at>2010-08-10T17:37:21Z</ordered_at>
|
40
|
+
<acknowledged_at>2010-08-10T07:00:00Z</acknowledged_at>
|
41
|
+
<shipping_method>Ground</shipping_method>
|
42
|
+
|
43
|
+
<shipping_first_name>Roger</shipping_first_name>
|
44
|
+
<shipping_last_name>Smith</shipping_last_name>
|
45
|
+
<shipping_street_address>123 Test St.</shipping_street_address>
|
46
|
+
<shipping_city>Santa Clara</shipping_city>
|
47
|
+
<shipping_state>CA</shipping_state>
|
48
|
+
<shipping_zip>95054</shipping_zip>
|
49
|
+
|
50
|
+
<distributor_line_items>
|
51
|
+
<distributor_line_item>
|
52
|
+
<public_id>16CB5B7ED</public_id>
|
53
|
+
<title>Understanding Animal and Veterinary Sciences Through the Ages for Students</title>
|
54
|
+
<status>accepted</status>
|
55
|
+
<inventory_type>BookRenterInventory</inventory_type>
|
56
|
+
<inventory_sku>X0001234</inventory_sku>
|
57
|
+
|
58
|
+
<inventory_isbn>9780077377489</inventory_isbn>
|
59
|
+
</distributor_line_item>
|
60
|
+
</distributor_line_items>
|
61
|
+
</distributor_order>
|
62
|
+
<distributor_order>
|
63
|
+
<public_id>BR-A06991107</public_id>
|
64
|
+
<offered_at>2010-08-10T17:37:28Z</offered_at>
|
65
|
+
<ordered_at>2010-08-10T17:37:25Z</ordered_at>
|
66
|
+
|
67
|
+
<acknowledged_at>2010-08-10T07:00:00Z</acknowledged_at>
|
68
|
+
<shipping_method>Ground</shipping_method>
|
69
|
+
<shipping_first_name>Roger</shipping_first_name>
|
70
|
+
<shipping_last_name>Smith</shipping_last_name>
|
71
|
+
<shipping_street_address>123 Test St.</shipping_street_address>
|
72
|
+
<shipping_city>Santa Clara</shipping_city>
|
73
|
+
|
74
|
+
<shipping_state>CA</shipping_state>
|
75
|
+
<shipping_zip>95054</shipping_zip>
|
76
|
+
<distributor_line_items>
|
77
|
+
<distributor_line_item>
|
78
|
+
<public_id>035A5F938</public_id>
|
79
|
+
<title>Peace Studies</title>
|
80
|
+
<status>accepted</status>
|
81
|
+
|
82
|
+
<inventory_type>BookRenterInventory</inventory_type>
|
83
|
+
<inventory_sku>X0001234</inventory_sku>
|
84
|
+
<inventory_isbn>9780077377489</inventory_isbn>
|
85
|
+
</distributor_line_item>
|
86
|
+
</distributor_line_items>
|
87
|
+
</distributor_order>
|
88
|
+
<distributor_order>
|
89
|
+
<public_id>BR-A06307142</public_id>
|
90
|
+
|
91
|
+
<offered_at>2010-08-10T17:37:34Z</offered_at>
|
92
|
+
<ordered_at>2010-08-10T17:37:30Z</ordered_at>
|
93
|
+
<acknowledged_at>2010-08-10T07:00:00Z</acknowledged_at>
|
94
|
+
<shipping_method>Ground</shipping_method>
|
95
|
+
<shipping_first_name>Roger</shipping_first_name>
|
96
|
+
<shipping_last_name>Smith</shipping_last_name>
|
97
|
+
|
98
|
+
<shipping_street_address>123 Test St.</shipping_street_address>
|
99
|
+
<shipping_city>Santa Clara</shipping_city>
|
100
|
+
<shipping_state>CA</shipping_state>
|
101
|
+
<shipping_zip>95054</shipping_zip>
|
102
|
+
<distributor_line_items>
|
103
|
+
<distributor_line_item>
|
104
|
+
<public_id>CB0D67214</public_id>
|
105
|
+
|
106
|
+
<title>International Scientific Method Through the Ages for Dummies</title>
|
107
|
+
<status>accepted</status>
|
108
|
+
<inventory_type>BookRenterInventory</inventory_type>
|
109
|
+
<inventory_sku>X0001234</inventory_sku>
|
110
|
+
<inventory_isbn>9780077377489</inventory_isbn>
|
111
|
+
</distributor_line_item>
|
112
|
+
<distributor_line_item>
|
113
|
+
|
114
|
+
<public_id>689873B4B</public_id>
|
115
|
+
<title>Understanding Computer Engineering Theory and Practice</title>
|
116
|
+
<status>accepted</status>
|
117
|
+
<inventory_type>BookRenterInventory</inventory_type>
|
118
|
+
<inventory_sku>X0001234</inventory_sku>
|
119
|
+
<inventory_isbn>9780077377489</inventory_isbn>
|
120
|
+
|
121
|
+
</distributor_line_item>
|
122
|
+
</distributor_line_items>
|
123
|
+
</distributor_order>
|
124
|
+
</distributor_orders>
|
125
|
+
</distributor_orders_fillable>
|
126
|
+
</body>
|
127
|
+
</envelope>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<envelope>
|
3
|
+
<header>
|
4
|
+
<response_id>1281477072_95</response_id>
|
5
|
+
</header>
|
6
|
+
<body>
|
7
|
+
<inventory_books_show>
|
8
|
+
<inventory_book>
|
9
|
+
<inventory_isbn>9780007138210</inventory_isbn>
|
10
|
+
<rental_periods>
|
11
|
+
<rental_period>
|
12
|
+
<name>125</name>
|
13
|
+
<price_cents>6911</price_cents>
|
14
|
+
</rental_period>
|
15
|
+
<rental_period>
|
16
|
+
<name>90</name>
|
17
|
+
<price_cents>6317</price_cents>
|
18
|
+
</rental_period>
|
19
|
+
<rental_period>
|
20
|
+
<name>60</name>
|
21
|
+
<price_cents>5723</price_cents>
|
22
|
+
</rental_period>
|
23
|
+
<rental_period>
|
24
|
+
<name>45</name>
|
25
|
+
<price_cents>5525</price_cents>
|
26
|
+
</rental_period>
|
27
|
+
<rental_period>
|
28
|
+
<name>30</name>
|
29
|
+
<price_cents>5327</price_cents>
|
30
|
+
</rental_period>
|
31
|
+
</rental_periods>
|
32
|
+
</inventory_book>
|
33
|
+
</inventory_books_show>
|
34
|
+
</body>
|
35
|
+
</envelope>
|
36
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<envelope>
|
3
|
+
<header>
|
4
|
+
<response_id>1281477072_95</response_id>
|
5
|
+
</header>
|
6
|
+
<body>
|
7
|
+
<inventory_books_index>
|
8
|
+
<pagination>
|
9
|
+
<page>1</page>
|
10
|
+
<total_items>2</total_items>
|
11
|
+
<items_per_page>25</items_per_page>
|
12
|
+
</pagination>
|
13
|
+
<delta_range_start_date>2011-02-15T00:00:00Z</delta_range_start_date>
|
14
|
+
<delta_range_end_date>2011-02-15T23:59:59Z</delta_range_end_date>
|
15
|
+
<inventory_books>
|
16
|
+
<inventory_book>
|
17
|
+
<inventory_isbn>9780006552192</inventory_isbn>
|
18
|
+
<buyout_price>7995</buyout_price>
|
19
|
+
<quantity>12</quantity>
|
20
|
+
<rental_periods>
|
21
|
+
<rental_period>
|
22
|
+
<name>125</name>
|
23
|
+
<price_cents>5234</price_cents>
|
24
|
+
</rental_period>
|
25
|
+
<rental_period>
|
26
|
+
<name>90</name>
|
27
|
+
<price_cents>4916</price_cents>
|
28
|
+
</rental_period>
|
29
|
+
<rental_period>
|
30
|
+
<name>60</name>
|
31
|
+
<price_cents>4598</price_cents>
|
32
|
+
</rental_period>
|
33
|
+
<rental_period>
|
34
|
+
<name>45</name>
|
35
|
+
<price_cents>4492</price_cents>
|
36
|
+
</rental_period>
|
37
|
+
<rental_period>
|
38
|
+
<name>30</name>
|
39
|
+
<price_cents>4386</price_cents>
|
40
|
+
</rental_period>
|
41
|
+
<rental_period>
|
42
|
+
<name>buy</name>
|
43
|
+
<price_cents>7799</price_cents>
|
44
|
+
</rental_period>
|
45
|
+
</rental_periods>
|
46
|
+
</inventory_book>
|
47
|
+
<inventory_book>
|
48
|
+
<inventory_isbn>9780007138210</inventory_isbn>
|
49
|
+
<quantity>0</quantity>
|
50
|
+
</inventory_book>
|
51
|
+
</inventory_books>
|
52
|
+
</inventory_books_index>
|
53
|
+
</body>
|
54
|
+
</envelope>
|
@@ -0,0 +1,68 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<envelope>
|
3
|
+
<header>
|
4
|
+
<response_id>1281477072_95</response_id>
|
5
|
+
</header>
|
6
|
+
<body>
|
7
|
+
<order_events_show>
|
8
|
+
<order_events>
|
9
|
+
<order_event>
|
10
|
+
<public_id>BR-A07824046</public_id>
|
11
|
+
<distributor_identifier>BOOKS-INC-O1234</distributor_identifier>
|
12
|
+
<type>order_created</type>
|
13
|
+
<timestamp>2010-01-15T00:51:09Z</timestamp>
|
14
|
+
</order_event>
|
15
|
+
<order_event>
|
16
|
+
<public_id>BR-A07824046</public_id>
|
17
|
+
<distributor_identifier>BOOKS-INC-O1234</distributor_identifier>
|
18
|
+
<type>order_charged</type>
|
19
|
+
<timestamp>2010-01-15T00:56:24Z</timestamp>
|
20
|
+
</order_event>
|
21
|
+
<order_event>
|
22
|
+
<type>line_item_shipment_to_customer_created</type>
|
23
|
+
<timestamp>2010-01-15T05:07:43Z</timestamp>
|
24
|
+
<public_id>BR-A07824046</public_id>
|
25
|
+
<distributor_identifier>BOOKS-INC-O1234</distributor_identifier>
|
26
|
+
<line_item>
|
27
|
+
<public_id>08892E18C</public_id>
|
28
|
+
<distributor_identifier>BOOKS-INC-LI-12909</distributor_identifier>
|
29
|
+
</line_item>
|
30
|
+
</order_event>
|
31
|
+
<order_event>
|
32
|
+
<type>line_item_extended</type>
|
33
|
+
<timestamp>2010-07-13T00:16:24Z</timestamp>
|
34
|
+
<public_id>BR-A07824046</public_id>
|
35
|
+
<distributor_identifier>BOOKS-INC-O1234</distributor_identifier>
|
36
|
+
<line_item>
|
37
|
+
<public_id>08892E18C</public_id>
|
38
|
+
<distributor_identifier>BOOKS-INC-LI-12909</distributor_identifier>
|
39
|
+
</line_item>
|
40
|
+
<extension>
|
41
|
+
<days>10</days>
|
42
|
+
<due_date>2010-05-15</due_date>
|
43
|
+
</extension>
|
44
|
+
</order_event>
|
45
|
+
<order_event>
|
46
|
+
<type>line_item_shipment_to_receiving_facility_created</type>
|
47
|
+
<timestamp>2010-07-23T00:22:47Z</timestamp>
|
48
|
+
<public_id>BR-A07824046</public_id>
|
49
|
+
<distributor_identifier>BOOKS-INC-O1234</distributor_identifier>
|
50
|
+
<line_item>
|
51
|
+
<public_id>08892E18C</public_id>
|
52
|
+
<distributor_identifier>BOOKS-INC-LI-12909</distributor_identifier>
|
53
|
+
</line_item>
|
54
|
+
</order_event>
|
55
|
+
<order_event>
|
56
|
+
<type>line_item_checked_in</type>
|
57
|
+
<timestamp>2010-07-26T07:11:52Z</timestamp>
|
58
|
+
<public_id>BR-A07824046</public_id>
|
59
|
+
<distributor_identifier>BOOKS-INC-O1234</distributor_identifier>
|
60
|
+
<line_item>
|
61
|
+
<public_id>08892E18C</public_id>
|
62
|
+
<distributor_identifier>BOOKS-INC-LI-12909</distributor_identifier>
|
63
|
+
</line_item>
|
64
|
+
</order_event>
|
65
|
+
</order_events>
|
66
|
+
</order_events_show>
|
67
|
+
</body>
|
68
|
+
</envelope>
|
@@ -0,0 +1,65 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<envelope>
|
3
|
+
<header>
|
4
|
+
<response_id>1281477072_95</response_id>
|
5
|
+
</header>
|
6
|
+
<body>
|
7
|
+
<order_events_index>
|
8
|
+
<pagination>
|
9
|
+
<page>1</page>
|
10
|
+
<total_items>6</total_items>
|
11
|
+
<items_per_page>25</items_per_page>
|
12
|
+
</pagination>
|
13
|
+
<order_events>
|
14
|
+
<order_event>
|
15
|
+
<public_id>BR-A07824046</public_id>
|
16
|
+
<distributor_identifier>BOOKS-INC-O1234</distributor_identifier>
|
17
|
+
<type>order_created</type>
|
18
|
+
<timestamp>2010-01-15T00:51:09Z</timestamp>
|
19
|
+
</order_event>
|
20
|
+
<order_event>
|
21
|
+
<public_id>BR-A07824046</public_id>
|
22
|
+
<distributor_identifier>BOOKS-INC-O1234</distributor_identifier>
|
23
|
+
<type>order_charged</type>
|
24
|
+
<timestamp>2010-01-15T00:56:24Z</timestamp>
|
25
|
+
</order_event>
|
26
|
+
<order_event>
|
27
|
+
<public_id>BR-A07224CD1</public_id>
|
28
|
+
<distributor_identifier>BOOKS-INC-O1108</distributor_identifier>
|
29
|
+
<type>line_item_extended</type>
|
30
|
+
<timestamp>2010-01-15T01:06:11Z</timestamp>
|
31
|
+
<extension>
|
32
|
+
<days>15</days>
|
33
|
+
<due_date>2010-02-27</due_date>
|
34
|
+
</extension>
|
35
|
+
</order_event>
|
36
|
+
<order_event>
|
37
|
+
<public_id>BR-A07824046</public_id>
|
38
|
+
<distributor_identifier>BOOKS-INC-O1234</distributor_identifier>
|
39
|
+
<type>line_item_shipment_to_customer_created</type>
|
40
|
+
<timestamp>2010-01-15T01:44:58Z</timestamp>
|
41
|
+
<line_item>
|
42
|
+
<public_id>08892E18C</public_id>
|
43
|
+
<distributor_identifier>BOOKS-INC-LI-12909</distributor_identifier>
|
44
|
+
</line_item>
|
45
|
+
</order_event>
|
46
|
+
<order_event>
|
47
|
+
<public_id>BR-E072C3147</public_id>
|
48
|
+
<distributor_identifier>BOOKS-INC-O1238</distributor_identifier>
|
49
|
+
<type>order_created</type>
|
50
|
+
<timestamp>2010-01-15T04:03:36Z</timestamp>
|
51
|
+
</order_event>
|
52
|
+
<order_event>
|
53
|
+
<public_id>BR-A136922EB</public_id>
|
54
|
+
<distributor_identifier>BOOKS-INC-O1021</distributor_identifier>
|
55
|
+
<type>line_item_checked_in</type>
|
56
|
+
<timestamp>2010-01-15T14:11:48Z</timestamp>
|
57
|
+
<line_item>
|
58
|
+
<public_id>284BEE18A</public_id>
|
59
|
+
<distributor_identifier>BOOKS-INC-LI-10713</distributor_identifier>
|
60
|
+
</line_item>
|
61
|
+
</order_event>
|
62
|
+
</order_events>
|
63
|
+
</order_events_index>
|
64
|
+
</body>
|
65
|
+
</envelope>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<envelope>
|
3
|
+
<header>
|
4
|
+
<response_id>1281477072_95</response_id>
|
5
|
+
</header>
|
6
|
+
<body>
|
7
|
+
<distributor_orders_show>
|
8
|
+
<distributor_order>
|
9
|
+
<public_id>BR-A07367256</public_id>
|
10
|
+
|
11
|
+
<offered_at>2010-08-10T17:37:20Z</offered_at>
|
12
|
+
<ordered_at>2010-08-10T17:37:18Z</ordered_at>
|
13
|
+
<acknowledged_at>2010-08-10T07:00:00Z</acknowledged_at>
|
14
|
+
<shipping_method>Ground</shipping_method>
|
15
|
+
<shipping_first_name>Roger</shipping_first_name>
|
16
|
+
<shipping_last_name>Smith</shipping_last_name>
|
17
|
+
|
18
|
+
<shipping_street_address>123 Test St.</shipping_street_address>
|
19
|
+
<shipping_city>Santa Clara</shipping_city>
|
20
|
+
<shipping_state>CA</shipping_state>
|
21
|
+
<shipping_zip>95054</shipping_zip>
|
22
|
+
<distributor_line_items>
|
23
|
+
<distributor_line_item>
|
24
|
+
<public_id>3D7BD4EB9</public_id>
|
25
|
+
|
26
|
+
<title>Understanding Nuclear Engineering Theory and Practice for Dummies</title>
|
27
|
+
<status>accepted</status>
|
28
|
+
<inventory_type>BookRenterInventory</inventory_type>
|
29
|
+
<inventory_sku>X0001234</inventory_sku>
|
30
|
+
<inventory_isbn>9780077377489</inventory_isbn>
|
31
|
+
</distributor_line_item>
|
32
|
+
</distributor_line_items>
|
33
|
+
|
34
|
+
</distributor_order>
|
35
|
+
</distributor_orders_show>
|
36
|
+
</body>
|
37
|
+
</envelope>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<envelope>
|
3
|
+
<header>
|
4
|
+
<response_id>1281477072_95</response_id>
|
5
|
+
</header>
|
6
|
+
<body>
|
7
|
+
<orders_show>
|
8
|
+
<order>
|
9
|
+
<public_id>BR-3A6892312</public_id>
|
10
|
+
<external_order_id>BOOK-INC-ORDER-1234567</external_order_id>
|
11
|
+
<line_items>
|
12
|
+
<line_item>
|
13
|
+
<external_line_item_id>BOOK-INC-LINE-ITEM-123001</external_line_item_id>
|
14
|
+
<isbn>9780006552192</isbn>
|
15
|
+
<rental_period>90</rental_period>
|
16
|
+
<rental_due_date>2010-08-20T00:00:00Z</rental_due_date>
|
17
|
+
<status>Shipped</status>
|
18
|
+
<shipping_detail>
|
19
|
+
<shipped_at>2010-05-18T09:04:06Z</shipped_at>
|
20
|
+
<carrier>UPS</carrier>
|
21
|
+
<shipping_method>Ground</shipping_method>
|
22
|
+
<tracking_number>1Z12390128398123</tracking_number>
|
23
|
+
<estimated_delivery_date>2010-05-20T09:04:06Z</estimated_delivery_date>
|
24
|
+
</shipping_detail>
|
25
|
+
</line_item>
|
26
|
+
<line_item>
|
27
|
+
<external_line_item_id>BOOK-INC-LINE-ITEM-123001</external_line_item_id>
|
28
|
+
<isbn>9780006552192</isbn>
|
29
|
+
<rental_period>125</rental_period>
|
30
|
+
<rental_due_date>2010-10-15T00:00:00Z</rental_due_date>
|
31
|
+
<status>Processing</status>
|
32
|
+
</line_item>
|
33
|
+
</line_items>
|
34
|
+
</order>
|
35
|
+
</orders_show>
|
36
|
+
</body>
|
37
|
+
</envelope>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<checkout_price_order>
|
2
|
+
<customer>
|
3
|
+
<email>customer@example.com</email>
|
4
|
+
<external_user_id>3396936669</external_user_id>
|
5
|
+
<mobile_phone_number>123-456-7890</mobile_phone_number>
|
6
|
+
</customer>
|
7
|
+
<product_list>
|
8
|
+
<segment>SEGMENT</segment>
|
9
|
+
<products>
|
10
|
+
<product>
|
11
|
+
<product_id>9780006552192</product_id>
|
12
|
+
<product_type>book</product_type>
|
13
|
+
<quantity>2</quantity>
|
14
|
+
<rental_period>90</rental_period>
|
15
|
+
<rental_due_date>2011-10-12T23:59:59Z</rental_due_date>
|
16
|
+
</product>
|
17
|
+
<product>
|
18
|
+
<product_id>9780007138210</product_id>
|
19
|
+
<product_type>book</product_type>
|
20
|
+
<quantity>1</quantity>
|
21
|
+
<rental_period>90</rental_period>
|
22
|
+
<rental_due_date>2011-10-12T23:59:59Z</rental_due_date>
|
23
|
+
</product>
|
24
|
+
</products>
|
25
|
+
</product_list>
|
26
|
+
<billing_address>
|
27
|
+
<first_name>Magnus</first_name>
|
28
|
+
<last_name>Cassin</last_name>
|
29
|
+
<street_address>61041 FarrellPoint</street_address>
|
30
|
+
<street_address_2></street_address_2>
|
31
|
+
<city>Port Vitaview</city>
|
32
|
+
<state>AK</state>
|
33
|
+
<zip>71876-6002</zip>
|
34
|
+
<country>USA</country>
|
35
|
+
</billing_address>
|
36
|
+
<shipping_address>
|
37
|
+
<first_name>Magnus</first_name>
|
38
|
+
<last_name>Cassin</last_name>
|
39
|
+
<street_address>61041 FarrellPoint</street_address>
|
40
|
+
<street_address_2></street_address_2>
|
41
|
+
<city>Port Vitaview</city>
|
42
|
+
<state>AK</state>
|
43
|
+
<zip>71876-6002</zip>
|
44
|
+
<country>USA</country>
|
45
|
+
</shipping_address>
|
46
|
+
</checkout_price_order>
|