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 +4 -4
- data/README.md +49 -13
- data/lib/{zuora.rb → zuora_api.rb} +2 -2
- data/lib/{zuora → zuora_api}/login.rb +1 -1
- data/lib/zuora_api/version.rb +3 -0
- data/{zuora.gemspec → zuora_api.gemspec} +2 -2
- metadata +6 -6
- data/lib/zuora/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c126e3aca7524dba61eb8350dbeb41d8289505cd
|
4
|
+
data.tar.gz: a33ecb7480c1a4e31a068d175c0124b2c7c2a102
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5bd274bb979f7e91ed49620b071c670d68f9828c2c09d1d07807db6dd09f871136f9b5180144c45494671bf19095927340d0db419e7f84a672191d648cf6fc8
|
7
|
+
data.tar.gz: 711d9d7ae4b52cdab75a875919f3ff6ce4c966c8bf8541d83e70be51bf71b5c442e9464caf9cc0a134a99a180dad3d0cc77dfd18dac920c8a0915f321de82f7b
|
data/README.md
CHANGED
@@ -1,17 +1,13 @@
|
|
1
|
-
#
|
1
|
+
# Zuora_api
|
2
2
|
|
3
|
-
|
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 '
|
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
|
-
|
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
|
-
|
60
|
+
zuora_client.getDataSourceExport(query)
|
28
61
|
|
29
|
-
|
62
|
+
### Describe Call
|
30
63
|
|
31
|
-
|
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
|
-
|
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
|
-
|
70
|
+
### Journal Run
|
36
71
|
|
72
|
+
zuora_client.createJournalRun(call)
|
@@ -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 '
|
4
|
+
require 'zuora_api/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "zuora_api"
|
8
|
-
spec.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.
|
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-
|
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/
|
120
|
-
- lib/
|
121
|
-
- lib/
|
122
|
-
-
|
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