Skip to content

Commit

Permalink
Generated Xendit php SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
xendit-devx-bot committed Nov 29, 2023
1 parent b800893 commit cbbffbd
Show file tree
Hide file tree
Showing 129 changed files with 6,886 additions and 4,412 deletions.
61 changes: 59 additions & 2 deletions .github/workflows/generate-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,67 @@ on:
types: [create-release-tag]

jobs:
build:
testing:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"

steps:
- uses: actions/checkout@v3

- name: Print php version
run: echo ${{ matrix.php-version }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Print php version
run: php --version

- name: Install dependencies
run: composer install

- name: Run Tests
run: DEVELOPMENT_API_KEY=${{ secrets.DEVELOPMENT_API_KEY }} BUSINESS_ID=${{ secrets.BUSINESS_ID }} composer test

send-test-result:
name: Slack Notification
needs: [testing]
if: always() && (needs.testing.result == 'success' || needs.testing.result == 'failure')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set Slack Color
id: set_color
run: |
if [ "${{ needs.testing.result }}" == "success" ]; then
echo "color=good" >> $GITHUB_ENV
else
echo "color=danger" >> $GITHUB_ENV
fi
- name: Send Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_TITLE: "[xendi-php] CI pipeline for ${{ github.event.client_payload.version }}"
SLACK_MESSAGE: 'Test Result: ${{ needs.testing.result }}'
SLACK_COLOR: ${{ steps.set_color.outputs.color }}

publish:
runs-on: ubuntu-latest
needs: testing
steps:
- uses: actions/checkout@v3

- name: Set the value in bash
id: parse-changelog
run: |
Expand All @@ -24,4 +81,4 @@ jobs:
release_name: ${{ github.event.client_payload.version }}
body: ${{ steps.parse-changelog.outputs.changelog }}
draft: false
prerelease: false
prerelease: false
9 changes: 9 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ docs/PaymentRequest/EWalletChannelCode.md
docs/PaymentRequest/EWalletChannelProperties.md
docs/PaymentRequest/EWalletParameters.md
docs/PaymentRequest/Error.md
docs/PaymentRequest/InvoicePartnerMetadata.md
docs/PaymentRequest/OverTheCounter.md
docs/PaymentRequest/OverTheCounterChannelCode.md
docs/PaymentRequest/OverTheCounterChannelProperties.md
docs/PaymentRequest/OverTheCounterParameters.md
docs/PaymentRequest/PaymentCallback.md
docs/PaymentRequest/PaymentCallbackData.md
docs/PaymentRequest/PaymentMethod.md
docs/PaymentRequest/PaymentMethodParameters.md
docs/PaymentRequest/PaymentMethodReusability.md
Expand Down Expand Up @@ -99,10 +102,13 @@ lib/PaymentRequest/EWalletChannelCode.php
lib/PaymentRequest/EWalletChannelProperties.php
lib/PaymentRequest/EWalletParameters.php
lib/PaymentRequest/Error.php
lib/PaymentRequest/InvoicePartnerMetadata.php
lib/PaymentRequest/OverTheCounter.php
lib/PaymentRequest/OverTheCounterChannelCode.php
lib/PaymentRequest/OverTheCounterChannelProperties.php
lib/PaymentRequest/OverTheCounterParameters.php
lib/PaymentRequest/PaymentCallback.php
lib/PaymentRequest/PaymentCallbackData.php
lib/PaymentRequest/PaymentMethod.php
lib/PaymentRequest/PaymentMethodParameters.php
lib/PaymentRequest/PaymentMethodReusability.php
Expand Down Expand Up @@ -165,10 +171,13 @@ test/Model/PaymentRequest/EWalletChannelPropertiesTest.php
test/Model/PaymentRequest/EWalletParametersTest.php
test/Model/PaymentRequest/EWalletTest.php
test/Model/PaymentRequest/ErrorTest.php
test/Model/PaymentRequest/InvoicePartnerMetadataTest.php
test/Model/PaymentRequest/OverTheCounterChannelCodeTest.php
test/Model/PaymentRequest/OverTheCounterChannelPropertiesTest.php
test/Model/PaymentRequest/OverTheCounterParametersTest.php
test/Model/PaymentRequest/OverTheCounterTest.php
test/Model/PaymentRequest/PaymentCallbackDataTest.php
test/Model/PaymentRequest/PaymentCallbackTest.php
test/Model/PaymentRequest/PaymentMethodParametersTest.php
test/Model/PaymentRequest/PaymentMethodReusabilityTest.php
test/Model/PaymentRequest/PaymentMethodStatusTest.php
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The official Xendit PHP SDK provides a simple and convenient way to call Xendit's REST API
in applications written in PHP.

* Package version: 3.6.0
* Package version: 3.7.0

# Getting Started

Expand All @@ -28,7 +28,7 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow
}
],
"require": {
"xendit/xendit-php": "3.6.0"
"xendit/xendit-php": "3.7.0"
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xendit/xendit-php",
"version": "3.6.0",
"version": "3.7.0",
"description": "Xendit PHP SDK",
"keywords": [
"openapitools",
Expand Down Expand Up @@ -39,7 +39,7 @@
"psr-4": { "Xendit\\Test\\" : "test/" }
},
"scripts": {
"test": "DEVELOPMENT_API_KEY=$DEVELOPMENT_API_KEY phpunit",
"filtered-test": "DEVELOPMENT_API_KEY=$DEVELOPMENT_API_KEY phpunit --filter PaymentAPITest"
"test": "DEVELOPMENT_API_KEY=$DEVELOPMENT_API_KEY BUSINESS_ID=$BUSINESS_ID phpunit",
"filtered-test": "DEVELOPMENT_API_KEY=$DEVELOPMENT_API_KEY BUSINESS_ID=$BUSINESS_ID phpunit --filter PaymentAPITest"
}
}
Loading

0 comments on commit cbbffbd

Please sign in to comment.