From 4ae4c69944abd9f48a52298e4a3793b56f556424 Mon Sep 17 00:00:00 2001 From: Maksim Slepukhov Date: Fri, 6 May 2016 16:56:09 +0400 Subject: [PATCH 1/2] Add handling fee field ecwid_reader/writer --- lib/ecwid_api/order.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ecwid_api/order.rb b/lib/ecwid_api/order.rb index 288fe3c..c348802 100644 --- a/lib/ecwid_api/order.rb +++ b/lib/ecwid_api/order.rb @@ -13,7 +13,7 @@ class Order < Entity :shippingPerson, :shippingOption, :additionalInfo, :paymentParams, :discountInfo, :trackingNumber, :paymentMessage, :extTransactionId, :affiliateId, - :creditCardStatus + :creditCardStatus, :handlingFee ecwid_writer :subtotal, :total, :email, :paymentMethod, :paymentModule, @@ -25,7 +25,7 @@ class Order < Entity :items, :billingPerson, :shippingPerson, :shippingOption, :additionalInfo, :paymentParams, :discountInfo, :trackingNumber, :paymentMessage, :extTransactionId, - :affiliateId, :creditCardStatus + :affiliateId, :creditCardStatus, :handlingFee VALID_FULFILLMENT_STATUSES = %w( AWAITING_PROCESSING From 794e1d705c7dc51792bbcb2d95d3a575423dff86 Mon Sep 17 00:00:00 2001 From: Maksim Slepukhov Date: Sun, 11 Dec 2016 23:55:39 +0400 Subject: [PATCH 2/2] Add self url root to person entity --- lib/ecwid_api/person.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ecwid_api/person.rb b/lib/ecwid_api/person.rb index c719cde..c908d54 100644 --- a/lib/ecwid_api/person.rb +++ b/lib/ecwid_api/person.rb @@ -1,5 +1,7 @@ module EcwidApi class Person < Entity + self.url_root = "persons" + ecwid_reader :name, :companyName, :street, :city, :countryCode, :countryName, :postalCode, :stateOrProvinceCode, :stateOrProvinceName, :phone