gatikwe_api 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2d78e2b008dcee01019fa4389ebef0573d2a29e
4
- data.tar.gz: 49e073ad9e455ea5212ef4a757cc7039b8f55372
3
+ metadata.gz: 62620e8e0f889c6006afd036b65238e5f496b0ea
4
+ data.tar.gz: 5bc7cb8232891f6f431f2cb403f42daee3185b77
5
5
  SHA512:
6
- metadata.gz: 7888fa10046b532dad199614d162b17432e556b8f003f5bc38c314cd506eb7303e9459dfa64a001c51041e3dfeff8d8f23eb46c3b380493e81c26f814c15f70a
7
- data.tar.gz: fa3d2a74da60036e4df6e0fd8c9f24478b986f67736fef72d1ffce3181c338af8c29754a189e2b2ab66dba76d9f067f95b7d30a67578a2ac670f3e02faa1b446
6
+ metadata.gz: d12ada2d7c09fb08d862bc04fa251391fb05483939d17a2ab4830c020593a62a9ce842f34cb5882854c4067983902930e37339c310cf69c487e5dd84b1a11639
7
+ data.tar.gz: d8f84385a48fe585a93e09305ab4f6c01614ba9e5356a1972cd1103f2851aff63c3416b8d464779bdae13b1d82bf46753db6e95c5dc3256de18b4e2f435396c5
@@ -4,11 +4,11 @@ require "httparty"
4
4
 
5
5
  module GatikweApi
6
6
  class Gati
7
- def self.create_gati_config(cust_ship_details, credentails)
7
+ def self.create_gati_config(cust_ship_details, gati_credentials)
8
8
  xm = Builder::XmlMarkup.new;false
9
9
  xm.gati{
10
10
  xm.pickuprequest(cust_ship_details["pickuprequest"])
11
- xm.custcode(credentails["custcode"])
11
+ xm.custcode(gati_credentials["custcode"])
12
12
  xm.details{
13
13
  xm.req{
14
14
  xm.DOCKET_NO(cust_ship_details["docket_no"])
@@ -17,7 +17,7 @@ module GatikweApi
17
17
  xm.DECL_CARGO_VAL(cust_ship_details["decl_cargo_val"])
18
18
  xm.ACTUAL_WT(cust_ship_details["actual_wt"])
19
19
  xm.CHARGED_WT(cust_ship_details["charged_wt"])
20
- xm.SHIPPER_CODE(credentails["custcode"])
20
+ xm.SHIPPER_CODE(gati_credentials["custcode"])
21
21
  xm.ORDER_NO(cust_ship_details["order_number"])
22
22
  xm.COD_AMT(cust_ship_details["cod_amt"])
23
23
  xm.COD_IN_FAVOUR_OF(cust_ship_details["cod_in_favour_of"])
@@ -40,7 +40,7 @@ module GatikweApi
40
40
  }
41
41
  }
42
42
  options = {:body => xm.target!, :headers => {'Content-Type' => 'application/xml'}}
43
- response_data = HTTParty.post(credentails["url"], options)
43
+ response_data = HTTParty.post(gati_credentials["url"], options)
44
44
  end
45
45
 
46
46
  def self.track_gati_shipments(url, awb_number, tracking_code)
@@ -1,3 +1,3 @@
1
1
  module GatikweApi
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gatikwe_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - indrajeet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-04 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler