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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1b2404eb8a87ec21152d52ba6524d0fedc261bb
4
- data.tar.gz: 6cbfdd364e7b5686184619ad13cccef9838952ba
3
+ metadata.gz: 485ad1d913b71395a66fb4949eb50475e0e5f599
4
+ data.tar.gz: 59b4160f31f59b84606c1e987b13c1dfe58c543b
5
5
  SHA512:
6
- metadata.gz: 6f529dc34677098ecb3a8b33bdf4ee37fc5baffef55ddbe776b778892ffc8ba2debc57f27e299c5a051bb9399ce4b4dcb685118e5adbe50a758e334e43732002
7
- data.tar.gz: 0ea855dbec75edfc07a44c262a1df2b8d6c603aa707b85870094dccafb76a745716e3dd1c82e2120849ce5dafce553c0e13409ea75a2720d2a1f52347347f75a
6
+ metadata.gz: a86dc526ee5150a5a90a122a18bdd558be67f3893897f12c76288ede3a0f72d09e35c977c88beefbaf0aa1b3ed7f20941bbc101b4724884062362066242cccea
7
+ data.tar.gz: 49774d17940f7bd7caea776e65354a91df895a4f98e6e54f5106e2873de1164c73b8e58993b8ebf3649668b2e7156066e08f52e3bc8f72de476310410d86c3bd
@@ -97,7 +97,7 @@ module ProcessOut
97
97
  self
98
98
  end
99
99
 
100
- # Prefills the object with the data passed as Parameters
100
+ # Prefills the object with the data passed as parameters
101
101
  # Params:
102
102
  # +data+:: +Hash+ of data
103
103
  def prefill(data)
@@ -165,7 +165,7 @@ module ProcessOut
165
165
  self
166
166
  end
167
167
 
168
- # Prefills the object with the data passed as Parameters
168
+ # Prefills the object with the data passed as parameters
169
169
  # Params:
170
170
  # +data+:: +Hash+ of data
171
171
  def prefill(data)
@@ -160,7 +160,7 @@ module ProcessOut
160
160
  self
161
161
  end
162
162
 
163
- # Prefills the object with the data passed as Parameters
163
+ # Prefills the object with the data passed as parameters
164
164
  # Params:
165
165
  # +data+:: +Hash+ of data
166
166
  def prefill(data)
@@ -160,7 +160,7 @@ module ProcessOut
160
160
  self
161
161
  end
162
162
 
163
- # Prefills the object with the data passed as Parameters
163
+ # Prefills the object with the data passed as parameters
164
164
  # Params:
165
165
  # +data+:: +Hash+ of data
166
166
  def prefill(data)
@@ -17,7 +17,7 @@ module ProcessOut
17
17
  attr_reader :city
18
18
  attr_reader :state
19
19
  attr_reader :zip
20
- attr_reader :country_code
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 country_code=(val)
76
- @country_code = val
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.country_code = data.fetch(:country_code, nil)
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? "country_code"
169
- self.country_code = data["country_code"]
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 Parameters
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.country_code = data.fetch(:country_code, self.country_code)
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
- "country_code" => @country_code,
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
- "country_code" => @country_code,
467
+ "country" => @country,
468
468
  "metadata" => @metadata
469
469
  }
470
470
 
@@ -54,7 +54,7 @@ module ProcessOut
54
54
  self
55
55
  end
56
56
 
57
- # Prefills the object with the data passed as Parameters
57
+ # Prefills the object with the data passed as parameters
58
58
  # Params:
59
59
  # +data+:: +Hash+ of data
60
60
  def prefill(data)
@@ -138,7 +138,7 @@ module ProcessOut
138
138
  self
139
139
  end
140
140
 
141
- # Prefills the object with the data passed as Parameters
141
+ # Prefills the object with the data passed as parameters
142
142
  # Params:
143
143
  # +data+:: +Hash+ of data
144
144
  def prefill(data)
@@ -98,7 +98,7 @@ module ProcessOut
98
98
  self
99
99
  end
100
100
 
101
- # Prefills the object with the data passed as Parameters
101
+ # Prefills the object with the data passed as parameters
102
102
  # Params:
103
103
  # +data+:: +Hash+ of data
104
104
  def prefill(data)
@@ -108,7 +108,7 @@ module ProcessOut
108
108
  self
109
109
  end
110
110
 
111
- # Prefills the object with the data passed as Parameters
111
+ # Prefills the object with the data passed as parameters
112
112
  # Params:
113
113
  # +data+:: +Hash+ of data
114
114
  def prefill(data)
@@ -95,7 +95,7 @@ module ProcessOut
95
95
  self
96
96
  end
97
97
 
98
- # Prefills the object with the data passed as Parameters
98
+ # Prefills the object with the data passed as parameters
99
99
  # Params:
100
100
  # +data+:: +Hash+ of data
101
101
  def prefill(data)
@@ -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 Parameters
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,
@@ -151,7 +151,7 @@ module ProcessOut
151
151
  self
152
152
  end
153
153
 
154
- # Prefills the object with the data passed as Parameters
154
+ # Prefills the object with the data passed as parameters
155
155
  # Params:
156
156
  # +data+:: +Hash+ of data
157
157
  def prefill(data)
@@ -160,7 +160,7 @@ module ProcessOut
160
160
  self
161
161
  end
162
162
 
163
- # Prefills the object with the data passed as Parameters
163
+ # Prefills the object with the data passed as parameters
164
164
  # Params:
165
165
  # +data+:: +Hash+ of data
166
166
  def prefill(data)
@@ -81,7 +81,7 @@ module ProcessOut
81
81
  self
82
82
  end
83
83
 
84
- # Prefills the object with the data passed as Parameters
84
+ # Prefills the object with the data passed as parameters
85
85
  # Params:
86
86
  # +data+:: +Hash+ of data
87
87
  def prefill(data)
@@ -115,7 +115,7 @@ module ProcessOut
115
115
  self
116
116
  end
117
117
 
118
- # Prefills the object with the data passed as Parameters
118
+ # Prefills the object with the data passed as parameters
119
119
  # Params:
120
120
  # +data+:: +Hash+ of data
121
121
  def prefill(data)
@@ -280,7 +280,7 @@ module ProcessOut
280
280
  self
281
281
  end
282
282
 
283
- # Prefills the object with the data passed as Parameters
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))
@@ -122,7 +122,7 @@ module ProcessOut
122
122
  self
123
123
  end
124
124
 
125
- # Prefills the object with the data passed as Parameters
125
+ # Prefills the object with the data passed as parameters
126
126
  # Params:
127
127
  # +data+:: +Hash+ of data
128
128
  def prefill(data)
@@ -224,7 +224,7 @@ module ProcessOut
224
224
  self
225
225
  end
226
226
 
227
- # Prefills the object with the data passed as Parameters
227
+ # Prefills the object with the data passed as parameters
228
228
  # Params:
229
229
  # +data+:: +Hash+ of data
230
230
  def prefill(data)
@@ -1,3 +1,3 @@
1
1
  module ProcessOut
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
@@ -158,7 +158,7 @@ module ProcessOut
158
158
  self
159
159
  end
160
160
 
161
- # Prefills the object with the data passed as Parameters
161
+ # Prefills the object with the data passed as parameters
162
162
  # Params:
163
163
  # +data+:: +Hash+ of data
164
164
  def prefill(data)
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.7
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-25 00:00:00.000000000 Z
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.0.14.1
120
+ rubygems_version: 2.6.8
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Ruby bindings for the ProcessOut API