Skip to content

Commit

Permalink
fix statement descriptor and update latest (#15)
Browse files Browse the repository at this point in the history
* fix statement descriptor and update latest

* fix for php 8.1

* change php version

* move back to 7.3, but supporting 8.1

* try 8.1
  • Loading branch information
steve-gr4vy authored Jun 30, 2022
1 parent 6a586d8 commit 11ae602
Show file tree
Hide file tree
Showing 172 changed files with 14,265 additions and 1,664 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
php-version: '8.1'

- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: 7.3
php_version: '8.1'

- name: Run tests
env:
Expand Down
54 changes: 47 additions & 7 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.php_cs
.php-cs-fixer.dist.php
docs/Api/AuditLogsApi.md
docs/Api/BuyersApi.md
docs/Api/DigitalWalletsApi.md
Expand All @@ -8,6 +8,8 @@ docs/Api/PaymentOptionsApi.md
docs/Api/PaymentServiceDefinitionsApi.md
docs/Api/PaymentServicesApi.md
docs/Api/TransactionsApi.md
docs/Model/Action.md
docs/Model/Actions.md
docs/Model/Address.md
docs/Model/ApplePayRequest.md
docs/Model/ApplePaySessionRequest.md
Expand All @@ -16,13 +18,21 @@ docs/Model/AuditLogResource.md
docs/Model/AuditLogUser.md
docs/Model/AuditLogs.md
docs/Model/BillingDetails.md
docs/Model/BillingDetailsAddress.md
docs/Model/BillingDetailsRequest.md
docs/Model/BillingDetailsRequestAddress.md
docs/Model/BillingDetailsTaxId.md
docs/Model/BillingDetailsUpdateRequest.md
docs/Model/BillingDetailsUpdateRequestAddress.md
docs/Model/BrowserInfo.md
docs/Model/Buyer.md
docs/Model/BuyerBillingDetails.md
docs/Model/BuyerRequest.md
docs/Model/BuyerRequestBillingDetails.md
docs/Model/BuyerSnapshot.md
docs/Model/BuyerSnapshotBillingDetails.md
docs/Model/BuyerUpdate.md
docs/Model/BuyerUpdateBillingDetails.md
docs/Model/Buyers.md
docs/Model/CardDetails.md
docs/Model/CardRequest.md
Expand All @@ -43,12 +53,18 @@ docs/Model/Error404PendingCreation.md
docs/Model/Error409DuplicateRecord.md
docs/Model/ErrorDetail.md
docs/Model/ErrorGeneric.md
docs/Model/FlowPaymentOptionOutcome.md
docs/Model/FlowRuleBooleanOutcome.md
docs/Model/FlowRuleMethodOutcome.md
docs/Model/FlowRuleServiceOutcome.md
docs/Model/GooglePayRequest.md
docs/Model/GooglePaySessionRequest.md
docs/Model/PaymentMethod.md
docs/Model/PaymentMethodBuyer.md
docs/Model/PaymentMethodRequest.md
docs/Model/PaymentMethodSnapshot.md
docs/Model/PaymentMethodToken.md
docs/Model/PaymentMethodTokenPaymentService.md
docs/Model/PaymentMethodTokenized.md
docs/Model/PaymentMethodTokens.md
docs/Model/PaymentMethods.md
Expand All @@ -60,15 +76,15 @@ docs/Model/PaymentOptions.md
docs/Model/PaymentService.md
docs/Model/PaymentServiceDefinition.md
docs/Model/PaymentServiceDefinitionConfiguration.md
docs/Model/PaymentServiceDefinitionFields.md
docs/Model/PaymentServiceDefinitionFieldsInner.md
docs/Model/PaymentServiceDefinitionSupportedFeatures.md
docs/Model/PaymentServiceDefinitions.md
docs/Model/PaymentServiceFields.md
docs/Model/PaymentServiceFieldsInner.md
docs/Model/PaymentServiceRequest.md
docs/Model/PaymentServiceRequestAllOf.md
docs/Model/PaymentServiceSnapshot.md
docs/Model/PaymentServiceUpdate.md
docs/Model/PaymentServiceUpdateFields.md
docs/Model/PaymentServiceUpdateFieldsInner.md
docs/Model/PaymentServices.md
docs/Model/RedirectRequest.md
docs/Model/Refund.md
Expand All @@ -86,10 +102,14 @@ docs/Model/ThreeDSecureDataV2AllOf.md
docs/Model/ThreeDSecureSummary.md
docs/Model/TokenizedRequest.md
docs/Model/Transaction.md
docs/Model/TransactionBuyer.md
docs/Model/TransactionCaptureRequest.md
docs/Model/TransactionPaymentMethod.md
docs/Model/TransactionPaymentMethodRequest.md
docs/Model/TransactionRefundRequest.md
docs/Model/TransactionRequest.md
docs/Model/TransactionRequestBrowserInfo.md
docs/Model/TransactionStatementDescriptor.md
docs/Model/TransactionSummary.md
docs/Model/Transactions.md
docs/Model/TransactionsBatchCaptureRequest.md
Expand All @@ -107,6 +127,8 @@ lib/ApiException.php
lib/Configuration.php
lib/HeaderSelector.php
lib/ObjectSerializer.php
lib/model/Action.php
lib/model/Actions.php
lib/model/Address.php
lib/model/ApplePayRequest.php
lib/model/ApplePaySessionRequest.php
Expand All @@ -115,13 +137,21 @@ lib/model/AuditLogResource.php
lib/model/AuditLogUser.php
lib/model/AuditLogs.php
lib/model/BillingDetails.php
lib/model/BillingDetailsAddress.php
lib/model/BillingDetailsRequest.php
lib/model/BillingDetailsRequestAddress.php
lib/model/BillingDetailsTaxId.php
lib/model/BillingDetailsUpdateRequest.php
lib/model/BillingDetailsUpdateRequestAddress.php
lib/model/BrowserInfo.php
lib/model/Buyer.php
lib/model/BuyerBillingDetails.php
lib/model/BuyerRequest.php
lib/model/BuyerRequestBillingDetails.php
lib/model/BuyerSnapshot.php
lib/model/BuyerSnapshotBillingDetails.php
lib/model/BuyerUpdate.php
lib/model/BuyerUpdateBillingDetails.php
lib/model/Buyers.php
lib/model/CardDetails.php
lib/model/CardRequest.php
Expand All @@ -142,13 +172,19 @@ lib/model/Error404PendingCreation.php
lib/model/Error409DuplicateRecord.php
lib/model/ErrorDetail.php
lib/model/ErrorGeneric.php
lib/model/FlowPaymentOptionOutcome.php
lib/model/FlowRuleBooleanOutcome.php
lib/model/FlowRuleMethodOutcome.php
lib/model/FlowRuleServiceOutcome.php
lib/model/GooglePayRequest.php
lib/model/GooglePaySessionRequest.php
lib/model/ModelInterface.php
lib/model/PaymentMethod.php
lib/model/PaymentMethodBuyer.php
lib/model/PaymentMethodRequest.php
lib/model/PaymentMethodSnapshot.php
lib/model/PaymentMethodToken.php
lib/model/PaymentMethodTokenPaymentService.php
lib/model/PaymentMethodTokenized.php
lib/model/PaymentMethodTokens.php
lib/model/PaymentMethods.php
Expand All @@ -160,15 +196,15 @@ lib/model/PaymentOptions.php
lib/model/PaymentService.php
lib/model/PaymentServiceDefinition.php
lib/model/PaymentServiceDefinitionConfiguration.php
lib/model/PaymentServiceDefinitionFields.php
lib/model/PaymentServiceDefinitionFieldsInner.php
lib/model/PaymentServiceDefinitionSupportedFeatures.php
lib/model/PaymentServiceDefinitions.php
lib/model/PaymentServiceFields.php
lib/model/PaymentServiceFieldsInner.php
lib/model/PaymentServiceRequest.php
lib/model/PaymentServiceRequestAllOf.php
lib/model/PaymentServiceSnapshot.php
lib/model/PaymentServiceUpdate.php
lib/model/PaymentServiceUpdateFields.php
lib/model/PaymentServiceUpdateFieldsInner.php
lib/model/PaymentServices.php
lib/model/RedirectRequest.php
lib/model/Refund.php
Expand All @@ -186,10 +222,14 @@ lib/model/ThreeDSecureDataV2AllOf.php
lib/model/ThreeDSecureSummary.php
lib/model/TokenizedRequest.php
lib/model/Transaction.php
lib/model/TransactionBuyer.php
lib/model/TransactionCaptureRequest.php
lib/model/TransactionPaymentMethod.php
lib/model/TransactionPaymentMethodRequest.php
lib/model/TransactionRefundRequest.php
lib/model/TransactionRequest.php
lib/model/TransactionRequestBrowserInfo.php
lib/model/TransactionStatementDescriptor.php
lib/model/TransactionSummary.php
lib/model/Transactions.php
lib/model/TransactionsBatchCaptureRequest.php
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.4.0
6.0.0
4 changes: 4 additions & 0 deletions .openapi-generator/replace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ var1="'buyer' => 'BuyerSnapshot',"
rep1="'buyer' => '\\\Gr4vy\\\model\\\BuyerSnapshot',"
sed -i '' "s/$var1/$rep1/g" lib/model/*.php

var1="'statement_descriptor' => 'StatementDescriptor',"
rep1="'statement_descriptor' => '\\\Gr4vy\\\model\\\StatementDescriptor',"
sed -i '' "s/$var1/$rep1/g" lib/model/*.php

var1="'billing_details' => 'BillingDetails',"
rep1="'billing_details' => '\\\Gr4vy\\\model\\\BillingDetails',"
sed -i '' "s/$var1/$rep1/g" lib/model/*.php
Expand Down
29 changes: 29 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

/**
* @generated
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/HEAD/doc/config.rst
*/
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
->exclude('test')
->exclude('tests')
;

$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR12' => true,
'phpdoc_order' => true,
'array_syntax' => [ 'syntax' => 'short' ],
'strict_comparison' => true,
'strict_param' => true,
'no_trailing_whitespace' => false,
'no_trailing_whitespace_in_comment' => false,
'braces' => false,
'single_blank_line_at_eof' => false,
'blank_line_after_namespace' => false,
'no_leading_import_slash' => false,
])
->setFinder($finder)
;
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
}
],
"require": {
"php": ">=7.2",
"php": ">=7.3",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^7.4.4",
"lcobucci/jwt": "^3.4.6"
"lcobucci/jwt": "^4.1.5"
},
"require-dev": {
"phpunit/phpunit": "^9.5.20",
Expand Down
Loading

0 comments on commit 11ae602

Please sign in to comment.