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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a6a440f7e8db92a7361e1eea6b52773608e286243ef3eb57662ee8eacfa936c
4
- data.tar.gz: 251bdc290a918c11f08e0e1c7fa26257e6b3e7379d31892f784369978603aef9
3
+ metadata.gz: 61ba3e60bf472a21b4f9553b761977de8f33642ba25e1d75e249713e14597d83
4
+ data.tar.gz: bc5150a70c3bcec03556db4653ee6a946dff22619aa4cfdb24a96de1e34d3d8f
5
5
  SHA512:
6
- metadata.gz: 726dec151f9a79496e540ecb2a95903cf8cf03aebed56cf1a43a5c0af59b9dbf154a44bf373131a863cdff5af34cbb1ce818c1b09d2a0d158442bf3c28e6cb66
7
- data.tar.gz: ca0808f59b919cb7b8c2ac28ab85ffebee39c0fbd8ef2a11f98ef151b91e4b2b4e7c4d19a0b393df937b2ef65131169c6d5608cfdbc9817f3ba3441c34988622
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 authorize(login_token)
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 verify_profile(auth_token, profile_id, api_key)
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 query_parcel(verification_token, parcel_number)
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 get_areas(verification_token)
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 create_parcel(verification_token, name, phone1, phone2, content,
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,
@@ -1,3 +1,3 @@
1
1
  module ApiSabeqPsV1
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-07-31 00:00:00.000000000 Z
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: