sheepla 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sheepla/version.rb +1 -1
  3. data/lib/sheepla.rb +25 -25
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 380c4cc89e9d22be4a5d055503045169a04175f7
4
- data.tar.gz: ec1d4790e0657c7160928dd03a260a22377d9b65
3
+ metadata.gz: adc004c7b1bde315485666b92ef79577b8b313d0
4
+ data.tar.gz: 809d05708268e75f0ca503062f470ac21c6ff41a
5
5
  SHA512:
6
- metadata.gz: 669000e3b01bd50812e1e95397fe8d2192a71185425607a5e71ed0ca6d88764e66e69f5fcd3bcf1309bf0d894847366fc18c6982d719e56980cf2cc2c0537054
7
- data.tar.gz: 8666a7f481ed27e7a2a09f7c03c839e029a556e5fc0f5ed03966dbae10a757018b73c38ead5008a0f93a8338079994e568c5762c7e77cbfb51a6a666428b1805
6
+ metadata.gz: 6a70dc9ccd8893f45dd96bc9c69ae30643dd7adec85d6063e3b0582780545496af65ad74021d9256562bd2fb1973c5fd711c8f05f4b3c406fbf1b9f45916e1ab
7
+ data.tar.gz: bc27edac3e7666fa2a9f05d1960db506c22b047de2f84d6383f8e62402ba5780f2e308978ada676bc8b0732cecb1f398243ef2a1820e95158801d5e990c529cf
@@ -1,3 +1,3 @@
1
1
  module Sheepla
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/sheepla.rb CHANGED
@@ -152,32 +152,32 @@ module Sheepla
152
152
  end
153
153
 
154
154
  def validate_order(params)
155
- params['order_value'] &&
156
- params['order_currency'] &&
157
- params['external_delivery_type_id'] &&
158
- params['external_delivery_type_name'] &&
159
- params['external_payment_type_id'] &&
160
- params['external_payment_type_name'] &&
161
- params['external_carrier_id'] &&
162
- params['external_carrier_name'] &&
163
- params['external_country_id'] &&
164
- params['external_buyer_id'] &&
165
- params['external_order_id'] &&
166
- params['shipment_template'] &&
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['created_on'] &&
169
- params['delivery_price'] &&
170
- params['delivery_price_currency'] &&
171
- params['delivery_address'] &&
172
- params['delivery_address']['street'] &&
173
- params['delivery_address']['zip_code'] &&
174
- params['delivery_address']['city'] &&
175
- params['delivery_address']['country_alpha2_code'] &&
176
- params['delivery_address']['first_name'] &&
177
- params['delivery_address']['last_name'] &&
178
- params['delivery_address']['company_name'] &&
179
- params['delivery_address']['phone'] &&
180
- params['delivery_address']['email']
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sheepla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Jan Adamczyk