api_sabeq_ps_v1 0.1.6 → 0.1.8

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: 7a457d19a5cf7927c53d607fb3448c1a733a27497a4cbf89f3858492d301cb38
4
- data.tar.gz: 447a74271013db6b63b1682f246fedd0da43ec6598c07f4673c4ee96b089905b
3
+ metadata.gz: a5218f54b67971db4b62536d3df77dc1448df5bd75c0ecd22cb02608bf4d3625
4
+ data.tar.gz: 13cb51dc48d6b40bd10a61d12429a983582403494b4244edac105e373147d217
5
5
  SHA512:
6
- metadata.gz: 37bee15c0d1c21d9074c3d46c0ba2972bab2019feb7a3b0a3c5c701ecfad3350e07967232baa795313cc892e9b70c27a50f5dacab32639f36b3700497ef3f8d0
7
- data.tar.gz: 639c40343917248a937d63a22b8bc7b5e8e826a0a40e58b054ddbc098d9d788ec847b9acc0c92c956bb8bab0be2a5487bc4567ead5a9dbe1d9e75769c2983248
6
+ metadata.gz: eca2174e512f9a8101ceaeca152e0884501daf082a0a6ad833de81420f1c09381031e5d0d4a0a83f675f1b313065e003576f6d53c3134f646dae9c1ef710f8cb
7
+ data.tar.gz: d8c84df5c32e6136b0386cd78d75a138d1bbc334e7500c47c5a674873ab1d00ec2916a80caa762268818b494de119aa0d331f02499a727f73e24911a78b86bde
@@ -52,12 +52,31 @@ module ApiSabeqPsV1
52
52
  end
53
53
 
54
54
  def sabeq_api_v1_create_parcel(verification_token, name, phone1, phone2, content,
55
- payment_amount, area_id, address, delivery_notes, special_notes)
55
+ payment_amount, area_id, address, location_url,
56
+ delivery_notes, special_notes)
56
57
  auth_link = SABEQ_URL + "/api/v1/parcels"
57
58
  auth_json = { verification_token: verification_token,
58
59
  name: name, phone1: phone1, phone2: phone2,
59
60
  content: content, payment_amount: payment_amount,
60
- area_id: area_id, address: address,
61
+ area_id: area_id,
62
+ address: address, location_url: location_url,
63
+ delivery_notes: delivery_notes,
64
+ special_notes: special_notes }
65
+ json_response = make_post_request(auth_link, auth_json)
66
+
67
+ return json_response
68
+ end
69
+
70
+ def sabeq_api_v1_1_create_parcel(verification_token, name, phone1, phone2, content,
71
+ payment_amount, area_id, street_id, address, location_url,
72
+ service_type, delivery_notes, special_notes)
73
+ auth_link = SABEQ_URL + "/api/v1/parcels"
74
+ auth_json = { verification_token: verification_token,
75
+ name: name, phone1: phone1, phone2: phone2,
76
+ content: content, payment_amount: payment_amount,
77
+ area_id: area_id, street_id: street_id,
78
+ address: address, location_url: location_url,
79
+ service_type: service_type,
61
80
  delivery_notes: delivery_notes,
62
81
  special_notes: special_notes }
63
82
  json_response = make_post_request(auth_link, auth_json)
@@ -1,3 +1,3 @@
1
1
  module ApiSabeqPsV1
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.8"
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.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShaimaKaraki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-13 00:00:00.000000000 Z
11
+ date: 2024-10-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Its a gem for sabeq.ps API helper functionalities
14
14
  email:
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  requirements: []
43
- rubygems_version: 3.3.14
43
+ rubygems_version: 3.3.7
44
44
  signing_key:
45
45
  specification_version: 4
46
46
  summary: gem for sabeq.ps API helper functionalities