sheepla 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sheepla/version.rb +1 -1
- data/lib/sheepla.rb +25 -25
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adc004c7b1bde315485666b92ef79577b8b313d0
|
4
|
+
data.tar.gz: 809d05708268e75f0ca503062f470ac21c6ff41a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a70dc9ccd8893f45dd96bc9c69ae30643dd7adec85d6063e3b0582780545496af65ad74021d9256562bd2fb1973c5fd711c8f05f4b3c406fbf1b9f45916e1ab
|
7
|
+
data.tar.gz: bc27edac3e7666fa2a9f05d1960db506c22b047de2f84d6383f8e62402ba5780f2e308978ada676bc8b0732cecb1f398243ef2a1820e95158801d5e990c529cf
|
data/lib/sheepla/version.rb
CHANGED
data/lib/sheepla.rb
CHANGED
@@ -152,32 +152,32 @@ module Sheepla
|
|
152
152
|
end
|
153
153
|
|
154
154
|
def validate_order(params)
|
155
|
-
params['
|
156
|
-
params['
|
157
|
-
params['
|
158
|
-
params['
|
159
|
-
params['
|
160
|
-
params['
|
161
|
-
params['
|
162
|
-
params['
|
163
|
-
params['
|
164
|
-
params['
|
165
|
-
params['
|
166
|
-
params['
|
155
|
+
params['orderValue'] &&
|
156
|
+
params['orderCurrency'] &&
|
157
|
+
params['externalDeliveryTypeId'] &&
|
158
|
+
params['externalDeliveryTypeName'] &&
|
159
|
+
params['externalPaymentTypeId'] &&
|
160
|
+
params['externalPaymentTypeName'] &&
|
161
|
+
params['externalCarrierId'] &&
|
162
|
+
params['externalCarrierName'] &&
|
163
|
+
params['externalCountryId'] &&
|
164
|
+
params['externalBuyerId'] &&
|
165
|
+
params['externalOrderId'] &&
|
166
|
+
params['shipmentTemplate'] &&
|
167
167
|
params['comments'] &&
|
168
|
-
params['
|
169
|
-
params['
|
170
|
-
params['
|
171
|
-
params['
|
172
|
-
params['
|
173
|
-
params['
|
174
|
-
params['
|
175
|
-
params['
|
176
|
-
params['
|
177
|
-
params['
|
178
|
-
params['
|
179
|
-
params['
|
180
|
-
params['
|
168
|
+
params['createdOn'] &&
|
169
|
+
params['deliveryPrice'] &&
|
170
|
+
params['deliveryPriceCurrency'] &&
|
171
|
+
params['deliveryAddress'] &&
|
172
|
+
params['deliveryAddress']['street'] &&
|
173
|
+
params['deliveryAddress']['zipCode'] &&
|
174
|
+
params['deliveryAddress']['city'] &&
|
175
|
+
params['deliveryAddress']['countryAlpha2Code'] &&
|
176
|
+
params['deliveryAddress']['firstName'] &&
|
177
|
+
params['deliveryAddress']['lastName'] &&
|
178
|
+
params['deliveryAddress']['companyName'] &&
|
179
|
+
params['deliveryAddress']['phone'] &&
|
180
|
+
params['deliveryAddress']['email']
|
181
181
|
end
|
182
182
|
end
|
183
183
|
end
|