- 
                Notifications
    You must be signed in to change notification settings 
- Fork 130
Fix PHP 8.2 and Other Related Issues #640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
76dc113
              591629c
              b81fb0b
              fad9d56
              f4e69f4
              c6138da
              d580082
              959b1a7
              475e87f
              dd38b0f
              6da6e4f
              6c17547
              a096ea6
              ba9a468
              96d67ae
              c1f8164
              ce7d988
              87bfb35
              c31570d
              a12582a
              aa87640
              156a26d
              089bff7
              964ee7e
              596cca5
              cfe79c5
              d77e72b
              85d3080
              27520ac
              d3f2448
              6dc14ea
              0149fb7
              f205667
              275dfda
              87f0929
              ed80f9f
              6b9f10f
              f5303e0
              3f3e135
              91ca58a
              586b770
              0268830
              beac573
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -11,6 +11,6 @@ composer.lock | |
|  | ||
| .* | ||
| !.github | ||
| !.php_cs | ||
| !.php-cs-fixer.php | ||
| !.gitignore | ||
| !.gitattributes | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,17 +1,18 @@ | ||
| <?php | ||
|  | ||
| $finder = PhpCsFixer\Finder::create() | ||
| $finder = (new PhpCsFixer\Finder()) | ||
| ->in(__DIR__.'/MangoPay') | ||
| ->in(__DIR__.'/tests') | ||
| ; | ||
|  | ||
| $config = new PhpCsFixer\Config(); | ||
|  | ||
| return $config->setRules([ | ||
| return (new PhpCsFixer\Config()) | ||
| ->setRules([ | ||
| '@PSR12' => true, | ||
| 'fully_qualified_strict_types' => true, | ||
| 'array_syntax' => ['syntax' => 'short'], | ||
| 'visibility_required' => ['property', 'method'],// 'const' is removed for old PHP compat | ||
| 'visibility_required' => [ | ||
| 'elements' => ['property', 'method'], // 'const' is removed for old PHP compat | ||
| ], | ||
| ]) | ||
| ->setFinder($finder) | ||
| ; | 
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -3,30 +3,59 @@ | |
| namespace MangoPay; | ||
|  | ||
| /** | ||
| * KYC document entity | ||
| * KYC document entity. | ||
| */ | ||
| class KycDocument extends Libraries\Document | ||
| { | ||
| /** | ||
| * The type of the document for the user verification. | ||
| * | ||
| * @var string | ||
| * | ||
| * @see \MangoPay\KycDocumentType | ||
| * @see https://mangopay.com/docs/endpoints/kyc-documents#kyc-document-object | ||
| */ | ||
| public $Type; | ||
|  | ||
| /** | ||
| * The label of KYC document type. | ||
| * | ||
| * @var string | ||
| * @see \MangoPay\KycDocumentStatus | ||
| * @phpstan-var \MangoPay\KycDocumentStatus::* | ||
| */ | ||
| public $TypeLabel; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you add this property? I don't see it in the docs :D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * The status of the KYC document. | ||
| * | ||
| * @var string | ||
| * | ||
| * @see KycDocumentStatus | ||
| */ | ||
| public $Status; | ||
|  | ||
| /** | ||
| * The label of KYC document status. | ||
| * | ||
| * @var string | ||
| */ | ||
| public $StatusLabel; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you add this property? I don't see it in the docs :D (correct me if I'm wrong) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * The unique identifier of the user. | ||
| * | ||
| * @var string | ||
| */ | ||
| public $UserId; | ||
|  | ||
| /** | ||
| * More information regarding why the document has been rejected. | ||
| * The series of codes providing more precision regarding the reason why the identity proof document was refused. | ||
| * You can review the explanations for each code in the Flags list. | ||
| * | ||
| * @var array | ||
| * | ||
| * @see KycDocumentRefusedReasonType | ||
| * @see https://mangopay.com/docs/concepts/users/verification/document-process#flags-list | ||
| */ | ||
| public $Flags; | ||
| } | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -13,6 +13,23 @@ class PayIn extends Transaction | |
| */ | ||
| public $CreditedWalletId; | ||
|  | ||
| /** | ||
| * The mode applied for the 3DS protocol for CB, Visa, and Mastercard. | ||
| * Default values: DEFAULT. Allowed values: DEFAULT, FORCE, NO_CHOICE | ||
| * | ||
| * @var string | ||
| */ | ||
| public $SecureMode; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for adding this to the PayIn class? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * The 3DS protocol version to be applied to the transaction. Allowing values: V1, V2_1 | ||
| * | ||
| * @see https://mangopay.com/docs/concepts/payments/payment-methods/card/3ds | ||
| * @see https://mangopay.com/docs/endpoints/direct-card-payins#direct-card-payin-object | ||
| * @var string | ||
| */ | ||
| public $Requested3DSVersion; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for adding this to the PayIn class? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * PaymentType {CARD, BANK_WIRE, DIRECT_DEBIT, PAYPAL, PAYCONIQ } | ||
| * @var string | ||
|  | @@ -43,6 +60,32 @@ class PayIn extends Transaction | |
| */ | ||
| public $RecurringPayinRegistrationId; | ||
|  | ||
| /** | ||
| * The IP address of the end user initiating the transaction, in IPV4 or IPV6 format. | ||
| * @var string | ||
| */ | ||
| public $IpAddress; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for adding this to the PayIn class? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * Information about the browser used by the end user (author) to perform the payment. | ||
| * @var BrowserInfo | ||
| */ | ||
| public $BrowserInfo; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for adding this to the PayIn class? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * Information about the end user billing address. If left empty, the default values will be automatically taken into account. | ||
| * Default values: FirstName, LastName, and Address information of the Shipping object if any, otherwise the user (author). | ||
| * @var Billing | ||
| */ | ||
| public $Billing; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for adding this to the PayIn class? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * Information about the end user’s shipping address. If left empty, the default values will be automatically taken into account. | ||
| * Default values: FirstName, LastName, and Address information of the Billing object, if supplied, otherwise of the user (author). | ||
| * @var Shipping | ||
| */ | ||
| public $Shipping; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for adding this to the PayIn class? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * Allowed values: ECommerce (default), TelephoneOrder | ||
| * | ||
|  | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -7,6 +7,20 @@ | |
| */ | ||
| class PayOut extends Transaction | ||
| { | ||
| /** | ||
| * The unique identifier of the bank account. | ||
| * | ||
| * @var string | ||
| */ | ||
| public $BankAccountId; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for adding this to the PayOut class? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * Custom description to appear on the user’s bank statement along with the platform name. | ||
| * The recommended length is 12 characters – strings longer than this may be truncated depending on the bank. | ||
| * @var string | ||
| */ | ||
| public $BankWireRef; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for adding this to the PayOut class? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * Debited wallet Id | ||
| * @var string | ||
|  | @@ -19,12 +33,24 @@ class PayOut extends Transaction | |
| */ | ||
| public $PaymentType; | ||
|  | ||
| /** | ||
| * One of PayOutPaymentDetails implementations, depending on $PaymentType | ||
| * @var object | ||
| */ | ||
| public $PayoutPaymentDetails; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for adding this to the PayOut class? We already have it below. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * One of PayOutPaymentDetails implementations, depending on $PaymentType | ||
| * @var object | ||
| */ | ||
| public $MeanOfPaymentDetails; | ||
|  | ||
| /** | ||
| * Payout mode requested, default is 'STANDARD', Allowed values are | ||
| * 'STANDARD', 'INSTANT_PAYMENT', 'INSTANT_PAYMENT_ONLY' | ||
| * @var string | ||
| */ | ||
| public $PayoutModeRequested; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for adding this to the PayOut class? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * Get array with mapping which property depends on other property | ||
|  | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -37,6 +37,12 @@ class Refund extends Transaction | |
| */ | ||
| public $RefundReason; | ||
|  | ||
| /** | ||
| * Message related to the refund | ||
| * @var string | ||
| */ | ||
| public $RefundReasonMessage; | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you add this param? I don't see it in the docs (correct me if I'm wrong) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property was identified in both the documentation and PHP SDK. I verified its existence through debug logs and implemented it accordingly. | ||
|  | ||
| /** | ||
| * @var string | ||
| */ | ||
|  | ||
Uh oh!
There was an error while loading. Please reload this page.