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 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