action_smser 2.2.0 → 3.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2350764320f6928baacedb55468d17ec9b7a8a4a
4
- data.tar.gz: 1c8121397346aeacf82842955aa1ae3b53fd460a
3
+ metadata.gz: 403d072821666426ee99e95505eb5fde76e6d379
4
+ data.tar.gz: 9c1103fb3fba5714de9e0a96b4a370d5f07c6743
5
5
  SHA512:
6
- metadata.gz: 19a8c025c2de53b900bc678236e5a12f16a150e9df4b5e189015094f7176872bfd564b7702e636887ca67aa924b5d6d6c277a960a6d11023149d1f277b840624
7
- data.tar.gz: d86fdce835d1d978c3642a280653f172faa39c95ef8dd746a608e9a3eed5ccc154918f9c7bf6533867cf369da0b90110617beaae6c6da2b1e38ff89a7530490c
6
+ metadata.gz: 84856f1011de1c6740307cd53247c0261208a6725829c26480f9462d8a185962d7aebd8cc6a6286e694aaaf3253df7a5398f20009e525de2403a01a343354b03
7
+ data.tar.gz: 1e11f7071961f3a3ff3955f8c713fb2fed5bbcb187448d9cdb7b0b500f4237095f0db2e9b5b5e362de4f91127e2fb5821b374bf2af51af4eaaafdea93f44713b
data/README.md CHANGED
@@ -136,7 +136,8 @@ class ActionSmserConfigExample
136
136
  end
137
137
 
138
138
  # This has to return array of hashes. In hash msg_id is the key and other params are updated to db
139
- def self.process_delivery_report(params)
139
+ def self.process_delivery_report(request)
140
+ params = request.params
140
141
  processable_array = []
141
142
  if params["DeliveryReport"] && params["DeliveryReport"]["message"]
142
143
  reports = params["DeliveryReport"]["message"]
@@ -11,7 +11,7 @@ module ActionSmser
11
11
 
12
12
  ActionSmser::Logger.info("Gateway_commit found parser for gateway: #{params['gateway']}")
13
13
 
14
- dr_var_array = ActionSmser.delivery_options[:gateway_commit][params['gateway']].send(:process_delivery_report, params)
14
+ dr_var_array = ActionSmser.delivery_options[:gateway_commit][params['gateway']].send(:process_delivery_report, request)
15
15
  dr_array = []
16
16
 
17
17
  if !dr_var_array.blank?
@@ -53,7 +53,8 @@ module ActionSmser::DeliveryMethods
53
53
 
54
54
  # Callback message status handling
55
55
  # This has to return array of hashes. In hash msg_id is the key and other params are updated to db
56
- def self.process_delivery_report(params)
56
+ def self.process_delivery_report(request)
57
+ params = request.params
57
58
  processable_array = []
58
59
  if msg_id = params["messageId"]
59
60
  processable_array << {'msg_id' => params["messageId"], 'status' => params['status']}
@@ -1,3 +1,3 @@
1
1
  module ActionSmser
2
- VERSION = "2.2.0"
2
+ VERSION = "3.0.0"
3
3
  end