sheepla 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: 4597dff36b1d30196bf8e169c0d110482107a858
4
- data.tar.gz: 01b692c7be5dbd5f83aa75b087fcac68239262d6
3
+ metadata.gz: 415964e696284396c5bda42856c12c85cb27c63a
4
+ data.tar.gz: 17fa503cc4a902c9d9a118b8f7822d2ae5c0ef98
5
5
  SHA512:
6
- metadata.gz: a587d4ac59f6fada969bb69f5cd8a965a3d5efb68057c04c34233c3a6c6cb32805f274fb4b0a60c09fca7ae11d1cf31660a95eb958b0766005415f81bcb7da83
7
- data.tar.gz: 6ed0ac59730350a9cd9604be369517a4534aae10a41624af83bb16001a79dafe2e577ad089a751d7d1e6d5c65a5bf904a29a7e4e99ae243278e55f2c5bda747c
6
+ metadata.gz: 4eb822b3fab82d2b84514ff8693a0f360f6e6f91154186e9fdc635300759ee19f8ae483314c2282a5c90e6c39cad50b1ff4f7b8e38f9513ffb6fa0dc447e9637
7
+ data.tar.gz: b819cad1f97bb11601b62b72c1dcfc1d97aa779d4874774259e8045dde9ffa791afe6ab9da941d41caa76a54cbbdb1e3b86cbb2ac07e922784501d120803afaa
@@ -1,3 +1,3 @@
1
1
  module Sheepla
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/sheepla.rb CHANGED
@@ -85,7 +85,7 @@ module Sheepla
85
85
  address = order.delete('deliveryAddress')
86
86
  items = order.delete('orderItems')
87
87
  options = order.delete('deliveryOptions')
88
-
88
+
89
89
  body_wrapper('createOrderRequest') do |xml|
90
90
  xml.orders do
91
91
  xml.order do
@@ -158,7 +158,7 @@ module Sheepla
158
158
 
159
159
  def validate_order(params)
160
160
  params['orderValue'] &&
161
- params['orderCurrency'] &&
161
+ params['orderValueCurrency'] &&
162
162
  params['externalDeliveryTypeId'] &&
163
163
  params['externalDeliveryTypeName'] &&
164
164
  params['externalPaymentTypeId'] &&
data/test/sheepla_test.rb CHANGED
@@ -4,7 +4,7 @@ class SheeplaTest < ActiveSupport::TestCase
4
4
  test "data" do
5
5
  sample_data = {
6
6
  order_value: 299,
7
- order_currency: "PLN",
7
+ order_value_currency: "PLN",
8
8
  external_delivery_type_id: "07",
9
9
  external_delivery_type_name: "DHL AH",
10
10
  external_payment_type_id: "pp",
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Jan Adamczyk