api_sabeq_ps_v1 0.1.7 → 0.1.9

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: d00d0fa04c17706120ae1686ce26f7bf44735d8497a6c4794c439d550e11c102
4
- data.tar.gz: af6106993f890b0934c3307e5b833df91d1fdb56ab38530fef9b64a1336888a4
3
+ metadata.gz: c9106819e7c5742b348213a03626ce362d9ee633ae5203f148f247b1ec4cf172
4
+ data.tar.gz: 15af1dba18a989563914772d3a73543291948ee60ea86046b97b4dee36bf5909
5
5
  SHA512:
6
- metadata.gz: 1f4a52313a6981ec81d45f427e13d8124bf82474db79d48cce40a05633df8fff1d316c7c963ab98b1cd1d5fed56280276926e4ab6e1017a944e2ea5186b055a5
7
- data.tar.gz: e69345ad14d79a1195dda95183e266b2a0e5a2333c18b4586a8d16a1af7715cb97351d64e27ac3af55af551207aa528aeb9047a1813841f335000a3edc6b7a3a
6
+ metadata.gz: 3d431effbd380d085f9560075e070bd6039a3f94cb7425af7db45b8223756c60817f9ced492e81fcf80a202936f237f73929df4734dfc6e8b3c1d67d2b8e0c1d
7
+ data.tar.gz: 9fbe5abadb55895c59f43d42e0b8a0078444efe4483d72686b69e7ac2f50559731f2e69c3d8bf02577ea1b31f19262ba54f1a282e11946c24c1e23e785fb7c8d
@@ -81,6 +81,23 @@ module ApiSabeqPsV1
81
81
  return json_response
82
82
  end
83
83
 
84
+ def sabeq_api_v1_2_create_parcel(verification_token, name, phone1, phone2, content,
85
+ payment_amount, area_id, street_id, address, location_url,
86
+ service_type, delivery_notes, special_notes)
87
+ auth_link = SABEQ_URL + "/api/v1/parcels"
88
+ auth_json = { verification_token: verification_token,
89
+ name: name, phone1: phone1, phone2: phone2,
90
+ content: content, payment_amount: payment_amount,
91
+ area_id: area_id, street_id: street_id,
92
+ address: address, location_url: location_url,
93
+ service_type: service_type,
94
+ delivery_notes: delivery_notes,
95
+ special_notes: special_notes }
96
+ json_response = make_post_request(auth_link, auth_json)
97
+
98
+ return json_response
99
+ end
100
+
84
101
  def sabeq_api_v1_cancel_parcel(verification_token, parcel_number)
85
102
  auth_link = SABEQ_URL + "/api/v1/parcels/#{parcel_number}/cancel_parcel"
86
103
  auth_json = { verification_token: verification_token }
@@ -1,3 +1,3 @@
1
1
  module ApiSabeqPsV1
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.9"
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.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShaimaKaraki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-07 00:00:00.000000000 Z
11
+ date: 2024-10-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Its a gem for sabeq.ps API helper functionalities
14
14
  email: