Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Add handling fee field ecwid_reader/writer #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ecwid_api/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lib/ecwid_api/person.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down