api_sabeq_ps_v1 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/api_sabeq_ps_v1/sabeq_helpers.rb +5 -5
- data/lib/api_sabeq_ps_v1/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61ba3e60bf472a21b4f9553b761977de8f33642ba25e1d75e249713e14597d83
|
4
|
+
data.tar.gz: bc5150a70c3bcec03556db4653ee6a946dff22619aa4cfdb24a96de1e34d3d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08fc2237c4e1e3778783009701f50a468bc12bf2f55a838d852da2e6efc04ad3c9601c8c4ee7408f32a105eb34c09e0e97d1120a80f57392bf4e9150a85566fa'
|
7
|
+
data.tar.gz: 23055cd9f6a37f644a97c953841c483944a243712ec0ede1aefad86eaa00d28b3a27ac7ebe2149cc8bd355d303fee4d5452a66138c1acc8fefc7074ab8e715b5
|
@@ -10,7 +10,7 @@ module ApiSabeqPsV1
|
|
10
10
|
# parameters: login_token
|
11
11
|
# return: true, auth_token in case of success
|
12
12
|
# false, errors in case of failure, errors contain code and message
|
13
|
-
def
|
13
|
+
def sabeq_api_v1_authorize(login_token)
|
14
14
|
auth_link = SABEQ_URL + "/api/v1/auth"
|
15
15
|
auth_json = { login_token: login_token }
|
16
16
|
json_response = make_post_request(auth_link, auth_json)
|
@@ -24,7 +24,7 @@ module ApiSabeqPsV1
|
|
24
24
|
end
|
25
25
|
|
26
26
|
# Verify the business profile
|
27
|
-
def
|
27
|
+
def sabeq_api_v1_verify_profile(auth_token, profile_id, api_key)
|
28
28
|
auth_link = SABEQ_URL + "/api/v1/verify_business"
|
29
29
|
auth_json = { auth_token: auth_token, profile_id: profile_id, api_key: api_key }
|
30
30
|
json_response = make_post_request(auth_link, auth_json)
|
@@ -37,21 +37,21 @@ module ApiSabeqPsV1
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
def
|
40
|
+
def sabeq_api_v1_query_parcel(verification_token, parcel_number)
|
41
41
|
auth_link = SABEQ_URL + "/api/v1/parcels/#{parcel_number}"
|
42
42
|
auth_json = { verification_token: verification_token }
|
43
43
|
json_response = make_get_request(auth_link, auth_json)
|
44
44
|
return json_response
|
45
45
|
end
|
46
46
|
|
47
|
-
def
|
47
|
+
def sabeq_api_v1_get_areas(verification_token)
|
48
48
|
auth_link = SABEQ_URL + "/api/v1/parcels/get_areas"
|
49
49
|
auth_json = { verification_token: verification_token }
|
50
50
|
json_response = make_get_request(auth_link, auth_json)
|
51
51
|
return json_response
|
52
52
|
end
|
53
53
|
|
54
|
-
def
|
54
|
+
def sabeq_api_v1_create_parcel(verification_token, name, phone1, phone2, content,
|
55
55
|
payment_amount, area_id, address, delivery_notes)
|
56
56
|
auth_link = SABEQ_URL + "/api/v1/parcels"
|
57
57
|
auth_json = { verification_token: verification_token,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_sabeq_ps_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ShaimaKaraki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Its a gem for sabeq.ps API helper functionalities
|
14
14
|
email:
|