global_collect 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +7 -0
- data/Rakefile +2 -1
- data/VERSION +1 -1
- data/examples/parse_collection_report.rb +13 -0
- data/examples/parse_financial_statement.rb +8 -0
- data/examples/parse_payment_report.rb +8 -0
- data/examples/set_payment.rb +1 -1
- data/global_collect.gemspec +38 -2
- data/lib/global_collect.rb +12 -0
- data/lib/global_collect/log_parsing/collection_report/appendix_report_file.rb +72 -0
- data/lib/global_collect/log_parsing/collection_report/fields.rb +161 -0
- data/lib/global_collect/log_parsing/collection_report/parser.rb +68 -0
- data/lib/global_collect/log_parsing/collection_report/report_file.rb +32 -0
- data/lib/global_collect/log_parsing/financial_statement/report_file.rb +96 -0
- data/lib/global_collect/log_parsing/payment_report/fields.rb +709 -0
- data/lib/global_collect/log_parsing/payment_report/parser.rb +105 -0
- data/lib/global_collect/log_parsing/payment_report/report_file.rb +31 -0
- data/lib/global_collect/responses/base.rb +0 -2
- data/lib/global_collect/test_helper.rb +8 -4
- data/spec/log_parsing/collection_report/appendix_report_file_spec.rb +96 -0
- data/spec/log_parsing/collection_report/parser_spec.rb +42 -0
- data/spec/log_parsing/collection_report/report_file_spec.rb +17 -0
- data/spec/log_parsing/financial_statement/report_file_spec.rb +51 -0
- data/spec/log_parsing/payment_report/parser_spec.rb +37 -0
- data/spec/log_parsing/payment_report/report_file_spec.rb +23 -0
- data/spec/support/55550141.wr1 +7 -0
- data/spec/support/555520100602.csv +4 -0
- data/spec/support/555555550145.mt1 +3 -0
- data/spec/support/FS55550148COMPANY.asc +12 -0
- metadata +64 -6
@@ -0,0 +1,7 @@
|
|
1
|
+
IFH555555550141wr120100521 2010052120100521
|
2
|
+
IBH5555 2010052120100521
|
3
|
+
XON b259513046a4012d793f001e0bd545 USD 000000001740 20100521 ************1234 220121400 033924 CCVISA USD 000000001740 A
|
4
|
+
XON 982dd16045fd012d137c001e0b5ad4 USD 000000003679 20100520 ************1234 220101200 444644 CCVISA USD 000000003679 A
|
5
|
+
ITM5555 USD 000000000211
|
6
|
+
IBT5555 20100521201005210000044300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
7
|
+
IFT555555550141wr120100521 201005212010052100000445
|
@@ -0,0 +1,4 @@
|
|
1
|
+
+;ON;5555;20100602;USD;41.05 ;USD;41.05 ;CC;ECMC;N;206807294137;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; ; ;a0110147.pg1;P
|
2
|
+
+;ON;5555;20100602;USD;88.99 ;USD;88.99 ;CC;VISA;N;206807294138;bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; ; ;a0110147.pg1;P
|
3
|
+
-;CR;5555;20100602;USD;-24.50 ;USD;-24.50 ;CC;VISA;N;206806008113;cccccccccccccccccccccccccccccc; ; ;a0110147.rg1;R
|
4
|
+
-;CR;5555;20100602;USD;-77.83 ;USD;-77.83 ;CC;ECMC;N;206806008114;dddddddddddddddddddddddddddddd; ; ;a0110147.rg1;R
|
@@ -0,0 +1,12 @@
|
|
1
|
+
HDR R0555500 55550148 ASC 20100528
|
2
|
+
FS 21FR 2010 1 5555 25-05-2010 25-05-2010 USD 0003333333 +
|
3
|
+
FS 21FR 2010 1 5555 26-05-2010 26-05-2010 USD 0003333333 +
|
4
|
+
FS 21FR 2010 1 5555 27-05-2010 27-05-2010 USD 0003333333 +
|
5
|
+
FS 21FR 2010 1 5555 28-05-2010 28-05-2010 USD 0003333333 +
|
6
|
+
FS 21FR 2010 2 5555 Deposits wk 21-2010 Tuesday USD 0000111111 -
|
7
|
+
FS 21FR 2010 2 5555 Deposits wk 21-2010 Wed USD 0000111111 -
|
8
|
+
FS 21FR 2010 2 5555 Deposits wk 21-2010 Thursday USD 0000111111 -
|
9
|
+
FS 21FR 2010 2 5555 Deposits wk 21-2010 Friday USD 0000111111 -
|
10
|
+
FS 21FR 2010 3 5555 March 1 - March 31, 2010 USD 0000111111 -
|
11
|
+
FS 21FR 2010 3 5555 April 1 - April 30, 2010 USD 0000111111 -
|
12
|
+
TRL R0555500 55550148 ASC 20100528 12
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Timon Karnezos
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-06-08 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -45,9 +45,37 @@ dependencies:
|
|
45
45
|
type: :runtime
|
46
46
|
version_requirements: *id002
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: fastercsv
|
49
49
|
prerelease: false
|
50
50
|
requirement: &id003 !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
segments:
|
55
|
+
- 1
|
56
|
+
- 5
|
57
|
+
- 3
|
58
|
+
version: 1.5.3
|
59
|
+
type: :runtime
|
60
|
+
version_requirements: *id003
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: fixed_width
|
63
|
+
prerelease: false
|
64
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
- 2
|
71
|
+
- 1
|
72
|
+
version: 0.2.1
|
73
|
+
type: :runtime
|
74
|
+
version_requirements: *id004
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: fakeweb
|
77
|
+
prerelease: false
|
78
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
51
79
|
requirements:
|
52
80
|
- - ">="
|
53
81
|
- !ruby/object:Gem::Version
|
@@ -57,7 +85,7 @@ dependencies:
|
|
57
85
|
- 8
|
58
86
|
version: 1.2.8
|
59
87
|
type: :development
|
60
|
-
version_requirements: *
|
88
|
+
version_requirements: *id005
|
61
89
|
description: |
|
62
90
|
Gives minimally intrusive access to Global Collect's payment processing API.
|
63
91
|
Currently implements a very small segment of the full API but is built with
|
@@ -81,6 +109,9 @@ files:
|
|
81
109
|
- examples/convert_amount.rb
|
82
110
|
- examples/get_order_status.rb
|
83
111
|
- examples/insert_order_with_payment.rb
|
112
|
+
- examples/parse_collection_report.rb
|
113
|
+
- examples/parse_financial_statement.rb
|
114
|
+
- examples/parse_payment_report.rb
|
84
115
|
- examples/process_challenged.rb
|
85
116
|
- examples/set_payment.rb
|
86
117
|
- examples/test_connection.rb
|
@@ -98,6 +129,14 @@ files:
|
|
98
129
|
- lib/global_collect/const/payment_product.rb
|
99
130
|
- lib/global_collect/const/payment_status.rb
|
100
131
|
- lib/global_collect/field_validator.rb
|
132
|
+
- lib/global_collect/log_parsing/collection_report/appendix_report_file.rb
|
133
|
+
- lib/global_collect/log_parsing/collection_report/fields.rb
|
134
|
+
- lib/global_collect/log_parsing/collection_report/parser.rb
|
135
|
+
- lib/global_collect/log_parsing/collection_report/report_file.rb
|
136
|
+
- lib/global_collect/log_parsing/financial_statement/report_file.rb
|
137
|
+
- lib/global_collect/log_parsing/payment_report/fields.rb
|
138
|
+
- lib/global_collect/log_parsing/payment_report/parser.rb
|
139
|
+
- lib/global_collect/log_parsing/payment_report/report_file.rb
|
101
140
|
- lib/global_collect/request_models/base.rb
|
102
141
|
- lib/global_collect/request_models/do_refund/credit_card_payment.rb
|
103
142
|
- lib/global_collect/request_models/do_refund/payment.rb
|
@@ -138,6 +177,12 @@ files:
|
|
138
177
|
- spec/const/payment_status_spec.rb
|
139
178
|
- spec/field_validator_spec.rb
|
140
179
|
- spec/global_collect_spec.rb
|
180
|
+
- spec/log_parsing/collection_report/appendix_report_file_spec.rb
|
181
|
+
- spec/log_parsing/collection_report/parser_spec.rb
|
182
|
+
- spec/log_parsing/collection_report/report_file_spec.rb
|
183
|
+
- spec/log_parsing/financial_statement/report_file_spec.rb
|
184
|
+
- spec/log_parsing/payment_report/parser_spec.rb
|
185
|
+
- spec/log_parsing/payment_report/report_file_spec.rb
|
141
186
|
- spec/request_models/base_spec.rb
|
142
187
|
- spec/request_models/insert_order_with_payment/credit_card_online_payment_spec.rb
|
143
188
|
- spec/request_models/insert_order_with_payment/hosted_credit_card_online_payment_spec.rb
|
@@ -155,6 +200,10 @@ files:
|
|
155
200
|
- spec/responses/insert_order_with_payment/hosted_merchant_link_payment_response_methods_spec.rb
|
156
201
|
- spec/responses/succcess_row_spec.rb
|
157
202
|
- spec/spec_helper.rb
|
203
|
+
- spec/support/55550141.wr1
|
204
|
+
- spec/support/555520100602.csv
|
205
|
+
- spec/support/555555550145.mt1
|
206
|
+
- spec/support/FS55550148COMPANY.asc
|
158
207
|
- spec/support/challenged_iowp_v1_response.xml
|
159
208
|
- spec/support/successful_cancel_payment_v1_response.xml
|
160
209
|
- spec/support/successful_convert_amount_v1_response.xml
|
@@ -211,6 +260,12 @@ test_files:
|
|
211
260
|
- spec/const/payment_status_spec.rb
|
212
261
|
- spec/field_validator_spec.rb
|
213
262
|
- spec/global_collect_spec.rb
|
263
|
+
- spec/log_parsing/collection_report/appendix_report_file_spec.rb
|
264
|
+
- spec/log_parsing/collection_report/parser_spec.rb
|
265
|
+
- spec/log_parsing/collection_report/report_file_spec.rb
|
266
|
+
- spec/log_parsing/financial_statement/report_file_spec.rb
|
267
|
+
- spec/log_parsing/payment_report/parser_spec.rb
|
268
|
+
- spec/log_parsing/payment_report/report_file_spec.rb
|
214
269
|
- spec/request_models/base_spec.rb
|
215
270
|
- spec/request_models/insert_order_with_payment/credit_card_online_payment_spec.rb
|
216
271
|
- spec/request_models/insert_order_with_payment/hosted_credit_card_online_payment_spec.rb
|
@@ -232,6 +287,9 @@ test_files:
|
|
232
287
|
- examples/convert_amount.rb
|
233
288
|
- examples/get_order_status.rb
|
234
289
|
- examples/insert_order_with_payment.rb
|
290
|
+
- examples/parse_collection_report.rb
|
291
|
+
- examples/parse_financial_statement.rb
|
292
|
+
- examples/parse_payment_report.rb
|
235
293
|
- examples/process_challenged.rb
|
236
294
|
- examples/set_payment.rb
|
237
295
|
- examples/test_connection.rb
|