(productId, couponId)
| 2 | const getPaymentGroup = slug => fetchJson(`/db/payments/payment.groups/${slug}`) |
| 3 | |
| 4 | const getPaymentGroupFromProduct = (productId, couponId) => { |
| 5 | if (couponId) { |
| 6 | return fetchJson(`/db/payments/payment.groups/products/${productId}/?couponId=${couponId}`) |
| 7 | } else { |
| 8 | return fetchJson(`/db/payments/payment.groups/products/${productId}`) |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | module.exports = { |
| 13 | getPaymentGroup, |
no outgoing calls
no test coverage detected