webpay 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webpay.rb +1 -1
- data/lib/webpay/data_types.rb +10 -138
- data/webpay.gemspec +1 -1
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a8889c68951dde9cdb420b191c358483146dbc5
|
4
|
+
data.tar.gz: 71ab79035ccba3063b8d9cf8211fe7834a0fc274
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4f202fe47fa0cfd20250ed140523984375dbf952f6bbb4045e7cefbc16772b34d082c2fb45786f739ee07afae4e91563ded50a6a82ed4cf7d33719aa6b50ec1
|
7
|
+
data.tar.gz: 2fb2e0c78fb943467f18c25305dc148d015b12407b7f554730e14cdc42fd739d89339324db884ee2fa578cbc6c92c527a71b6dd8b315c1bbbc238723223f5150
|
data/lib/webpay.rb
CHANGED
data/lib/webpay/data_types.rb
CHANGED
@@ -62,15 +62,10 @@ class WebPay
|
|
62
62
|
|
63
63
|
def request_body
|
64
64
|
result = {}
|
65
|
-
|
66
65
|
copy_if_exists(@attributes, result, 'number', 'request_body');
|
67
|
-
|
68
66
|
copy_if_exists(@attributes, result, 'exp_month', 'request_body');
|
69
|
-
|
70
67
|
copy_if_exists(@attributes, result, 'exp_year', 'request_body');
|
71
|
-
|
72
68
|
copy_if_exists(@attributes, result, 'cvc', 'request_body');
|
73
|
-
|
74
69
|
copy_if_exists(@attributes, result, 'name', 'request_body');
|
75
70
|
result
|
76
71
|
end
|
@@ -86,7 +81,6 @@ class WebPay
|
|
86
81
|
attributes['number']
|
87
82
|
end
|
88
83
|
|
89
|
-
|
90
84
|
def number=(value)
|
91
85
|
attributes['number'] = value
|
92
86
|
end
|
@@ -95,7 +89,6 @@ class WebPay
|
|
95
89
|
attributes['exp_month']
|
96
90
|
end
|
97
91
|
|
98
|
-
|
99
92
|
def exp_month=(value)
|
100
93
|
attributes['exp_month'] = value
|
101
94
|
end
|
@@ -104,7 +97,6 @@ class WebPay
|
|
104
97
|
attributes['exp_year']
|
105
98
|
end
|
106
99
|
|
107
|
-
|
108
100
|
def exp_year=(value)
|
109
101
|
attributes['exp_year'] = value
|
110
102
|
end
|
@@ -113,7 +105,6 @@ class WebPay
|
|
113
105
|
attributes['cvc']
|
114
106
|
end
|
115
107
|
|
116
|
-
|
117
108
|
def cvc=(value)
|
118
109
|
attributes['cvc'] = value
|
119
110
|
end
|
@@ -122,7 +113,6 @@ class WebPay
|
|
122
113
|
attributes['name']
|
123
114
|
end
|
124
115
|
|
125
|
-
|
126
116
|
def name=(value)
|
127
117
|
attributes['name'] = value
|
128
118
|
end
|
@@ -155,23 +145,14 @@ class WebPay
|
|
155
145
|
|
156
146
|
def request_body
|
157
147
|
result = {}
|
158
|
-
|
159
148
|
copy_if_exists(@attributes, result, 'amount', 'request_body');
|
160
|
-
|
161
149
|
copy_if_exists(@attributes, result, 'currency', 'request_body');
|
162
|
-
|
163
150
|
copy_if_exists(@attributes, result, 'customer', 'request_body');
|
164
|
-
|
165
151
|
copy_if_exists(@attributes, result, 'shop', 'request_body');
|
166
|
-
|
167
152
|
copy_if_exists(@attributes, result, 'card', 'request_body');
|
168
|
-
|
169
153
|
copy_if_exists(@attributes, result, 'description', 'request_body');
|
170
|
-
|
171
154
|
copy_if_exists(@attributes, result, 'capture', 'request_body');
|
172
|
-
|
173
155
|
copy_if_exists(@attributes, result, 'expire_days', 'request_body');
|
174
|
-
|
175
156
|
copy_if_exists(@attributes, result, 'uuid', 'request_body');
|
176
157
|
result
|
177
158
|
end
|
@@ -187,7 +168,6 @@ class WebPay
|
|
187
168
|
attributes['amount']
|
188
169
|
end
|
189
170
|
|
190
|
-
|
191
171
|
def amount=(value)
|
192
172
|
attributes['amount'] = value
|
193
173
|
end
|
@@ -196,7 +176,6 @@ class WebPay
|
|
196
176
|
attributes['currency']
|
197
177
|
end
|
198
178
|
|
199
|
-
|
200
179
|
def currency=(value)
|
201
180
|
attributes['currency'] = value
|
202
181
|
end
|
@@ -205,7 +184,6 @@ class WebPay
|
|
205
184
|
attributes['customer']
|
206
185
|
end
|
207
186
|
|
208
|
-
|
209
187
|
def customer=(value)
|
210
188
|
attributes['customer'] = value
|
211
189
|
end
|
@@ -214,7 +192,6 @@ class WebPay
|
|
214
192
|
attributes['shop']
|
215
193
|
end
|
216
194
|
|
217
|
-
|
218
195
|
def shop=(value)
|
219
196
|
attributes['shop'] = value
|
220
197
|
end
|
@@ -223,7 +200,6 @@ class WebPay
|
|
223
200
|
attributes['card']
|
224
201
|
end
|
225
202
|
|
226
|
-
|
227
203
|
def card=(value)
|
228
204
|
value = value.is_a?(Hash) ? WebPay::CardRequest.new(value) : value
|
229
205
|
attributes['card'] = value
|
@@ -233,7 +209,6 @@ class WebPay
|
|
233
209
|
attributes['description']
|
234
210
|
end
|
235
211
|
|
236
|
-
|
237
212
|
def description=(value)
|
238
213
|
attributes['description'] = value
|
239
214
|
end
|
@@ -242,7 +217,6 @@ class WebPay
|
|
242
217
|
attributes['capture']
|
243
218
|
end
|
244
219
|
|
245
|
-
|
246
220
|
def capture=(value)
|
247
221
|
attributes['capture'] = value
|
248
222
|
end
|
@@ -251,7 +225,6 @@ class WebPay
|
|
251
225
|
attributes['expire_days']
|
252
226
|
end
|
253
227
|
|
254
|
-
|
255
228
|
def expire_days=(value)
|
256
229
|
attributes['expire_days'] = value
|
257
230
|
end
|
@@ -260,7 +233,6 @@ class WebPay
|
|
260
233
|
attributes['uuid']
|
261
234
|
end
|
262
235
|
|
263
|
-
|
264
236
|
def uuid=(value)
|
265
237
|
attributes['uuid'] = value
|
266
238
|
end
|
@@ -493,7 +465,6 @@ class WebPay
|
|
493
465
|
attributes['id']
|
494
466
|
end
|
495
467
|
|
496
|
-
|
497
468
|
def id=(value)
|
498
469
|
attributes['id'] = value
|
499
470
|
end
|
@@ -511,7 +482,7 @@ class WebPay
|
|
511
482
|
return params if params.is_a?(self)
|
512
483
|
hash = case params
|
513
484
|
when Hash; params
|
514
|
-
when WebPay::ChargeResponse; {'id' => params.id
|
485
|
+
when WebPay::ChargeResponse; {'id' => params.id}
|
515
486
|
when String; {'id' => params}
|
516
487
|
else
|
517
488
|
raise WebPay::InvalidRequestError.new("#{self} does not accept the given value", params)
|
@@ -527,7 +498,6 @@ class WebPay
|
|
527
498
|
|
528
499
|
def request_body
|
529
500
|
result = {}
|
530
|
-
|
531
501
|
copy_if_exists(@attributes, result, 'amount', 'request_body');
|
532
502
|
result
|
533
503
|
end
|
@@ -543,7 +513,6 @@ class WebPay
|
|
543
513
|
attributes['id']
|
544
514
|
end
|
545
515
|
|
546
|
-
|
547
516
|
def id=(value)
|
548
517
|
attributes['id'] = value
|
549
518
|
end
|
@@ -552,7 +521,6 @@ class WebPay
|
|
552
521
|
attributes['amount']
|
553
522
|
end
|
554
523
|
|
555
|
-
|
556
524
|
def amount=(value)
|
557
525
|
attributes['amount'] = value
|
558
526
|
end
|
@@ -584,19 +552,15 @@ class WebPay
|
|
584
552
|
|
585
553
|
def request_body
|
586
554
|
result = {}
|
587
|
-
|
588
|
-
copy_if_exists(@attributes, result, 'gt', 'request_body');
|
589
|
-
|
590
|
-
copy_if_exists(@attributes, result, 'gte', 'request_body');
|
591
|
-
|
592
|
-
copy_if_exists(@attributes, result, 'lt', 'request_body');
|
593
|
-
|
594
|
-
copy_if_exists(@attributes, result, 'lte', 'request_body');
|
595
555
|
result
|
596
556
|
end
|
597
557
|
|
598
558
|
def query_params
|
599
559
|
result = {}
|
560
|
+
copy_if_exists(@attributes, result, 'gt', 'query_params');
|
561
|
+
copy_if_exists(@attributes, result, 'gte', 'query_params');
|
562
|
+
copy_if_exists(@attributes, result, 'lt', 'query_params');
|
563
|
+
copy_if_exists(@attributes, result, 'lte', 'query_params');
|
600
564
|
return result
|
601
565
|
end
|
602
566
|
|
@@ -606,7 +570,6 @@ class WebPay
|
|
606
570
|
attributes['gt']
|
607
571
|
end
|
608
572
|
|
609
|
-
|
610
573
|
def gt=(value)
|
611
574
|
attributes['gt'] = value
|
612
575
|
end
|
@@ -615,7 +578,6 @@ class WebPay
|
|
615
578
|
attributes['gte']
|
616
579
|
end
|
617
580
|
|
618
|
-
|
619
581
|
def gte=(value)
|
620
582
|
attributes['gte'] = value
|
621
583
|
end
|
@@ -624,7 +586,6 @@ class WebPay
|
|
624
586
|
attributes['lt']
|
625
587
|
end
|
626
588
|
|
627
|
-
|
628
589
|
def lt=(value)
|
629
590
|
attributes['lt'] = value
|
630
591
|
end
|
@@ -633,7 +594,6 @@ class WebPay
|
|
633
594
|
attributes['lte']
|
634
595
|
end
|
635
596
|
|
636
|
-
|
637
597
|
def lte=(value)
|
638
598
|
attributes['lte'] = value
|
639
599
|
end
|
@@ -671,17 +631,11 @@ class WebPay
|
|
671
631
|
|
672
632
|
def query_params
|
673
633
|
result = {}
|
674
|
-
|
675
634
|
copy_if_exists(@attributes, result, 'count', 'query_params');
|
676
|
-
|
677
635
|
copy_if_exists(@attributes, result, 'offset', 'query_params');
|
678
|
-
|
679
636
|
copy_if_exists(@attributes, result, 'created', 'query_params');
|
680
|
-
|
681
637
|
copy_if_exists(@attributes, result, 'customer', 'query_params');
|
682
|
-
|
683
638
|
copy_if_exists(@attributes, result, 'recursion', 'query_params');
|
684
|
-
|
685
639
|
copy_if_exists(@attributes, result, 'shop', 'query_params');
|
686
640
|
return result
|
687
641
|
end
|
@@ -692,7 +646,6 @@ class WebPay
|
|
692
646
|
attributes['count']
|
693
647
|
end
|
694
648
|
|
695
|
-
|
696
649
|
def count=(value)
|
697
650
|
attributes['count'] = value
|
698
651
|
end
|
@@ -701,7 +654,6 @@ class WebPay
|
|
701
654
|
attributes['offset']
|
702
655
|
end
|
703
656
|
|
704
|
-
|
705
657
|
def offset=(value)
|
706
658
|
attributes['offset'] = value
|
707
659
|
end
|
@@ -710,7 +662,6 @@ class WebPay
|
|
710
662
|
attributes['created']
|
711
663
|
end
|
712
664
|
|
713
|
-
|
714
665
|
def created=(value)
|
715
666
|
value = value.is_a?(Hash) ? WebPay::CreatedRange.new(value) : value
|
716
667
|
attributes['created'] = value
|
@@ -720,7 +671,6 @@ class WebPay
|
|
720
671
|
attributes['customer']
|
721
672
|
end
|
722
673
|
|
723
|
-
|
724
674
|
def customer=(value)
|
725
675
|
attributes['customer'] = value
|
726
676
|
end
|
@@ -729,7 +679,6 @@ class WebPay
|
|
729
679
|
attributes['recursion']
|
730
680
|
end
|
731
681
|
|
732
|
-
|
733
682
|
def recursion=(value)
|
734
683
|
attributes['recursion'] = value
|
735
684
|
end
|
@@ -738,7 +687,6 @@ class WebPay
|
|
738
687
|
attributes['shop']
|
739
688
|
end
|
740
689
|
|
741
|
-
|
742
690
|
def shop=(value)
|
743
691
|
attributes['shop'] = value
|
744
692
|
end
|
@@ -805,13 +753,9 @@ class WebPay
|
|
805
753
|
|
806
754
|
def request_body
|
807
755
|
result = {}
|
808
|
-
|
809
756
|
copy_if_exists(@attributes, result, 'card', 'request_body');
|
810
|
-
|
811
757
|
copy_if_exists(@attributes, result, 'description', 'request_body');
|
812
|
-
|
813
758
|
copy_if_exists(@attributes, result, 'email', 'request_body');
|
814
|
-
|
815
759
|
copy_if_exists(@attributes, result, 'uuid', 'request_body');
|
816
760
|
result
|
817
761
|
end
|
@@ -827,7 +771,6 @@ class WebPay
|
|
827
771
|
attributes['card']
|
828
772
|
end
|
829
773
|
|
830
|
-
|
831
774
|
def card=(value)
|
832
775
|
value = value.is_a?(Hash) ? WebPay::CardRequest.new(value) : value
|
833
776
|
attributes['card'] = value
|
@@ -837,7 +780,6 @@ class WebPay
|
|
837
780
|
attributes['description']
|
838
781
|
end
|
839
782
|
|
840
|
-
|
841
783
|
def description=(value)
|
842
784
|
attributes['description'] = value
|
843
785
|
end
|
@@ -846,7 +788,6 @@ class WebPay
|
|
846
788
|
attributes['email']
|
847
789
|
end
|
848
790
|
|
849
|
-
|
850
791
|
def email=(value)
|
851
792
|
attributes['email'] = value
|
852
793
|
end
|
@@ -855,7 +796,6 @@ class WebPay
|
|
855
796
|
attributes['uuid']
|
856
797
|
end
|
857
798
|
|
858
|
-
|
859
799
|
def uuid=(value)
|
860
800
|
attributes['uuid'] = value
|
861
801
|
end
|
@@ -1033,7 +973,6 @@ class WebPay
|
|
1033
973
|
attributes['id']
|
1034
974
|
end
|
1035
975
|
|
1036
|
-
|
1037
976
|
def id=(value)
|
1038
977
|
attributes['id'] = value
|
1039
978
|
end
|
@@ -1068,11 +1007,8 @@ class WebPay
|
|
1068
1007
|
|
1069
1008
|
def request_body
|
1070
1009
|
result = {}
|
1071
|
-
|
1072
1010
|
copy_if_exists(@attributes, result, 'card', 'request_body');
|
1073
|
-
|
1074
1011
|
copy_if_exists(@attributes, result, 'description', 'request_body');
|
1075
|
-
|
1076
1012
|
copy_if_exists(@attributes, result, 'email', 'request_body');
|
1077
1013
|
result
|
1078
1014
|
end
|
@@ -1088,7 +1024,6 @@ class WebPay
|
|
1088
1024
|
attributes['id']
|
1089
1025
|
end
|
1090
1026
|
|
1091
|
-
|
1092
1027
|
def id=(value)
|
1093
1028
|
attributes['id'] = value
|
1094
1029
|
end
|
@@ -1097,7 +1032,6 @@ class WebPay
|
|
1097
1032
|
attributes['card']
|
1098
1033
|
end
|
1099
1034
|
|
1100
|
-
|
1101
1035
|
def card=(value)
|
1102
1036
|
value = value.is_a?(Hash) ? WebPay::CardRequest.new(value) : value
|
1103
1037
|
attributes['card'] = value
|
@@ -1107,7 +1041,6 @@ class WebPay
|
|
1107
1041
|
attributes['description']
|
1108
1042
|
end
|
1109
1043
|
|
1110
|
-
|
1111
1044
|
def description=(value)
|
1112
1045
|
attributes['description'] = value
|
1113
1046
|
end
|
@@ -1116,7 +1049,6 @@ class WebPay
|
|
1116
1049
|
attributes['email']
|
1117
1050
|
end
|
1118
1051
|
|
1119
|
-
|
1120
1052
|
def email=(value)
|
1121
1053
|
attributes['email'] = value
|
1122
1054
|
end
|
@@ -1154,11 +1086,8 @@ class WebPay
|
|
1154
1086
|
|
1155
1087
|
def query_params
|
1156
1088
|
result = {}
|
1157
|
-
|
1158
1089
|
copy_if_exists(@attributes, result, 'count', 'query_params');
|
1159
|
-
|
1160
1090
|
copy_if_exists(@attributes, result, 'offset', 'query_params');
|
1161
|
-
|
1162
1091
|
copy_if_exists(@attributes, result, 'created', 'query_params');
|
1163
1092
|
return result
|
1164
1093
|
end
|
@@ -1169,7 +1098,6 @@ class WebPay
|
|
1169
1098
|
attributes['count']
|
1170
1099
|
end
|
1171
1100
|
|
1172
|
-
|
1173
1101
|
def count=(value)
|
1174
1102
|
attributes['count'] = value
|
1175
1103
|
end
|
@@ -1178,7 +1106,6 @@ class WebPay
|
|
1178
1106
|
attributes['offset']
|
1179
1107
|
end
|
1180
1108
|
|
1181
|
-
|
1182
1109
|
def offset=(value)
|
1183
1110
|
attributes['offset'] = value
|
1184
1111
|
end
|
@@ -1187,7 +1114,6 @@ class WebPay
|
|
1187
1114
|
attributes['created']
|
1188
1115
|
end
|
1189
1116
|
|
1190
|
-
|
1191
1117
|
def created=(value)
|
1192
1118
|
value = value.is_a?(Hash) ? WebPay::CreatedRange.new(value) : value
|
1193
1119
|
attributes['created'] = value
|
@@ -1256,9 +1182,7 @@ class WebPay
|
|
1256
1182
|
|
1257
1183
|
def request_body
|
1258
1184
|
result = {}
|
1259
|
-
|
1260
1185
|
copy_if_exists(@attributes, result, 'card', 'request_body');
|
1261
|
-
|
1262
1186
|
copy_if_exists(@attributes, result, 'uuid', 'request_body');
|
1263
1187
|
result
|
1264
1188
|
end
|
@@ -1274,7 +1198,6 @@ class WebPay
|
|
1274
1198
|
attributes['card']
|
1275
1199
|
end
|
1276
1200
|
|
1277
|
-
|
1278
1201
|
def card=(value)
|
1279
1202
|
value = WebPay::CardRequest.new(value) if value.is_a?(Hash)
|
1280
1203
|
attributes['card'] = value
|
@@ -1284,7 +1207,6 @@ class WebPay
|
|
1284
1207
|
attributes['uuid']
|
1285
1208
|
end
|
1286
1209
|
|
1287
|
-
|
1288
1210
|
def uuid=(value)
|
1289
1211
|
attributes['uuid'] = value
|
1290
1212
|
end
|
@@ -1374,7 +1296,6 @@ class WebPay
|
|
1374
1296
|
attributes['id']
|
1375
1297
|
end
|
1376
1298
|
|
1377
|
-
|
1378
1299
|
def id=(value)
|
1379
1300
|
attributes['id'] = value
|
1380
1301
|
end
|
@@ -1422,7 +1343,6 @@ class WebPay
|
|
1422
1343
|
attributes['id']
|
1423
1344
|
end
|
1424
1345
|
|
1425
|
-
|
1426
1346
|
def id=(value)
|
1427
1347
|
attributes['id'] = value
|
1428
1348
|
end
|
@@ -1544,15 +1464,10 @@ class WebPay
|
|
1544
1464
|
|
1545
1465
|
def query_params
|
1546
1466
|
result = {}
|
1547
|
-
|
1548
1467
|
copy_if_exists(@attributes, result, 'count', 'query_params');
|
1549
|
-
|
1550
1468
|
copy_if_exists(@attributes, result, 'offset', 'query_params');
|
1551
|
-
|
1552
1469
|
copy_if_exists(@attributes, result, 'created', 'query_params');
|
1553
|
-
|
1554
1470
|
copy_if_exists(@attributes, result, 'type', 'query_params');
|
1555
|
-
|
1556
1471
|
copy_if_exists(@attributes, result, 'shop', 'query_params');
|
1557
1472
|
return result
|
1558
1473
|
end
|
@@ -1563,7 +1478,6 @@ class WebPay
|
|
1563
1478
|
attributes['count']
|
1564
1479
|
end
|
1565
1480
|
|
1566
|
-
|
1567
1481
|
def count=(value)
|
1568
1482
|
attributes['count'] = value
|
1569
1483
|
end
|
@@ -1572,7 +1486,6 @@ class WebPay
|
|
1572
1486
|
attributes['offset']
|
1573
1487
|
end
|
1574
1488
|
|
1575
|
-
|
1576
1489
|
def offset=(value)
|
1577
1490
|
attributes['offset'] = value
|
1578
1491
|
end
|
@@ -1581,7 +1494,6 @@ class WebPay
|
|
1581
1494
|
attributes['created']
|
1582
1495
|
end
|
1583
1496
|
|
1584
|
-
|
1585
1497
|
def created=(value)
|
1586
1498
|
value = value.is_a?(Hash) ? WebPay::CreatedRange.new(value) : value
|
1587
1499
|
attributes['created'] = value
|
@@ -1591,7 +1503,6 @@ class WebPay
|
|
1591
1503
|
attributes['type']
|
1592
1504
|
end
|
1593
1505
|
|
1594
|
-
|
1595
1506
|
def type=(value)
|
1596
1507
|
attributes['type'] = value
|
1597
1508
|
end
|
@@ -1600,7 +1511,6 @@ class WebPay
|
|
1600
1511
|
attributes['shop']
|
1601
1512
|
end
|
1602
1513
|
|
1603
|
-
|
1604
1514
|
def shop=(value)
|
1605
1515
|
attributes['shop'] = value
|
1606
1516
|
end
|
@@ -1666,9 +1576,7 @@ class WebPay
|
|
1666
1576
|
|
1667
1577
|
def request_body
|
1668
1578
|
result = {}
|
1669
|
-
|
1670
1579
|
copy_if_exists(@attributes, result, 'description', 'request_body');
|
1671
|
-
|
1672
1580
|
copy_if_exists(@attributes, result, 'details', 'request_body');
|
1673
1581
|
result
|
1674
1582
|
end
|
@@ -1684,7 +1592,6 @@ class WebPay
|
|
1684
1592
|
attributes['description']
|
1685
1593
|
end
|
1686
1594
|
|
1687
|
-
|
1688
1595
|
def description=(value)
|
1689
1596
|
attributes['description'] = value
|
1690
1597
|
end
|
@@ -1693,7 +1600,6 @@ class WebPay
|
|
1693
1600
|
attributes['details']
|
1694
1601
|
end
|
1695
1602
|
|
1696
|
-
|
1697
1603
|
def details=(value)
|
1698
1604
|
attributes['details'] = value
|
1699
1605
|
end
|
@@ -1798,7 +1704,6 @@ class WebPay
|
|
1798
1704
|
attributes['id']
|
1799
1705
|
end
|
1800
1706
|
|
1801
|
-
|
1802
1707
|
def id=(value)
|
1803
1708
|
attributes['id'] = value
|
1804
1709
|
end
|
@@ -1832,9 +1737,7 @@ class WebPay
|
|
1832
1737
|
|
1833
1738
|
def request_body
|
1834
1739
|
result = {}
|
1835
|
-
|
1836
1740
|
copy_if_exists(@attributes, result, 'description', 'request_body');
|
1837
|
-
|
1838
1741
|
copy_if_exists(@attributes, result, 'details', 'request_body');
|
1839
1742
|
result
|
1840
1743
|
end
|
@@ -1850,7 +1753,6 @@ class WebPay
|
|
1850
1753
|
attributes['id']
|
1851
1754
|
end
|
1852
1755
|
|
1853
|
-
|
1854
1756
|
def id=(value)
|
1855
1757
|
attributes['id'] = value
|
1856
1758
|
end
|
@@ -1859,7 +1761,6 @@ class WebPay
|
|
1859
1761
|
attributes['description']
|
1860
1762
|
end
|
1861
1763
|
|
1862
|
-
|
1863
1764
|
def description=(value)
|
1864
1765
|
attributes['description'] = value
|
1865
1766
|
end
|
@@ -1868,7 +1769,6 @@ class WebPay
|
|
1868
1769
|
attributes['details']
|
1869
1770
|
end
|
1870
1771
|
|
1871
|
-
|
1872
1772
|
def details=(value)
|
1873
1773
|
attributes['details'] = value
|
1874
1774
|
end
|
@@ -1934,21 +1834,13 @@ class WebPay
|
|
1934
1834
|
|
1935
1835
|
def request_body
|
1936
1836
|
result = {}
|
1937
|
-
|
1938
1837
|
copy_if_exists(@attributes, result, 'amount', 'request_body');
|
1939
|
-
|
1940
1838
|
copy_if_exists(@attributes, result, 'currency', 'request_body');
|
1941
|
-
|
1942
1839
|
copy_if_exists(@attributes, result, 'customer', 'request_body');
|
1943
|
-
|
1944
1840
|
copy_if_exists(@attributes, result, 'period', 'request_body');
|
1945
|
-
|
1946
1841
|
copy_if_exists(@attributes, result, 'description', 'request_body');
|
1947
|
-
|
1948
1842
|
copy_if_exists(@attributes, result, 'shop', 'request_body');
|
1949
|
-
|
1950
1843
|
copy_if_exists(@attributes, result, 'first_scheduled', 'request_body');
|
1951
|
-
|
1952
1844
|
copy_if_exists(@attributes, result, 'uuid', 'request_body');
|
1953
1845
|
result
|
1954
1846
|
end
|
@@ -1964,7 +1856,6 @@ class WebPay
|
|
1964
1856
|
attributes['amount']
|
1965
1857
|
end
|
1966
1858
|
|
1967
|
-
|
1968
1859
|
def amount=(value)
|
1969
1860
|
attributes['amount'] = value
|
1970
1861
|
end
|
@@ -1973,7 +1864,6 @@ class WebPay
|
|
1973
1864
|
attributes['currency']
|
1974
1865
|
end
|
1975
1866
|
|
1976
|
-
|
1977
1867
|
def currency=(value)
|
1978
1868
|
attributes['currency'] = value
|
1979
1869
|
end
|
@@ -1982,7 +1872,6 @@ class WebPay
|
|
1982
1872
|
attributes['customer']
|
1983
1873
|
end
|
1984
1874
|
|
1985
|
-
|
1986
1875
|
def customer=(value)
|
1987
1876
|
attributes['customer'] = value
|
1988
1877
|
end
|
@@ -1991,7 +1880,6 @@ class WebPay
|
|
1991
1880
|
attributes['period']
|
1992
1881
|
end
|
1993
1882
|
|
1994
|
-
|
1995
1883
|
def period=(value)
|
1996
1884
|
attributes['period'] = value
|
1997
1885
|
end
|
@@ -2000,7 +1888,6 @@ class WebPay
|
|
2000
1888
|
attributes['description']
|
2001
1889
|
end
|
2002
1890
|
|
2003
|
-
|
2004
1891
|
def description=(value)
|
2005
1892
|
attributes['description'] = value
|
2006
1893
|
end
|
@@ -2009,7 +1896,6 @@ class WebPay
|
|
2009
1896
|
attributes['shop']
|
2010
1897
|
end
|
2011
1898
|
|
2012
|
-
|
2013
1899
|
def shop=(value)
|
2014
1900
|
attributes['shop'] = value
|
2015
1901
|
end
|
@@ -2018,7 +1904,6 @@ class WebPay
|
|
2018
1904
|
attributes['first_scheduled']
|
2019
1905
|
end
|
2020
1906
|
|
2021
|
-
|
2022
1907
|
def first_scheduled=(value)
|
2023
1908
|
attributes['first_scheduled'] = value
|
2024
1909
|
end
|
@@ -2027,7 +1912,6 @@ class WebPay
|
|
2027
1912
|
attributes['uuid']
|
2028
1913
|
end
|
2029
1914
|
|
2030
|
-
|
2031
1915
|
def uuid=(value)
|
2032
1916
|
attributes['uuid'] = value
|
2033
1917
|
end
|
@@ -2075,7 +1959,6 @@ class WebPay
|
|
2075
1959
|
attributes['id']
|
2076
1960
|
end
|
2077
1961
|
|
2078
|
-
|
2079
1962
|
def id=(value)
|
2080
1963
|
attributes['id'] = value
|
2081
1964
|
end
|
@@ -2109,7 +1992,6 @@ class WebPay
|
|
2109
1992
|
|
2110
1993
|
def request_body
|
2111
1994
|
result = {}
|
2112
|
-
|
2113
1995
|
copy_if_exists(@attributes, result, 'retry', 'request_body');
|
2114
1996
|
result
|
2115
1997
|
end
|
@@ -2125,7 +2007,6 @@ class WebPay
|
|
2125
2007
|
attributes['id']
|
2126
2008
|
end
|
2127
2009
|
|
2128
|
-
|
2129
2010
|
def id=(value)
|
2130
2011
|
attributes['id'] = value
|
2131
2012
|
end
|
@@ -2134,7 +2015,6 @@ class WebPay
|
|
2134
2015
|
attributes['retry']
|
2135
2016
|
end
|
2136
2017
|
|
2137
|
-
|
2138
2018
|
def retry=(value)
|
2139
2019
|
attributes['retry'] = value
|
2140
2020
|
end
|
@@ -2172,17 +2052,11 @@ class WebPay
|
|
2172
2052
|
|
2173
2053
|
def query_params
|
2174
2054
|
result = {}
|
2175
|
-
|
2176
2055
|
copy_if_exists(@attributes, result, 'count', 'query_params');
|
2177
|
-
|
2178
2056
|
copy_if_exists(@attributes, result, 'offset', 'query_params');
|
2179
|
-
|
2180
2057
|
copy_if_exists(@attributes, result, 'created', 'query_params');
|
2181
|
-
|
2182
2058
|
copy_if_exists(@attributes, result, 'customer', 'query_params');
|
2183
|
-
|
2184
2059
|
copy_if_exists(@attributes, result, 'shop', 'query_params');
|
2185
|
-
|
2186
2060
|
copy_if_exists(@attributes, result, 'suspended', 'query_params');
|
2187
2061
|
return result
|
2188
2062
|
end
|
@@ -2193,7 +2067,6 @@ class WebPay
|
|
2193
2067
|
attributes['count']
|
2194
2068
|
end
|
2195
2069
|
|
2196
|
-
|
2197
2070
|
def count=(value)
|
2198
2071
|
attributes['count'] = value
|
2199
2072
|
end
|
@@ -2202,7 +2075,6 @@ class WebPay
|
|
2202
2075
|
attributes['offset']
|
2203
2076
|
end
|
2204
2077
|
|
2205
|
-
|
2206
2078
|
def offset=(value)
|
2207
2079
|
attributes['offset'] = value
|
2208
2080
|
end
|
@@ -2211,7 +2083,6 @@ class WebPay
|
|
2211
2083
|
attributes['created']
|
2212
2084
|
end
|
2213
2085
|
|
2214
|
-
|
2215
2086
|
def created=(value)
|
2216
2087
|
value = value.is_a?(Hash) ? WebPay::CreatedRange.new(value) : value
|
2217
2088
|
attributes['created'] = value
|
@@ -2221,7 +2092,6 @@ class WebPay
|
|
2221
2092
|
attributes['customer']
|
2222
2093
|
end
|
2223
2094
|
|
2224
|
-
|
2225
2095
|
def customer=(value)
|
2226
2096
|
attributes['customer'] = value
|
2227
2097
|
end
|
@@ -2230,7 +2100,6 @@ class WebPay
|
|
2230
2100
|
attributes['shop']
|
2231
2101
|
end
|
2232
2102
|
|
2233
|
-
|
2234
2103
|
def shop=(value)
|
2235
2104
|
attributes['shop'] = value
|
2236
2105
|
end
|
@@ -2239,7 +2108,6 @@ class WebPay
|
|
2239
2108
|
attributes['suspended']
|
2240
2109
|
end
|
2241
2110
|
|
2242
|
-
|
2243
2111
|
def suspended=(value)
|
2244
2112
|
attributes['suspended'] = value
|
2245
2113
|
end
|
@@ -2390,7 +2258,7 @@ class WebPay
|
|
2390
2258
|
attr_reader :attributes
|
2391
2259
|
|
2392
2260
|
def self.fields
|
2393
|
-
['message', 'type', 'code', 'param', 'charge']
|
2261
|
+
['message', 'type', 'caused_by', 'code', 'param', 'charge']
|
2394
2262
|
end
|
2395
2263
|
|
2396
2264
|
|
@@ -2410,6 +2278,10 @@ class WebPay
|
|
2410
2278
|
attributes['type']
|
2411
2279
|
end
|
2412
2280
|
|
2281
|
+
def caused_by
|
2282
|
+
attributes['caused_by']
|
2283
|
+
end
|
2284
|
+
|
2413
2285
|
def code
|
2414
2286
|
attributes['code']
|
2415
2287
|
end
|
data/webpay.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'webpay'
|
5
|
-
spec.version = '3.1.
|
5
|
+
spec.version = '3.1.1'
|
6
6
|
spec.authors = ['webpay', 'tomykaira']
|
7
7
|
spec.email = ['administrators@webpay.jp', 'tomykaira@webpay.jp']
|
8
8
|
spec.description = 'WebPay is payment gateway service in Japan. see also https://webpay.jp/'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- webpay
|
@@ -9,48 +9,48 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0.9'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0.9'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rake
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 10.3.1
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 10.3.1
|
56
56
|
description: WebPay is payment gateway service in Japan. see also https://webpay.jp/
|
@@ -61,20 +61,20 @@ executables: []
|
|
61
61
|
extensions: []
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
|
+
- ".gitignore"
|
64
65
|
- Gemfile
|
65
|
-
- .gitignore
|
66
66
|
- Rakefile
|
67
|
-
- lib/webpay/api_resource.rb
|
68
67
|
- lib/webpay.rb
|
68
|
+
- lib/webpay/account.rb
|
69
|
+
- lib/webpay/api_resource.rb
|
69
70
|
- lib/webpay/charge.rb
|
70
71
|
- lib/webpay/customer.rb
|
71
|
-
- lib/webpay/token.rb
|
72
|
-
- lib/webpay/event.rb
|
73
|
-
- lib/webpay/shop.rb
|
74
|
-
- lib/webpay/recursion.rb
|
75
|
-
- lib/webpay/account.rb
|
76
72
|
- lib/webpay/data_types.rb
|
77
73
|
- lib/webpay/error.rb
|
74
|
+
- lib/webpay/event.rb
|
75
|
+
- lib/webpay/recursion.rb
|
76
|
+
- lib/webpay/shop.rb
|
77
|
+
- lib/webpay/token.rb
|
78
78
|
- webpay.gemspec
|
79
79
|
homepage: https://webpay.jp
|
80
80
|
licenses:
|
@@ -86,17 +86,17 @@ require_paths:
|
|
86
86
|
- lib
|
87
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- -
|
89
|
+
- - ">="
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '0'
|
92
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.0
|
99
|
+
rubygems_version: 2.2.0
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: Bindings of WebPay API
|