This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** @test */ | |
public function it_can_create_a_booking_transaction() | |
{ | |
$service = factory(DeliveryService::class)->create(); | |
$sender = factory(CustomerAccount::class)->create(); | |
$senderAddress = factory(CustomerAddress::class)->create([ | |
'customer_account_id' => $sender->id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @test */ | |
public function it_should_reject_payment_under_maybank_if_payment_is_rejected() | |
{ | |
$this->withoutEvents(); | |
factory(InstitutionPaymentCategory::class)->create(); | |
factory(Institution::class)->create(); | |
factory(PaymentChannelCategory::class)->create(); | |
factory(Collection::class)->create(['status' => 'P']); | |
$cardTransData = factory(TransactionCard::class)->create([ | |
'checkout_token' => 'ZX8EQAKLGB8DQOLQIDGD', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
async register ({ request, response, transform, auth }) { | |
const validation = await validate(request.only(Retailer.validateFields), Retailer.rules, Retailer.messages) | |
if (validation.fails()) { | |
return response.status(422).json({errors: validation.messages()}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const retailers = await Retailer.all() | |
if(!retailer) { | |
throw YourCustomerErrorClass('your-message') | |
} | |
return response.json({data: retailers}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dockerfile | |
#-/ Supervisor. | |
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
ENTRYPOINT ["supervisord"] | |
CMD ["-c", "/etc/supervisor/conf.d/supervisord.conf"] | |
# Supervisor. /-# | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.3-fpm-alpine | |
# Install dev dependencies | |
RUN apk add --no-cache --virtual .build-deps \ | |
$PHPIZE_DEPS \ | |
curl-dev \ | |
imagemagick-dev \ | |
libjpeg-turbo \ | |
libjpeg-turbo-dev \ | |
libjpeg \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jsdecena@jsdecena-linux dms-retailer-ws (master) $ docker tag dms/retailer-svc:master harbor.hcp.intra.smart/dms/retailer-svc:master | |
jsdecena@jsdecena-linux dms-retailer-ws (master) $ docker push harbor.hcp.intra.smart/dms/retailer-svc:master | |
The push refers to repository [harbor.hcp.intra.smart/dms/retailer-svc] | |
Get https://harbor.hcp.intra.smart/v2/: dial tcp: lookup harbor.hcp.intra.smart on 192.168.1.254:53: no such host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ============================== BEFORE =========================================================== | |
/** | |
* @param string $mobile | |
* @param string|null $refId | |
* @param string|null $type | |
* @return array |