-
Notifications
You must be signed in to change notification settings - Fork 2
/
test_data.rb
57 lines (57 loc) · 1.47 KB
/
test_data.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
require 'date'
Delhivery.configure(api_key: '--api-key-here--', production: false)
dsh = {
"dispatch_date": DateTime.now,
"dispatch_id": 'CDId#146',
"pickup_location":{
"add": "113 Barthal, Dundahera",
"city": "New Delhi",
"country": "India",
"name": "FCDEL1",
"phone": "xxxxxxxxxx",
"pin": "110074"
},
"shipments": [
{
"waybill": "",
"client": "XYZ Online",
"name": "John Kapoor",
"order": "3002199824",
"products_desc": "Sony PS3 Super Slim(Black)",
"order_date": DateTime.now.iso8601,
"payment_mode": "Prepaid",
"total_amount": 21841.0,
"cod_amount": 0.0,
"add": "M25, Nelson Marg, GBP City Phase 1",
"city": "Gurgaon",
"state": "Haryana",
"country": "India",
"phone": "xxxxxxxxxx",
"pin": "122002",
"return_add": "",
"return_city": "",
"return_country": "",
"return_name": "",
"return_phone": "",
"return_pin": "",
"return_state": "",
"supplier": "Kangaroo (India) Pvt Ltd",
"extra_parameters": "",
"shipment_width": "",
"shipment_height": "",
"weight": "650.0 gm",
"quantity": 1,
"seller_inv": "invoice number",
"seller_inv_date": DateTime.now.iso8601,
"seller_name": "seller name",
"seller_add": "seller add",
"seller_cst": "seller cst",
"seller_tin": "seller tin",
"consignee_tin": "consignee tin",
"commodity_value": "commodity value",
"tax_value": "tax value",
"sales_tax_form_ack_no":"",
"category_of_goods":""
}
]
}