Sha256: d50b7400c6c09d2ece824cd7086b2667b7fee2067ae4677d657ace4de9d7729d
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
# Ruby-Ecomm-Client Easy access to the e-commerce web services via Ruby ## Installation Add this line to your application's Gemfile: gem 'ruby-ecomm-client' And then execute: $ bundle Or install it yourself as: $ gem install ruby-ecomm-client ## Usage ```ruby shopper_id = '???' resource_type = 'outright' resource_id = '???' #aka account_uid client = RubyEcommClient::Client.new(shopper_id, resource_type, resource_id) client.express_checkout? => false client.account_info => { :product_id => '2701', :tree_id => '1735', :is_past_due => false, :is_free => false } source_tree_id = 0 client.transitions(source_tree_id) => [ { :node_name => 'Outright - Monthly Plus', :product_id => '2697', :tree_id => '1734', :is_free => 'False' } ] target_tree_id = ??? client.request_change(target_tree_id) => { :used_express_checkout => true, :request_result => 2 } ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-ecomm-client-1.1.0 | README.md |