processout 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/processout/activity.rb +1 -1
- data/lib/processout/authorization_request.rb +1 -1
- data/lib/processout/card.rb +1 -1
- data/lib/processout/coupon.rb +1 -1
- data/lib/processout/customer.rb +10 -10
- data/lib/processout/customer_action.rb +1 -1
- data/lib/processout/discount.rb +1 -1
- data/lib/processout/event.rb +1 -1
- data/lib/processout/gateway.rb +1 -1
- data/lib/processout/gateway_configuration.rb +1 -1
- data/lib/processout/invoice.rb +61 -1
- data/lib/processout/plan.rb +1 -1
- data/lib/processout/product.rb +1 -1
- data/lib/processout/project.rb +1 -1
- data/lib/processout/refund.rb +1 -1
- data/lib/processout/subscription.rb +3 -2
- data/lib/processout/token.rb +1 -1
- data/lib/processout/transaction.rb +1 -1
- data/lib/processout/version.rb +1 -1
- data/lib/processout/webhook.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 485ad1d913b71395a66fb4949eb50475e0e5f599
|
4
|
+
data.tar.gz: 59b4160f31f59b84606c1e987b13c1dfe58c543b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a86dc526ee5150a5a90a122a18bdd558be67f3893897f12c76288ede3a0f72d09e35c977c88beefbaf0aa1b3ed7f20941bbc101b4724884062362066242cccea
|
7
|
+
data.tar.gz: 49774d17940f7bd7caea776e65354a91df895a4f98e6e54f5106e2873de1164c73b8e58993b8ebf3649668b2e7156066e08f52e3bc8f72de476310410d86c3bd
|
data/lib/processout/activity.rb
CHANGED
data/lib/processout/card.rb
CHANGED
data/lib/processout/coupon.rb
CHANGED
data/lib/processout/customer.rb
CHANGED
@@ -17,7 +17,7 @@ module ProcessOut
|
|
17
17
|
attr_reader :city
|
18
18
|
attr_reader :state
|
19
19
|
attr_reader :zip
|
20
|
-
attr_reader :
|
20
|
+
attr_reader :country
|
21
21
|
attr_reader :balance
|
22
22
|
attr_reader :currency
|
23
23
|
attr_reader :metadata
|
@@ -72,8 +72,8 @@ module ProcessOut
|
|
72
72
|
@zip = val
|
73
73
|
end
|
74
74
|
|
75
|
-
def
|
76
|
-
@
|
75
|
+
def country=(val)
|
76
|
+
@country = val
|
77
77
|
end
|
78
78
|
|
79
79
|
def balance=(val)
|
@@ -114,7 +114,7 @@ module ProcessOut
|
|
114
114
|
self.city = data.fetch(:city, nil)
|
115
115
|
self.state = data.fetch(:state, nil)
|
116
116
|
self.zip = data.fetch(:zip, nil)
|
117
|
-
self.
|
117
|
+
self.country = data.fetch(:country, nil)
|
118
118
|
self.balance = data.fetch(:balance, nil)
|
119
119
|
self.currency = data.fetch(:currency, nil)
|
120
120
|
self.metadata = data.fetch(:metadata, nil)
|
@@ -165,8 +165,8 @@ module ProcessOut
|
|
165
165
|
if data.include? "zip"
|
166
166
|
self.zip = data["zip"]
|
167
167
|
end
|
168
|
-
if data.include? "
|
169
|
-
self.
|
168
|
+
if data.include? "country"
|
169
|
+
self.country = data["country"]
|
170
170
|
end
|
171
171
|
if data.include? "balance"
|
172
172
|
self.balance = data["balance"]
|
@@ -187,7 +187,7 @@ module ProcessOut
|
|
187
187
|
self
|
188
188
|
end
|
189
189
|
|
190
|
-
# Prefills the object with the data passed as
|
190
|
+
# Prefills the object with the data passed as parameters
|
191
191
|
# Params:
|
192
192
|
# +data+:: +Hash+ of data
|
193
193
|
def prefill(data)
|
@@ -204,7 +204,7 @@ module ProcessOut
|
|
204
204
|
self.city = data.fetch(:city, self.city)
|
205
205
|
self.state = data.fetch(:state, self.state)
|
206
206
|
self.zip = data.fetch(:zip, self.zip)
|
207
|
-
self.
|
207
|
+
self.country = data.fetch(:country, self.country)
|
208
208
|
self.balance = data.fetch(:balance, self.balance)
|
209
209
|
self.currency = data.fetch(:currency, self.currency)
|
210
210
|
self.metadata = data.fetch(:metadata, self.metadata)
|
@@ -400,7 +400,7 @@ module ProcessOut
|
|
400
400
|
"city" => @city,
|
401
401
|
"state" => @state,
|
402
402
|
"zip" => @zip,
|
403
|
-
"
|
403
|
+
"country" => @country,
|
404
404
|
"metadata" => @metadata
|
405
405
|
}
|
406
406
|
|
@@ -464,7 +464,7 @@ module ProcessOut
|
|
464
464
|
"city" => @city,
|
465
465
|
"state" => @state,
|
466
466
|
"zip" => @zip,
|
467
|
-
"
|
467
|
+
"country" => @country,
|
468
468
|
"metadata" => @metadata
|
469
469
|
}
|
470
470
|
|
data/lib/processout/discount.rb
CHANGED
data/lib/processout/event.rb
CHANGED
data/lib/processout/gateway.rb
CHANGED
data/lib/processout/invoice.rb
CHANGED
@@ -14,6 +14,11 @@ module ProcessOut
|
|
14
14
|
attr_reader :subscription
|
15
15
|
attr_reader :url
|
16
16
|
attr_reader :name
|
17
|
+
attr_reader :statement_descriptor
|
18
|
+
attr_reader :statement_descriptor_phone
|
19
|
+
attr_reader :statement_descriptor_city
|
20
|
+
attr_reader :statement_descriptor_company
|
21
|
+
attr_reader :statement_descriptor_url
|
17
22
|
attr_reader :amount
|
18
23
|
attr_reader :currency
|
19
24
|
attr_reader :metadata
|
@@ -81,6 +86,26 @@ module ProcessOut
|
|
81
86
|
@name = val
|
82
87
|
end
|
83
88
|
|
89
|
+
def statement_descriptor=(val)
|
90
|
+
@statement_descriptor = val
|
91
|
+
end
|
92
|
+
|
93
|
+
def statement_descriptor_phone=(val)
|
94
|
+
@statement_descriptor_phone = val
|
95
|
+
end
|
96
|
+
|
97
|
+
def statement_descriptor_city=(val)
|
98
|
+
@statement_descriptor_city = val
|
99
|
+
end
|
100
|
+
|
101
|
+
def statement_descriptor_company=(val)
|
102
|
+
@statement_descriptor_company = val
|
103
|
+
end
|
104
|
+
|
105
|
+
def statement_descriptor_url=(val)
|
106
|
+
@statement_descriptor_url = val
|
107
|
+
end
|
108
|
+
|
84
109
|
def amount=(val)
|
85
110
|
@amount = val
|
86
111
|
end
|
@@ -132,6 +157,11 @@ module ProcessOut
|
|
132
157
|
self.subscription = data.fetch(:subscription, nil)
|
133
158
|
self.url = data.fetch(:url, nil)
|
134
159
|
self.name = data.fetch(:name, nil)
|
160
|
+
self.statement_descriptor = data.fetch(:statement_descriptor, nil)
|
161
|
+
self.statement_descriptor_phone = data.fetch(:statement_descriptor_phone, nil)
|
162
|
+
self.statement_descriptor_city = data.fetch(:statement_descriptor_city, nil)
|
163
|
+
self.statement_descriptor_company = data.fetch(:statement_descriptor_company, nil)
|
164
|
+
self.statement_descriptor_url = data.fetch(:statement_descriptor_url, nil)
|
135
165
|
self.amount = data.fetch(:amount, nil)
|
136
166
|
self.currency = data.fetch(:currency, nil)
|
137
167
|
self.metadata = data.fetch(:metadata, nil)
|
@@ -177,6 +207,21 @@ module ProcessOut
|
|
177
207
|
if data.include? "name"
|
178
208
|
self.name = data["name"]
|
179
209
|
end
|
210
|
+
if data.include? "statement_descriptor"
|
211
|
+
self.statement_descriptor = data["statement_descriptor"]
|
212
|
+
end
|
213
|
+
if data.include? "statement_descriptor_phone"
|
214
|
+
self.statement_descriptor_phone = data["statement_descriptor_phone"]
|
215
|
+
end
|
216
|
+
if data.include? "statement_descriptor_city"
|
217
|
+
self.statement_descriptor_city = data["statement_descriptor_city"]
|
218
|
+
end
|
219
|
+
if data.include? "statement_descriptor_company"
|
220
|
+
self.statement_descriptor_company = data["statement_descriptor_company"]
|
221
|
+
end
|
222
|
+
if data.include? "statement_descriptor_url"
|
223
|
+
self.statement_descriptor_url = data["statement_descriptor_url"]
|
224
|
+
end
|
180
225
|
if data.include? "amount"
|
181
226
|
self.amount = data["amount"]
|
182
227
|
end
|
@@ -208,7 +253,7 @@ module ProcessOut
|
|
208
253
|
self
|
209
254
|
end
|
210
255
|
|
211
|
-
# Prefills the object with the data passed as
|
256
|
+
# Prefills the object with the data passed as parameters
|
212
257
|
# Params:
|
213
258
|
# +data+:: +Hash+ of data
|
214
259
|
def prefill(data)
|
@@ -222,6 +267,11 @@ module ProcessOut
|
|
222
267
|
self.subscription = data.fetch(:subscription, self.subscription)
|
223
268
|
self.url = data.fetch(:url, self.url)
|
224
269
|
self.name = data.fetch(:name, self.name)
|
270
|
+
self.statement_descriptor = data.fetch(:statement_descriptor, self.statement_descriptor)
|
271
|
+
self.statement_descriptor_phone = data.fetch(:statement_descriptor_phone, self.statement_descriptor_phone)
|
272
|
+
self.statement_descriptor_city = data.fetch(:statement_descriptor_city, self.statement_descriptor_city)
|
273
|
+
self.statement_descriptor_company = data.fetch(:statement_descriptor_company, self.statement_descriptor_company)
|
274
|
+
self.statement_descriptor_url = data.fetch(:statement_descriptor_url, self.statement_descriptor_url)
|
225
275
|
self.amount = data.fetch(:amount, self.amount)
|
226
276
|
self.currency = data.fetch(:currency, self.currency)
|
227
277
|
self.metadata = data.fetch(:metadata, self.metadata)
|
@@ -425,6 +475,11 @@ module ProcessOut
|
|
425
475
|
"amount" => @amount,
|
426
476
|
"currency" => @currency,
|
427
477
|
"metadata" => @metadata,
|
478
|
+
"statement_descriptor" => @statement_descriptor,
|
479
|
+
"statement_descriptor_phone" => @statement_descriptor_phone,
|
480
|
+
"statement_descriptor_city" => @statement_descriptor_city,
|
481
|
+
"statement_descriptor_company" => @statement_descriptor_company,
|
482
|
+
"statement_descriptor_url" => @statement_descriptor_url,
|
428
483
|
"request_email" => @request_email,
|
429
484
|
"request_shipping" => @request_shipping,
|
430
485
|
"return_url" => @return_url,
|
@@ -459,6 +514,11 @@ module ProcessOut
|
|
459
514
|
"amount" => @amount,
|
460
515
|
"currency" => @currency,
|
461
516
|
"metadata" => @metadata,
|
517
|
+
"statement_descriptor" => @statement_descriptor,
|
518
|
+
"statement_descriptor_phone" => @statement_descriptor_phone,
|
519
|
+
"statement_descriptor_city" => @statement_descriptor_city,
|
520
|
+
"statement_descriptor_company" => @statement_descriptor_company,
|
521
|
+
"statement_descriptor_url" => @statement_descriptor_url,
|
462
522
|
"request_email" => @request_email,
|
463
523
|
"request_shipping" => @request_shipping,
|
464
524
|
"return_url" => @return_url,
|
data/lib/processout/plan.rb
CHANGED
data/lib/processout/product.rb
CHANGED
data/lib/processout/project.rb
CHANGED
data/lib/processout/refund.rb
CHANGED
@@ -280,7 +280,7 @@ module ProcessOut
|
|
280
280
|
self
|
281
281
|
end
|
282
282
|
|
283
|
-
# Prefills the object with the data passed as
|
283
|
+
# Prefills the object with the data passed as parameters
|
284
284
|
# Params:
|
285
285
|
# +data+:: +Hash+ of data
|
286
286
|
def prefill(data)
|
@@ -677,7 +677,8 @@ module ProcessOut
|
|
677
677
|
"amount" => @amount,
|
678
678
|
"interval" => @interval,
|
679
679
|
"trial_end_at" => @trial_end_at,
|
680
|
-
"metadata" => @metadata
|
680
|
+
"metadata" => @metadata,
|
681
|
+
"coupon_id" => options.fetch(:coupon_id, nil)
|
681
682
|
}
|
682
683
|
|
683
684
|
response = Response.new(request.put(path, data, options))
|
data/lib/processout/token.rb
CHANGED
data/lib/processout/version.rb
CHANGED
data/lib/processout/webhook.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: processout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel HUEZ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.6.8
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Ruby bindings for the ProcessOut API
|