zuora_api 0.2.4.5 → 0.2.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1233e68ad5b7dcee9bebc1f42de004fa937b54e
4
- data.tar.gz: 7fd1dbbe7b2635c9a9f53dd69743da9e0e9d5b91
3
+ metadata.gz: c126e3aca7524dba61eb8350dbeb41d8289505cd
4
+ data.tar.gz: a33ecb7480c1a4e31a068d175c0124b2c7c2a102
5
5
  SHA512:
6
- metadata.gz: 8e04f8ef2c13f150fa1844f3f909bc1a4ec22a686aa5006d6c45e3b2836288d2df77c40ce71abce7577ac7d56105c09eb545290708583e39a9a400e98f4cb163
7
- data.tar.gz: bc0a5da7735d14dac5ee880e7c474bd729b7a639de9095f4334ebf81b34d0d8e49559339405a74eb62650e7a51b5b64372143346a2370c36ab9ea61572ed6c1f
6
+ metadata.gz: c5bd274bb979f7e91ed49620b071c670d68f9828c2c09d1d07807db6dd09f871136f9b5180144c45494671bf19095927340d0db419e7f84a672191d648cf6fc8
7
+ data.tar.gz: 711d9d7ae4b52cdab75a875919f3ff6ce4c966c8bf8541d83e70be51bf71b5c442e9464caf9cc0a134a99a180dad3d0cc77dfd18dac920c8a0915f321de82f7b
data/README.md CHANGED
@@ -1,17 +1,13 @@
1
- # Zuora
1
+ # Zuora_api
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/zuora`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ This gem provides an easy integration with Zuora
6
4
 
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
10
-
11
8
  ```ruby
12
- gem 'zuora'
9
+ gem 'zuora_api'
13
10
  ```
14
-
15
11
  And then execute:
16
12
 
17
13
  $ bundle
@@ -22,15 +18,55 @@ Or install it yourself as:
22
18
 
23
19
  ## Usage
24
20
 
25
- TODO: Write usage instructions here
21
+ In order to make API calls a Zuora Login object must be created by running
22
+
23
+ zuora_client = Zuora::Login.new("username", "password", "endpoint")
24
+
25
+ ### Available Fields
26
+ - username
27
+ - password
28
+ - url
29
+ - wsdl_number
30
+ - status
31
+ - current_session
32
+ - environment
33
+ - status
34
+ - errors
35
+ - current_error
36
+ - user_info
37
+ - tenant_id
38
+ - tenant_name
39
+
40
+ ### Rest Call
41
+
42
+ zuora_client.rest_call(method: :get, body: {}, url: rest_endpoint("catalog/products?pageSize=4") , **keyword_args)
43
+
44
+ ### SOAP Call
45
+
46
+ soap_call(ns1: 'ns1', ns2: 'ns2', batch_size: nil, single_transaction: false, **keyword_args)
47
+ Example:
48
+
49
+ output_xml, input_xml = zuora_client.soap_call() do |xml, args|
50
+ xml['ns1'].query do
51
+ xml['ns1'].queryString "select id, name from account"
52
+ end
53
+ end
54
+ ### Query
55
+
56
+ zuora_client.query(query)
57
+
58
+ ### Data export
26
59
 
27
- ## Development
60
+ zuora_client.getDataSourceExport(query)
28
61
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
62
+ ### Describe Call
30
63
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
64
+ response = zuora_client.describe_call()
65
+ This returns all available objects from the describe call as a hash. This response can be accessed by using `response["Account"]` to retrieve all related data about that object.
32
66
 
33
- ## Contributing
67
+ response = zuora_client.describe_call("Account")
68
+ This returns all information and fields related to that object model as a hash.
34
69
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/zuora.
70
+ ### Journal Run
36
71
 
72
+ zuora_client.createJournalRun(call)
@@ -1,6 +1,6 @@
1
1
  require 'rails'
2
2
 
3
- require "zuora/login"
4
- module Zuora
3
+ require "zuora_api/login"
4
+ module ZuoraAPI
5
5
  # Your code goes here...
6
6
  end
@@ -1,6 +1,6 @@
1
1
  require "HTTParty"
2
2
  require "Nokogiri"
3
- module Zuora
3
+ module ZuoraAPI
4
4
  class Login
5
5
  ENVIRONMENTS = [SANDBOX = 'Sandbox', PRODUCTION = 'Production', PREFORMANCE = 'Preformance', SERVICES = 'Services', UNKNOWN = 'Unknown' ]
6
6
 
@@ -0,0 +1,3 @@
1
+ module ZuoraAPI
2
+ VERSION = "0.2.4.6"
3
+ end
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'zuora/version'
4
+ require 'zuora_api/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "zuora_api"
8
- spec.version = Zuora::VERSION
8
+ spec.version = ZuoraAPI::VERSION
9
9
  spec.authors = ["Zuora Strategic Solutions Group"]
10
10
  spec.email = ["connect@zuora.com"]
11
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.5
4
+ version: 0.2.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-14 00:00:00.000000000 Z
11
+ date: 2016-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,10 +116,10 @@ files:
116
116
  - Rakefile
117
117
  - bin/console
118
118
  - bin/setup
119
- - lib/zuora.rb
120
- - lib/zuora/login.rb
121
- - lib/zuora/version.rb
122
- - zuora.gemspec
119
+ - lib/zuora_api.rb
120
+ - lib/zuora_api/login.rb
121
+ - lib/zuora_api/version.rb
122
+ - zuora_api.gemspec
123
123
  homepage: https://connect.zuora.com
124
124
  licenses: []
125
125
  metadata: {}
data/lib/zuora/version.rb DELETED
@@ -1,3 +0,0 @@
1
- module Zuora
2
- VERSION = "0.2.4.5"
3
- end