adyen-admin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/.gitignore +5 -0
  2. data/.travis.yml +3 -0
  3. data/CHANGES.md +16 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +26 -0
  6. data/README.md +57 -0
  7. data/Rakefile +24 -0
  8. data/VERSION +1 -0
  9. data/adyen-admin.gemspec +25 -0
  10. data/lib/adyen-admin/client.rb +26 -0
  11. data/lib/adyen-admin/skin.rb +180 -0
  12. data/lib/adyen-admin.rb +16 -0
  13. data/spec/adyen-admin/client_spec.rb +21 -0
  14. data/spec/adyen-admin/skin_spec.rb +177 -0
  15. data/spec/fixtures/cassettes/Adyen_Admin_Client/_login/passes_with_correct_username_password.yml +661 -0
  16. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_all/returns_the_skins.yml +269 -0
  17. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_download/gets_the_file.yml +275 -0
  18. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_test_url/returns_url_to_test.yml +941 -0
  19. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_upload/valid_set/increases_version.yml +7769 -0
  20. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_version/returns_live_value.yml +77 -0
  21. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_version/returns_test_value.yml +77 -0
  22. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_version/returns_uploaded_value.yml +666 -0
  23. data/spec/fixtures/cassettes/login.yml +668 -0
  24. data/spec/fixtures/skins/DV3tf95f/css/screen.css +262 -0
  25. data/spec/fixtures/skins/DV3tf95f/inc/order_data.txt +1 -0
  26. data/spec/fixtures/skins/JH0815/css/screen.css +262 -0
  27. data/spec/fixtures/skins/JH0815/skin.html.erb +13 -0
  28. data/spec/fixtures/skins/base/css/print.css +7 -0
  29. data/spec/fixtures/skins/base/css/screen_ie6.css +1 -0
  30. data/spec/fixtures/skins/base/img/Airliner.airjamaica.a340.arp.750pix.jpg +0 -0
  31. data/spec/fixtures/skins/base/img/Eurofighter.jpg +0 -0
  32. data/spec/fixtures/skins/base/img/bg_gr.jpg +0 -0
  33. data/spec/fixtures/skins/base/img/blog_gr.jpg +0 -0
  34. data/spec/fixtures/skins/base/img/category.gif +0 -0
  35. data/spec/fixtures/skins/base/img/mig.jpg +0 -0
  36. data/spec/fixtures/skins/base/img/top1.jpg +0 -0
  37. data/spec/fixtures/skins/base/img/top2.jpg +0 -0
  38. data/spec/fixtures/skins/base/img/top3.jpg +0 -0
  39. data/spec/fixtures/skins/base/inc/cfooter.txt +15 -0
  40. data/spec/fixtures/skins/base/inc/cheader.txt +11 -0
  41. data/spec/fixtures/skins/base/inc/pmfooter.txt +1 -0
  42. data/spec/fixtures/skins/base/inc/pmheader.txt +4 -0
  43. data/spec/fixtures/skins/base/res/resources.properties +0 -0
  44. data/spec/fixtures/skins/example-7hFAQnmt/css/print.css +17 -0
  45. data/spec/fixtures/skins/example-7hFAQnmt/css/screen.css +704 -0
  46. data/spec/fixtures/skins/example-7hFAQnmt/css/screen_ie6.css +7 -0
  47. data/spec/fixtures/skins/example-7hFAQnmt/img/banner_top.png +0 -0
  48. data/spec/fixtures/skins/example-7hFAQnmt/img/bg.gif +0 -0
  49. data/spec/fixtures/skins/example-7hFAQnmt/img/bg_buttons.png +0 -0
  50. data/spec/fixtures/skins/example-7hFAQnmt/img/button_template.xcf +0 -0
  51. data/spec/fixtures/skins/example-7hFAQnmt/img/gradient.png +0 -0
  52. data/spec/fixtures/skins/example-7hFAQnmt/img/logo.png +0 -0
  53. data/spec/fixtures/skins/example-7hFAQnmt/img/logo.xcf +0 -0
  54. data/spec/fixtures/skins/example-7hFAQnmt/inc/cfooter.txt +1 -0
  55. data/spec/fixtures/skins/example-7hFAQnmt/inc/cheader.txt +2 -0
  56. data/spec/fixtures/skins/example-7hFAQnmt/inc/pmfooter.txt +1 -0
  57. data/spec/fixtures/skins/example-7hFAQnmt/inc/pmheader.txt +2 -0
  58. data/spec/fixtures/skins/example-7hFAQnmt/metadata.yml +5 -0
  59. data/spec/spec_helper.rb +21 -0
  60. metadata +228 -0
@@ -0,0 +1,704 @@
1
+ html {
2
+ height: 100%;
3
+ max-height: 100%;
4
+ font-size: 0.75em;
5
+ font-family: tahoma, verdana, arial, sans-serif;
6
+ }
7
+
8
+ body {
9
+ background-color: #fff;
10
+ background-image: url("../img/bg.gif");
11
+ color: #333;
12
+ }
13
+
14
+ /* Main Elements */
15
+ #logoheader {
16
+ height: 90px;
17
+ background: url("../img/banner_top.png");
18
+ background-position: 0px 52px;
19
+ background-repeat: repeat-x;
20
+ background-color: #508ec8;
21
+ }
22
+
23
+
24
+ #content {
25
+ background-color: white;
26
+ padding: 5px;
27
+ border-left: 1px solid #ccc;
28
+ border-right: 1px solid #ccc;
29
+ margin-left: 50px;
30
+ margin-right: 50px;
31
+ }
32
+
33
+ #pmcontent {
34
+ border: 1px solid #eee;
35
+ margin-top: 5px;
36
+ margin-bottom: 0px;
37
+ padding: 6px 12px;
38
+ }
39
+
40
+ #foot {
41
+ background-color: white;
42
+ padding: 5px;
43
+ padding-top: 0px;
44
+ border-left: 1px solid #ccc;
45
+ border-right: 1px solid #ccc;
46
+ border-bottom: 1px solid #ccc;
47
+ margin-left: 50px;
48
+ margin-right: 50px;
49
+ }
50
+
51
+ #footc {
52
+ border: 1px solid #eee;
53
+ margin-bottom: 0px;
54
+ padding: 0px 0px;
55
+ height: 68px;
56
+ }
57
+
58
+ .paddiv1, .paddiv2 {
59
+ height: 0px;
60
+ }
61
+
62
+ #nextstep {
63
+ font-weight: bold;
64
+ height: 22px;
65
+ color: #fff;
66
+ font-size: 1.1em;
67
+ }
68
+
69
+ #nextstepc {
70
+ text-align: center;
71
+ padding-top: 4px;
72
+ padding-bottom: 2px;
73
+ background-color: #999;
74
+ }
75
+
76
+ .popupMsg {
77
+ display: none;
78
+ border: 1px solid #666;
79
+ background-color: #eee;
80
+ margin-bottom: 5px;
81
+ margin-right: 10px;
82
+ margin-left: 10px;
83
+ padding: 6px;
84
+ }
85
+
86
+ .popupMsgOPP {
87
+ position: relative;
88
+ top: -155px;
89
+ margin-left: 0px;
90
+ z-index: 10;
91
+ }
92
+
93
+ /* Common HTML Elements in #content */
94
+
95
+ #content p,#content ul,#content pre {
96
+ padding: 5px;
97
+ }
98
+
99
+ #content h2 {
100
+ color: #367EA6;
101
+ padding-top: 6px;
102
+ font-size: 1.3em;
103
+ font-weight: bold;
104
+ margin-top: 0.5em;
105
+ margin-bottom: 0.8em;
106
+ }
107
+
108
+ #content h3 {
109
+ margin-left: 5px;
110
+ font-size: 1.3em;
111
+ font-weight: bold;
112
+ margin-top: 0.5em;
113
+ margin-bottom: 0.5em;
114
+ }
115
+
116
+ #content pre {
117
+ font-family: courier, monospace;
118
+ font-size: 1em;
119
+ }
120
+
121
+ .pmmdetails {
122
+ padding-left: 80px;
123
+ }
124
+
125
+ .fieldSubHeader {
126
+ font-weight:bold;
127
+ margin-bottom:0.5em;
128
+ margin-top:0.5em;
129
+ }
130
+
131
+ /* Table */
132
+ table.basetable {
133
+ margin-left: 5px;
134
+ }
135
+
136
+ table.basetable td {
137
+ padding-bottom: 0.6em;
138
+ padding-right: 0.6em;
139
+ }
140
+
141
+ /* Order Data Layout */
142
+ table.od {
143
+ margin: 10px 0px 10px 0px;
144
+ }
145
+
146
+ table.od td, table.od th {
147
+ padding: 5px;
148
+ border: 1px solid #999;
149
+ }
150
+
151
+ table.od th {
152
+ font-weight: bold;;
153
+ }
154
+
155
+ /* Image Buttons (Payment Methods) */
156
+
157
+ .imgB, .footerB {
158
+ width: 158px;
159
+ height: 32px;
160
+ padding: 0;
161
+ border: 0;
162
+ background: transparent url("../img/bg_buttons.png") no-repeat left 0px;
163
+ overflow: hidden;
164
+ color: #444;
165
+ cursor: pointer; /* hand-shaped cursor */
166
+ cursor: hand; /* for IE 5.x */
167
+ font-weight: bold;
168
+ font-size: 1.2em;
169
+ }
170
+
171
+ .imgB:hover, .imgB:active, .footerB:hover, .footerB:active {
172
+ color: #66f;
173
+ }
174
+
175
+ .pmB {
176
+ width: 238px;
177
+ height: 42px;
178
+ padding-left: 85px;
179
+ text-align: left;
180
+ margin-bottom: 6px;
181
+ font-size: 1.1em;
182
+ background-color: transparent !important;
183
+ }
184
+
185
+ /* Image Buttons Footer (next/previous/pay) */
186
+
187
+ #footerb1div {
188
+ float: left;
189
+ text-align: left;
190
+ margin: 8px 0px 0px 30px;
191
+ }
192
+
193
+ #footerb2div {
194
+ float: right;
195
+ text-align: right;
196
+ margin: 8px 30px 0px 0px;
197
+ }
198
+
199
+ .cancelB {
200
+ background-position: left 0px;
201
+ }
202
+
203
+ .nextB {
204
+ background-position: right -32px;
205
+ }
206
+
207
+ .backB {
208
+ background-position: left -96px;
209
+ }
210
+
211
+ .finishB {
212
+ background-position: right -64px;
213
+ }
214
+
215
+ /* Links */
216
+
217
+ a {
218
+ text-decoration: none;
219
+ color: #39f
220
+ }
221
+
222
+ a:visited {
223
+ text-decoration: none;
224
+ color: #39f
225
+ }
226
+
227
+ /* Form elements */
228
+
229
+ input,select {
230
+ font-size: 0.95em;
231
+ padding: 1px;
232
+ border: 1px solid #C3C3C3;
233
+ border-top-color: #7C7C7C;
234
+ border-bottom-color: #DDD;
235
+ }
236
+
237
+ button:focus {
238
+ outline: none;
239
+ }
240
+
241
+ /* Validation */
242
+
243
+ table.basetable .inputField {
244
+ padding: 1px 2px 2px 2px;
245
+ background-color: #EAF5FA;
246
+ }
247
+
248
+ table.basetable .errorField {
249
+ border: 2px solid #f33;
250
+ background-color: #fff3f3;
251
+ padding: 1px 1px 1px 1px;
252
+ }
253
+
254
+ .fieldDiv {
255
+ padding-right: 20px;
256
+ background: transparent;
257
+ }
258
+
259
+ .errorDiv {
260
+ background: transparent url("/hpp/img/icons/error.png") no-repeat right 3px;
261
+ padding-right: 20px;
262
+ }
263
+
264
+ .errorFrame {
265
+ background-color: #fff3f3;
266
+ }
267
+
268
+ .pmOc {
269
+ margin-bottom: 10px;
270
+ }
271
+
272
+ .pmOc div.pmOcDetail {
273
+ background-color: #E0E6FF;
274
+ border: 1px solid #CCCCFF;
275
+ padding: 6px;
276
+ display: block;
277
+ margin-right: 8px;
278
+ margin-bottom: 8px;
279
+ float: left;
280
+ width: 168px;
281
+ }
282
+
283
+ .pmOc div.pmOcPad {
284
+ height: 1px;
285
+ display: block;
286
+ clear: both;
287
+ }
288
+
289
+ .pmOcRemove {
290
+ float: left;
291
+ margin-left: 10px;
292
+ }
293
+
294
+ .pmOcInput {
295
+ background-color: #fff;
296
+ }
297
+
298
+ .pmOcRadio {
299
+ float: left;
300
+ }
301
+
302
+ .pmOcDetailSummary {
303
+
304
+ height: 97px; /*101px;*/
305
+ width: 160px;
306
+ color: white;
307
+ clear:both;
308
+ font-family:monospace;
309
+ font-size: 11px;
310
+ font-weight:bold;
311
+ line-height:1.3;
312
+ padding-top: 10px;
313
+ margin:4px 0 0 4px;
314
+ }
315
+
316
+
317
+ .pmOcDetailSummaryCard {
318
+ background-image: url(/hpp/img/card_generic.png);
319
+ background-repeat: no-repeat;
320
+ }
321
+ .pmOcDetailSummaryElv {
322
+ background-image: url(/hpp/img/elv_generic.png);
323
+ background-repeat: no-repeat;
324
+ }
325
+
326
+ .pmOcLogo {
327
+ height:22px;
328
+ width:40px;
329
+ background-color: white;
330
+ margin: 0px 0px 11px 110px;
331
+ }
332
+ .pmOcElv {
333
+ color: #888;
334
+ margin-bottom: 19px;
335
+ height:15px;
336
+ margin-left: 10px;
337
+ letter-spacing: 3px;
338
+ }
339
+ .pmOcPan {
340
+ height:15px;
341
+ padding-top: 9px;
342
+ margin-left: 14px;
343
+ }
344
+ .pmOcExp {
345
+ height:15px;
346
+ font-size: 10px;
347
+ margin-left: 105px;
348
+ }
349
+ .pmOcName {
350
+ height:15px;
351
+ margin-left: 14px;
352
+ text-transform: uppercase;
353
+ }
354
+
355
+ .pmOcArrow {
356
+ margin-left: 65px;
357
+ height: 20px;
358
+ background-repeat: no-repeat;
359
+ background-image: url(/hpp/img/arrow_down.png);
360
+ }
361
+
362
+ div.pmOcDetail .fieldDiv, div.pmOcDetail .errorDiv {
363
+ display: inline;
364
+ }
365
+
366
+ div.pmOcDetail input {
367
+ background-color: white;
368
+ }
369
+
370
+ div.pmOcPay {
371
+ text-align: right;
372
+ }
373
+
374
+
375
+ /* ivr specific css */
376
+
377
+ .ivricon {
378
+ display: block;
379
+ margin-right: 10px;
380
+ float: left;
381
+ }
382
+ .ivrmessage {
383
+ display: block;
384
+ font-weight: bold;
385
+ }
386
+ .ivrdetail {
387
+ display: block;
388
+ margin-top: 5px;
389
+ font-weight: bold;
390
+ font-family: arial, sans-serif;
391
+ }
392
+
393
+
394
+ #phoneNumber .ivrdetail {
395
+ color: #57A022;
396
+ font-size: 2.4em;
397
+ }
398
+
399
+ #payCode .ivrdetail {
400
+ color: #1F5F98;
401
+ font-size: 2.4em;
402
+ }
403
+ #timeToCall .ivrmessage {
404
+ font-weight: normal;
405
+ line-height: 1.1em;
406
+ }
407
+
408
+ #timeToCall .ivrmessage .phoneDetails, #timeLeft {
409
+ font-weight: bold;
410
+ color: #57A022;
411
+ font-family: arial, sans-serif;
412
+ }
413
+
414
+
415
+ .progressW {
416
+ width: 400px;
417
+ margin-left: 50px;
418
+ padding: 1px;
419
+ border: 1px solid #666;
420
+ background-color: transparent
421
+ }
422
+ .progress {
423
+ width: 0px;
424
+ font-size: 1px;
425
+ height: 14px;
426
+ margin: 0px;
427
+ padding:0px;
428
+ background-color: #66C931;
429
+ background-image: url(/hpp/img/progress3.png);
430
+ background-repeat: repeat-x;
431
+ }
432
+
433
+ .ebanking_FIFrame {
434
+ width: 300px;
435
+ float: right;
436
+ }
437
+
438
+ .ebanking_FIHeader {
439
+ font-weight: bold;
440
+ margin-bottom: 5px;
441
+ margin-top: 5px;
442
+ color: #1678A5;
443
+ }
444
+
445
+ .ebanking_FIText {
446
+ padding: 5px;
447
+ }
448
+
449
+ .invoicestat {
450
+ width: 55%;
451
+ border: 2px solid black;
452
+ font-family: courier, monospace;
453
+ padding: 17px 10px 17px 61px;
454
+ }
455
+
456
+ .invoicestatPaid { border-color: green; background-color: #efe; }
457
+ .invoicestatUnPaid { border-color: orange; background-color: #fff5ee; }
458
+ .invoicestatCannotPay { border-color: red; background-color: #fee; }
459
+
460
+
461
+ .airlinedatalabel, .airlinelegdatalabel{
462
+ float:left;
463
+ clear:left;
464
+ padding-top:7px;
465
+ font-weight:bold;
466
+
467
+ }
468
+
469
+ .airlinedataelement, .airlinelegdataelement{
470
+ float:right;
471
+ padding-top:7px;
472
+ }
473
+
474
+
475
+ .airlinedata{
476
+ float:left;
477
+ width:800px;
478
+ height:100px;
479
+ border:solid 2px #367EA6;
480
+ padding:10px;
481
+ margin:10px;
482
+ clear:both;
483
+ position:relative;
484
+ }
485
+
486
+ .airlinelegdata{
487
+ float:left;
488
+ width:800px;
489
+ border:solid 2px #367EA6;
490
+ padding:10px;
491
+ margin:10px;
492
+ clear:both;
493
+ position:relative;
494
+ height:120px;
495
+ }
496
+
497
+ .airlinedatatitle{
498
+ background: #367EA6;
499
+ color: white;
500
+ font-size: 20px;
501
+ margin: -10px;
502
+ padding: 6px;
503
+ }
504
+
505
+ .airlinelegdatatitle{
506
+ background: #367EA6;
507
+ color: white;
508
+ font-size: 20px;
509
+ margin: -10px;
510
+ padding: 5px;
511
+ left:640px;
512
+ position:absolute;
513
+
514
+ }
515
+
516
+ .endairlinelegdata{
517
+ clear:both;
518
+ }
519
+
520
+
521
+
522
+ .labeldepartairport{
523
+ background: #367EA6;
524
+ color: white;
525
+ font-size: 13px;
526
+ left: 10px;
527
+ position: absolute;
528
+ top: 0px;
529
+ padding: 5px;
530
+ }
531
+
532
+ .elementdepartairport{
533
+ background: #367EA6;
534
+ color: white;
535
+ font-size: 13px;
536
+ left: 200px;
537
+ position: absolute;
538
+ top: 0px;
539
+ padding: 5px;
540
+ }
541
+
542
+ .labeldestinationcode{
543
+ background: #367EA6;
544
+ color: white;
545
+ font-size: 13px;
546
+ left: 10px;
547
+ position: absolute;
548
+ top: 20px;
549
+ padding: 5px;
550
+ }
551
+
552
+ .elementdestinationcode{
553
+ background: #367EA6;
554
+ color: white;
555
+ left: 200px;
556
+ font-size: 13px;
557
+ position: absolute;
558
+ top: 20px;
559
+ padding: 5px;
560
+ }
561
+
562
+ .airlinelegdataheader{
563
+ background: #367EA6;
564
+ height: 50px;
565
+ left: 0;
566
+ position: absolute;
567
+ width: 820px;
568
+ top: 0;
569
+ }
570
+
571
+ .labelflightnumber{
572
+ position: absolute;
573
+ top:50px;
574
+ left:10px;
575
+ }
576
+ .elementflightnumber{
577
+ position: absolute;
578
+ top:50px;
579
+ left:110px;
580
+ }
581
+ .labelcarriercode{
582
+ position: absolute;
583
+ top:50px;
584
+ left:350px;
585
+ }
586
+ .elementcarriercode{
587
+ position: absolute;
588
+ top:50px;
589
+ left:450px;
590
+ }
591
+ .labelfarebasecode{
592
+ display:none;
593
+ }
594
+ .elementfarebasecode{
595
+ display:none;
596
+ }
597
+ .labelclassoftravel{
598
+ position: absolute;
599
+ top:75px;
600
+ left:10px;
601
+ }
602
+ .elementclassoftravel{
603
+ position: absolute;
604
+ top:75px;
605
+ left:110px;
606
+ }
607
+ .labelstopovercode{
608
+ display:none;
609
+ }
610
+ .elementstopovercode{
611
+ display:none;
612
+ }
613
+ .labeldateoftravel{
614
+ position: absolute;
615
+ top:100px;
616
+ left:10px;
617
+ }
618
+ .elementdateoftravel{
619
+ position: absolute;
620
+ top:100px;
621
+ left:110px;
622
+ }
623
+ .labeldeparttax{
624
+ display:none;
625
+ }
626
+ .elementdeparttax{
627
+ display:none;
628
+ }
629
+
630
+
631
+ #labelairlinepassengername{
632
+ position:absolute;
633
+ left:10px;
634
+ top:30px;
635
+ }
636
+ #airlinepassengername{
637
+ position:absolute;
638
+ left:150px;
639
+ top:30px;
640
+ }
641
+ #labelairlinecustomerreferencenumber{
642
+ position:absolute;
643
+ left:300px;
644
+ top:30px;
645
+ }
646
+ #airlinecustomerreferencenumber{
647
+ position:absolute;
648
+ left:500px;
649
+ top:30px;
650
+ }
651
+ #labelairlineticketissueaddress{
652
+ position:absolute;
653
+ left:10px;
654
+ top:55px;
655
+ }
656
+ #airlineticketissueaddress{
657
+ position:absolute;
658
+ left:150px;
659
+ top:55px;
660
+ }
661
+ #labelairlineticketnumber{
662
+ position:absolute;
663
+ left:300px;
664
+ top:55px;
665
+ }
666
+ #airlineticketnumber{
667
+ position:absolute;
668
+ left:500px;
669
+ top:55px;
670
+ }
671
+ #labelairlinetravelagencycode{
672
+ display:none;
673
+ }
674
+ #airlinetravelagencycode{
675
+ display:none;
676
+ }
677
+ #labelairlinetravelagencyname{
678
+ position:absolute;
679
+ left:10px;
680
+ top:80px;
681
+ }
682
+ #airlinetravelagencyname{
683
+ position:absolute;
684
+ left:150px;
685
+ top:80px;
686
+ }
687
+ #labelairlineagencyplanname{
688
+ display:none;
689
+ }
690
+ #airlineagencyplanname{
691
+ display:none;
692
+ }
693
+ #labelairlineagencyinvoicenumber{
694
+ display:none;
695
+ }
696
+ #airlineagencyinvoicenumber{
697
+ display:none;
698
+ }
699
+ .receiptNoPrint {
700
+ display: none;
701
+ }
702
+ .receiptPrint {
703
+ display: none;
704
+ }
@@ -0,0 +1,7 @@
1
+ /* IE layout correction for the footer buttons */
2
+ #footerb1div {
3
+ margin-left: 10px;
4
+ }
5
+ #footerb2div {
6
+ margin-right: 10px;
7
+ }
@@ -0,0 +1,2 @@
1
+ <div id="logoheader"></div>
2
+ <div id="pmcontent">