issuer_response_codes 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78eac7a89806d60339f0ef7f789ed08b60a6fb675e651e620cd51e3de49dbcfe
4
- data.tar.gz: 6b48a34c1925e916cc67a6c29cc4857104e7e34081588f49035294024b383d8c
3
+ metadata.gz: 96863d0a718b746cc2d7543eec08031745116fd7e89414a086029c5d97b1f248
4
+ data.tar.gz: fcd5a9300e1865ec6acbd839b336f1fa1da691fc6ce53e15823941c3a034b44c
5
5
  SHA512:
6
- metadata.gz: bce421e3c6b41c00929a3bd71756b28d4002707dbc4ff2bc65c284a2055fe548b5b855492d7dbfbffdc9651b2527f7d903d6c654bca7327556ca2792899226db
7
- data.tar.gz: 73cc431569db42ccae5f0c899858af55eb04719964525f8b648c759fac085e2e5f23f2475ecce812c421ff1f833dcf20de28fb97412587f23be11533ba5b6593
6
+ metadata.gz: 169699f6799aa79f969ec4f7e73b297dfe660bae28d721ddb9dd3f6527ecb7ca7592df2a96c7838bc7a400a54e2b510f1e5f7bd3fea3b8dc4ff2fee1de2939a8
7
+ data.tar.gz: 2bd2733c8e35c6a019c835d78117603fb0034cf0fa644d2728878f3264ac17e555c14e1970865fa2ce7bf46bdf01b039e5e267db9fd4eae6d47f9e4b7c6353bc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- issuer_response_codes (0.3.0)
4
+ issuer_response_codes (0.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # IssuerResponseCodes
2
2
 
3
- This gem provides a quite comprehensive library of Issuer Response Code and 3D-Secure Status Code descriptions (for both cardholders and merchants) with suggested actions in 9 languages:
3
+ This gem provides a quite comprehensive library of Issuer Response Code and 3D-Secure Status Code descriptions (for both cardholders and merchants) with suggested actions in many languages:
4
+
4
5
  - Complete locales:
5
6
  - en
6
7
  - pl
@@ -139,7 +140,7 @@ code.behaviour #=> "Please contact your card issuer to get more details and try
139
140
 
140
141
  ##### Locale
141
142
 
142
- The default locale is `:en`. There are 7 in total: `%i[en pl da ee lt lv sv]`. Only the first two are complete, the rest are partially in English.
143
+ The default locale is `:en`. Only the first two are complete, the rest are partially in English.
143
144
 
144
145
  ```ruby
145
146
  code = ::IssuerResponseCodes::Code.new(id: '54')
@@ -152,6 +153,8 @@ code = ::IssuerResponseCodes::Code.new(id: '54', locale: :pl)
152
153
  code.reason #=> "Karta utraciła ważność."
153
154
  ```
154
155
 
156
+ A full list of available locales is stored in `IssuerResponseCodes::AVAILABLE_LOCALES`.
157
+
155
158
  #### Methods
156
159
 
157
160
  ##### reason
@@ -266,7 +269,7 @@ code.behaviour #=> "Please use a different card or contact issuer. Transactions
266
269
 
267
270
  ##### Locale
268
271
 
269
- The default locale is `:en`. There are 7 in total: `%i[en pl da ee lt lv sv]`. Only the first two are complete, the rest are partially in English.
272
+ The default locale is `:en`. Only the first two are complete, the rest are partially in English.
270
273
 
271
274
  ```ruby
272
275
  code = ::IssuerResponseCodes::TdsCode.new(id: '11', target: :cardholder)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module IssuerResponseCodes
4
4
  # @return [String]
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.2'
6
6
  end
data/lib/locale/da.yml CHANGED
@@ -110,35 +110,45 @@ da:
110
110
  fraud_notice: 'IMPORTANT NOTICE: It is forbidden to retry transactions that ended with this code. It may be recognized as a fraud attempt!'
111
111
  fraudulent_codes:
112
112
  '04': true
113
+ 'B04': true
113
114
  '07': true
114
115
  '41': true
116
+ 'B41': true
115
117
  '43': true
118
+ 'B43': true
116
119
  behaviour:
117
120
  '00': "Prøv igen senere, kontakt med sælger eller med Espago Support Team."
118
121
  '05': "Tjek venligst dine kortindstillinger for disse transaktionstyper eller brug et andet kort."
119
122
  '13': "Tjek venligst indstillinger for din konto og konfigurationer af grænser. Kontakt venligst din kortudsteder og prøv igen senere."
120
123
  '14': "Kontroller indtastede data og prøv igen."
124
+ 'B14': "Kontroller indtastede data og prøv igen."
121
125
  'N7': "Kontroller indtastede data og prøv igen."
122
126
  '51': "Tjek venligst penge på din konto og prøv igen senere."
123
127
  '54': "Kontrollér dit kort eller prøv et andet."
128
+ 'B54': "Kontrollér dit kort eller prøv et andet."
124
129
  '57': "Tjek venligst dine kortindstillinger for disse transaktionstyper eller brug et andet kort."
125
130
  '61': "Tjek venligst indstillinger for din konto og konfigurationer af grænser. Kontakt venligst din kortudsteder og prøv igen senere."
126
131
  '82': "Kontroller indtastede data og prøv igen."
132
+ 'E1': "Brug venligst et andet kort, eller kontakt sælgeren."
127
133
  # incomplete translations
128
134
  unknown: "Please contact our support team."
129
135
  '01': "Please contact your card issuer."
130
136
  '02': "Please contact your card issuer."
131
137
  '03': "Please contact your card issuer and try again later."
132
138
  '04': "Please contact your card issuer and try again later."
139
+ 'B04': "Please contact your card issuer and try again later."
133
140
  '07': "Please contact your card issuer and try again later."
134
141
  '12': "Please contact your card issuer to get more details and try again later."
135
142
  '30': "Please contact your card issuer to get more details and try again later."
136
143
  '41': "Please contact your card issuer to get more details and try again later."
144
+ 'B41': "Please contact your card issuer to get more details and try again later."
137
145
  '43': "Please contact your card issuer to get more details and try again later."
146
+ 'B43': "Please contact your card issuer to get more details and try again later."
138
147
  '58': "Please check your card settings for those transaction types or use another card."
139
148
  '59': "Please contact your card issuer to get more details and try again later."
140
149
  '62': "Please contact your bank."
141
150
  '65': "Change your limits settings or try again later."
151
+ 'B65': "Change your limits settings or try again later."
142
152
  '75': "Please check your CVV/CVC/PIN code on your card."
143
153
  '78': "Please activate your card and try again later."
144
154
  '91': "Please try again later."
@@ -156,12 +166,15 @@ da:
156
166
  '05': "Banken har afvist transaktionen på grund af sikkerhedskontrol (brugt kort understøtter ikke tilbagebetalinger eller betaling uden CVV-kode), midlerne er blevet frosset eller grænsen overskredet, eller kortet understøtter ikke MOTO / internet-transaktioner."
157
167
  '13': "MOTO / eCommerce betalinger på kort er inaktive eller beløbsgrænse overstiger."
158
168
  '14': "Ugyldigt kortnummer."
169
+ 'B14': "Ugyldigt kortnummer."
159
170
  'N7': "Negative CVV / CVC resultater."
160
171
  '51': "Ikke nok penge."
161
172
  '54': "Udgået kort."
173
+ 'B54': "Udgået kort."
162
174
  '57': "Banken har afvist transaktionen, da dette kreditkort ikke kan bruges til denne type transaktion (e-handel, MOTO eller tilbagevendende)."
163
175
  '61': "Banken har afvist transaktionen."
164
176
  '82': "Negative CVV / CVC resultater."
177
+ 'E1': "Grænsen for afslag er overskredet."
165
178
  # incomplete translations
166
179
  unknown: "Unknown reason."
167
180
  '01': "Authorization Error."
@@ -173,6 +186,7 @@ da:
173
186
  '59': "Your bank has declined this transaction"
174
187
  '62': "Your card can be not supported due to restrictions placed on the card or Seller country exclusion (imposition an embargo), or bank blocked a card eg. due to unacceptable debit balance."
175
188
  '65': "Activity count limit exceeded."
189
+ 'B65': "Activity count limit exceeded."
176
190
  '75': "Invalid activity count limit exceeded."
177
191
  '78': "Inactive card."
178
192
  '91': "Temporary issuer error."
@@ -189,12 +203,18 @@ da:
189
203
  merchant:
190
204
  <<: *issuer_response_code
191
205
  '04': "Pickup card."
206
+ 'B04': "Pickup card."
192
207
  '07': "Pickup card."
193
208
  '41': "Lost card."
209
+ 'B41': "Lost card."
194
210
  '43': "Stolen card."
211
+ 'B43': "Stolen card."
195
212
  cardholder:
196
213
  <<: *issuer_response_code
197
214
  '04': "Your bank has declined this transaction."
215
+ 'B04': "Your bank has declined this transaction."
198
216
  '07': "Your bank has declined this transaction."
199
217
  '41': "Your bank has declined this transaction."
218
+ 'B41': "Your bank has declined this transaction."
200
219
  '43': "Your bank has declined this transaction."
220
+ 'B43': "Your bank has declined this transaction."