function getCustomCoupons(){ var coupon_ids_js = document.getElementById("coupon-id-lists").textContent; if(null){ return Promise.all([fetch('/api/discount-coupon/coupons?ids[]=342906473371670616&ids[]=342906807745785711&ids[]=342907236495923288&ids[]=342907679041138543&ids[]=342907929206200408&ids[]=342908210937600088'),fetch('/api/discount-coupon/coupons/received/count',{ method: 'POST', credentials: 'same-origin', body: coupon_ids_js })]).then((res) => { return Promise.all([res[0].json(),res[1].json()]) }).then((data) => { return data; }); }else{ return Promise.all([fetch('/api/discount-coupon/coupons?ids[]=342906473371670616&ids[]=342906807745785711&ids[]=342907236495923288&ids[]=342907679041138543&ids[]=342907929206200408&ids[]=342908210937600088')]).then((res) => { return Promise.all([res[0].json()]) }).then((data) => { return data; }); } } exportFunction('getCustomCoupons',getCustomCoupons);
Registrieren oder anmelden, um Gutscheine zu erhalten.
Verwenden Sie den Gutschein an der Kasse.

Empfehlen