processout 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/processout/authorization_request.rb +1 -1
- data/lib/processout/customer.rb +3 -3
- data/lib/processout/event.rb +1 -1
- data/lib/processout/invoice.rb +2 -2
- data/lib/processout/subscription.rb +3 -3
- data/lib/processout/transaction.rb +1 -1
- data/lib/processout/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24e1b19b205b51963006e4a8e75a6b178187d9af
|
4
|
+
data.tar.gz: 1d16bd46db11818cb9c72af6347e827f757055db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e27ad1bc2515cdb9845c289b4198881c4d89b6e6307b216918d2639503aaa9a8a5b0daca66d8337904a8d5a19ec8cc7c8a3cdbeb7c5280b917e249b3e97f8cab
|
7
|
+
data.tar.gz: 773b1dee9c0adef049733dcc4e63e0f5e22e856fd895d1f517dabdc36d845c2aa36feb5ee8f0bc042f8a934c1bc1d911ee33802a2d2e12d406eb2070e6c2d21a
|
data/README.md
CHANGED
@@ -174,7 +174,7 @@ module ProcessOut
|
|
174
174
|
# Get the customer linked to the authorization request.
|
175
175
|
# Params:
|
176
176
|
# +options+:: +Hash+ of options
|
177
|
-
def
|
177
|
+
def fetch_customer(options = {})
|
178
178
|
request = Request.new(@client)
|
179
179
|
path = "/authorization-requests/" + CGI.escape(@id) + "/customers"
|
180
180
|
data = {
|
data/lib/processout/customer.rb
CHANGED
@@ -196,7 +196,7 @@ module ProcessOut
|
|
196
196
|
# Get the subscriptions belonging to the customer.
|
197
197
|
# Params:
|
198
198
|
# +options+:: +Hash+ of options
|
199
|
-
def
|
199
|
+
def fetch_subscriptions(options = {})
|
200
200
|
request = Request.new(@client)
|
201
201
|
path = "/customers/" + CGI.escape(@id) + "/subscriptions"
|
202
202
|
data = {
|
@@ -224,7 +224,7 @@ module ProcessOut
|
|
224
224
|
# Get the customer's tokens.
|
225
225
|
# Params:
|
226
226
|
# +options+:: +Hash+ of options
|
227
|
-
def
|
227
|
+
def fetch_tokens(options = {})
|
228
228
|
request = Request.new(@client)
|
229
229
|
path = "/customers/" + CGI.escape(@id) + "/tokens"
|
230
230
|
data = {
|
@@ -275,7 +275,7 @@ module ProcessOut
|
|
275
275
|
# Get the transactions belonging to the customer.
|
276
276
|
# Params:
|
277
277
|
# +options+:: +Hash+ of options
|
278
|
-
def
|
278
|
+
def fetch_transactions(options = {})
|
279
279
|
request = Request.new(@client)
|
280
280
|
path = "/customers/" + CGI.escape(@id) + "/transactions"
|
281
281
|
data = {
|
data/lib/processout/event.rb
CHANGED
@@ -98,7 +98,7 @@ module ProcessOut
|
|
98
98
|
# Get all the webhooks of the event.
|
99
99
|
# Params:
|
100
100
|
# +options+:: +Hash+ of options
|
101
|
-
def
|
101
|
+
def fetch_webhooks(options = {})
|
102
102
|
request = Request.new(@client)
|
103
103
|
path = "/events/" + CGI.escape(@id) + "/webhooks"
|
104
104
|
data = {
|
data/lib/processout/invoice.rb
CHANGED
@@ -254,7 +254,7 @@ module ProcessOut
|
|
254
254
|
# Get the customer linked to the invoice.
|
255
255
|
# Params:
|
256
256
|
# +options+:: +Hash+ of options
|
257
|
-
def
|
257
|
+
def fetch_customer(options = {})
|
258
258
|
request = Request.new(@client)
|
259
259
|
path = "/invoices/" + CGI.escape(@id) + "/customers"
|
260
260
|
data = {
|
@@ -299,7 +299,7 @@ module ProcessOut
|
|
299
299
|
# Get the transaction of the invoice.
|
300
300
|
# Params:
|
301
301
|
# +options+:: +Hash+ of options
|
302
|
-
def
|
302
|
+
def fetch_transaction(options = {})
|
303
303
|
request = Request.new(@client)
|
304
304
|
path = "/invoices/" + CGI.escape(@id) + "/transactions"
|
305
305
|
data = {
|
@@ -280,7 +280,7 @@ module ProcessOut
|
|
280
280
|
# Get the customer owning the subscription.
|
281
281
|
# Params:
|
282
282
|
# +options+:: +Hash+ of options
|
283
|
-
def
|
283
|
+
def fetch_customer(options = {})
|
284
284
|
request = Request.new(@client)
|
285
285
|
path = "/subscriptions/" + CGI.escape(@id) + "/customers"
|
286
286
|
data = {
|
@@ -302,7 +302,7 @@ module ProcessOut
|
|
302
302
|
# Get the discounts applied to the subscription.
|
303
303
|
# Params:
|
304
304
|
# +options+:: +Hash+ of options
|
305
|
-
def
|
305
|
+
def fetch_discounts(options = {})
|
306
306
|
request = Request.new(@client)
|
307
307
|
path = "/subscriptions/" + CGI.escape(@id) + "/discounts"
|
308
308
|
data = {
|
@@ -378,7 +378,7 @@ module ProcessOut
|
|
378
378
|
# Get the subscriptions past transactions.
|
379
379
|
# Params:
|
380
380
|
# +options+:: +Hash+ of options
|
381
|
-
def
|
381
|
+
def fetch_transactions(options = {})
|
382
382
|
request = Request.new(@client)
|
383
383
|
path = "/subscriptions/" + CGI.escape(@id) + "/transactions"
|
384
384
|
data = {
|
@@ -224,7 +224,7 @@ module ProcessOut
|
|
224
224
|
# Get the transaction's refunds.
|
225
225
|
# Params:
|
226
226
|
# +options+:: +Hash+ of options
|
227
|
-
def
|
227
|
+
def fetch_refunds(options = {})
|
228
228
|
request = Request.new(@client)
|
229
229
|
path = "/transactions/" + CGI.escape(@id) + "/refunds"
|
230
230
|
data = {
|
data/lib/processout/version.rb
CHANGED