Commit af89e25c82930965984d9b9edd00b16091a7f54e

Authored by Adhidarma Hadiwinoto
1 parent 03fe14d42b
Exists in master

stok tidak tersedia regex

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -335,6 +335,9 @@ function responseCodeFromMessage(message) {
335 335 else if (message.toLowerCase().indexOf('saldo di account anda saat ini tidak mencukupi') >= 0) {
336 336 return '40';
337 337 }
  338 + else if (message.search(/stok product .* tidak tersedia ke nomor .* dari pilihan2 yg tersedia/i) >= 0) {
  339 + return '13';
  340 + }
338 341  
339 342 return;
340 343 }