zuora_rest_client 1.0.1
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 +7 -0
- data/.gitignore +53 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE +18 -0
- data/README.md +56 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/fixtures/vcr_cassettes/zuora/create_account_object_success.yml +59 -0
- data/fixtures/vcr_cassettes/zuora/create_account_success.yml +66 -0
- data/fixtures/vcr_cassettes/zuora/delete_account_object_success.yml +223 -0
- data/fixtures/vcr_cassettes/zuora/describe_account.yml +577 -0
- data/fixtures/vcr_cassettes/zuora/describe_account_related_objects.yml +577 -0
- data/fixtures/vcr_cassettes/zuora/describe_all_account_fields.yml +577 -0
- data/fixtures/vcr_cassettes/zuora/describe_all_zobjects.yml +176 -0
- data/fixtures/vcr_cassettes/zuora/describe_exportable_account_fields.yml +577 -0
- data/fixtures/vcr_cassettes/zuora/describe_non_exportable_account_fields.yml +577 -0
- data/fixtures/vcr_cassettes/zuora/describe_non_updateable_account_fields.yml +577 -0
- data/fixtures/vcr_cassettes/zuora/describe_updateable_account_fields.yml +577 -0
- data/fixtures/vcr_cassettes/zuora/get_account_object_success.yml +60 -0
- data/fixtures/vcr_cassettes/zuora/get_account_success.yml +149 -0
- data/fixtures/vcr_cassettes/zuora/get_account_summary_success.yml +141 -0
- data/fixtures/vcr_cassettes/zuora/update_account_object_success.yml +115 -0
- data/fixtures/vcr_cassettes/zuora/update_account_success.yml +207 -0
- data/lib/zuora_rest_client/client.rb +1917 -0
- data/lib/zuora_rest_client/connection.rb +189 -0
- data/lib/zuora_rest_client/result.rb +8 -0
- data/lib/zuora_rest_client/version.rb +3 -0
- data/lib/zuora_rest_client.rb +7 -0
- data/zuora_rest_client.gemspec +45 -0
- metadata +383 -0
@@ -0,0 +1,176 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://rest.zuora.com/v1/describe/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.4.1 (2017-03-22))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip,deflate
|
16
|
+
Date:
|
17
|
+
- Fri, 09 Jun 2017 17:38:30 GMT
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
Apiaccesskeyid:
|
21
|
+
- "{ZUORA_USERNAME}"
|
22
|
+
Apisecretaccesskey:
|
23
|
+
- "{ZUORA_PASSWORD}"
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Content-Type:
|
30
|
+
- text/xml;charset=UTF-8
|
31
|
+
Content-Language:
|
32
|
+
- en-US
|
33
|
+
Server:
|
34
|
+
- Zuora App
|
35
|
+
X-Request-Id:
|
36
|
+
- b61beccb-bb3d-4a0e-8cb9-37405e26b434
|
37
|
+
X-Kong-Upstream-Latency:
|
38
|
+
- '31'
|
39
|
+
X-Kong-Proxy-Latency:
|
40
|
+
- '0'
|
41
|
+
Vary:
|
42
|
+
- Accept-Encoding
|
43
|
+
Content-Encoding:
|
44
|
+
- gzip
|
45
|
+
Expires:
|
46
|
+
- Fri, 09 Jun 2017 17:38:30 GMT
|
47
|
+
Cache-Control:
|
48
|
+
- max-age=0, no-cache, no-store
|
49
|
+
Pragma:
|
50
|
+
- no-cache
|
51
|
+
Date:
|
52
|
+
- Fri, 09 Jun 2017 17:38:30 GMT
|
53
|
+
Content-Length:
|
54
|
+
- '1066'
|
55
|
+
Connection:
|
56
|
+
- keep-alive
|
57
|
+
Set-Cookie:
|
58
|
+
- JSESSIONID={PROTECTED}; Path=/rest/; Secure; HttpOnly
|
59
|
+
- ZSession={ZUORA_SESSION_ID}; Path=/; Secure; HttpOnly
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<objects>\r\n\t<object
|
63
|
+
href=\"https://api.zuora.com/rest/api/describe/Account\">\r\n <name>Account</name>\r\n
|
64
|
+
\ <label>Account</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/AccountingCode\">\r\n
|
65
|
+
\ <name>AccountingCode</name>\r\n <label>Accounting Code</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
66
|
+
href=\"https://api.zuora.com/rest/api/describe/AccountingPeriod\">\r\n <name>AccountingPeriod</name>\r\n
|
67
|
+
\ <label>AccountingPeriod</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
68
|
+
href=\"https://api.zuora.com/rest/api/describe/Amendment\">\r\n <name>Amendment</name>\r\n
|
69
|
+
\ <label>Amendment</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/BillingRun\">\r\n
|
70
|
+
\ <name>BillingRun</name>\r\n <label>Billing Run</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
71
|
+
href=\"https://api.zuora.com/rest/api/describe/ChargeMetrics\">\r\n <name>ChargeMetrics</name>\r\n
|
72
|
+
\ <label>Charge Metrics</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/ChargeMetricsRun\">\r\n
|
73
|
+
\ <name>ChargeMetricsRun</name>\r\n <label>Charge Metrics Run</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
74
|
+
href=\"https://api.zuora.com/rest/api/describe/CommunicationProfile\">\r\n
|
75
|
+
\ <name>CommunicationProfile</name>\r\n <label>Communication Profile</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
76
|
+
href=\"https://api.zuora.com/rest/api/describe/Contact\">\r\n <name>Contact</name>\r\n
|
77
|
+
\ <label>Contact</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/ContactSnapshot\">\r\n
|
78
|
+
\ <name>ContactSnapshot</name>\r\n <label>Contact Snapshot</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
79
|
+
href=\"https://api.zuora.com/rest/api/describe/CreditBalanceAdjustment\">\r\n
|
80
|
+
\ <name>CreditBalanceAdjustment</name>\r\n <label>Credit Balance Adjustment</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
81
|
+
href=\"https://api.zuora.com/rest/api/describe/Customer\">\r\n <name>Customer</name>\r\n
|
82
|
+
\ <label>Customer</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/Export\">\r\n
|
83
|
+
\ <name>Export</name>\r\n <label>Export</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
84
|
+
href=\"https://api.zuora.com/rest/api/describe/PaymentGatewayReconciliationEventLog\">\r\n
|
85
|
+
\ <name>PaymentGatewayReconciliationEventLog</name>\r\n <label>Gateway
|
86
|
+
Reconciliation Event</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/PaymentReconciliationJob\">\r\n
|
87
|
+
\ <name>PaymentReconciliationJob</name>\r\n <label>Gateway Reconciliation
|
88
|
+
Job</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/PaymentReconciliationLog\">\r\n
|
89
|
+
\ <name>PaymentReconciliationLog</name>\r\n <label>Gateway Reconciliation
|
90
|
+
Log</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/Import\">\r\n
|
91
|
+
\ <name>Import</name>\r\n <label>Import</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
92
|
+
href=\"https://api.zuora.com/rest/api/describe/Invoice\">\r\n <name>Invoice</name>\r\n
|
93
|
+
\ <label>Invoice</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/InvoiceAdjustment\">\r\n
|
94
|
+
\ <name>InvoiceAdjustment</name>\r\n <label>Invoice Adjustment</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
95
|
+
href=\"https://api.zuora.com/rest/api/describe/InvoiceItem\">\r\n <name>InvoiceItem</name>\r\n
|
96
|
+
\ <label>Invoice Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/InvoiceItemAdjustment\">\r\n
|
97
|
+
\ <name>InvoiceItemAdjustment</name>\r\n <label>Invoice Item Adjustment</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
98
|
+
href=\"https://api.zuora.com/rest/api/describe/InvoicePayment\">\r\n <name>InvoicePayment</name>\r\n
|
99
|
+
\ <label>Invoice Payment</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
100
|
+
href=\"https://api.zuora.com/rest/api/describe/JournalEntry\">\r\n <name>JournalEntry</name>\r\n
|
101
|
+
\ <label>Journal Entry</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/JournalEntryItem\">\r\n
|
102
|
+
\ <name>JournalEntryItem</name>\r\n <label>Journal Entry Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
103
|
+
href=\"https://api.zuora.com/rest/api/describe/JournalRun\">\r\n <name>JournalRun</name>\r\n
|
104
|
+
\ <label>Journal Run</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/Order\">\r\n
|
105
|
+
\ <name>Order</name>\r\n <label>Order</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
106
|
+
href=\"https://api.zuora.com/rest/api/describe/OrderAction\">\r\n <name>OrderAction</name>\r\n
|
107
|
+
\ <label>Order Action</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/OrderMrr\">\r\n
|
108
|
+
\ <name>OrderMrr</name>\r\n <label>Order Mrr</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
109
|
+
href=\"https://api.zuora.com/rest/api/describe/OrderQuantity\">\r\n <name>OrderQuantity</name>\r\n
|
110
|
+
\ <label>Order Quantity</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/OrderTcb\">\r\n
|
111
|
+
\ <name>OrderTcb</name>\r\n <label>Order Tcb</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
112
|
+
href=\"https://api.zuora.com/rest/api/describe/OrderTcv\">\r\n <name>OrderTcv</name>\r\n
|
113
|
+
\ <label>Order Tcv</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/Payment\">\r\n
|
114
|
+
\ <name>Payment</name>\r\n <label>Payment</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
115
|
+
href=\"https://api.zuora.com/rest/api/describe/PaymentMethod\">\r\n <name>PaymentMethod</name>\r\n
|
116
|
+
\ <label>Payment Method</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/PaymentMethodTransactionLog\">\r\n
|
117
|
+
\ <name>PaymentMethodTransactionLog</name>\r\n <label>Payment Method
|
118
|
+
Transaction Log</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/UpdaterDetail\">\r\n
|
119
|
+
\ <name>UpdaterDetail</name>\r\n <label>Payment Method Update</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
120
|
+
href=\"https://api.zuora.com/rest/api/describe/PaymentTransactionLog\">\r\n
|
121
|
+
\ <name>PaymentTransactionLog</name>\r\n <label>Payment Transaction
|
122
|
+
Log</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/ProcessedUsage\">\r\n
|
123
|
+
\ <name>ProcessedUsage</name>\r\n <label>Processed Usage</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
124
|
+
href=\"https://api.zuora.com/rest/api/describe/Product\">\r\n <name>Product</name>\r\n
|
125
|
+
\ <label>Product</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/ProductRatePlan\">\r\n
|
126
|
+
\ <name>ProductRatePlan</name>\r\n <label>Product Rate Plan</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
127
|
+
href=\"https://api.zuora.com/rest/api/describe/ProductRatePlanCharge\">\r\n
|
128
|
+
\ <name>ProductRatePlanCharge</name>\r\n <label>Product Rate Plan Charge</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
129
|
+
href=\"https://api.zuora.com/rest/api/describe/ProductRatePlanChargeTier\">\r\n
|
130
|
+
\ <name>ProductRatePlanChargeTier</name>\r\n <label>Product Rate Plan
|
131
|
+
Charge Tier</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/RatePlan\">\r\n
|
132
|
+
\ <name>RatePlan</name>\r\n <label>Rate Plan</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
133
|
+
href=\"https://api.zuora.com/rest/api/describe/RatePlanCharge\">\r\n <name>RatePlanCharge</name>\r\n
|
134
|
+
\ <label>Rate Plan Charge</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
135
|
+
href=\"https://api.zuora.com/rest/api/describe/RatePlanChargeTier\">\r\n <name>RatePlanChargeTier</name>\r\n
|
136
|
+
\ <label>Rate Plan Charge Tier</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
137
|
+
href=\"https://api.zuora.com/rest/api/describe/Refund\">\r\n <name>Refund</name>\r\n
|
138
|
+
\ <label>Refund</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/RefundInvoicePayment\">\r\n
|
139
|
+
\ <name>RefundInvoicePayment</name>\r\n <label>Refund Invoice Payment</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
140
|
+
href=\"https://api.zuora.com/rest/api/describe/RefundTransactionLog\">\r\n
|
141
|
+
\ <name>RefundTransactionLog</name>\r\n <label>Refund Transaction Log</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
142
|
+
href=\"https://api.zuora.com/rest/api/describe/RevenueChargeSummaryItem\">\r\n
|
143
|
+
\ <name>RevenueChargeSummaryItem</name>\r\n <label>Revenue Charge Summary
|
144
|
+
Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/RevenueEventItem\">\r\n
|
145
|
+
\ <name>RevenueEventItem</name>\r\n <label>Revenue Event Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
146
|
+
href=\"https://api.zuora.com/rest/api/describe/RevenueEventItemCreditMemoItem\">\r\n
|
147
|
+
\ <name>RevenueEventItemCreditMemoItem</name>\r\n <label>Revenue Event
|
148
|
+
Item Credit Memo Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/RevenueEventItemDebitMemoItem\">\r\n
|
149
|
+
\ <name>RevenueEventItemDebitMemoItem</name>\r\n <label>Revenue Event
|
150
|
+
Item Debit Memo Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/RevenueEventItemInvoiceItem\">\r\n
|
151
|
+
\ <name>RevenueEventItemInvoiceItem</name>\r\n <label>Revenue Event
|
152
|
+
Item Invoice Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/RevenueEventItemInvoiceItemAdjustment\">\r\n
|
153
|
+
\ <name>RevenueEventItemInvoiceItemAdjustment</name>\r\n <label>Revenue
|
154
|
+
Event Item Invoice Item Adjustment</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
155
|
+
href=\"https://api.zuora.com/rest/api/describe/RevenueScheduleItem\">\r\n
|
156
|
+
\ <name>RevenueScheduleItem</name>\r\n <label>Revenue Schedule Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
157
|
+
href=\"https://api.zuora.com/rest/api/describe/RevenueScheduleItemCreditMemoItem\">\r\n
|
158
|
+
\ <name>RevenueScheduleItemCreditMemoItem</name>\r\n <label>Revenue
|
159
|
+
Schedule Item Credit Memo Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
160
|
+
href=\"https://api.zuora.com/rest/api/describe/RevenueScheduleItemDebitMemoItem\">\r\n
|
161
|
+
\ <name>RevenueScheduleItemDebitMemoItem</name>\r\n <label>Revenue
|
162
|
+
Schedule Item Debit Memo Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
163
|
+
href=\"https://api.zuora.com/rest/api/describe/RevenueScheduleItemInvoiceItem\">\r\n
|
164
|
+
\ <name>RevenueScheduleItemInvoiceItem</name>\r\n <label>Revenue Schedule
|
165
|
+
Item Invoice Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/RevenueScheduleItemInvoiceItemAdjustment\">\r\n
|
166
|
+
\ <name>RevenueScheduleItemInvoiceItemAdjustment</name>\r\n <label>Revenue
|
167
|
+
Schedule Item Invoice Item Adjustment</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
168
|
+
href=\"https://api.zuora.com/rest/api/describe/Subscription\">\r\n <name>Subscription</name>\r\n
|
169
|
+
\ <label>Subscription</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/TaxationItem\">\r\n
|
170
|
+
\ <name>TaxationItem</name>\r\n <label>Taxation Item</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object
|
171
|
+
href=\"https://api.zuora.com/rest/api/describe/UpdaterBatch\">\r\n <name>UpdaterBatch</name>\r\n
|
172
|
+
\ <label>Updater Batch</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/Usage\">\r\n
|
173
|
+
\ <name>Usage</name>\r\n <label>Usage</label>\r\n</object>\r\n\r\n\r\n\r\n</objects>\r\n"
|
174
|
+
http_version:
|
175
|
+
recorded_at: Fri, 09 Jun 2017 17:38:30 GMT
|
176
|
+
recorded_with: VCR 3.0.3
|