From 7d69e118998fdf2ae2cf234f1bd49f4248782380 Mon Sep 17 00:00:00 2001 From: PayPalServerSDKs Date: Fri, 18 Oct 2024 19:06:27 +0000 Subject: [PATCH] Automated commit message --- README.md | 36 +- composer.json | 4 +- doc/auth/oauth-2-client-credentials-grant.md | 6 +- doc/client.md | 4 +- doc/controllers/orders.md | 384 +++++++++--------- doc/controllers/payments.md | 112 ++--- doc/controllers/vault.md | 182 ++++----- doc/logging-configuration-builder.md | 14 +- doc/models/avs-code.md | 4 +- doc/models/blik-experience-context.md | 4 +- doc/models/blik-level-0-payment-object.md | 4 +- doc/models/blik-one-click-payment-object.md | 4 +- doc/models/blik-one-click-payment-request.md | 4 +- doc/models/blik-payment-object.md | 6 +- doc/models/blik-payment-request.md | 10 +- .../card-verification-processor-response.md | 4 +- doc/models/cvv-code.md | 4 +- doc/models/eci-flag.md | 4 +- doc/models/eps-payment-object.md | 4 +- doc/models/eps-payment-request.md | 4 +- doc/models/ideal-payment-object.md | 4 +- doc/models/ideal-payment-request.md | 4 +- doc/models/link-description.md | 2 +- doc/models/link-http-method.md | 4 +- ...ent-object.md => mybank-payment-object.md} | 4 +- ...t-request.md => mybank-payment-request.md} | 4 +- doc/models/network-token.md | 2 +- .../order-authorize-request-payment-source.md | 2 +- ...order-authorize-response-payment-source.md | 2 +- .../order-capture-request-payment-source.md | 2 +- doc/models/pa-res-status.md | 4 +- doc/models/payment-source-response.md | 10 +- doc/models/payment-source.md | 10 +- .../payment-token-response-payment-source.md | 2 +- ...e.md => paypal-experience-landing-page.md} | 4 +- ...on.md => paypal-experience-user-action.md} | 4 +- ... => paypal-payment-token-customer-type.md} | 4 +- ... => paypal-payment-token-usage-pattern.md} | 4 +- ....md => paypal-payment-token-usage-type.md} | 4 +- ...yment-token.md => paypal-payment-token.md} | 4 +- ...pal-wallet-account-verification-status.md} | 4 +- ...d => paypal-wallet-attributes-response.md} | 6 +- ...ributes.md => paypal-wallet-attributes.md} | 8 +- ...t.md => paypal-wallet-customer-request.md} | 4 +- ...-customer.md => paypal-wallet-customer.md} | 4 +- ...md => paypal-wallet-experience-context.md} | 8 +- ...-response.md => paypal-wallet-response.md} | 8 +- ....md => paypal-wallet-vault-instruction.md} | 10 +- ...nse.md => paypal-wallet-vault-response.md} | 8 +- ...tatus.md => paypal-wallet-vault-status.md} | 4 +- .../{pay-pal-wallet.md => paypal-wallet.md} | 8 +- doc/models/processor-response.md | 4 +- .../setup-token-request-payment-source.md | 2 +- .../setup-token-response-payment-source.md | 2 +- .../three-d-secure-authentication-response.md | 2 +- doc/models/universal-product-code.md | 2 +- doc/models/upc-type.md | 4 +- ...uest.md => vault-paypal-wallet-request.md} | 4 +- src/ApiHelper.php | 6 +- ...lientCredentialsAuthCredentialsBuilder.php | 6 +- .../ClientCredentialsAuthManager.php | 12 +- src/ClientCredentialsAuth.php | 6 +- src/ConfigurationDefaults.php | 4 +- src/ConfigurationInterface.php | 8 +- src/Controllers/BaseController.php | 4 +- .../OAuthAuthorizationController.php | 10 +- src/Controllers/OrdersController.php | 338 +++++++-------- src/Controllers/PaymentsController.php | 174 ++++---- src/Controllers/VaultController.php | 130 +++--- src/Environment.php | 4 +- src/Exceptions/ApiException.php | 8 +- src/Exceptions/ErrorException.php | 24 +- src/Exceptions/OAuthProviderException.php | 14 +- src/Http/ApiResponse.php | 4 +- src/Http/HttpCallBack.php | 4 +- src/Http/HttpContext.php | 4 +- src/Http/HttpMethod.php | 4 +- src/Http/HttpRequest.php | 4 +- src/Http/HttpResponse.php | 4 +- src/Logging/LoggingConfigurationBuilder.php | 6 +- .../RequestLoggingConfigurationBuilder.php | 6 +- .../ResponseLoggingConfigurationBuilder.php | 6 +- src/Models/ActivityTimestamps.php | 4 +- src/Models/Address.php | 4 +- src/Models/AddressDetails.php | 4 +- src/Models/AmountBreakdown.php | 4 +- src/Models/AmountWithBreakdown.php | 4 +- src/Models/ApplePayAttributes.php | 4 +- src/Models/ApplePayAttributesResponse.php | 4 +- src/Models/ApplePayCard.php | 4 +- src/Models/ApplePayCardResponse.php | 4 +- src/Models/ApplePayDecryptedTokenData.php | 4 +- src/Models/ApplePayPaymentData.php | 4 +- src/Models/ApplePayPaymentDataType.php | 4 +- src/Models/ApplePayPaymentObject.php | 4 +- src/Models/ApplePayPaymentToken.php | 4 +- src/Models/ApplePayRequest.php | 4 +- src/Models/ApplePayTokenizedCard.php | 4 +- src/Models/AssuranceDetails.php | 4 +- src/Models/AuthenticationResponse.php | 4 +- src/Models/Authorization.php | 4 +- src/Models/AuthorizationIncompleteReason.php | 4 +- src/Models/AuthorizationStatus.php | 4 +- src/Models/AuthorizationStatusDetails.php | 4 +- src/Models/AuthorizationStatusWithDetails.php | 4 +- .../AuthorizationWithAdditionalData.php | 4 +- src/Models/{AVSCode.php => AvsCode.php} | 8 +- src/Models/BancontactPaymentObject.php | 4 +- src/Models/BancontactPaymentRequest.php | 4 +- src/Models/BinDetails.php | 4 +- ...eContext.php => BlikExperienceContext.php} | 6 +- ...Object.php => BlikLevel0PaymentObject.php} | 6 +- ...ject.php => BlikOneClickPaymentObject.php} | 6 +- ...est.php => BlikOneClickPaymentRequest.php} | 6 +- ...aymentObject.php => BlikPaymentObject.php} | 12 +- ...mentRequest.php => BlikPaymentRequest.php} | 24 +- .../Builders/ActivityTimestampsBuilder.php | 6 +- src/Models/Builders/AddressBuilder.php | 6 +- src/Models/Builders/AddressDetailsBuilder.php | 10 +- .../Builders/AmountBreakdownBuilder.php | 8 +- .../Builders/AmountWithBreakdownBuilder.php | 8 +- .../Builders/ApplePayAttributesBuilder.php | 10 +- .../ApplePayAttributesResponseBuilder.php | 8 +- src/Models/Builders/ApplePayCardBuilder.php | 8 +- .../Builders/ApplePayCardResponseBuilder.php | 16 +- .../ApplePayDecryptedTokenDataBuilder.php | 12 +- .../Builders/ApplePayPaymentDataBuilder.php | 6 +- .../Builders/ApplePayPaymentObjectBuilder.php | 12 +- .../Builders/ApplePayPaymentTokenBuilder.php | 8 +- .../Builders/ApplePayRequestBuilder.php | 14 +- .../Builders/ApplePayTokenizedCardBuilder.php | 8 +- .../Builders/AssuranceDetailsBuilder.php | 6 +- .../AuthenticationResponseBuilder.php | 8 +- src/Models/Builders/AuthorizationBuilder.php | 14 +- .../AuthorizationStatusDetailsBuilder.php | 6 +- .../AuthorizationStatusWithDetailsBuilder.php | 8 +- ...AuthorizationWithAdditionalDataBuilder.php | 16 +- .../BLIKLevel0PaymentObjectBuilder.php | 48 --- .../BancontactPaymentObjectBuilder.php | 6 +- .../BancontactPaymentRequestBuilder.php | 8 +- src/Models/Builders/BinDetailsBuilder.php | 6 +- ...r.php => BlikExperienceContextBuilder.php} | 24 +- .../BlikLevel0PaymentObjectBuilder.php | 48 +++ ...p => BlikOneClickPaymentObjectBuilder.php} | 24 +- ... => BlikOneClickPaymentRequestBuilder.php} | 24 +- ...ilder.php => BlikPaymentObjectBuilder.php} | 28 +- ...lder.php => BlikPaymentRequestBuilder.php} | 36 +- src/Models/Builders/CaptureBuilder.php | 18 +- .../CapturePaymentInstructionBuilder.php | 6 +- src/Models/Builders/CaptureRequestBuilder.php | 10 +- .../Builders/CaptureStatusDetailsBuilder.php | 6 +- .../CaptureStatusWithDetailsBuilder.php | 8 +- .../Builders/CapturedPaymentBuilder.php | 22 +- src/Models/Builders/CardAttributesBuilder.php | 12 +- .../CardAttributesResponseBuilder.php | 8 +- .../CardAuthenticationResponseBuilder.php | 8 +- .../CardCustomerInformationBuilder.php | 8 +- .../Builders/CardExperienceContextBuilder.php | 6 +- .../Builders/CardFromRequestBuilder.php | 6 +- .../Builders/CardPaymentTokenBuilder.php | 16 +- src/Models/Builders/CardRequestBuilder.php | 16 +- src/Models/Builders/CardResponseBuilder.php | 14 +- .../Builders/CardResponseEntityBuilder.php | 16 +- .../Builders/CardStoredCredentialBuilder.php | 8 +- .../Builders/CardSupplementaryDataBuilder.php | 10 +- .../Builders/CardVaultResponseBuilder.php | 8 +- .../Builders/CardVerificationBuilder.php | 6 +- .../CardVerificationDetailsBuilder.php | 10 +- ...rdVerificationProcessorResponseBuilder.php | 6 +- src/Models/Builders/CobrandedCardBuilder.php | 10 +- .../Builders/ConfirmOrderRequestBuilder.php | 10 +- .../Builders/CustomerInformationBuilder.php | 8 +- .../Builders/CustomerRequestBuilder.php | 6 +- ...tomerVaultPaymentTokensResponseBuilder.php | 8 +- ...uilder.php => EpsPaymentObjectBuilder.php} | 24 +- ...ilder.php => EpsPaymentRequestBuilder.php} | 26 +- src/Models/Builders/ErrorDetailsBuilder.php | 6 +- src/Models/Builders/ExchangeRateBuilder.php | 6 +- .../Builders/ExperienceContextBuilder.php | 6 +- .../Builders/GiropayPaymentObjectBuilder.php | 6 +- .../Builders/GiropayPaymentRequestBuilder.php | 8 +- .../GooglePayCardAttributesBuilder.php | 8 +- .../Builders/GooglePayCardResponseBuilder.php | 10 +- .../GooglePayDecryptedTokenDataBuilder.php | 6 +- .../Builders/GooglePayRequestBuilder.php | 16 +- .../Builders/GooglePayRequestCardBuilder.php | 8 +- .../GooglePayWalletResponseBuilder.php | 10 +- ...lder.php => IdealPaymentObjectBuilder.php} | 24 +- ...der.php => IdealPaymentRequestBuilder.php} | 26 +- src/Models/Builders/ItemBuilder.php | 10 +- .../Level2CardProcessingDataBuilder.php | 8 +- .../Level3CardProcessingDataBuilder.php | 10 +- src/Models/Builders/LineItemBuilder.php | 10 +- .../Builders/LinkDescriptionBuilder.php | 6 +- src/Models/Builders/MoneyBuilder.php | 6 +- ...der.php => MybankPaymentObjectBuilder.php} | 24 +- ...er.php => MybankPaymentRequestBuilder.php} | 26 +- src/Models/Builders/NameBuilder.php | 6 +- .../NetAmountBreakdownItemBuilder.php | 10 +- src/Models/Builders/NetworkTokenBuilder.php | 6 +- .../NetworkTransactionReferenceBuilder.php | 6 +- ...tworkTransactionReferenceEntityBuilder.php | 6 +- src/Models/Builders/OAuthTokenBuilder.php | 6 +- .../OrderApplicationContextBuilder.php | 10 +- .../Builders/OrderAuthorizeRequestBuilder.php | 8 +- ...erAuthorizeRequestPaymentSourceBuilder.php | 20 +- .../OrderAuthorizeResponseBuilder.php | 10 +- ...rAuthorizeResponsePaymentSourceBuilder.php | 18 +- src/Models/Builders/OrderBuilder.php | 10 +- .../Builders/OrderCaptureRequestBuilder.php | 8 +- ...rderCaptureRequestPaymentSourceBuilder.php | 20 +- .../OrderConfirmApplicationContextBuilder.php | 8 +- src/Models/Builders/OrderRequestBuilder.php | 12 +- .../Builders/OrderTrackerItemBuilder.php | 8 +- .../Builders/OrderTrackerRequestBuilder.php | 6 +- .../Builders/OrderTrackerResponseBuilder.php | 6 +- .../Builders/P24PaymentObjectBuilder.php | 6 +- .../Builders/P24PaymentRequestBuilder.php | 8 +- src/Models/Builders/PatchBuilder.php | 6 +- .../PayPalWalletAttributesBuilder.php | 68 ---- .../PayPalWalletAttributesResponseBuilder.php | 67 --- src/Models/Builders/PayeeBaseBuilder.php | 6 +- src/Models/Builders/PayeeBuilder.php | 6 +- src/Models/Builders/PayerBaseBuilder.php | 6 +- src/Models/Builders/PayerBuilder.php | 14 +- .../Builders/PaymentAuthorizationBuilder.php | 18 +- .../Builders/PaymentCollectionBuilder.php | 6 +- .../Builders/PaymentInstructionBuilder.php | 6 +- .../PaymentMethodPreferenceBuilder.php | 6 +- src/Models/Builders/PaymentSourceBuilder.php | 46 +-- .../Builders/PaymentSourceResponseBuilder.php | 44 +- .../PaymentSupplementaryDataBuilder.php | 8 +- .../Builders/PaymentTokenRequestBuilder.php | 10 +- .../PaymentTokenRequestCardBuilder.php | 8 +- ...aymentTokenRequestPaymentSourceBuilder.php | 10 +- .../Builders/PaymentTokenResponseBuilder.php | 10 +- ...ymentTokenResponsePaymentSourceBuilder.php | 16 +- ...lder.php => PaypalPaymentTokenBuilder.php} | 34 +- .../PaypalWalletAttributesBuilder.php | 68 ++++ .../PaypalWalletAttributesResponseBuilder.php | 67 +++ ...letBuilder.php => PaypalWalletBuilder.php} | 40 +- ...er.php => PaypalWalletCustomerBuilder.php} | 26 +- ...=> PaypalWalletCustomerRequestBuilder.php} | 26 +- ... PaypalWalletExperienceContextBuilder.php} | 24 +- ...er.php => PaypalWalletResponseBuilder.php} | 36 +- ...> PaypalWalletVaultInstructionBuilder.php} | 24 +- ...p => PaypalWalletVaultResponseBuilder.php} | 28 +- src/Models/Builders/PhoneBuilder.php | 6 +- src/Models/Builders/PhoneNumberBuilder.php | 6 +- .../PhoneNumberWithCountryCodeBuilder.php | 6 +- src/Models/Builders/PhoneWithTypeBuilder.php | 8 +- src/Models/Builders/PlatformFeeBuilder.php | 10 +- .../Builders/ProcessorResponseBuilder.php | 6 +- src/Models/Builders/PurchaseUnitBuilder.php | 18 +- .../Builders/PurchaseUnitRequestBuilder.php | 16 +- .../Builders/ReauthorizeRequestBuilder.php | 8 +- src/Models/Builders/RefundBuilder.php | 14 +- .../RefundPaymentInstructionBuilder.php | 6 +- .../Builders/RefundPlatformFeeBuilder.php | 8 +- src/Models/Builders/RefundRequestBuilder.php | 10 +- .../Builders/RefundStatusDetailsBuilder.php | 6 +- .../RefundStatusWithDetailsBuilder.php | 8 +- .../Builders/RelatedIdentifiersBuilder.php | 6 +- .../SellerPayableBreakdownBuilder.php | 8 +- .../Builders/SellerProtectionBuilder.php | 6 +- .../SellerReceivableBreakdownBuilder.php | 10 +- ...SetupTokenCardExperienceContextBuilder.php | 6 +- .../Builders/SetupTokenRequestBuilder.php | 10 +- .../Builders/SetupTokenRequestCardBuilder.php | 10 +- .../SetupTokenRequestPaymentSourceBuilder.php | 16 +- .../Builders/SetupTokenResponseBuilder.php | 10 +- .../SetupTokenResponseCardBuilder.php | 16 +- ...SetupTokenResponsePaymentSourceBuilder.php | 14 +- .../Builders/ShippingDetailsBuilder.php | 12 +- src/Models/Builders/ShippingNameBuilder.php | 6 +- src/Models/Builders/ShippingOptionBuilder.php | 8 +- .../ShippingWithTrackingDetailsBuilder.php | 12 +- .../Builders/SofortPaymentObjectBuilder.php | 6 +- .../Builders/SofortPaymentRequestBuilder.php | 8 +- .../Builders/StoredPaymentSourceBuilder.php | 8 +- .../Builders/SupplementaryDataBuilder.php | 8 +- .../SupplementaryPurchaseDataBuilder.php | 6 +- src/Models/Builders/TaxInfoBuilder.php | 6 +- ...eeDSecureAuthenticationResponseBuilder.php | 6 +- src/Models/Builders/TokenBuilder.php | 6 +- .../Builders/TrustlyPaymentObjectBuilder.php | 6 +- .../Builders/TrustlyPaymentRequestBuilder.php | 8 +- .../Builders/UniversalProductCodeBuilder.php | 6 +- src/Models/Builders/VaultCustomerBuilder.php | 6 +- .../VaultExperienceContextBuilder.php | 6 +- .../Builders/VaultInstructionBaseBuilder.php | 6 +- .../Builders/VaultInstructionBuilder.php | 6 +- ...hp => VaultPaypalWalletRequestBuilder.php} | 28 +- src/Models/Builders/VaultResponseBuilder.php | 8 +- .../Builders/VaultTokenRequestBuilder.php | 6 +- .../VaultVenmoExperienceContextBuilder.php | 6 +- .../Builders/VaultVenmoRequestBuilder.php | 10 +- .../Builders/VaultedDigitalWalletBuilder.php | 8 +- ...tedDigitalWalletShippingDetailsBuilder.php | 10 +- .../Builders/VenmoPaymentTokenBuilder.php | 14 +- ...VenmoWalletAdditionalAttributesBuilder.php | 10 +- .../VenmoWalletAttributesResponseBuilder.php | 8 +- .../VenmoWalletCustomerInformationBuilder.php | 6 +- .../VenmoWalletExperienceContextBuilder.php | 6 +- .../Builders/VenmoWalletRequestBuilder.php | 10 +- .../Builders/VenmoWalletResponseBuilder.php | 14 +- .../VenmoWalletVaultAttributesBuilder.php | 6 +- src/Models/Capture.php | 4 +- src/Models/CaptureIncompleteReason.php | 4 +- src/Models/CapturePaymentInstruction.php | 4 +- src/Models/CaptureRequest.php | 4 +- src/Models/CaptureStatus.php | 4 +- src/Models/CaptureStatusDetails.php | 4 +- src/Models/CaptureStatusWithDetails.php | 4 +- src/Models/CapturedPayment.php | 4 +- src/Models/CardAttributes.php | 4 +- src/Models/CardAttributesResponse.php | 4 +- src/Models/CardAuthenticationResponse.php | 4 +- src/Models/CardBrand.php | 4 +- src/Models/CardCustomerInformation.php | 4 +- src/Models/CardExperienceContext.php | 4 +- src/Models/CardFromRequest.php | 4 +- src/Models/CardPaymentToken.php | 4 +- src/Models/CardRequest.php | 4 +- src/Models/CardResponse.php | 4 +- src/Models/CardResponseEntity.php | 4 +- src/Models/CardStoredCredential.php | 4 +- src/Models/CardSupplementaryData.php | 4 +- src/Models/CardType.php | 4 +- src/Models/CardVaultResponse.php | 4 +- src/Models/CardVerification.php | 4 +- src/Models/CardVerificationDetails.php | 4 +- src/Models/CardVerificationMethod.php | 4 +- .../CardVerificationProcessorResponse.php | 8 +- src/Models/CheckoutPaymentIntent.php | 4 +- src/Models/CobrandedCard.php | 4 +- src/Models/ConfirmOrderRequest.php | 4 +- src/Models/CustomerInformation.php | 4 +- src/Models/CustomerRequest.php | 4 +- .../CustomerVaultPaymentTokensResponse.php | 4 +- src/Models/{CVVCode.php => CvvCode.php} | 8 +- src/Models/DisbursementMode.php | 4 +- src/Models/DisputeCategory.php | 4 +- src/Models/{ECIFlag.php => EciFlag.php} | 8 +- src/Models/EnrollmentStatus.php | 4 +- ...PaymentObject.php => EpsPaymentObject.php} | 6 +- ...ymentRequest.php => EpsPaymentRequest.php} | 6 +- src/Models/ErrorDetails.php | 4 +- src/Models/ExchangeRate.php | 4 +- src/Models/ExperienceContext.php | 4 +- src/Models/FullfillmentType.php | 4 +- src/Models/GiropayPaymentObject.php | 4 +- src/Models/GiropayPaymentRequest.php | 4 +- src/Models/GooglePayAuthenticationMethod.php | 4 +- src/Models/GooglePayCardAttributes.php | 4 +- src/Models/GooglePayCardResponse.php | 4 +- src/Models/GooglePayDecryptedTokenData.php | 4 +- src/Models/GooglePayPaymentMethod.php | 4 +- src/Models/GooglePayRequest.php | 4 +- src/Models/GooglePayRequestCard.php | 4 +- src/Models/GooglePayWalletResponse.php | 4 +- ...ymentObject.php => IdealPaymentObject.php} | 6 +- ...entRequest.php => IdealPaymentRequest.php} | 6 +- src/Models/Item.php | 4 +- src/Models/ItemCategory.php | 4 +- src/Models/Level2CardProcessingData.php | 4 +- src/Models/Level3CardProcessingData.php | 4 +- src/Models/LiabilityShiftIndicator.php | 4 +- src/Models/LineItem.php | 4 +- src/Models/LinkDescription.php | 6 +- ...{LinkHTTPMethod.php => LinkHttpMethod.php} | 8 +- src/Models/Money.php | 4 +- ...mentObject.php => MybankPaymentObject.php} | 6 +- ...ntRequest.php => MybankPaymentRequest.php} | 6 +- src/Models/Name.php | 4 +- src/Models/NetAmountBreakdownItem.php | 4 +- src/Models/NetworkToken.php | 6 +- src/Models/NetworkTransactionReference.php | 4 +- .../NetworkTransactionReferenceEntity.php | 4 +- src/Models/OAuthProviderError.php | 4 +- src/Models/OAuthToken.php | 4 +- src/Models/Order.php | 4 +- src/Models/OrderApplicationContext.php | 4 +- .../OrderApplicationContextLandingPage.php | 4 +- ...erApplicationContextShippingPreference.php | 4 +- .../OrderApplicationContextUserAction.php | 4 +- src/Models/OrderAuthorizeRequest.php | 4 +- .../OrderAuthorizeRequestPaymentSource.php | 10 +- src/Models/OrderAuthorizeResponse.php | 4 +- .../OrderAuthorizeResponsePaymentSource.php | 10 +- src/Models/OrderCaptureRequest.php | 4 +- .../OrderCaptureRequestPaymentSource.php | 10 +- src/Models/OrderConfirmApplicationContext.php | 4 +- src/Models/OrderRequest.php | 4 +- src/Models/OrderStatus.php | 4 +- src/Models/OrderTrackerItem.php | 4 +- src/Models/OrderTrackerRequest.php | 4 +- src/Models/OrderTrackerResponse.php | 4 +- src/Models/OrderTrackerStatus.php | 4 +- src/Models/P24PaymentObject.php | 4 +- src/Models/P24PaymentRequest.php | 4 +- .../{PAResStatus.php => PaResStatus.php} | 8 +- src/Models/Patch.php | 4 +- src/Models/PatchOp.php | 4 +- src/Models/Payee.php | 4 +- src/Models/PayeeBase.php | 4 +- src/Models/PayeePaymentMethodPreference.php | 4 +- src/Models/Payer.php | 4 +- src/Models/PayerBase.php | 4 +- src/Models/PaymentAdviceCode.php | 4 +- src/Models/PaymentAuthorization.php | 4 +- src/Models/PaymentCollection.php | 4 +- src/Models/PaymentInitiator.php | 4 +- src/Models/PaymentInstruction.php | 4 +- src/Models/PaymentMethodPreference.php | 4 +- src/Models/PaymentSource.php | 34 +- src/Models/PaymentSourceResponse.php | 34 +- src/Models/PaymentSupplementaryData.php | 4 +- src/Models/PaymentTokenRequest.php | 4 +- src/Models/PaymentTokenRequestCard.php | 4 +- .../PaymentTokenRequestPaymentSource.php | 4 +- src/Models/PaymentTokenResponse.php | 4 +- .../PaymentTokenResponsePaymentSource.php | 12 +- ...ge.php => PaypalExperienceLandingPage.php} | 8 +- ...ion.php => PaypalExperienceUserAction.php} | 8 +- ...aymentToken.php => PaypalPaymentToken.php} | 6 +- ...php => PaypalPaymentTokenCustomerType.php} | 8 +- ...php => PaypalPaymentTokenUsagePattern.php} | 8 +- ...pe.php => PaypalPaymentTokenUsageType.php} | 8 +- .../{PayPalWallet.php => PaypalWallet.php} | 18 +- ...PaypalWalletAccountVerificationStatus.php} | 8 +- ...ributes.php => PaypalWalletAttributes.php} | 18 +- ...php => PaypalWalletAttributesResponse.php} | 12 +- ...tCustomer.php => PaypalWalletCustomer.php} | 6 +- ...st.php => PaypalWalletCustomerRequest.php} | 6 +- ....php => PaypalWalletExperienceContext.php} | 14 +- ...tResponse.php => PaypalWalletResponse.php} | 14 +- ...n.php => PaypalWalletVaultInstruction.php} | 14 +- ...onse.php => PaypalWalletVaultResponse.php} | 14 +- ...Status.php => PaypalWalletVaultStatus.php} | 8 +- src/Models/Phone.php | 4 +- src/Models/PhoneNumber.php | 4 +- src/Models/PhoneNumberWithCountryCode.php | 4 +- src/Models/PhoneType.php | 4 +- src/Models/PhoneWithType.php | 4 +- src/Models/PlatformFee.php | 4 +- src/Models/ProcessingInstruction.php | 4 +- src/Models/ProcessorResponse.php | 8 +- src/Models/ProcessorResponseCode.php | 4 +- src/Models/PurchaseUnit.php | 4 +- src/Models/PurchaseUnitRequest.php | 4 +- src/Models/ReauthorizeRequest.php | 4 +- src/Models/Refund.php | 4 +- src/Models/RefundIncompleteReason.php | 4 +- src/Models/RefundPaymentInstruction.php | 4 +- src/Models/RefundPlatformFee.php | 4 +- src/Models/RefundRequest.php | 4 +- src/Models/RefundStatus.php | 4 +- src/Models/RefundStatusDetails.php | 4 +- src/Models/RefundStatusWithDetails.php | 4 +- src/Models/RelatedIdentifiers.php | 4 +- src/Models/SellerPayableBreakdown.php | 4 +- src/Models/SellerProtection.php | 4 +- src/Models/SellerProtectionStatus.php | 4 +- src/Models/SellerReceivableBreakdown.php | 4 +- .../SetupTokenCardExperienceContext.php | 4 +- src/Models/SetupTokenRequest.php | 4 +- src/Models/SetupTokenRequestCard.php | 4 +- src/Models/SetupTokenRequestPaymentSource.php | 10 +- src/Models/SetupTokenResponse.php | 4 +- src/Models/SetupTokenResponseCard.php | 4 +- .../SetupTokenResponsePaymentSource.php | 10 +- src/Models/ShipmentCarrier.php | 4 +- src/Models/ShippingDetails.php | 4 +- src/Models/ShippingName.php | 4 +- src/Models/ShippingOption.php | 4 +- src/Models/ShippingPreference.php | 4 +- src/Models/ShippingType.php | 4 +- src/Models/ShippingWithTrackingDetails.php | 4 +- src/Models/SofortPaymentObject.php | 4 +- src/Models/SofortPaymentRequest.php | 4 +- src/Models/StandardEntryClassCode.php | 4 +- src/Models/StoreInVaultInstruction.php | 4 +- src/Models/StoredPaymentSource.php | 4 +- src/Models/StoredPaymentSourcePaymentType.php | 4 +- src/Models/StoredPaymentSourceUsageType.php | 4 +- src/Models/SupplementaryData.php | 4 +- src/Models/SupplementaryPurchaseData.php | 4 +- src/Models/TaxIdType.php | 4 +- src/Models/TaxInfo.php | 4 +- .../ThreeDSecureAuthenticationResponse.php | 6 +- src/Models/Token.php | 4 +- src/Models/TokenRequestType.php | 4 +- src/Models/TokenType.php | 4 +- src/Models/TrustlyPaymentObject.php | 4 +- src/Models/TrustlyPaymentRequest.php | 4 +- src/Models/UniversalProductCode.php | 6 +- src/Models/{UPCType.php => UpcType.php} | 8 +- src/Models/VaultCustomer.php | 4 +- src/Models/VaultExperienceContext.php | 4 +- src/Models/VaultInstruction.php | 4 +- src/Models/VaultInstructionBase.php | 4 +- ...quest.php => VaultPaypalWalletRequest.php} | 6 +- src/Models/VaultResponse.php | 4 +- src/Models/VaultStatus.php | 4 +- src/Models/VaultTokenRequest.php | 4 +- src/Models/VaultVenmoExperienceContext.php | 4 +- src/Models/VaultVenmoRequest.php | 4 +- src/Models/VaultedDigitalWallet.php | 4 +- .../VaultedDigitalWalletShippingDetails.php | 4 +- src/Models/VenmoPaymentToken.php | 4 +- src/Models/VenmoPaymentTokenCustomerType.php | 4 +- src/Models/VenmoPaymentTokenUsagePattern.php | 4 +- src/Models/VenmoPaymentTokenUsageType.php | 4 +- .../VenmoWalletAdditionalAttributes.php | 4 +- src/Models/VenmoWalletAttributesResponse.php | 4 +- src/Models/VenmoWalletCustomerInformation.php | 4 +- src/Models/VenmoWalletExperienceContext.php | 4 +- src/Models/VenmoWalletRequest.php | 4 +- src/Models/VenmoWalletResponse.php | 4 +- src/Models/VenmoWalletVaultAttributes.php | 4 +- ...DKClient.php => PaypalServerSdkClient.php} | 42 +- ...r.php => PaypalServerSdkClientBuilder.php} | 14 +- src/Server.php | 4 +- src/Utils/CompatibilityConverter.php | 14 +- 525 files changed, 2800 insertions(+), 2800 deletions(-) rename doc/models/{my-bank-payment-object.md => mybank-payment-object.md} (97%) rename doc/models/{my-bank-payment-request.md => mybank-payment-request.md} (96%) rename doc/models/{pay-pal-experience-landing-page.md => paypal-experience-landing-page.md} (73%) rename doc/models/{pay-pal-experience-user-action.md => paypal-experience-user-action.md} (72%) rename doc/models/{pay-pal-payment-token-customer-type.md => paypal-payment-token-customer-type.md} (77%) rename doc/models/{pay-pal-payment-token-usage-pattern.md => paypal-payment-token-usage-pattern.md} (77%) rename doc/models/{pay-pal-payment-token-usage-type.md => paypal-payment-token-usage-type.md} (67%) rename doc/models/{pay-pal-payment-token.md => paypal-payment-token.md} (99%) rename doc/models/{pay-pal-wallet-account-verification-status.md => paypal-wallet-account-verification-status.md} (70%) rename doc/models/{pay-pal-wallet-attributes-response.md => paypal-wallet-attributes-response.md} (83%) rename doc/models/{pay-pal-wallet-attributes.md => paypal-wallet-attributes.md} (59%) rename doc/models/{pay-pal-wallet-customer-request.md => paypal-wallet-customer-request.md} (97%) rename doc/models/{pay-pal-wallet-customer.md => paypal-wallet-customer.md} (97%) rename doc/models/{pay-pal-wallet-experience-context.md => paypal-wallet-experience-context.md} (76%) rename doc/models/{pay-pal-wallet-response.md => paypal-wallet-response.md} (83%) rename doc/models/{pay-pal-wallet-vault-instruction.md => paypal-wallet-vault-instruction.md} (57%) rename doc/models/{pay-pal-wallet-vault-response.md => paypal-wallet-vault-response.md} (64%) rename doc/models/{pay-pal-wallet-vault-status.md => paypal-wallet-vault-status.md} (66%) rename doc/models/{pay-pal-wallet.md => paypal-wallet.md} (81%) rename doc/models/{vault-pay-pal-wallet-request.md => vault-paypal-wallet-request.md} (98%) rename src/Models/{AVSCode.php => AvsCode.php} (93%) rename src/Models/{BLIKExperienceContext.php => BlikExperienceContext.php} (98%) rename src/Models/{BLIKLevel0PaymentObject.php => BlikLevel0PaymentObject.php} (92%) rename src/Models/{BLIKOneClickPaymentObject.php => BlikOneClickPaymentObject.php} (92%) rename src/Models/{BLIKOneClickPaymentRequest.php => BlikOneClickPaymentRequest.php} (97%) rename src/Models/{BLIKPaymentObject.php => BlikPaymentObject.php} (93%) rename src/Models/{BLIKPaymentRequest.php => BlikPaymentRequest.php} (90%) delete mode 100644 src/Models/Builders/BLIKLevel0PaymentObjectBuilder.php rename src/Models/Builders/{BLIKExperienceContextBuilder.php => BlikExperienceContextBuilder.php} (75%) create mode 100644 src/Models/Builders/BlikLevel0PaymentObjectBuilder.php rename src/Models/Builders/{BLIKOneClickPaymentObjectBuilder.php => BlikOneClickPaymentObjectBuilder.php} (51%) rename src/Models/Builders/{BLIKOneClickPaymentRequestBuilder.php => BlikOneClickPaymentRequestBuilder.php} (62%) rename src/Models/Builders/{BLIKPaymentObjectBuilder.php => BlikPaymentObjectBuilder.php} (62%) rename src/Models/Builders/{BLIKPaymentRequestBuilder.php => BlikPaymentRequestBuilder.php} (53%) rename src/Models/Builders/{EPSPaymentObjectBuilder.php => EpsPaymentObjectBuilder.php} (64%) rename src/Models/Builders/{EPSPaymentRequestBuilder.php => EpsPaymentRequestBuilder.php} (53%) rename src/Models/Builders/{IDEALPaymentObjectBuilder.php => IdealPaymentObjectBuilder.php} (67%) rename src/Models/Builders/{IDEALPaymentRequestBuilder.php => IdealPaymentRequestBuilder.php} (58%) rename src/Models/Builders/{MyBankPaymentObjectBuilder.php => MybankPaymentObjectBuilder.php} (67%) rename src/Models/Builders/{MyBankPaymentRequestBuilder.php => MybankPaymentRequestBuilder.php} (52%) delete mode 100644 src/Models/Builders/PayPalWalletAttributesBuilder.php delete mode 100644 src/Models/Builders/PayPalWalletAttributesResponseBuilder.php rename src/Models/Builders/{PayPalPaymentTokenBuilder.php => PaypalPaymentTokenBuilder.php} (77%) create mode 100644 src/Models/Builders/PaypalWalletAttributesBuilder.php create mode 100644 src/Models/Builders/PaypalWalletAttributesResponseBuilder.php rename src/Models/Builders/{PayPalWalletBuilder.php => PaypalWalletBuilder.php} (71%) rename src/Models/Builders/{PayPalWalletCustomerBuilder.php => PaypalWalletCustomerBuilder.php} (65%) rename src/Models/Builders/{PayPalWalletCustomerRequestBuilder.php => PaypalWalletCustomerRequestBuilder.php} (63%) rename src/Models/Builders/{PayPalWalletExperienceContextBuilder.php => PaypalWalletExperienceContextBuilder.php} (75%) rename src/Models/Builders/{PayPalWalletResponseBuilder.php => PaypalWalletResponseBuilder.php} (74%) rename src/Models/Builders/{PayPalWalletVaultInstructionBuilder.php => PaypalWalletVaultInstructionBuilder.php} (69%) rename src/Models/Builders/{PayPalWalletVaultResponseBuilder.php => PaypalWalletVaultResponseBuilder.php} (59%) rename src/Models/Builders/{VaultPayPalWalletRequestBuilder.php => VaultPaypalWalletRequestBuilder.php} (69%) rename src/Models/{CVVCode.php => CvvCode.php} (92%) rename src/Models/{ECIFlag.php => EciFlag.php} (93%) rename src/Models/{EPSPaymentObject.php => EpsPaymentObject.php} (96%) rename src/Models/{EPSPaymentRequest.php => EpsPaymentRequest.php} (97%) rename src/Models/{IDEALPaymentObject.php => IdealPaymentObject.php} (97%) rename src/Models/{IDEALPaymentRequest.php => IdealPaymentRequest.php} (97%) rename src/Models/{LinkHTTPMethod.php => LinkHttpMethod.php} (90%) rename src/Models/{MyBankPaymentObject.php => MybankPaymentObject.php} (97%) rename src/Models/{MyBankPaymentRequest.php => MybankPaymentRequest.php} (96%) rename src/Models/{PAResStatus.php => PaResStatus.php} (89%) rename src/Models/{PayPalExperienceLandingPage.php => PaypalExperienceLandingPage.php} (87%) rename src/Models/{PayPalExperienceUserAction.php => PaypalExperienceUserAction.php} (87%) rename src/Models/{PayPalPaymentToken.php => PaypalPaymentToken.php} (98%) rename src/Models/{PayPalPaymentTokenCustomerType.php => PaypalPaymentTokenCustomerType.php} (87%) rename src/Models/{PayPalPaymentTokenUsagePattern.php => PaypalPaymentTokenUsagePattern.php} (90%) rename src/Models/{PayPalPaymentTokenUsageType.php => PaypalPaymentTokenUsageType.php} (86%) rename src/Models/{PayPalWallet.php => PaypalWallet.php} (95%) rename src/Models/{PayPalWalletAccountVerificationStatus.php => PaypalWalletAccountVerificationStatus.php} (87%) rename src/Models/{PayPalWalletAttributes.php => PaypalWalletAttributes.php} (75%) rename src/Models/{PayPalWalletAttributesResponse.php => PaypalWalletAttributesResponse.php} (88%) rename src/Models/{PayPalWalletCustomer.php => PaypalWalletCustomer.php} (97%) rename src/Models/{PayPalWalletCustomerRequest.php => PaypalWalletCustomerRequest.php} (97%) rename src/Models/{PayPalWalletExperienceContext.php => PaypalWalletExperienceContext.php} (95%) rename src/Models/{PayPalWalletResponse.php => PaypalWalletResponse.php} (96%) rename src/Models/{PayPalWalletVaultInstruction.php => PaypalWalletVaultInstruction.php} (94%) rename src/Models/{PayPalWalletVaultResponse.php => PaypalWalletVaultResponse.php} (89%) rename src/Models/{PayPalWalletVaultStatus.php => PaypalWalletVaultStatus.php} (87%) rename src/Models/{UPCType.php => UpcType.php} (89%) rename src/Models/{VaultPayPalWalletRequest.php => VaultPaypalWalletRequest.php} (98%) rename src/{PaypalServerSDKClient.php => PaypalServerSdkClient.php} (88%) rename src/{PaypalServerSDKClientBuilder.php => PaypalServerSdkClientBuilder.php} (90%) diff --git a/README.md b/README.md index e4a1329..d725054 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# Getting Started with Paypal Server SDK +# Getting Started with PayPal Server SDK ## Introduction @@ -27,23 +27,23 @@ Find out more here: [https://developer.paypal.com/docs/api/orders/v2/](https://d Run the following command to install the package and automatically add the dependency to your composer.json file: ```php -composer require "paypal/paypal-server-sdk:0.5.2" +composer require "paypal/paypal-server-sdk:0.6.0" ``` Or add it to the composer.json file manually as given below: ```php "require": { - "paypal/paypal-server-sdk": "0.5.2" + "paypal/paypal-server-sdk": "0.6.0" } ``` You can also view the package at: -https://packagist.org/packages/paypal/paypal-server-sdk#0.5.2 +https://packagist.org/packages/paypal/paypal-server-sdk#0.6.0 ## Initialize the API Client -**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/client.md) +**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/client.md) The following parameters are configurable for the API Client: @@ -59,13 +59,13 @@ The following parameters are configurable for the API Client: | `retryOnTimeout` | `bool` | Whether to retry on request timeout.
*Default*: `true` | | `httpStatusCodesToRetry` | `array` | Http status codes to retry against.
*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524` | | `httpMethodsToRetry` | `array` | Http methods to retry against.
*Default*: `'GET', 'PUT'` | -| `loggingConfiguration` | [`LoggingConfigurationBuilder`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/logging-configuration-builder.md) | Represents the logging configurations for API calls | -| `clientCredentialsAuth` | [`ClientCredentialsAuth`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/auth/oauth-2-client-credentials-grant.md) | The Credentials Setter for OAuth 2 Client Credentials Grant | +| `loggingConfiguration` | [`LoggingConfigurationBuilder`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/logging-configuration-builder.md) | Represents the logging configurations for API calls | +| `clientCredentialsAuth` | [`ClientCredentialsAuth`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/auth/oauth-2-client-credentials-grant.md) | The Credentials Setter for OAuth 2 Client Credentials Grant | The API client can be initialized as follows: ```php -$client = PaypalServerSDKClientBuilder::init() +$client = PaypalServerSdkClientBuilder::init() ->clientCredentialsAuthCredentials( ClientCredentialsAuthCredentialsBuilder::init( 'OAuthClientId', @@ -105,20 +105,20 @@ The SDK can be configured to use a different environment for making API calls. A This API uses the following authentication schemes. -* [`Oauth2 (OAuth 2 Client Credentials Grant)`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/auth/oauth-2-client-credentials-grant.md) +* [`Oauth2 (OAuth 2 Client Credentials Grant)`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/auth/oauth-2-client-credentials-grant.md) ## List of APIs -* [Orders](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/controllers/orders.md) -* [Payments](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/controllers/payments.md) -* [Vault](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/controllers/vault.md) +* [Orders](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/controllers/orders.md) +* [Payments](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/controllers/payments.md) +* [Vault](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/controllers/vault.md) ## Classes Documentation -* [ApiException](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/api-exception.md) -* [HttpRequest](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/http-request.md) -* [HttpResponse](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/http-response.md) -* [LoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/logging-configuration-builder.md) -* [RequestLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/request-logging-configuration-builder.md) -* [ResponseLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/response-logging-configuration-builder.md) +* [ApiException](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/api-exception.md) +* [HttpRequest](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/http-request.md) +* [HttpResponse](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/http-response.md) +* [LoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/logging-configuration-builder.md) +* [RequestLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/request-logging-configuration-builder.md) +* [ResponseLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/response-logging-configuration-builder.md) diff --git a/composer.json b/composer.json index ad166d9..31237b3 100644 --- a/composer.json +++ b/composer.json @@ -22,12 +22,12 @@ }, "autoload": { "psr-4": { - "PaypalServerSDKLib\\": "src/" + "PaypalServerSdkLib\\": "src/" } }, "autoload-dev": { "psr-4": { - "PaypalServerSDKLib\\Tests\\": "tests/" + "PaypalServerSdkLib\\Tests\\": "tests/" } }, "scripts": { diff --git a/doc/auth/oauth-2-client-credentials-grant.md b/doc/auth/oauth-2-client-credentials-grant.md index 9348586..b7daa57 100644 --- a/doc/auth/oauth-2-client-credentials-grant.md +++ b/doc/auth/oauth-2-client-credentials-grant.md @@ -27,7 +27,7 @@ Documentation for accessing and setting credentials for Oauth2. You must initialize the client with *OAuth 2.0 Client Credentials Grant* credentials as shown in the following code snippet. This will fetch the OAuth token automatically when any of the endpoints, requiring *OAuth 2.0 Client Credentials Grant* autentication, are called. ```php -$client = PaypalServerSDKClientBuilder::init() +$client = PaypalServerSdkClientBuilder::init() ->clientCredentialsAuthCredentials( ClientCredentialsAuthCredentialsBuilder::init( 'OAuthClientId', @@ -46,7 +46,7 @@ Your application can also manually provide an OAuthToken using the setter `oAuth Whenever the OAuth Token gets updated, the provided callback implementation will be executed. For instance, you may use it to store your access token whenever it gets updated. ```php -$client = PaypalServerSDKClientBuilder::init() +$client = PaypalServerSdkClientBuilder::init() ->clientCredentialsAuthCredentials( ClientCredentialsAuthCredentialsBuilder::init( 'OAuthClientId', @@ -68,7 +68,7 @@ $client = PaypalServerSDKClientBuilder::init() To authorize a client using a stored access token, set up the `oAuthTokenProvider` in `ClientCredentialsAuthCredentialsBuilder` along with the other auth parameters before creating the client: ```php -$client = PaypalServerSDKClientBuilder::init() +$client = PaypalServerSdkClientBuilder::init() ->clientCredentialsAuthCredentials( ClientCredentialsAuthCredentialsBuilder::init( 'OAuthClientId', diff --git a/doc/client.md b/doc/client.md index 17cfe47..c29d2d1 100644 --- a/doc/client.md +++ b/doc/client.md @@ -21,7 +21,7 @@ The following parameters are configurable for the API Client: The API client can be initialized as follows: ```php -$client = PaypalServerSDKClientBuilder::init() +$client = PaypalServerSdkClientBuilder::init() ->clientCredentialsAuthCredentials( ClientCredentialsAuthCredentialsBuilder::init( 'OAuthClientId', @@ -46,7 +46,7 @@ API calls return an `ApiResponse` object that includes the following fields: | `getHeaders` | Headers of the HTTP response as a Hash | | `getResult` | The deserialized body of the HTTP response as a String | -## Paypal Server SDK Client +## PayPal Server SDK Client The gateway for the SDK. This class acts as a factory for the Controllers and also holds the configuration of the SDK. diff --git a/doc/controllers/orders.md b/doc/controllers/orders.md index 0c823cc..d61158b 100644 --- a/doc/controllers/orders.md +++ b/doc/controllers/orders.md @@ -12,16 +12,110 @@ $ordersController = $client->getOrdersController(); ## Methods -* [Orders Create](../../doc/controllers/orders.md#orders-create) -* [Orders Get](../../doc/controllers/orders.md#orders-get) -* [Orders Patch](../../doc/controllers/orders.md#orders-patch) -* [Orders Confirm](../../doc/controllers/orders.md#orders-confirm) * [Orders Authorize](../../doc/controllers/orders.md#orders-authorize) -* [Orders Capture](../../doc/controllers/orders.md#orders-capture) * [Orders Track Create](../../doc/controllers/orders.md#orders-track-create) +* [Orders Create](../../doc/controllers/orders.md#orders-create) +* [Orders Patch](../../doc/controllers/orders.md#orders-patch) +* [Orders Capture](../../doc/controllers/orders.md#orders-capture) +* [Orders Get](../../doc/controllers/orders.md#orders-get) +* [Orders Confirm](../../doc/controllers/orders.md#orders-confirm) * [Orders Trackers Patch](../../doc/controllers/orders.md#orders-trackers-patch) +# Orders Authorize + +Authorizes payment for an order. To successfully authorize payment for an order, the buyer must first approve the order or a valid payment_source must be provided in the request. A buyer can approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS links in the create order response.
Note: For error handling and troubleshooting, see Orders v2 errors.
+ +```php +function ordersAuthorize(array $options): ApiResponse +``` + +## Parameters + +| Parameter | Type | Tags | Description | +| --- | --- | --- | --- | +| `id` | `string` | Template, Required | The ID of the order for which to authorize.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` | +| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` | +| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=,-]*$` | +| `paypalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` | +| `paypalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see PayPal-Auth-Assertion. | +| `body` | [`?OrderAuthorizeRequest`](../../doc/models/order-authorize-request.md) | Body, Optional | - | + +## Response Type + +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`OrderAuthorizeResponse`](../../doc/models/order-authorize-response.md). + +## Example Usage + +```php +$collect = [ + 'id' => 'id0', + 'prefer' => 'return=minimal' +]; + +$apiResponse = $ordersController->ordersAuthorize($collect); +``` + +## Errors + +| HTTP Status Code | Error Description | Exception Class | +| --- | --- | --- | +| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | +| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) | +| 403 | The authorized payment failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | +| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) | +| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | +| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | +| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | + + +# Orders Track Create + +Adds tracking information for an Order. + +```php +function ordersTrackCreate(array $options): ApiResponse +``` + +## Parameters + +| Parameter | Type | Tags | Description | +| --- | --- | --- | --- | +| `id` | `string` | Template, Required | The ID of the order that the tracking information is associated with.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` | +| `body` | [`OrderTrackerRequest`](../../doc/models/order-tracker-request.md) | Body, Required | - | +| `paypalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see PayPal-Auth-Assertion. | + +## Response Type + +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md). + +## Example Usage + +```php +$collect = [ + 'id' => 'id0', + 'body' => OrderTrackerRequestBuilder::init( + 'capture_id8' + ) + ->notifyPayer(false) + ->build() +]; + +$apiResponse = $ordersController->ordersTrackCreate($collect); +``` + +## Errors + +| HTTP Status Code | Error Description | Exception Class | +| --- | --- | --- | +| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | +| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | +| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) | +| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | +| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | +| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | + + # Orders Create Creates an order. Merchants and partners can add Level 2 and 3 data to payments to reduce risk and payment processing costs. For more information about processing payments, see checkout or multiparty checkout.
Note: For error handling and troubleshooting, see Orders v2 errors.
@@ -35,14 +129,14 @@ function ordersCreate(array $options): ApiResponse | Parameter | Type | Tags | Description | | --- | --- | --- | --- | | `body` | [`OrderRequest`](../../doc/models/order-request.md) | Body, Required | - | -| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` | -| `payPalPartnerAttributionId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` | -| `payPalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` | +| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` | +| `paypalPartnerAttributionId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` | +| `paypalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` | | `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=,-]*$` | ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md). ## Example Usage @@ -75,44 +169,6 @@ $apiResponse = $ordersController->ordersCreate($collect); | Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | -# Orders Get - -Shows details for an order, by ID.
Note: For error handling and troubleshooting, see Orders v2 errors.
- -```php -function ordersGet(array $options): ApiResponse -``` - -## Parameters - -| Parameter | Type | Tags | Description | -| --- | --- | --- | --- | -| `id` | `string` | Template, Required | The ID of the order for which to show details.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` | -| `fields` | `?string` | Query, Optional | A comma-separated list of fields that should be returned for the order. Valid filter field is `payment_source`.
**Constraints**: *Pattern*: `^[a-z_]*$` | - -## Response Type - -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md). - -## Example Usage - -```php -$collect = [ - 'id' => 'id0' -]; - -$apiResponse = $ordersController->ordersGet($collect); -``` - -## Errors - -| HTTP Status Code | Error Description | Exception Class | -| --- | --- | --- | -| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) | -| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) | -| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | - - # Orders Patch Updates an order with a `CREATED` or `APPROVED` status. You cannot update an order with the `COMPLETED` status.

To make an update, you must provide a `reference_id`. If you omit this value with an order that contains only one purchase unit, PayPal sets the value to `default` which enables you to use the path: \"/purchase_units/@reference_id=='default'/{attribute-or-object}\". Merchants and partners can add Level 2 and 3 data to payments to reduce risk and payment processing costs. For more information about processing payments, see checkout or multiparty checkout.
Note: For error handling and troubleshooting, see Orders v2 errors.
Patchable attributes or objects:

AttributeOpNotes
intentreplace
payerreplace, addUsing replace op for payer will replace the whole payer object with the value sent in request.
purchase_unitsreplace, add
purchase_units[].custom_idreplace, add, remove
purchase_units[].descriptionreplace, add, remove
purchase_units[].payee.emailreplace
purchase_units[].shipping.namereplace, add
purchase_units[].shipping.email_addressreplace, add
purchase_units[].shipping.phone_numberreplace, add
purchase_units[].shipping.optionsreplace, add
purchase_units[].shipping.addressreplace, add
purchase_units[].shipping.typereplace, add
purchase_units[].soft_descriptorreplace, remove
purchase_units[].amountreplace
purchase_units[].itemsreplace, add, remove
purchase_units[].invoice_idreplace, add, remove
purchase_units[].payment_instructionreplace
purchase_units[].payment_instruction.disbursement_modereplaceBy default, disbursement_mode is INSTANT.
purchase_units[].payment_instruction.payee_receivable_fx_rate_idreplace, add, remove
purchase_units[].payment_instruction.platform_feesreplace, add, remove
purchase_units[].supplementary_data.airlinereplace, add, remove
purchase_units[].supplementary_data.cardreplace, add, remove
application_context.client_configurationreplace, add
@@ -130,7 +186,7 @@ function ordersPatch(array $options): ApiResponse ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. ## Example Usage @@ -158,6 +214,91 @@ $apiResponse = $ordersController->ordersPatch($collect); | Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | +# Orders Capture + +Captures payment for an order. To successfully capture payment for an order, the buyer must first approve the order or a valid payment_source must be provided in the request. A buyer can approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS links in the create order response.
Note: For error handling and troubleshooting, see Orders v2 errors.
+ +```php +function ordersCapture(array $options): ApiResponse +``` + +## Parameters + +| Parameter | Type | Tags | Description | +| --- | --- | --- | --- | +| `id` | `string` | Template, Required | The ID of the order for which to capture a payment.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` | +| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` | +| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=,-]*$` | +| `paypalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` | +| `paypalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see PayPal-Auth-Assertion. | +| `body` | [`?OrderCaptureRequest`](../../doc/models/order-capture-request.md) | Body, Optional | - | + +## Response Type + +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md). + +## Example Usage + +```php +$collect = [ + 'id' => 'id0', + 'prefer' => 'return=minimal' +]; + +$apiResponse = $ordersController->ordersCapture($collect); +``` + +## Errors + +| HTTP Status Code | Error Description | Exception Class | +| --- | --- | --- | +| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | +| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) | +| 403 | The authorized payment failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | +| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) | +| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | +| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | +| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | + + +# Orders Get + +Shows details for an order, by ID.
Note: For error handling and troubleshooting, see Orders v2 errors.
+ +```php +function ordersGet(array $options): ApiResponse +``` + +## Parameters + +| Parameter | Type | Tags | Description | +| --- | --- | --- | --- | +| `id` | `string` | Template, Required | The ID of the order for which to show details.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` | +| `fields` | `?string` | Query, Optional | A comma-separated list of fields that should be returned for the order. Valid filter field is `payment_source`.
**Constraints**: *Pattern*: `^[a-z_]*$` | + +## Response Type + +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md). + +## Example Usage + +```php +$collect = [ + 'id' => 'id0' +]; + +$apiResponse = $ordersController->ordersGet($collect); +``` + +## Errors + +| HTTP Status Code | Error Description | Exception Class | +| --- | --- | --- | +| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) | +| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) | +| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | + + # Orders Confirm Payer confirms their intent to pay for the the Order with the given payment source. @@ -171,13 +312,13 @@ function ordersConfirm(array $options): ApiResponse | Parameter | Type | Tags | Description | | --- | --- | --- | --- | | `id` | `string` | Template, Required | The ID of the order for which the payer confirms their intent to pay.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` | -| `payPalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` | +| `paypalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` | | `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=]*$` | | `body` | [`?ConfirmOrderRequest`](../../doc/models/confirm-order-request.md) | Body, Optional | - | ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md). ## Example Usage @@ -206,147 +347,6 @@ $apiResponse = $ordersController->ordersConfirm($collect); | Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | -# Orders Authorize - -Authorizes payment for an order. To successfully authorize payment for an order, the buyer must first approve the order or a valid payment_source must be provided in the request. A buyer can approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS links in the create order response.
Note: For error handling and troubleshooting, see Orders v2 errors.
- -```php -function ordersAuthorize(array $options): ApiResponse -``` - -## Parameters - -| Parameter | Type | Tags | Description | -| --- | --- | --- | --- | -| `id` | `string` | Template, Required | The ID of the order for which to authorize.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` | -| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` | -| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=,-]*$` | -| `payPalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` | -| `payPalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see PayPal-Auth-Assertion. | -| `body` | [`?OrderAuthorizeRequest`](../../doc/models/order-authorize-request.md) | Body, Optional | - | - -## Response Type - -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`OrderAuthorizeResponse`](../../doc/models/order-authorize-response.md). - -## Example Usage - -```php -$collect = [ - 'id' => 'id0', - 'prefer' => 'return=minimal' -]; - -$apiResponse = $ordersController->ordersAuthorize($collect); -``` - -## Errors - -| HTTP Status Code | Error Description | Exception Class | -| --- | --- | --- | -| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | -| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) | -| 403 | The authorized payment failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | -| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) | -| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | -| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | -| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | - - -# Orders Capture - -Captures payment for an order. To successfully capture payment for an order, the buyer must first approve the order or a valid payment_source must be provided in the request. A buyer can approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS links in the create order response.
Note: For error handling and troubleshooting, see Orders v2 errors.
- -```php -function ordersCapture(array $options): ApiResponse -``` - -## Parameters - -| Parameter | Type | Tags | Description | -| --- | --- | --- | --- | -| `id` | `string` | Template, Required | The ID of the order for which to capture a payment.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` | -| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `108` | -| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `25`, *Pattern*: `^[a-zA-Z=,-]*$` | -| `payPalClientMetadataId` | `?string` | Header, Optional | **Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36` | -| `payPalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see PayPal-Auth-Assertion. | -| `body` | [`?OrderCaptureRequest`](../../doc/models/order-capture-request.md) | Body, Optional | - | - -## Response Type - -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md). - -## Example Usage - -```php -$collect = [ - 'id' => 'id0', - 'prefer' => 'return=minimal' -]; - -$apiResponse = $ordersController->ordersCapture($collect); -``` - -## Errors - -| HTTP Status Code | Error Description | Exception Class | -| --- | --- | --- | -| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | -| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) | -| 403 | The authorized payment failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | -| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) | -| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | -| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | -| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | - - -# Orders Track Create - -Adds tracking information for an Order. - -```php -function ordersTrackCreate(array $options): ApiResponse -``` - -## Parameters - -| Parameter | Type | Tags | Description | -| --- | --- | --- | --- | -| `id` | `string` | Template, Required | The ID of the order that the tracking information is associated with.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `36`, *Pattern*: `^[A-Z0-9]+$` | -| `body` | [`OrderTrackerRequest`](../../doc/models/order-tracker-request.md) | Body, Required | - | -| `payPalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see PayPal-Auth-Assertion. | - -## Response Type - -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Order`](../../doc/models/order.md). - -## Example Usage - -```php -$collect = [ - 'id' => 'id0', - 'body' => OrderTrackerRequestBuilder::init( - 'capture_id8' - ) - ->notifyPayer(false) - ->build() -]; - -$apiResponse = $ordersController->ordersTrackCreate($collect); -``` - -## Errors - -| HTTP Status Code | Error Description | Exception Class | -| --- | --- | --- | -| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | -| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | -| 404 | The specified resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) | -| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | -| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | -| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | - - # Orders Trackers Patch Updates or cancels the tracking information for a PayPal order, by ID. Updatable attributes or objects:

AttributeOpNotes
itemsreplaceUsing replace op for items will replace the entire items object with the value sent in request.
notify_payerreplace, add
statusreplaceOnly patching status to CANCELLED is currently supported.
@@ -365,7 +365,7 @@ function ordersTrackersPatch(array $options): ApiResponse ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. ## Example Usage diff --git a/doc/controllers/payments.md b/doc/controllers/payments.md index feed508..4f31889 100644 --- a/doc/controllers/payments.md +++ b/doc/controllers/payments.md @@ -14,8 +14,8 @@ $paymentsController = $client->getPaymentsController(); * [Authorizations Get](../../doc/controllers/payments.md#authorizations-get) * [Authorizations Capture](../../doc/controllers/payments.md#authorizations-capture) -* [Authorizations Reauthorize](../../doc/controllers/payments.md#authorizations-reauthorize) * [Authorizations Void](../../doc/controllers/payments.md#authorizations-void) +* [Authorizations Reauthorize](../../doc/controllers/payments.md#authorizations-reauthorize) * [Captures Get](../../doc/controllers/payments.md#captures-get) * [Captures Refund](../../doc/controllers/payments.md#captures-refund) * [Refunds Get](../../doc/controllers/payments.md#refunds-get) @@ -37,7 +37,7 @@ function authorizationsGet(string $authorizationId): ApiResponse ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`PaymentAuthorization`](../../doc/models/payment-authorization.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`PaymentAuthorization`](../../doc/models/payment-authorization.md). ## Example Usage @@ -71,13 +71,13 @@ function authorizationsCapture(array $options): ApiResponse | Parameter | Type | Tags | Description | | --- | --- | --- | --- | | `authorizationId` | `string` | Template, Required | The PayPal-generated ID for the authorized payment to capture. | -| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. | +| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. | | `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'` | | `body` | [`?CaptureRequest`](../../doc/models/capture-request.md) | Body, Optional | - | ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`CapturedPayment`](../../doc/models/captured-payment.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`CapturedPayment`](../../doc/models/captured-payment.md). ## Example Usage @@ -107,51 +107,6 @@ $apiResponse = $paymentsController->authorizationsCapture($collect); | Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | -# Authorizations Reauthorize - -Reauthorizes an authorized PayPal account payment, by ID. To ensure that funds are still available, reauthorize a payment after its initial three-day honor period expires. Within the 29-day authorization period, you can issue multiple re-authorizations after the honor period expires.

If 30 days have transpired since the date of the original authorization, you must create an authorized payment instead of reauthorizing the original authorized payment.

A reauthorized payment itself has a new honor period of three days.

You can reauthorize an authorized payment from 4 to 29 days after the 3-day honor period. The allowed amount depends on context and geography, for example in US it is up to 115% of the original authorized amount, not to exceed an increase of $75 USD.

Supports only the `amount` request parameter.
Note: This request is currently not supported for Partner use cases.
- -```php -function authorizationsReauthorize(array $options): ApiResponse -``` - -## Parameters - -| Parameter | Type | Tags | Description | -| --- | --- | --- | --- | -| `authorizationId` | `string` | Template, Required | The PayPal-generated ID for the authorized payment to reauthorize. | -| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. | -| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'` | -| `body` | [`?ReauthorizeRequest`](../../doc/models/reauthorize-request.md) | Body, Optional | - | - -## Response Type - -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`PaymentAuthorization`](../../doc/models/payment-authorization.md). - -## Example Usage - -```php -$collect = [ - 'authorizationId' => 'authorization_id8', - 'prefer' => 'return=minimal' -]; - -$apiResponse = $paymentsController->authorizationsReauthorize($collect); -``` - -## Errors - -| HTTP Status Code | Error Description | Exception Class | -| --- | --- | --- | -| 400 | The request failed because it is not well-formed or is syntactically incorrect or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | -| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) | -| 403 | The request failed because the caller has insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | -| 404 | The request failed because the resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) | -| 422 | The request failed because it either is semantically incorrect or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | -| 500 | The request failed because an internal server error occurred. | `ApiException` | -| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | - - # Authorizations Void Voids, or cancels, an authorized payment, by ID. You cannot void an authorized payment that has been fully captured. @@ -165,12 +120,12 @@ function authorizationsVoid(array $options): ApiResponse | Parameter | Type | Tags | Description | | --- | --- | --- | --- | | `authorizationId` | `string` | Template, Required | The PayPal-generated ID for the authorized payment to void. | -| `payPalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see [PayPal-Auth-Assertion](/docs/api/reference/api-requests/#paypal-auth-assertion).
Note:For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.
| +| `paypalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see [PayPal-Auth-Assertion](/docs/api/reference/api-requests/#paypal-auth-assertion).
Note:For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.
| | `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'` | ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`?PaymentAuthorization`](../../doc/models/payment-authorization.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`?PaymentAuthorization`](../../doc/models/payment-authorization.md). ## Example Usage @@ -197,6 +152,51 @@ $apiResponse = $paymentsController->authorizationsVoid($collect); | Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | +# Authorizations Reauthorize + +Reauthorizes an authorized PayPal account payment, by ID. To ensure that funds are still available, reauthorize a payment after its initial three-day honor period expires. Within the 29-day authorization period, you can issue multiple re-authorizations after the honor period expires.

If 30 days have transpired since the date of the original authorization, you must create an authorized payment instead of reauthorizing the original authorized payment.

A reauthorized payment itself has a new honor period of three days.

You can reauthorize an authorized payment from 4 to 29 days after the 3-day honor period. The allowed amount depends on context and geography, for example in US it is up to 115% of the original authorized amount, not to exceed an increase of $75 USD.

Supports only the `amount` request parameter.
Note: This request is currently not supported for Partner use cases.
+ +```php +function authorizationsReauthorize(array $options): ApiResponse +``` + +## Parameters + +| Parameter | Type | Tags | Description | +| --- | --- | --- | --- | +| `authorizationId` | `string` | Template, Required | The PayPal-generated ID for the authorized payment to reauthorize. | +| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. | +| `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'` | +| `body` | [`?ReauthorizeRequest`](../../doc/models/reauthorize-request.md) | Body, Optional | - | + +## Response Type + +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`PaymentAuthorization`](../../doc/models/payment-authorization.md). + +## Example Usage + +```php +$collect = [ + 'authorizationId' => 'authorization_id8', + 'prefer' => 'return=minimal' +]; + +$apiResponse = $paymentsController->authorizationsReauthorize($collect); +``` + +## Errors + +| HTTP Status Code | Error Description | Exception Class | +| --- | --- | --- | +| 400 | The request failed because it is not well-formed or is syntactically incorrect or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | +| 401 | Authentication failed due to missing authorization header, or invalid authentication credentials. | [`ErrorException`](../../doc/models/error-exception.md) | +| 403 | The request failed because the caller has insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | +| 404 | The request failed because the resource does not exist. | [`ErrorException`](../../doc/models/error-exception.md) | +| 422 | The request failed because it either is semantically incorrect or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | +| 500 | The request failed because an internal server error occurred. | `ApiException` | +| Default | The error response. | [`ErrorException`](../../doc/models/error-exception.md) | + + # Captures Get Shows details for a captured payment, by ID. @@ -213,7 +213,7 @@ function capturesGet(string $captureId): ApiResponse ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`CapturedPayment`](../../doc/models/captured-payment.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`CapturedPayment`](../../doc/models/captured-payment.md). ## Example Usage @@ -247,14 +247,14 @@ function capturesRefund(array $options): ApiResponse | Parameter | Type | Tags | Description | | --- | --- | --- | --- | | `captureId` | `string` | Template, Required | The PayPal-generated ID for the captured payment to refund. | -| `payPalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. | +| `paypalRequestId` | `?string` | Header, Optional | The server stores keys for 45 days. | | `prefer` | `?string` | Header, Optional | The preferred server response upon successful completion of the request. Value is:
**Default**: `'return=minimal'` | -| `payPalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see [PayPal-Auth-Assertion](/docs/api/reference/api-requests/#paypal-auth-assertion).
Note:For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.
| +| `paypalAuthAssertion` | `?string` | Header, Optional | An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see [PayPal-Auth-Assertion](/docs/api/reference/api-requests/#paypal-auth-assertion).
Note:For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.
| | `body` | [`?RefundRequest`](../../doc/models/refund-request.md) | Body, Optional | - | ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Refund`](../../doc/models/refund.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Refund`](../../doc/models/refund.md). ## Example Usage @@ -297,7 +297,7 @@ function refundsGet(string $refundId): ApiResponse ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Refund`](../../doc/models/refund.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`Refund`](../../doc/models/refund.md). ## Example Usage diff --git a/doc/controllers/vault.md b/doc/controllers/vault.md index 5cc95af..dd1caed 100644 --- a/doc/controllers/vault.md +++ b/doc/controllers/vault.md @@ -12,57 +12,14 @@ $vaultController = $client->getVaultController(); ## Methods -* [Payment-Tokens Create](../../doc/controllers/vault.md#payment-tokens-create) * [Customer Payment-Tokens Get](../../doc/controllers/vault.md#customer-payment-tokens-get) * [Payment-Tokens Get](../../doc/controllers/vault.md#payment-tokens-get) -* [Payment-Tokens Delete](../../doc/controllers/vault.md#payment-tokens-delete) +* [Payment-Tokens Create](../../doc/controllers/vault.md#payment-tokens-create) * [Setup-Tokens Create](../../doc/controllers/vault.md#setup-tokens-create) +* [Payment-Tokens Delete](../../doc/controllers/vault.md#payment-tokens-delete) * [Setup-Tokens Get](../../doc/controllers/vault.md#setup-tokens-get) -# Payment-Tokens Create - -Creates a Payment Token from the given payment source and adds it to the Vault of the associated customer. - -```php -function paymentTokensCreate(array $options): ApiResponse -``` - -## Parameters - -| Parameter | Type | Tags | Description | -| --- | --- | --- | --- | -| `payPalRequestId` | `string` | Header, Required | The server stores keys for 3 hours. | -| `body` | [`PaymentTokenRequest`](../../doc/models/payment-token-request.md) | Body, Required | Payment Token creation with a financial instrument and an optional customer_id. | - -## Response Type - -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`PaymentTokenResponse`](../../doc/models/payment-token-response.md). - -## Example Usage - -```php -$collect = [ - 'payPalRequestId' => 'PayPal-Request-Id6', - 'body' => PaymentTokenRequestBuilder::init( - PaymentTokenRequestPaymentSourceBuilder::init()->build() - )->build() -]; - -$apiResponse = $vaultController->paymentTokensCreate($collect); -``` - -## Errors - -| HTTP Status Code | Error Description | Exception Class | -| --- | --- | --- | -| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | -| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | -| 404 | Request contains reference to resources that do not exist. | [`ErrorException`](../../doc/models/error-exception.md) | -| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | -| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | - - # Customer Payment-Tokens Get Returns all payment tokens for a customer. @@ -82,7 +39,7 @@ function customerPaymentTokensGet(array $options): ApiResponse ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`CustomerVaultPaymentTokensResponse`](../../doc/models/customer-vault-payment-tokens-response.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`CustomerVaultPaymentTokensResponse`](../../doc/models/customer-vault-payment-tokens-response.md). ## Example Usage @@ -122,7 +79,7 @@ function paymentTokensGet(string $id): ApiResponse ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`PaymentTokenResponse`](../../doc/models/payment-token-response.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`PaymentTokenResponse`](../../doc/models/payment-token-response.md). ## Example Usage @@ -142,6 +99,91 @@ $apiResponse = $vaultController->paymentTokensGet($id); | 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | +# Payment-Tokens Create + +Creates a Payment Token from the given payment source and adds it to the Vault of the associated customer. + +```php +function paymentTokensCreate(array $options): ApiResponse +``` + +## Parameters + +| Parameter | Type | Tags | Description | +| --- | --- | --- | --- | +| `paypalRequestId` | `string` | Header, Required | The server stores keys for 3 hours. | +| `body` | [`PaymentTokenRequest`](../../doc/models/payment-token-request.md) | Body, Required | Payment Token creation with a financial instrument and an optional customer_id. | + +## Response Type + +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`PaymentTokenResponse`](../../doc/models/payment-token-response.md). + +## Example Usage + +```php +$collect = [ + 'paypalRequestId' => 'PayPal-Request-Id6', + 'body' => PaymentTokenRequestBuilder::init( + PaymentTokenRequestPaymentSourceBuilder::init()->build() + )->build() +]; + +$apiResponse = $vaultController->paymentTokensCreate($collect); +``` + +## Errors + +| HTTP Status Code | Error Description | Exception Class | +| --- | --- | --- | +| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | +| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | +| 404 | Request contains reference to resources that do not exist. | [`ErrorException`](../../doc/models/error-exception.md) | +| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | +| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | + + +# Setup-Tokens Create + +Creates a Setup Token from the given payment source and adds it to the Vault of the associated customer. + +```php +function setupTokensCreate(array $options): ApiResponse +``` + +## Parameters + +| Parameter | Type | Tags | Description | +| --- | --- | --- | --- | +| `paypalRequestId` | `string` | Header, Required | The server stores keys for 3 hours. | +| `body` | [`SetupTokenRequest`](../../doc/models/setup-token-request.md) | Body, Required | Setup Token creation with a instrument type optional financial instrument details and customer_id. | + +## Response Type + +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`SetupTokenResponse`](../../doc/models/setup-token-response.md). + +## Example Usage + +```php +$collect = [ + 'paypalRequestId' => 'PayPal-Request-Id6', + 'body' => SetupTokenRequestBuilder::init( + SetupTokenRequestPaymentSourceBuilder::init()->build() + )->build() +]; + +$apiResponse = $vaultController->setupTokensCreate($collect); +``` + +## Errors + +| HTTP Status Code | Error Description | Exception Class | +| --- | --- | --- | +| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | +| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | +| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | +| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | + + # Payment-Tokens Delete Delete the payment token associated with the payment token id. @@ -158,7 +200,7 @@ function paymentTokensDelete(string $id): ApiResponse ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. ## Example Usage @@ -177,48 +219,6 @@ $apiResponse = $vaultController->paymentTokensDelete($id); | 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | -# Setup-Tokens Create - -Creates a Setup Token from the given payment source and adds it to the Vault of the associated customer. - -```php -function setupTokensCreate(array $options): ApiResponse -``` - -## Parameters - -| Parameter | Type | Tags | Description | -| --- | --- | --- | --- | -| `payPalRequestId` | `string` | Header, Required | The server stores keys for 3 hours. | -| `body` | [`SetupTokenRequest`](../../doc/models/setup-token-request.md) | Body, Required | Setup Token creation with a instrument type optional financial instrument details and customer_id. | - -## Response Type - -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`SetupTokenResponse`](../../doc/models/setup-token-response.md). - -## Example Usage - -```php -$collect = [ - 'payPalRequestId' => 'PayPal-Request-Id6', - 'body' => SetupTokenRequestBuilder::init( - SetupTokenRequestPaymentSourceBuilder::init()->build() - )->build() -]; - -$apiResponse = $vaultController->setupTokensCreate($collect); -``` - -## Errors - -| HTTP Status Code | Error Description | Exception Class | -| --- | --- | --- | -| 400 | Request is not well-formed, syntactically incorrect, or violates schema. | [`ErrorException`](../../doc/models/error-exception.md) | -| 403 | Authorization failed due to insufficient permissions. | [`ErrorException`](../../doc/models/error-exception.md) | -| 422 | The requested action could not be performed, semantically incorrect, or failed business validation. | [`ErrorException`](../../doc/models/error-exception.md) | -| 500 | An internal server error has occurred. | [`ErrorException`](../../doc/models/error-exception.md) | - - # Setup-Tokens Get Returns a readable representation of temporarily vaulted payment source associated with the setup token id. @@ -235,7 +235,7 @@ function setupTokensGet(string $id): ApiResponse ## Response Type -This method returns a `PaypalServerSDKLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`SetupTokenResponse`](../../doc/models/setup-token-response.md). +This method returns a `PaypalServerSdkLib\Utils\ApiResponse` instance. The `getResult()` method on this instance returns the response data which is of type [`SetupTokenResponse`](../../doc/models/setup-token-response.md). ## Example Usage diff --git a/doc/logging-configuration-builder.md b/doc/logging-configuration-builder.md index f4cdc47..d9c1270 100644 --- a/doc/logging-configuration-builder.md +++ b/doc/logging-configuration-builder.md @@ -19,25 +19,25 @@ Represents the logging configurations for API calls. Create instance using `Logg In order to provide custom logger, any implementation of the `Psr\Log\LoggerInterface` can be used so that you can override the `log` behavior and provide its instance directly in the SDK client initialization. -The following example uses `Monolog\Logger` implementation of `Psr\Log\LoggerInterface` for PaypalServerSDKClient initialization. +The following example uses `Monolog\Logger` implementation of `Psr\Log\LoggerInterface` for PaypalServerSdkClient initialization. ```php pushHandler(new StreamHandler(__DIR__ . '/api_data.log')); // initialize the sdk client using this logger -$client = PaypalServerSDKClientBuilder::init() +$client = PaypalServerSdkClientBuilder::init() ->loggingConfiguration( LoggingConfigurationBuilder::init() ->logger($logger) diff --git a/doc/models/avs-code.md b/doc/models/avs-code.md index 06db627..e797a32 100644 --- a/doc/models/avs-code.md +++ b/doc/models/avs-code.md @@ -1,11 +1,11 @@ -# AVS Code +# Avs Code The address verification code for Visa, Discover, Mastercard, or American Express transactions. ## Enumeration -`AVSCode` +`AvsCode` ## Fields diff --git a/doc/models/blik-experience-context.md b/doc/models/blik-experience-context.md index 9a964f6..0628996 100644 --- a/doc/models/blik-experience-context.md +++ b/doc/models/blik-experience-context.md @@ -1,11 +1,11 @@ -# BLIK Experience Context +# Blik Experience Context Customizes the payer experience during the approval process for the BLIK payment. ## Structure -`BLIKExperienceContext` +`BlikExperienceContext` ## Fields diff --git a/doc/models/blik-level-0-payment-object.md b/doc/models/blik-level-0-payment-object.md index 3d22135..b2ec478 100644 --- a/doc/models/blik-level-0-payment-object.md +++ b/doc/models/blik-level-0-payment-object.md @@ -1,11 +1,11 @@ -# BLIK Level 0 Payment Object +# Blik Level 0 Payment Object Information used to pay using BLIK level_0 flow. ## Structure -`BLIKLevel0PaymentObject` +`BlikLevel0PaymentObject` ## Fields diff --git a/doc/models/blik-one-click-payment-object.md b/doc/models/blik-one-click-payment-object.md index 84d842d..4243415 100644 --- a/doc/models/blik-one-click-payment-object.md +++ b/doc/models/blik-one-click-payment-object.md @@ -1,11 +1,11 @@ -# BLIK One Click Payment Object +# Blik One Click Payment Object Information used to pay using BLIK one-click flow. ## Structure -`BLIKOneClickPaymentObject` +`BlikOneClickPaymentObject` ## Fields diff --git a/doc/models/blik-one-click-payment-request.md b/doc/models/blik-one-click-payment-request.md index 66bf619..31449ea 100644 --- a/doc/models/blik-one-click-payment-request.md +++ b/doc/models/blik-one-click-payment-request.md @@ -1,11 +1,11 @@ -# BLIK One Click Payment Request +# Blik One Click Payment Request Information used to pay using BLIK one-click flow. ## Structure -`BLIKOneClickPaymentRequest` +`BlikOneClickPaymentRequest` ## Fields diff --git a/doc/models/blik-payment-object.md b/doc/models/blik-payment-object.md index 533b90a..f65b6d1 100644 --- a/doc/models/blik-payment-object.md +++ b/doc/models/blik-payment-object.md @@ -1,11 +1,11 @@ -# BLIK Payment Object +# Blik Payment Object Information used to pay using BLIK. ## Structure -`BLIKPaymentObject` +`BlikPaymentObject` ## Fields @@ -14,7 +14,7 @@ Information used to pay using BLIK. | `name` | `?string` | Optional | The full name representation like Mr J Smith.
**Constraints**: *Minimum Length*: `3`, *Maximum Length*: `300` | getName(): ?string | setName(?string name): void | | `countryCode` | `?string` | Optional | The [two-character ISO 3166-1 code](/api/rest/reference/country-codes/) that identifies the country or region.
Note: The country code for Great Britain is GB and not UK as used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.

**Constraints**: *Minimum Length*: `2`, *Maximum Length*: `2`, *Pattern*: `^([A-Z]{2}\|C2)$` | getCountryCode(): ?string | setCountryCode(?string countryCode): void | | `email` | `?string` | Optional | The internationalized email address.
Note: Up to 64 characters are allowed before and 255 characters are allowed after the @ sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted @ sign exists.

**Constraints**: *Minimum Length*: `3`, *Maximum Length*: `254`, *Pattern*: ``^(?:[A-Za-z0-9!#$%&'*+/=?^_`{\|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{\|}~-]+)*\|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]\|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\|\[(?:(?:25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?\|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]\|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$`` | getEmail(): ?string | setEmail(?string email): void | -| `oneClick` | [`?BLIKOneClickPaymentObject`](../../doc/models/blik-one-click-payment-object.md) | Optional | Information used to pay using BLIK one-click flow. | getOneClick(): ?BLIKOneClickPaymentObject | setOneClick(?BLIKOneClickPaymentObject oneClick): void | +| `oneClick` | [`?BlikOneClickPaymentObject`](../../doc/models/blik-one-click-payment-object.md) | Optional | Information used to pay using BLIK one-click flow. | getOneClick(): ?BlikOneClickPaymentObject | setOneClick(?BlikOneClickPaymentObject oneClick): void | ## Example (as JSON) diff --git a/doc/models/blik-payment-request.md b/doc/models/blik-payment-request.md index 68da783..e3377e4 100644 --- a/doc/models/blik-payment-request.md +++ b/doc/models/blik-payment-request.md @@ -1,11 +1,11 @@ -# BLIK Payment Request +# Blik Payment Request Information needed to pay using BLIK. ## Structure -`BLIKPaymentRequest` +`BlikPaymentRequest` ## Fields @@ -14,9 +14,9 @@ Information needed to pay using BLIK. | `name` | `string` | Required | The full name representation like Mr J Smith.
**Constraints**: *Minimum Length*: `3`, *Maximum Length*: `300` | getName(): string | setName(string name): void | | `countryCode` | `string` | Required | The [two-character ISO 3166-1 code](/api/rest/reference/country-codes/) that identifies the country or region.
Note: The country code for Great Britain is GB and not UK as used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.

**Constraints**: *Minimum Length*: `2`, *Maximum Length*: `2`, *Pattern*: `^([A-Z]{2}\|C2)$` | getCountryCode(): string | setCountryCode(string countryCode): void | | `email` | `?string` | Optional | The internationalized email address.
Note: Up to 64 characters are allowed before and 255 characters are allowed after the @ sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted @ sign exists.

**Constraints**: *Minimum Length*: `3`, *Maximum Length*: `254`, *Pattern*: ``^(?:[A-Za-z0-9!#$%&'*+/=?^_`{\|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{\|}~-]+)*\|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]\|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\|\[(?:(?:25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]\|2[0-4][0-9]\|[01]?[0-9][0-9]?\|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]\|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$`` | getEmail(): ?string | setEmail(?string email): void | -| `experienceContext` | [`?BLIKExperienceContext`](../../doc/models/blik-experience-context.md) | Optional | Customizes the payer experience during the approval process for the BLIK payment. | getExperienceContext(): ?BLIKExperienceContext | setExperienceContext(?BLIKExperienceContext experienceContext): void | -| `level0` | [`?BLIKLevel0PaymentObject`](../../doc/models/blik-level-0-payment-object.md) | Optional | Information used to pay using BLIK level_0 flow. | getLevel0(): ?BLIKLevel0PaymentObject | setLevel0(?BLIKLevel0PaymentObject level0): void | -| `oneClick` | [`?BLIKOneClickPaymentRequest`](../../doc/models/blik-one-click-payment-request.md) | Optional | Information used to pay using BLIK one-click flow. | getOneClick(): ?BLIKOneClickPaymentRequest | setOneClick(?BLIKOneClickPaymentRequest oneClick): void | +| `experienceContext` | [`?BlikExperienceContext`](../../doc/models/blik-experience-context.md) | Optional | Customizes the payer experience during the approval process for the BLIK payment. | getExperienceContext(): ?BlikExperienceContext | setExperienceContext(?BlikExperienceContext experienceContext): void | +| `level0` | [`?BlikLevel0PaymentObject`](../../doc/models/blik-level-0-payment-object.md) | Optional | Information used to pay using BLIK level_0 flow. | getLevel0(): ?BlikLevel0PaymentObject | setLevel0(?BlikLevel0PaymentObject level0): void | +| `oneClick` | [`?BlikOneClickPaymentRequest`](../../doc/models/blik-one-click-payment-request.md) | Optional | Information used to pay using BLIK one-click flow. | getOneClick(): ?BlikOneClickPaymentRequest | setOneClick(?BlikOneClickPaymentRequest oneClick): void | ## Example (as JSON) diff --git a/doc/models/card-verification-processor-response.md b/doc/models/card-verification-processor-response.md index 2cde41c..5ab2089 100644 --- a/doc/models/card-verification-processor-response.md +++ b/doc/models/card-verification-processor-response.md @@ -11,8 +11,8 @@ The processor response information for payment requests, such as direct credit c | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | -| `avsCode` | [`?string(AVSCode)`](../../doc/models/avs-code.md) | Optional | The address verification code for Visa, Discover, Mastercard, or American Express transactions. | getAvsCode(): ?string | setAvsCode(?string avsCode): void | -| `cvvCode` | [`?string(CVVCode)`](../../doc/models/cvv-code.md) | Optional | The card verification value code for for Visa, Discover, Mastercard, or American Express. | getCvvCode(): ?string | setCvvCode(?string cvvCode): void | +| `avsCode` | [`?string(AvsCode)`](../../doc/models/avs-code.md) | Optional | The address verification code for Visa, Discover, Mastercard, or American Express transactions. | getAvsCode(): ?string | setAvsCode(?string avsCode): void | +| `cvvCode` | [`?string(CvvCode)`](../../doc/models/cvv-code.md) | Optional | The card verification value code for for Visa, Discover, Mastercard, or American Express. | getCvvCode(): ?string | setCvvCode(?string cvvCode): void | ## Example (as JSON) diff --git a/doc/models/cvv-code.md b/doc/models/cvv-code.md index 48872cd..7cad291 100644 --- a/doc/models/cvv-code.md +++ b/doc/models/cvv-code.md @@ -1,11 +1,11 @@ -# CVV Code +# Cvv Code The card verification value code for for Visa, Discover, Mastercard, or American Express. ## Enumeration -`CVVCode` +`CvvCode` ## Fields diff --git a/doc/models/eci-flag.md b/doc/models/eci-flag.md index f89dc2b..d25f75c 100644 --- a/doc/models/eci-flag.md +++ b/doc/models/eci-flag.md @@ -1,11 +1,11 @@ -# ECI Flag +# Eci Flag Electronic Commerce Indicator (ECI). The ECI value is part of the 2 data elements that indicate the transaction was processed electronically. This should be passed on the authorization transaction to the Gateway/Processor. ## Enumeration -`ECIFlag` +`EciFlag` ## Fields diff --git a/doc/models/eps-payment-object.md b/doc/models/eps-payment-object.md index 91921a2..ec0543c 100644 --- a/doc/models/eps-payment-object.md +++ b/doc/models/eps-payment-object.md @@ -1,11 +1,11 @@ -# EPS Payment Object +# Eps Payment Object Information used to pay using eps. ## Structure -`EPSPaymentObject` +`EpsPaymentObject` ## Fields diff --git a/doc/models/eps-payment-request.md b/doc/models/eps-payment-request.md index 5f1285d..a5a72fc 100644 --- a/doc/models/eps-payment-request.md +++ b/doc/models/eps-payment-request.md @@ -1,11 +1,11 @@ -# EPS Payment Request +# Eps Payment Request Information needed to pay using eps. ## Structure -`EPSPaymentRequest` +`EpsPaymentRequest` ## Fields diff --git a/doc/models/ideal-payment-object.md b/doc/models/ideal-payment-object.md index 1645254..701bd42 100644 --- a/doc/models/ideal-payment-object.md +++ b/doc/models/ideal-payment-object.md @@ -1,11 +1,11 @@ -# IDEAL Payment Object +# Ideal Payment Object Information used to pay using iDEAL. ## Structure -`IDEALPaymentObject` +`IdealPaymentObject` ## Fields diff --git a/doc/models/ideal-payment-request.md b/doc/models/ideal-payment-request.md index 933b1db..d53fa13 100644 --- a/doc/models/ideal-payment-request.md +++ b/doc/models/ideal-payment-request.md @@ -1,11 +1,11 @@ -# IDEAL Payment Request +# Ideal Payment Request Information needed to pay using iDEAL. ## Structure -`IDEALPaymentRequest` +`IdealPaymentRequest` ## Fields diff --git a/doc/models/link-description.md b/doc/models/link-description.md index cd4a067..2c4890a 100644 --- a/doc/models/link-description.md +++ b/doc/models/link-description.md @@ -13,7 +13,7 @@ The request-related [HATEOAS link](/api/rest/responses/#hateoas-links) informati | --- | --- | --- | --- | --- | --- | | `href` | `string` | Required | The complete target URL. To make the related call, combine the method with this [URI Template-formatted](https://tools.ietf.org/html/rfc6570) link. For pre-processing, include the `$`, `(`, and `)` characters. The `href` is the key HATEOAS component that links a completed call with a subsequent call. | getHref(): string | setHref(string href): void | | `rel` | `string` | Required | The [link relation type](https://tools.ietf.org/html/rfc5988#section-4), which serves as an ID for a link that unambiguously describes the semantics of the link. See [Link Relations](https://www.iana.org/assignments/link-relations/link-relations.xhtml). | getRel(): string | setRel(string rel): void | -| `method` | [`?string(LinkHTTPMethod)`](../../doc/models/link-http-method.md) | Optional | The HTTP method required to make the related call. | getMethod(): ?string | setMethod(?string method): void | +| `method` | [`?string(LinkHttpMethod)`](../../doc/models/link-http-method.md) | Optional | The HTTP method required to make the related call. | getMethod(): ?string | setMethod(?string method): void | ## Example (as JSON) diff --git a/doc/models/link-http-method.md b/doc/models/link-http-method.md index 45341a5..0d9087f 100644 --- a/doc/models/link-http-method.md +++ b/doc/models/link-http-method.md @@ -1,11 +1,11 @@ -# Link HTTP Method +# Link Http Method The HTTP method required to make the related call. ## Enumeration -`LinkHTTPMethod` +`LinkHttpMethod` ## Fields diff --git a/doc/models/my-bank-payment-object.md b/doc/models/mybank-payment-object.md similarity index 97% rename from doc/models/my-bank-payment-object.md rename to doc/models/mybank-payment-object.md index d5fa99a..5881956 100644 --- a/doc/models/my-bank-payment-object.md +++ b/doc/models/mybank-payment-object.md @@ -1,11 +1,11 @@ -# My Bank Payment Object +# Mybank Payment Object Information used to pay using MyBank. ## Structure -`MyBankPaymentObject` +`MybankPaymentObject` ## Fields diff --git a/doc/models/my-bank-payment-request.md b/doc/models/mybank-payment-request.md similarity index 96% rename from doc/models/my-bank-payment-request.md rename to doc/models/mybank-payment-request.md index 06a5836..c91a02c 100644 --- a/doc/models/my-bank-payment-request.md +++ b/doc/models/mybank-payment-request.md @@ -1,11 +1,11 @@ -# My Bank Payment Request +# Mybank Payment Request Information needed to pay using MyBank. ## Structure -`MyBankPaymentRequest` +`MybankPaymentRequest` ## Fields diff --git a/doc/models/network-token.md b/doc/models/network-token.md index d89c921..bcb8a16 100644 --- a/doc/models/network-token.md +++ b/doc/models/network-token.md @@ -14,7 +14,7 @@ The Third Party Network token used to fund a payment. | `number` | `string` | Required | Third party network token number.
**Constraints**: *Minimum Length*: `13`, *Maximum Length*: `19`, *Pattern*: `^[0-9]{13,19}$` | getNumber(): string | setNumber(string number): void | | `expiry` | `string` | Required | The year and month, in ISO-8601 `YYYY-MM` date format. See [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6).
**Constraints**: *Minimum Length*: `7`, *Maximum Length*: `7`, *Pattern*: `^[0-9]{4}-(0[1-9]\|1[0-2])$` | getExpiry(): string | setExpiry(string expiry): void | | `cryptogram` | `?string` | Optional | An Encrypted one-time use value that's sent along with Network Token. This field is not required to be present for recurring transactions.
**Constraints**: *Minimum Length*: `28`, *Maximum Length*: `32`, *Pattern*: `^.*$` | getCryptogram(): ?string | setCryptogram(?string cryptogram): void | -| `eciFlag` | [`?string(ECIFlag)`](../../doc/models/eci-flag.md) | Optional | Electronic Commerce Indicator (ECI). The ECI value is part of the 2 data elements that indicate the transaction was processed electronically. This should be passed on the authorization transaction to the Gateway/Processor.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getEciFlag(): ?string | setEciFlag(?string eciFlag): void | +| `eciFlag` | [`?string(EciFlag)`](../../doc/models/eci-flag.md) | Optional | Electronic Commerce Indicator (ECI). The ECI value is part of the 2 data elements that indicate the transaction was processed electronically. This should be passed on the authorization transaction to the Gateway/Processor.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getEciFlag(): ?string | setEciFlag(?string eciFlag): void | | `tokenRequestorId` | `?string` | Optional | A TRID, or a Token Requestor ID, is an identifier used by merchants to request network tokens from card networks. A TRID is a precursor to obtaining a network token for a credit card primary account number (PAN), and will aid in enabling secure card on file (COF) payments and reducing fraud.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `11`, *Pattern*: `^[0-9A-Z_]+$` | getTokenRequestorId(): ?string | setTokenRequestorId(?string tokenRequestorId): void | ## Example (as JSON) diff --git a/doc/models/order-authorize-request-payment-source.md b/doc/models/order-authorize-request-payment-source.md index 2118ffd..c8ed07c 100644 --- a/doc/models/order-authorize-request-payment-source.md +++ b/doc/models/order-authorize-request-payment-source.md @@ -13,7 +13,7 @@ The payment source definition. | --- | --- | --- | --- | --- | --- | | `card` | [`?CardRequest`](../../doc/models/card-request.md) | Optional | The payment card to use to fund a payment. Can be a credit or debit card.
Note: Passing card number, cvv and expiry directly via the API requires PCI SAQ D compliance.
*PayPal offers a mechanism by which you do not have to take on the PCI SAQ D burden by using hosted fields - refer to this Integration Guide*.
| getCard(): ?CardRequest | setCard(?CardRequest card): void | | `token` | [`?Token`](../../doc/models/token.md) | Optional | The tokenized payment source to fund a payment. | getToken(): ?Token | setToken(?Token token): void | -| `paypal` | [`?PayPalWallet`](../../doc/models/pay-pal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PayPalWallet | setPaypal(?PayPalWallet paypal): void | +| `paypal` | [`?PaypalWallet`](../../doc/models/paypal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PaypalWallet | setPaypal(?PaypalWallet paypal): void | | `applePay` | [`?ApplePayRequest`](../../doc/models/apple-pay-request.md) | Optional | Information needed to pay using ApplePay. | getApplePay(): ?ApplePayRequest | setApplePay(?ApplePayRequest applePay): void | | `googlePay` | [`?GooglePayRequest`](../../doc/models/google-pay-request.md) | Optional | Information needed to pay using Google Pay. | getGooglePay(): ?GooglePayRequest | setGooglePay(?GooglePayRequest googlePay): void | | `venmo` | [`?VenmoWalletRequest`](../../doc/models/venmo-wallet-request.md) | Optional | Information needed to pay using Venmo. | getVenmo(): ?VenmoWalletRequest | setVenmo(?VenmoWalletRequest venmo): void | diff --git a/doc/models/order-authorize-response-payment-source.md b/doc/models/order-authorize-response-payment-source.md index 8445230..b496184 100644 --- a/doc/models/order-authorize-response-payment-source.md +++ b/doc/models/order-authorize-response-payment-source.md @@ -12,7 +12,7 @@ The payment source used to fund the payment. | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `card` | [`?CardResponse`](../../doc/models/card-response.md) | Optional | The payment card to use to fund a payment. Card can be a credit or debit card. | getCard(): ?CardResponse | setCard(?CardResponse card): void | -| `paypal` | [`?PayPalWalletResponse`](../../doc/models/pay-pal-wallet-response.md) | Optional | The PayPal Wallet response. | getPaypal(): ?PayPalWalletResponse | setPaypal(?PayPalWalletResponse paypal): void | +| `paypal` | [`?PaypalWalletResponse`](../../doc/models/paypal-wallet-response.md) | Optional | The PayPal Wallet response. | getPaypal(): ?PaypalWalletResponse | setPaypal(?PaypalWalletResponse paypal): void | | `applePay` | [`?ApplePayPaymentObject`](../../doc/models/apple-pay-payment-object.md) | Optional | Information needed to pay using ApplePay. | getApplePay(): ?ApplePayPaymentObject | setApplePay(?ApplePayPaymentObject applePay): void | | `googlePay` | [`?GooglePayWalletResponse`](../../doc/models/google-pay-wallet-response.md) | Optional | Google Pay Wallet payment data. | getGooglePay(): ?GooglePayWalletResponse | setGooglePay(?GooglePayWalletResponse googlePay): void | | `venmo` | [`?VenmoWalletResponse`](../../doc/models/venmo-wallet-response.md) | Optional | Venmo wallet response. | getVenmo(): ?VenmoWalletResponse | setVenmo(?VenmoWalletResponse venmo): void | diff --git a/doc/models/order-capture-request-payment-source.md b/doc/models/order-capture-request-payment-source.md index 468c398..79983d6 100644 --- a/doc/models/order-capture-request-payment-source.md +++ b/doc/models/order-capture-request-payment-source.md @@ -13,7 +13,7 @@ The payment source definition. | --- | --- | --- | --- | --- | --- | | `card` | [`?CardRequest`](../../doc/models/card-request.md) | Optional | The payment card to use to fund a payment. Can be a credit or debit card.
Note: Passing card number, cvv and expiry directly via the API requires PCI SAQ D compliance.
*PayPal offers a mechanism by which you do not have to take on the PCI SAQ D burden by using hosted fields - refer to this Integration Guide*.
| getCard(): ?CardRequest | setCard(?CardRequest card): void | | `token` | [`?Token`](../../doc/models/token.md) | Optional | The tokenized payment source to fund a payment. | getToken(): ?Token | setToken(?Token token): void | -| `paypal` | [`?PayPalWallet`](../../doc/models/pay-pal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PayPalWallet | setPaypal(?PayPalWallet paypal): void | +| `paypal` | [`?PaypalWallet`](../../doc/models/paypal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PaypalWallet | setPaypal(?PaypalWallet paypal): void | | `applePay` | [`?ApplePayRequest`](../../doc/models/apple-pay-request.md) | Optional | Information needed to pay using ApplePay. | getApplePay(): ?ApplePayRequest | setApplePay(?ApplePayRequest applePay): void | | `googlePay` | [`?GooglePayRequest`](../../doc/models/google-pay-request.md) | Optional | Information needed to pay using Google Pay. | getGooglePay(): ?GooglePayRequest | setGooglePay(?GooglePayRequest googlePay): void | | `venmo` | [`?VenmoWalletRequest`](../../doc/models/venmo-wallet-request.md) | Optional | Information needed to pay using Venmo. | getVenmo(): ?VenmoWalletRequest | setVenmo(?VenmoWalletRequest venmo): void | diff --git a/doc/models/pa-res-status.md b/doc/models/pa-res-status.md index f1a5579..1794cb5 100644 --- a/doc/models/pa-res-status.md +++ b/doc/models/pa-res-status.md @@ -1,11 +1,11 @@ -# PA Res Status +# Pa Res Status Transactions status result identifier. The outcome of the issuer's authentication. ## Enumeration -`PAResStatus` +`PaResStatus` ## Fields diff --git a/doc/models/payment-source-response.md b/doc/models/payment-source-response.md index 249094c..2f811aa 100644 --- a/doc/models/payment-source-response.md +++ b/doc/models/payment-source-response.md @@ -12,13 +12,13 @@ The payment source used to fund the payment. | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `card` | [`?CardResponse`](../../doc/models/card-response.md) | Optional | The payment card to use to fund a payment. Card can be a credit or debit card. | getCard(): ?CardResponse | setCard(?CardResponse card): void | -| `paypal` | [`?PayPalWalletResponse`](../../doc/models/pay-pal-wallet-response.md) | Optional | The PayPal Wallet response. | getPaypal(): ?PayPalWalletResponse | setPaypal(?PayPalWalletResponse paypal): void | +| `paypal` | [`?PaypalWalletResponse`](../../doc/models/paypal-wallet-response.md) | Optional | The PayPal Wallet response. | getPaypal(): ?PaypalWalletResponse | setPaypal(?PaypalWalletResponse paypal): void | | `bancontact` | [`?BancontactPaymentObject`](../../doc/models/bancontact-payment-object.md) | Optional | Information used to pay Bancontact. | getBancontact(): ?BancontactPaymentObject | setBancontact(?BancontactPaymentObject bancontact): void | -| `blik` | [`?BLIKPaymentObject`](../../doc/models/blik-payment-object.md) | Optional | Information used to pay using BLIK. | getBlik(): ?BLIKPaymentObject | setBlik(?BLIKPaymentObject blik): void | -| `eps` | [`?EPSPaymentObject`](../../doc/models/eps-payment-object.md) | Optional | Information used to pay using eps. | getEps(): ?EPSPaymentObject | setEps(?EPSPaymentObject eps): void | +| `blik` | [`?BlikPaymentObject`](../../doc/models/blik-payment-object.md) | Optional | Information used to pay using BLIK. | getBlik(): ?BlikPaymentObject | setBlik(?BlikPaymentObject blik): void | +| `eps` | [`?EpsPaymentObject`](../../doc/models/eps-payment-object.md) | Optional | Information used to pay using eps. | getEps(): ?EpsPaymentObject | setEps(?EpsPaymentObject eps): void | | `giropay` | [`?GiropayPaymentObject`](../../doc/models/giropay-payment-object.md) | Optional | Information needed to pay using giropay. | getGiropay(): ?GiropayPaymentObject | setGiropay(?GiropayPaymentObject giropay): void | -| `ideal` | [`?IDEALPaymentObject`](../../doc/models/ideal-payment-object.md) | Optional | Information used to pay using iDEAL. | getIdeal(): ?IDEALPaymentObject | setIdeal(?IDEALPaymentObject ideal): void | -| `mybank` | [`?MyBankPaymentObject`](../../doc/models/my-bank-payment-object.md) | Optional | Information used to pay using MyBank. | getMybank(): ?MyBankPaymentObject | setMybank(?MyBankPaymentObject mybank): void | +| `ideal` | [`?IdealPaymentObject`](../../doc/models/ideal-payment-object.md) | Optional | Information used to pay using iDEAL. | getIdeal(): ?IdealPaymentObject | setIdeal(?IdealPaymentObject ideal): void | +| `mybank` | [`?MybankPaymentObject`](../../doc/models/mybank-payment-object.md) | Optional | Information used to pay using MyBank. | getMybank(): ?MybankPaymentObject | setMybank(?MybankPaymentObject mybank): void | | `p24` | [`?P24PaymentObject`](../../doc/models/p24-payment-object.md) | Optional | Information used to pay using P24(Przelewy24). | getP24(): ?P24PaymentObject | setP24(?P24PaymentObject p24): void | | `sofort` | [`?SofortPaymentObject`](../../doc/models/sofort-payment-object.md) | Optional | Information used to pay using Sofort. | getSofort(): ?SofortPaymentObject | setSofort(?SofortPaymentObject sofort): void | | `trustly` | [`?TrustlyPaymentObject`](../../doc/models/trustly-payment-object.md) | Optional | Information needed to pay using Trustly. | getTrustly(): ?TrustlyPaymentObject | setTrustly(?TrustlyPaymentObject trustly): void | diff --git a/doc/models/payment-source.md b/doc/models/payment-source.md index c2e818a..01173e0 100644 --- a/doc/models/payment-source.md +++ b/doc/models/payment-source.md @@ -13,13 +13,13 @@ The payment source definition. | --- | --- | --- | --- | --- | --- | | `card` | [`?CardRequest`](../../doc/models/card-request.md) | Optional | The payment card to use to fund a payment. Can be a credit or debit card.
Note: Passing card number, cvv and expiry directly via the API requires PCI SAQ D compliance.
*PayPal offers a mechanism by which you do not have to take on the PCI SAQ D burden by using hosted fields - refer to this Integration Guide*.
| getCard(): ?CardRequest | setCard(?CardRequest card): void | | `token` | [`?Token`](../../doc/models/token.md) | Optional | The tokenized payment source to fund a payment. | getToken(): ?Token | setToken(?Token token): void | -| `paypal` | [`?PayPalWallet`](../../doc/models/pay-pal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PayPalWallet | setPaypal(?PayPalWallet paypal): void | +| `paypal` | [`?PaypalWallet`](../../doc/models/paypal-wallet.md) | Optional | A resource that identifies a PayPal Wallet is used for payment. | getPaypal(): ?PaypalWallet | setPaypal(?PaypalWallet paypal): void | | `bancontact` | [`?BancontactPaymentRequest`](../../doc/models/bancontact-payment-request.md) | Optional | Information needed to pay using Bancontact. | getBancontact(): ?BancontactPaymentRequest | setBancontact(?BancontactPaymentRequest bancontact): void | -| `blik` | [`?BLIKPaymentRequest`](../../doc/models/blik-payment-request.md) | Optional | Information needed to pay using BLIK. | getBlik(): ?BLIKPaymentRequest | setBlik(?BLIKPaymentRequest blik): void | -| `eps` | [`?EPSPaymentRequest`](../../doc/models/eps-payment-request.md) | Optional | Information needed to pay using eps. | getEps(): ?EPSPaymentRequest | setEps(?EPSPaymentRequest eps): void | +| `blik` | [`?BlikPaymentRequest`](../../doc/models/blik-payment-request.md) | Optional | Information needed to pay using BLIK. | getBlik(): ?BlikPaymentRequest | setBlik(?BlikPaymentRequest blik): void | +| `eps` | [`?EpsPaymentRequest`](../../doc/models/eps-payment-request.md) | Optional | Information needed to pay using eps. | getEps(): ?EpsPaymentRequest | setEps(?EpsPaymentRequest eps): void | | `giropay` | [`?GiropayPaymentRequest`](../../doc/models/giropay-payment-request.md) | Optional | Information needed to pay using giropay. | getGiropay(): ?GiropayPaymentRequest | setGiropay(?GiropayPaymentRequest giropay): void | -| `ideal` | [`?IDEALPaymentRequest`](../../doc/models/ideal-payment-request.md) | Optional | Information needed to pay using iDEAL. | getIdeal(): ?IDEALPaymentRequest | setIdeal(?IDEALPaymentRequest ideal): void | -| `mybank` | [`?MyBankPaymentRequest`](../../doc/models/my-bank-payment-request.md) | Optional | Information needed to pay using MyBank. | getMybank(): ?MyBankPaymentRequest | setMybank(?MyBankPaymentRequest mybank): void | +| `ideal` | [`?IdealPaymentRequest`](../../doc/models/ideal-payment-request.md) | Optional | Information needed to pay using iDEAL. | getIdeal(): ?IdealPaymentRequest | setIdeal(?IdealPaymentRequest ideal): void | +| `mybank` | [`?MybankPaymentRequest`](../../doc/models/mybank-payment-request.md) | Optional | Information needed to pay using MyBank. | getMybank(): ?MybankPaymentRequest | setMybank(?MybankPaymentRequest mybank): void | | `p24` | [`?P24PaymentRequest`](../../doc/models/p24-payment-request.md) | Optional | Information needed to pay using P24 (Przelewy24). | getP24(): ?P24PaymentRequest | setP24(?P24PaymentRequest p24): void | | `sofort` | [`?SofortPaymentRequest`](../../doc/models/sofort-payment-request.md) | Optional | Information needed to pay using Sofort. | getSofort(): ?SofortPaymentRequest | setSofort(?SofortPaymentRequest sofort): void | | `trustly` | [`?TrustlyPaymentRequest`](../../doc/models/trustly-payment-request.md) | Optional | Information needed to pay using Trustly. | getTrustly(): ?TrustlyPaymentRequest | setTrustly(?TrustlyPaymentRequest trustly): void | diff --git a/doc/models/payment-token-response-payment-source.md b/doc/models/payment-token-response-payment-source.md index b2ef8c3..049f44b 100644 --- a/doc/models/payment-token-response-payment-source.md +++ b/doc/models/payment-token-response-payment-source.md @@ -12,7 +12,7 @@ The vaulted payment method details. | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `card` | [`?CardPaymentToken`](../../doc/models/card-payment-token.md) | Optional | Full representation of a Card Payment Token including network token. | getCard(): ?CardPaymentToken | setCard(?CardPaymentToken card): void | -| `paypal` | [`?PayPalPaymentToken`](../../doc/models/pay-pal-payment-token.md) | Optional | - | getPaypal(): ?PayPalPaymentToken | setPaypal(?PayPalPaymentToken paypal): void | +| `paypal` | [`?PaypalPaymentToken`](../../doc/models/paypal-payment-token.md) | Optional | - | getPaypal(): ?PaypalPaymentToken | setPaypal(?PaypalPaymentToken paypal): void | | `venmo` | [`?VenmoPaymentToken`](../../doc/models/venmo-payment-token.md) | Optional | - | getVenmo(): ?VenmoPaymentToken | setVenmo(?VenmoPaymentToken venmo): void | | `applePay` | [`?ApplePayPaymentToken`](../../doc/models/apple-pay-payment-token.md) | Optional | A resource representing a response for Apple Pay. | getApplePay(): ?ApplePayPaymentToken | setApplePay(?ApplePayPaymentToken applePay): void | | `bank` | `mixed` | Optional | Full representation of a Bank Payment Token. | getBank(): | setBank( bank): void | diff --git a/doc/models/pay-pal-experience-landing-page.md b/doc/models/paypal-experience-landing-page.md similarity index 73% rename from doc/models/pay-pal-experience-landing-page.md rename to doc/models/paypal-experience-landing-page.md index 76138a3..7468eeb 100644 --- a/doc/models/pay-pal-experience-landing-page.md +++ b/doc/models/paypal-experience-landing-page.md @@ -1,11 +1,11 @@ -# Pay Pal Experience Landing Page +# Paypal Experience Landing Page The type of landing page to show on the PayPal site for customer checkout. ## Enumeration -`PayPalExperienceLandingPage` +`PaypalExperienceLandingPage` ## Fields diff --git a/doc/models/pay-pal-experience-user-action.md b/doc/models/paypal-experience-user-action.md similarity index 72% rename from doc/models/pay-pal-experience-user-action.md rename to doc/models/paypal-experience-user-action.md index 49906d0..b3b1dd6 100644 --- a/doc/models/pay-pal-experience-user-action.md +++ b/doc/models/paypal-experience-user-action.md @@ -1,11 +1,11 @@ -# Pay Pal Experience User Action +# Paypal Experience User Action Configures a Continue or Pay Now checkout flow. ## Enumeration -`PayPalExperienceUserAction` +`PaypalExperienceUserAction` ## Fields diff --git a/doc/models/pay-pal-payment-token-customer-type.md b/doc/models/paypal-payment-token-customer-type.md similarity index 77% rename from doc/models/pay-pal-payment-token-customer-type.md rename to doc/models/paypal-payment-token-customer-type.md index 1496795..6d7e771 100644 --- a/doc/models/pay-pal-payment-token-customer-type.md +++ b/doc/models/paypal-payment-token-customer-type.md @@ -1,11 +1,11 @@ -# Pay Pal Payment Token Customer Type +# Paypal Payment Token Customer Type The customer type associated with the PayPal payment token. This is to indicate whether the customer acting on the merchant / platform is either a business or a consumer. ## Enumeration -`PayPalPaymentTokenCustomerType` +`PaypalPaymentTokenCustomerType` ## Fields diff --git a/doc/models/pay-pal-payment-token-usage-pattern.md b/doc/models/paypal-payment-token-usage-pattern.md similarity index 77% rename from doc/models/pay-pal-payment-token-usage-pattern.md rename to doc/models/paypal-payment-token-usage-pattern.md index ff90cbb..e8232fd 100644 --- a/doc/models/pay-pal-payment-token-usage-pattern.md +++ b/doc/models/paypal-payment-token-usage-pattern.md @@ -1,11 +1,11 @@ -# Pay Pal Payment Token Usage Pattern +# Paypal Payment Token Usage Pattern Expected business/pricing model for the billing agreement. ## Enumeration -`PayPalPaymentTokenUsagePattern` +`PaypalPaymentTokenUsagePattern` ## Fields diff --git a/doc/models/pay-pal-payment-token-usage-type.md b/doc/models/paypal-payment-token-usage-type.md similarity index 67% rename from doc/models/pay-pal-payment-token-usage-type.md rename to doc/models/paypal-payment-token-usage-type.md index c725536..88e5e52 100644 --- a/doc/models/pay-pal-payment-token-usage-type.md +++ b/doc/models/paypal-payment-token-usage-type.md @@ -1,11 +1,11 @@ -# Pay Pal Payment Token Usage Type +# Paypal Payment Token Usage Type The usage type associated with the PayPal payment token. ## Enumeration -`PayPalPaymentTokenUsageType` +`PaypalPaymentTokenUsageType` ## Fields diff --git a/doc/models/pay-pal-payment-token.md b/doc/models/paypal-payment-token.md similarity index 99% rename from doc/models/pay-pal-payment-token.md rename to doc/models/paypal-payment-token.md index 47421be..ae515ca 100644 --- a/doc/models/pay-pal-payment-token.md +++ b/doc/models/paypal-payment-token.md @@ -1,9 +1,9 @@ -# Pay Pal Payment Token +# Paypal Payment Token ## Structure -`PayPalPaymentToken` +`PaypalPaymentToken` ## Fields diff --git a/doc/models/pay-pal-wallet-account-verification-status.md b/doc/models/paypal-wallet-account-verification-status.md similarity index 70% rename from doc/models/pay-pal-wallet-account-verification-status.md rename to doc/models/paypal-wallet-account-verification-status.md index 1d3724b..8f53cf9 100644 --- a/doc/models/pay-pal-wallet-account-verification-status.md +++ b/doc/models/paypal-wallet-account-verification-status.md @@ -1,11 +1,11 @@ -# Pay Pal Wallet Account Verification Status +# Paypal Wallet Account Verification Status The account status indicates whether the buyer has verified the financial details associated with their PayPal account. ## Enumeration -`PayPalWalletAccountVerificationStatus` +`PaypalWalletAccountVerificationStatus` ## Fields diff --git a/doc/models/pay-pal-wallet-attributes-response.md b/doc/models/paypal-wallet-attributes-response.md similarity index 83% rename from doc/models/pay-pal-wallet-attributes-response.md rename to doc/models/paypal-wallet-attributes-response.md index 1ef7513..310d5a6 100644 --- a/doc/models/pay-pal-wallet-attributes-response.md +++ b/doc/models/paypal-wallet-attributes-response.md @@ -1,17 +1,17 @@ -# Pay Pal Wallet Attributes Response +# Paypal Wallet Attributes Response Additional attributes associated with the use of a PayPal Wallet. ## Structure -`PayPalWalletAttributesResponse` +`PaypalWalletAttributesResponse` ## Fields | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | -| `vault` | [`?PayPalWalletVaultResponse`](../../doc/models/pay-pal-wallet-vault-response.md) | Optional | The details about a saved PayPal Wallet payment source. | getVault(): ?PayPalWalletVaultResponse | setVault(?PayPalWalletVaultResponse vault): void | +| `vault` | [`?PaypalWalletVaultResponse`](../../doc/models/paypal-wallet-vault-response.md) | Optional | The details about a saved PayPal Wallet payment source. | getVault(): ?PaypalWalletVaultResponse | setVault(?PaypalWalletVaultResponse vault): void | | `cobrandedCards` | [`?(CobrandedCard[])`](../../doc/models/cobranded-card.md) | Optional | An array of merchant cobranded cards used by buyer to complete an order. This array will be present if a merchant has onboarded their cobranded card with PayPal and provided corresponding label(s).
**Constraints**: *Minimum Items*: `0`, *Maximum Items*: `25` | getCobrandedCards(): ?array | setCobrandedCards(?array cobrandedCards): void | ## Example (as JSON) diff --git a/doc/models/pay-pal-wallet-attributes.md b/doc/models/paypal-wallet-attributes.md similarity index 59% rename from doc/models/pay-pal-wallet-attributes.md rename to doc/models/paypal-wallet-attributes.md index 68a20d5..f10274d 100644 --- a/doc/models/pay-pal-wallet-attributes.md +++ b/doc/models/paypal-wallet-attributes.md @@ -1,18 +1,18 @@ -# Pay Pal Wallet Attributes +# Paypal Wallet Attributes Additional attributes associated with the use of this PayPal Wallet. ## Structure -`PayPalWalletAttributes` +`PaypalWalletAttributes` ## Fields | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | -| `customer` | [`?PayPalWalletCustomerRequest`](../../doc/models/pay-pal-wallet-customer-request.md) | Optional | - | getCustomer(): ?PayPalWalletCustomerRequest | setCustomer(?PayPalWalletCustomerRequest customer): void | -| `vault` | [`?PayPalWalletVaultInstruction`](../../doc/models/pay-pal-wallet-vault-instruction.md) | Optional | - | getVault(): ?PayPalWalletVaultInstruction | setVault(?PayPalWalletVaultInstruction vault): void | +| `customer` | [`?PaypalWalletCustomerRequest`](../../doc/models/paypal-wallet-customer-request.md) | Optional | - | getCustomer(): ?PaypalWalletCustomerRequest | setCustomer(?PaypalWalletCustomerRequest customer): void | +| `vault` | [`?PaypalWalletVaultInstruction`](../../doc/models/paypal-wallet-vault-instruction.md) | Optional | - | getVault(): ?PaypalWalletVaultInstruction | setVault(?PaypalWalletVaultInstruction vault): void | ## Example (as JSON) diff --git a/doc/models/pay-pal-wallet-customer-request.md b/doc/models/paypal-wallet-customer-request.md similarity index 97% rename from doc/models/pay-pal-wallet-customer-request.md rename to doc/models/paypal-wallet-customer-request.md index 6bab016..64e448f 100644 --- a/doc/models/pay-pal-wallet-customer-request.md +++ b/doc/models/paypal-wallet-customer-request.md @@ -1,9 +1,9 @@ -# Pay Pal Wallet Customer Request +# Paypal Wallet Customer Request ## Structure -`PayPalWalletCustomerRequest` +`PaypalWalletCustomerRequest` ## Fields diff --git a/doc/models/pay-pal-wallet-customer.md b/doc/models/paypal-wallet-customer.md similarity index 97% rename from doc/models/pay-pal-wallet-customer.md rename to doc/models/paypal-wallet-customer.md index df1ca00..115f820 100644 --- a/doc/models/pay-pal-wallet-customer.md +++ b/doc/models/paypal-wallet-customer.md @@ -1,11 +1,11 @@ -# Pay Pal Wallet Customer +# Paypal Wallet Customer The details about a customer in PayPal's system of record. ## Structure -`PayPalWalletCustomer` +`PaypalWalletCustomer` ## Fields diff --git a/doc/models/pay-pal-wallet-experience-context.md b/doc/models/paypal-wallet-experience-context.md similarity index 76% rename from doc/models/pay-pal-wallet-experience-context.md rename to doc/models/paypal-wallet-experience-context.md index 15bb43a..3527cbd 100644 --- a/doc/models/pay-pal-wallet-experience-context.md +++ b/doc/models/paypal-wallet-experience-context.md @@ -1,11 +1,11 @@ -# Pay Pal Wallet Experience Context +# Paypal Wallet Experience Context Customizes the payer experience during the approval process for payment with PayPal.
Note: Partners and Marketplaces might configure brand_name and shipping_preference during partner account setup, which overrides the request values.
## Structure -`PayPalWalletExperienceContext` +`PaypalWalletExperienceContext` ## Fields @@ -16,8 +16,8 @@ Customizes the payer experience during the approval process for payment with Pay | `shippingPreference` | [`?string(ShippingPreference)`](../../doc/models/shipping-preference.md) | Optional | The location from which the shipping address is derived.
**Default**: `ShippingPreference::GET_FROM_FILE`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `24`, *Pattern*: `^[A-Z_]+$` | getShippingPreference(): ?string | setShippingPreference(?string shippingPreference): void | | `returnUrl` | `?string` | Optional | Describes the URL. | getReturnUrl(): ?string | setReturnUrl(?string returnUrl): void | | `cancelUrl` | `?string` | Optional | Describes the URL. | getCancelUrl(): ?string | setCancelUrl(?string cancelUrl): void | -| `landingPage` | [`?string(PayPalExperienceLandingPage)`](../../doc/models/pay-pal-experience-landing-page.md) | Optional | The type of landing page to show on the PayPal site for customer checkout.
**Default**: `PayPalExperienceLandingPage::NO_PREFERENCE`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `13`, *Pattern*: `^[0-9A-Z_]+$` | getLandingPage(): ?string | setLandingPage(?string landingPage): void | -| `userAction` | [`?string(PayPalExperienceUserAction)`](../../doc/models/pay-pal-experience-user-action.md) | Optional | Configures a Continue or Pay Now checkout flow.
**Default**: `PayPalExperienceUserAction::CONTINUE_`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `8`, *Pattern*: `^[0-9A-Z_]+$` | getUserAction(): ?string | setUserAction(?string userAction): void | +| `landingPage` | [`?string(PaypalExperienceLandingPage)`](../../doc/models/paypal-experience-landing-page.md) | Optional | The type of landing page to show on the PayPal site for customer checkout.
**Default**: `PaypalExperienceLandingPage::NO_PREFERENCE`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `13`, *Pattern*: `^[0-9A-Z_]+$` | getLandingPage(): ?string | setLandingPage(?string landingPage): void | +| `userAction` | [`?string(PaypalExperienceUserAction)`](../../doc/models/paypal-experience-user-action.md) | Optional | Configures a Continue or Pay Now checkout flow.
**Default**: `PaypalExperienceUserAction::CONTINUE_`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `8`, *Pattern*: `^[0-9A-Z_]+$` | getUserAction(): ?string | setUserAction(?string userAction): void | | `paymentMethodPreference` | [`?string(PayeePaymentMethodPreference)`](../../doc/models/payee-payment-method-preference.md) | Optional | The merchant-preferred payment methods.
**Default**: `PayeePaymentMethodPreference::UNRESTRICTED`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getPaymentMethodPreference(): ?string | setPaymentMethodPreference(?string paymentMethodPreference): void | ## Example (as JSON) diff --git a/doc/models/pay-pal-wallet-response.md b/doc/models/paypal-wallet-response.md similarity index 83% rename from doc/models/pay-pal-wallet-response.md rename to doc/models/paypal-wallet-response.md index 55854e7..df5358e 100644 --- a/doc/models/pay-pal-wallet-response.md +++ b/doc/models/paypal-wallet-response.md @@ -1,11 +1,11 @@ -# Pay Pal Wallet Response +# Paypal Wallet Response The PayPal Wallet response. ## Structure -`PayPalWalletResponse` +`PaypalWalletResponse` ## Fields @@ -13,7 +13,7 @@ The PayPal Wallet response. | --- | --- | --- | --- | --- | --- | | `emailAddress` | `?string` | Optional | The internationalized email address.
Note: Up to 64 characters are allowed before and 255 characters are allowed after the @ sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted @ sign exists.

**Constraints**: *Minimum Length*: `3`, *Maximum Length*: `254`, *Pattern*: ``(?:[a-zA-Z0-9!#$%&'*+/=?^_`{\|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{\|}~-]+)*\|(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]\|\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\|\[(?:(?:(2(5[0-5]\|[0-4][0-9])\|1[0-9][0-9]\|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]\|[0-4][0-9])\|1[0-9][0-9]\|[1-9]?[0-9])\|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]\|\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])`` | getEmailAddress(): ?string | setEmailAddress(?string emailAddress): void | | `accountId` | `?string` | Optional | The PayPal payer ID, which is a masked version of the PayPal account number intended for use with third parties. The account number is reversibly encrypted and a proprietary variant of Base32 is used to encode the result.
**Constraints**: *Minimum Length*: `13`, *Maximum Length*: `13`, *Pattern*: `^[2-9A-HJ-NP-Z]{13}$` | getAccountId(): ?string | setAccountId(?string accountId): void | -| `accountStatus` | [`?string(PayPalWalletAccountVerificationStatus)`](../../doc/models/pay-pal-wallet-account-verification-status.md) | Optional | The account status indicates whether the buyer has verified the financial details associated with their PayPal account.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[A-Z_]+$` | getAccountStatus(): ?string | setAccountStatus(?string accountStatus): void | +| `accountStatus` | [`?string(PaypalWalletAccountVerificationStatus)`](../../doc/models/paypal-wallet-account-verification-status.md) | Optional | The account status indicates whether the buyer has verified the financial details associated with their PayPal account.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[A-Z_]+$` | getAccountStatus(): ?string | setAccountStatus(?string accountStatus): void | | `name` | [`?Name`](../../doc/models/name.md) | Optional | The name of the party. | getName(): ?Name | setName(?Name name): void | | `phoneType` | [`?string(PhoneType)`](../../doc/models/phone-type.md) | Optional | The phone type. | getPhoneType(): ?string | setPhoneType(?string phoneType): void | | `phoneNumber` | [`?PhoneNumber`](../../doc/models/phone-number.md) | Optional | The phone number in its canonical international [E.164 numbering plan format](https://www.itu.int/rec/T-REC-E.164/en). | getPhoneNumber(): ?PhoneNumber | setPhoneNumber(?PhoneNumber phoneNumber): void | @@ -21,7 +21,7 @@ The PayPal Wallet response. | `businessName` | `?string` | Optional | The business name of the PayPal account holder (populated for business accounts only)
**Constraints**: *Minimum Length*: `0`, *Maximum Length*: `300`, *Pattern*: `^.*$` | getBusinessName(): ?string | setBusinessName(?string businessName): void | | `taxInfo` | [`?TaxInfo`](../../doc/models/tax-info.md) | Optional | The tax ID of the customer. The customer is also known as the payer. Both `tax_id` and `tax_id_type` are required. | getTaxInfo(): ?TaxInfo | setTaxInfo(?TaxInfo taxInfo): void | | `address` | [`?Address`](../../doc/models/address.md) | Optional | The portable international postal address. Maps to [AddressValidationMetadata](https://github.com/googlei18n/libaddressinput/wiki/AddressValidationMetadata) and HTML 5.1 [Autofilling form controls: the autocomplete attribute](https://www.w3.org/TR/html51/sec-forms.html#autofilling-form-controls-the-autocomplete-attribute). | getAddress(): ?Address | setAddress(?Address address): void | -| `attributes` | [`?PayPalWalletAttributesResponse`](../../doc/models/pay-pal-wallet-attributes-response.md) | Optional | Additional attributes associated with the use of a PayPal Wallet. | getAttributes(): ?PayPalWalletAttributesResponse | setAttributes(?PayPalWalletAttributesResponse attributes): void | +| `attributes` | [`?PaypalWalletAttributesResponse`](../../doc/models/paypal-wallet-attributes-response.md) | Optional | Additional attributes associated with the use of a PayPal Wallet. | getAttributes(): ?PaypalWalletAttributesResponse | setAttributes(?PaypalWalletAttributesResponse attributes): void | ## Example (as JSON) diff --git a/doc/models/pay-pal-wallet-vault-instruction.md b/doc/models/paypal-wallet-vault-instruction.md similarity index 57% rename from doc/models/pay-pal-wallet-vault-instruction.md rename to doc/models/paypal-wallet-vault-instruction.md index 1702506..532720e 100644 --- a/doc/models/pay-pal-wallet-vault-instruction.md +++ b/doc/models/paypal-wallet-vault-instruction.md @@ -1,9 +1,9 @@ -# Pay Pal Wallet Vault Instruction +# Paypal Wallet Vault Instruction ## Structure -`PayPalWalletVaultInstruction` +`PaypalWalletVaultInstruction` ## Fields @@ -11,9 +11,9 @@ | --- | --- | --- | --- | --- | --- | | `storeInVault` | [`?string(StoreInVaultInstruction)`](../../doc/models/store-in-vault-instruction.md) | Optional | Defines how and when the payment source gets vaulted.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getStoreInVault(): ?string | setStoreInVault(?string storeInVault): void | | `description` | `?string` | Optional | The description displayed to PayPal consumer on the approval flow for PayPal, as well as on the PayPal payment token management experience on PayPal.com.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `128` | getDescription(): ?string | setDescription(?string description): void | -| `usagePattern` | [`?string(PayPalPaymentTokenUsagePattern)`](../../doc/models/pay-pal-payment-token-usage-pattern.md) | Optional | Expected business/pricing model for the billing agreement.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `30` | getUsagePattern(): ?string | setUsagePattern(?string usagePattern): void | -| `usageType` | [`string(PayPalPaymentTokenUsageType)`](../../doc/models/pay-pal-payment-token-usage-type.md) | Required | The usage type associated with the PayPal payment token.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getUsageType(): string | setUsageType(string usageType): void | -| `customerType` | [`?string(PayPalPaymentTokenCustomerType)`](../../doc/models/pay-pal-payment-token-customer-type.md) | Optional | The customer type associated with the PayPal payment token. This is to indicate whether the customer acting on the merchant / platform is either a business or a consumer.
**Default**: `PayPalPaymentTokenCustomerType::CONSUMER`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getCustomerType(): ?string | setCustomerType(?string customerType): void | +| `usagePattern` | [`?string(PaypalPaymentTokenUsagePattern)`](../../doc/models/paypal-payment-token-usage-pattern.md) | Optional | Expected business/pricing model for the billing agreement.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `30` | getUsagePattern(): ?string | setUsagePattern(?string usagePattern): void | +| `usageType` | [`string(PaypalPaymentTokenUsageType)`](../../doc/models/paypal-payment-token-usage-type.md) | Required | The usage type associated with the PayPal payment token.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getUsageType(): string | setUsageType(string usageType): void | +| `customerType` | [`?string(PaypalPaymentTokenCustomerType)`](../../doc/models/paypal-payment-token-customer-type.md) | Optional | The customer type associated with the PayPal payment token. This is to indicate whether the customer acting on the merchant / platform is either a business or a consumer.
**Default**: `PaypalPaymentTokenCustomerType::CONSUMER`
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getCustomerType(): ?string | setCustomerType(?string customerType): void | | `permitMultiplePaymentTokens` | `?bool` | Optional | Create multiple payment tokens for the same payer, merchant/platform combination. Use this when the customer has not logged in at merchant/platform. The payment token thus generated, can then also be used to create the customer account at merchant/platform. Use this also when multiple payment tokens are required for the same payer, different customer at merchant/platform. This helps to identify customers distinctly even though they may share the same PayPal account. This only applies to PayPal payment source.
**Default**: `false` | getPermitMultiplePaymentTokens(): ?bool | setPermitMultiplePaymentTokens(?bool permitMultiplePaymentTokens): void | ## Example (as JSON) diff --git a/doc/models/pay-pal-wallet-vault-response.md b/doc/models/paypal-wallet-vault-response.md similarity index 64% rename from doc/models/pay-pal-wallet-vault-response.md rename to doc/models/paypal-wallet-vault-response.md index a5f3525..18772c1 100644 --- a/doc/models/pay-pal-wallet-vault-response.md +++ b/doc/models/paypal-wallet-vault-response.md @@ -1,20 +1,20 @@ -# Pay Pal Wallet Vault Response +# Paypal Wallet Vault Response The details about a saved PayPal Wallet payment source. ## Structure -`PayPalWalletVaultResponse` +`PaypalWalletVaultResponse` ## Fields | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `id` | `?string` | Optional | The PayPal-generated ID for the saved payment source.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255` | getId(): ?string | setId(?string id): void | -| `status` | [`?string(PayPalWalletVaultStatus)`](../../doc/models/pay-pal-wallet-vault-status.md) | Optional | The vault status.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getStatus(): ?string | setStatus(?string status): void | +| `status` | [`?string(PaypalWalletVaultStatus)`](../../doc/models/paypal-wallet-vault-status.md) | Optional | The vault status.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getStatus(): ?string | setStatus(?string status): void | | `links` | [`?(LinkDescription[])`](../../doc/models/link-description.md) | Optional | An array of request-related HATEOAS links.
**Constraints**: *Minimum Items*: `1`, *Maximum Items*: `10` | getLinks(): ?array | setLinks(?array links): void | -| `customer` | [`?PayPalWalletCustomer`](../../doc/models/pay-pal-wallet-customer.md) | Optional | The details about a customer in PayPal's system of record. | getCustomer(): ?PayPalWalletCustomer | setCustomer(?PayPalWalletCustomer customer): void | +| `customer` | [`?PaypalWalletCustomer`](../../doc/models/paypal-wallet-customer.md) | Optional | The details about a customer in PayPal's system of record. | getCustomer(): ?PaypalWalletCustomer | setCustomer(?PaypalWalletCustomer customer): void | ## Example (as JSON) diff --git a/doc/models/pay-pal-wallet-vault-status.md b/doc/models/paypal-wallet-vault-status.md similarity index 66% rename from doc/models/pay-pal-wallet-vault-status.md rename to doc/models/paypal-wallet-vault-status.md index 7e9a6b9..b1da55b 100644 --- a/doc/models/pay-pal-wallet-vault-status.md +++ b/doc/models/paypal-wallet-vault-status.md @@ -1,11 +1,11 @@ -# Pay Pal Wallet Vault Status +# Paypal Wallet Vault Status The vault status. ## Enumeration -`PayPalWalletVaultStatus` +`PaypalWalletVaultStatus` ## Fields diff --git a/doc/models/pay-pal-wallet.md b/doc/models/paypal-wallet.md similarity index 81% rename from doc/models/pay-pal-wallet.md rename to doc/models/paypal-wallet.md index c2eca12..a155030 100644 --- a/doc/models/pay-pal-wallet.md +++ b/doc/models/paypal-wallet.md @@ -1,11 +1,11 @@ -# Pay Pal Wallet +# Paypal Wallet A resource that identifies a PayPal Wallet is used for payment. ## Structure -`PayPalWallet` +`PaypalWallet` ## Fields @@ -18,8 +18,8 @@ A resource that identifies a PayPal Wallet is used for payment. | `birthDate` | `?string` | Optional | The stand-alone date, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6). To represent special legal values, such as a date of birth, you should use dates with no associated time or time-zone data. Whenever possible, use the standard `date_time` type. This regular expression does not validate all dates. For example, February 31 is valid and nothing is known about leap years.
**Constraints**: *Minimum Length*: `10`, *Maximum Length*: `10`, *Pattern*: `^[0-9]{4}-(0[1-9]\|1[0-2])-(0[1-9]\|[1-2][0-9]\|3[0-1])$` | getBirthDate(): ?string | setBirthDate(?string birthDate): void | | `taxInfo` | [`?TaxInfo`](../../doc/models/tax-info.md) | Optional | The tax ID of the customer. The customer is also known as the payer. Both `tax_id` and `tax_id_type` are required. | getTaxInfo(): ?TaxInfo | setTaxInfo(?TaxInfo taxInfo): void | | `address` | [`?Address`](../../doc/models/address.md) | Optional | The portable international postal address. Maps to [AddressValidationMetadata](https://github.com/googlei18n/libaddressinput/wiki/AddressValidationMetadata) and HTML 5.1 [Autofilling form controls: the autocomplete attribute](https://www.w3.org/TR/html51/sec-forms.html#autofilling-form-controls-the-autocomplete-attribute). | getAddress(): ?Address | setAddress(?Address address): void | -| `attributes` | [`?PayPalWalletAttributes`](../../doc/models/pay-pal-wallet-attributes.md) | Optional | Additional attributes associated with the use of this PayPal Wallet. | getAttributes(): ?PayPalWalletAttributes | setAttributes(?PayPalWalletAttributes attributes): void | -| `experienceContext` | [`?PayPalWalletExperienceContext`](../../doc/models/pay-pal-wallet-experience-context.md) | Optional | Customizes the payer experience during the approval process for payment with PayPal.
Note: Partners and Marketplaces might configure brand_name and shipping_preference during partner account setup, which overrides the request values.
| getExperienceContext(): ?PayPalWalletExperienceContext | setExperienceContext(?PayPalWalletExperienceContext experienceContext): void | +| `attributes` | [`?PaypalWalletAttributes`](../../doc/models/paypal-wallet-attributes.md) | Optional | Additional attributes associated with the use of this PayPal Wallet. | getAttributes(): ?PaypalWalletAttributes | setAttributes(?PaypalWalletAttributes attributes): void | +| `experienceContext` | [`?PaypalWalletExperienceContext`](../../doc/models/paypal-wallet-experience-context.md) | Optional | Customizes the payer experience during the approval process for payment with PayPal.
Note: Partners and Marketplaces might configure brand_name and shipping_preference during partner account setup, which overrides the request values.
| getExperienceContext(): ?PaypalWalletExperienceContext | setExperienceContext(?PaypalWalletExperienceContext experienceContext): void | | `billingAgreementId` | `?string` | Optional | The PayPal billing agreement ID. References an approved recurring payment for goods or services.
**Constraints**: *Minimum Length*: `2`, *Maximum Length*: `128`, *Pattern*: `^[a-zA-Z0-9-]+$` | getBillingAgreementId(): ?string | setBillingAgreementId(?string billingAgreementId): void | ## Example (as JSON) diff --git a/doc/models/processor-response.md b/doc/models/processor-response.md index b1cec8c..d234529 100644 --- a/doc/models/processor-response.md +++ b/doc/models/processor-response.md @@ -11,8 +11,8 @@ The processor response information for payment requests, such as direct credit c | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | -| `avsCode` | [`?string(AVSCode)`](../../doc/models/avs-code.md) | Optional | The address verification code for Visa, Discover, Mastercard, or American Express transactions. | getAvsCode(): ?string | setAvsCode(?string avsCode): void | -| `cvvCode` | [`?string(CVVCode)`](../../doc/models/cvv-code.md) | Optional | The card verification value code for for Visa, Discover, Mastercard, or American Express. | getCvvCode(): ?string | setCvvCode(?string cvvCode): void | +| `avsCode` | [`?string(AvsCode)`](../../doc/models/avs-code.md) | Optional | The address verification code for Visa, Discover, Mastercard, or American Express transactions. | getAvsCode(): ?string | setAvsCode(?string avsCode): void | +| `cvvCode` | [`?string(CvvCode)`](../../doc/models/cvv-code.md) | Optional | The card verification value code for for Visa, Discover, Mastercard, or American Express. | getCvvCode(): ?string | setCvvCode(?string cvvCode): void | | `responseCode` | [`?string(ProcessorResponseCode)`](../../doc/models/processor-response-code.md) | Optional | Processor response code for the non-PayPal payment processor errors. | getResponseCode(): ?string | setResponseCode(?string responseCode): void | | `paymentAdviceCode` | [`?string(PaymentAdviceCode)`](../../doc/models/payment-advice-code.md) | Optional | The declined payment transactions might have payment advice codes. The card networks, like Visa and Mastercard, return payment advice codes. | getPaymentAdviceCode(): ?string | setPaymentAdviceCode(?string paymentAdviceCode): void | diff --git a/doc/models/setup-token-request-payment-source.md b/doc/models/setup-token-request-payment-source.md index 8715ebf..402e49f 100644 --- a/doc/models/setup-token-request-payment-source.md +++ b/doc/models/setup-token-request-payment-source.md @@ -12,7 +12,7 @@ The payment method to vault with the instrument details. | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `card` | [`?SetupTokenRequestCard`](../../doc/models/setup-token-request-card.md) | Optional | A Resource representing a request to vault a Card. | getCard(): ?SetupTokenRequestCard | setCard(?SetupTokenRequestCard card): void | -| `paypal` | [`?VaultPayPalWalletRequest`](../../doc/models/vault-pay-pal-wallet-request.md) | Optional | A resource representing a request to vault PayPal Wallet. | getPaypal(): ?VaultPayPalWalletRequest | setPaypal(?VaultPayPalWalletRequest paypal): void | +| `paypal` | [`?VaultPaypalWalletRequest`](../../doc/models/vault-paypal-wallet-request.md) | Optional | A resource representing a request to vault PayPal Wallet. | getPaypal(): ?VaultPaypalWalletRequest | setPaypal(?VaultPaypalWalletRequest paypal): void | | `venmo` | [`?VaultVenmoRequest`](../../doc/models/vault-venmo-request.md) | Optional | - | getVenmo(): ?VaultVenmoRequest | setVenmo(?VaultVenmoRequest venmo): void | | `token` | [`?VaultTokenRequest`](../../doc/models/vault-token-request.md) | Optional | The Tokenized Payment Source representing a Request to Vault a Token. | getToken(): ?VaultTokenRequest | setToken(?VaultTokenRequest token): void | diff --git a/doc/models/setup-token-response-payment-source.md b/doc/models/setup-token-response-payment-source.md index bbc3e98..a7f5ece 100644 --- a/doc/models/setup-token-response-payment-source.md +++ b/doc/models/setup-token-response-payment-source.md @@ -12,7 +12,7 @@ The setup payment method details. | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `card` | [`?SetupTokenResponseCard`](../../doc/models/setup-token-response-card.md) | Optional | - | getCard(): ?SetupTokenResponseCard | setCard(?SetupTokenResponseCard card): void | -| `paypal` | [`?PayPalPaymentToken`](../../doc/models/pay-pal-payment-token.md) | Optional | - | getPaypal(): ?PayPalPaymentToken | setPaypal(?PayPalPaymentToken paypal): void | +| `paypal` | [`?PaypalPaymentToken`](../../doc/models/paypal-payment-token.md) | Optional | - | getPaypal(): ?PaypalPaymentToken | setPaypal(?PaypalPaymentToken paypal): void | | `venmo` | [`?VenmoPaymentToken`](../../doc/models/venmo-payment-token.md) | Optional | - | getVenmo(): ?VenmoPaymentToken | setVenmo(?VenmoPaymentToken venmo): void | ## Example (as JSON) diff --git a/doc/models/three-d-secure-authentication-response.md b/doc/models/three-d-secure-authentication-response.md index 61606a3..613198f 100644 --- a/doc/models/three-d-secure-authentication-response.md +++ b/doc/models/three-d-secure-authentication-response.md @@ -11,7 +11,7 @@ Results of 3D Secure Authentication. | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | -| `authenticationStatus` | [`?string(PAResStatus)`](../../doc/models/pa-res-status.md) | Optional | Transactions status result identifier. The outcome of the issuer's authentication.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getAuthenticationStatus(): ?string | setAuthenticationStatus(?string authenticationStatus): void | +| `authenticationStatus` | [`?string(PaResStatus)`](../../doc/models/pa-res-status.md) | Optional | Transactions status result identifier. The outcome of the issuer's authentication.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getAuthenticationStatus(): ?string | setAuthenticationStatus(?string authenticationStatus): void | | `enrollmentStatus` | [`?string(EnrollmentStatus)`](../../doc/models/enrollment-status.md) | Optional | Status of Authentication eligibility.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`, *Pattern*: `^[0-9A-Z_]+$` | getEnrollmentStatus(): ?string | setEnrollmentStatus(?string enrollmentStatus): void | ## Example (as JSON) diff --git a/doc/models/universal-product-code.md b/doc/models/universal-product-code.md index 96af0d7..3de8d40 100644 --- a/doc/models/universal-product-code.md +++ b/doc/models/universal-product-code.md @@ -11,7 +11,7 @@ The Universal Product Code of the item. | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | -| `type` | [`string(UPCType)`](../../doc/models/upc-type.md) | Required | The Universal Product Code type.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `5`, *Pattern*: `^[0-9A-Z_-]+$` | getType(): string | setType(string type): void | +| `type` | [`string(UpcType)`](../../doc/models/upc-type.md) | Required | The Universal Product Code type.
**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `5`, *Pattern*: `^[0-9A-Z_-]+$` | getType(): string | setType(string type): void | | `code` | `string` | Required | The UPC product code of the item.
**Constraints**: *Minimum Length*: `6`, *Maximum Length*: `17`, *Pattern*: `^[0-9]{0,17}$` | getCode(): string | setCode(string code): void | ## Example (as JSON) diff --git a/doc/models/upc-type.md b/doc/models/upc-type.md index 720374a..1d3dea4 100644 --- a/doc/models/upc-type.md +++ b/doc/models/upc-type.md @@ -1,11 +1,11 @@ -# UPC Type +# Upc Type The Universal Product Code type. ## Enumeration -`UPCType` +`UpcType` ## Fields diff --git a/doc/models/vault-pay-pal-wallet-request.md b/doc/models/vault-paypal-wallet-request.md similarity index 98% rename from doc/models/vault-pay-pal-wallet-request.md rename to doc/models/vault-paypal-wallet-request.md index 3fc2ad3..f63e127 100644 --- a/doc/models/vault-pay-pal-wallet-request.md +++ b/doc/models/vault-paypal-wallet-request.md @@ -1,11 +1,11 @@ -# Vault Pay Pal Wallet Request +# Vault Paypal Wallet Request A resource representing a request to vault PayPal Wallet. ## Structure -`VaultPayPalWalletRequest` +`VaultPaypalWalletRequest` ## Fields diff --git a/src/ApiHelper.php b/src/ApiHelper.php index 7a96411..22ad1d8 100644 --- a/src/ApiHelper.php +++ b/src/ApiHelper.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib; +namespace PaypalServerSdkLib; use Core\Utils\CoreHelper; use Core\Utils\JsonHelper; @@ -28,7 +28,7 @@ class ApiHelper public static function getJsonHelper(): JsonHelper { if (self::$jsonHelper == null) { - self::$jsonHelper = new JsonHelper([], [], null, 'PaypalServerSDKLib\\Models'); + self::$jsonHelper = new JsonHelper([], [], null, 'PaypalServerSdkLib\\Models'); } return self::$jsonHelper; } diff --git a/src/Authentication/ClientCredentialsAuthCredentialsBuilder.php b/src/Authentication/ClientCredentialsAuthCredentialsBuilder.php index 2eb6ed9..0ac5c4f 100644 --- a/src/Authentication/ClientCredentialsAuthCredentialsBuilder.php +++ b/src/Authentication/ClientCredentialsAuthCredentialsBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Authentication; +namespace PaypalServerSdkLib\Authentication; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OAuthToken; +use PaypalServerSdkLib\Models\OAuthToken; /** * Utility class for initializing ClientCredentialsAuth security credentials. diff --git a/src/Authentication/ClientCredentialsAuthManager.php b/src/Authentication/ClientCredentialsAuthManager.php index d14891a..be883cb 100644 --- a/src/Authentication/ClientCredentialsAuthManager.php +++ b/src/Authentication/ClientCredentialsAuthManager.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Authentication; +namespace PaypalServerSdkLib\Authentication; use Closure; use Exception; @@ -18,10 +18,10 @@ use Core\Client; use Core\Request\Parameters\HeaderParam; use Core\Utils\CoreHelper; use InvalidArgumentException; -use PaypalServerSDKLib\Models\OAuthToken; -use PaypalServerSDKLib\Controllers\OAuthAuthorizationController; -use PaypalServerSDKLib\ConfigurationDefaults; -use PaypalServerSDKLib\ClientCredentialsAuth; +use PaypalServerSdkLib\Models\OAuthToken; +use PaypalServerSdkLib\Controllers\OAuthAuthorizationController; +use PaypalServerSdkLib\ConfigurationDefaults; +use PaypalServerSdkLib\ClientCredentialsAuth; /** * Utility class for OAuth 2 authorization and token management diff --git a/src/ClientCredentialsAuth.php b/src/ClientCredentialsAuth.php index 78d1d9e..2b02a74 100644 --- a/src/ClientCredentialsAuth.php +++ b/src/ClientCredentialsAuth.php @@ -3,14 +3,14 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib; +namespace PaypalServerSdkLib; -use PaypalServerSDKLib\Models\OAuthToken; +use PaypalServerSdkLib\Models\OAuthToken; /** * Interface for defining the behavior of Authentication. diff --git a/src/ConfigurationDefaults.php b/src/ConfigurationDefaults.php index dd59340..ace6aa0 100644 --- a/src/ConfigurationDefaults.php +++ b/src/ConfigurationDefaults.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib; +namespace PaypalServerSdkLib; use Psr\Log\LogLevel; diff --git a/src/ConfigurationInterface.php b/src/ConfigurationInterface.php index 9ca97cf..964bc31 100644 --- a/src/ConfigurationInterface.php +++ b/src/ConfigurationInterface.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib; +namespace PaypalServerSdkLib; use CoreInterfaces\Http\HttpConfigurations; -use PaypalServerSDKLib\Authentication\ClientCredentialsAuthCredentialsBuilder; -use PaypalServerSDKLib\Logging\LoggingConfigurationBuilder; +use PaypalServerSdkLib\Authentication\ClientCredentialsAuthCredentialsBuilder; +use PaypalServerSdkLib\Logging\LoggingConfigurationBuilder; /** * An interface for all configuration parameters required by the SDK. diff --git a/src/Controllers/BaseController.php b/src/Controllers/BaseController.php index e9e6451..9f0526e 100644 --- a/src/Controllers/BaseController.php +++ b/src/Controllers/BaseController.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Controllers; +namespace PaypalServerSdkLib\Controllers; use Core\ApiCall; use Core\Client; diff --git a/src/Controllers/OAuthAuthorizationController.php b/src/Controllers/OAuthAuthorizationController.php index 1c383ee..f5027ae 100644 --- a/src/Controllers/OAuthAuthorizationController.php +++ b/src/Controllers/OAuthAuthorizationController.php @@ -3,21 +3,21 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Controllers; +namespace PaypalServerSdkLib\Controllers; use Core\Request\Parameters\AdditionalFormParams; use Core\Request\Parameters\FormParam; use Core\Request\Parameters\HeaderParam; use Core\Response\Types\ErrorType; use CoreInterfaces\Core\Request\RequestMethod; -use PaypalServerSDKLib\Exceptions\OAuthProviderException; -use PaypalServerSDKLib\Http\ApiResponse; -use PaypalServerSDKLib\Models\OAuthToken; +use PaypalServerSdkLib\Exceptions\OAuthProviderException; +use PaypalServerSdkLib\Http\ApiResponse; +use PaypalServerSdkLib\Models\OAuthToken; class OAuthAuthorizationController extends BaseController { diff --git a/src/Controllers/OrdersController.php b/src/Controllers/OrdersController.php index 41ae16a..614e8ec 100644 --- a/src/Controllers/OrdersController.php +++ b/src/Controllers/OrdersController.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Controllers; +namespace PaypalServerSdkLib\Controllers; use Core\Request\Parameters\BodyParam; use Core\Request\Parameters\HeaderParam; @@ -16,13 +16,126 @@ use Core\Request\Parameters\QueryParam; use Core\Request\Parameters\TemplateParam; use Core\Response\Types\ErrorType; use CoreInterfaces\Core\Request\RequestMethod; -use PaypalServerSDKLib\Exceptions\ErrorException; -use PaypalServerSDKLib\Http\ApiResponse; -use PaypalServerSDKLib\Models\Order; -use PaypalServerSDKLib\Models\OrderAuthorizeResponse; +use PaypalServerSdkLib\Exceptions\ErrorException; +use PaypalServerSdkLib\Http\ApiResponse; +use PaypalServerSdkLib\Models\Order; +use PaypalServerSdkLib\Models\OrderAuthorizeResponse; class OrdersController extends BaseController { + /** + * Authorizes payment for an order. To successfully authorize payment for an order, the buyer must + * first approve the order or a valid payment_source must be provided in the request. A buyer can + * approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS + * links in the create order response.
Note: For error handling and + * troubleshooting, see Orders v2 errors.
+ * + * @param array $options Array with all options for search + * + * @return ApiResponse Response from the API call + */ + public function ordersAuthorize(array $options): ApiResponse + { + $_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v2/checkout/orders/{id}/authorize') + ->auth('Oauth2') + ->parameters( + TemplateParam::init('id', $options)->extract('id'), + HeaderParam::init('Content-Type', 'application/json'), + HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'), + HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'), + HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('paypalClientMetadataId'), + HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('paypalAuthAssertion'), + BodyParam::init($options)->extract('body') + ); + + $_resHandler = $this->responseHandler() + ->throwErrorOn( + '400', + ErrorType::init( + 'Request is not well-formed, syntactically incorrect, or violates schema.', + ErrorException::class + ) + ) + ->throwErrorOn( + '401', + ErrorType::init( + 'Authentication failed due to missing authorization header, or invalid auth' . + 'entication credentials.', + ErrorException::class + ) + ) + ->throwErrorOn( + '403', + ErrorType::init( + 'The authorized payment failed due to insufficient permissions.', + ErrorException::class + ) + ) + ->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class)) + ->throwErrorOn( + '422', + ErrorType::init( + 'The requested action could not be performed, semantically incorrect, or fa' . + 'iled business validation.', + ErrorException::class + ) + ) + ->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class)) + ->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class)) + ->type(OrderAuthorizeResponse::class) + ->returnApiResponse(); + + return $this->execute($_reqBuilder, $_resHandler); + } + + /** + * Adds tracking information for an Order. + * + * @param array $options Array with all options for search + * + * @return ApiResponse Response from the API call + */ + public function ordersTrackCreate(array $options): ApiResponse + { + $_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v2/checkout/orders/{id}/track') + ->auth('Oauth2') + ->parameters( + TemplateParam::init('id', $options)->extract('id'), + HeaderParam::init('Content-Type', 'application/json'), + BodyParam::init($options)->extract('body'), + HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('paypalAuthAssertion') + ); + + $_resHandler = $this->responseHandler() + ->throwErrorOn( + '400', + ErrorType::init( + 'Request is not well-formed, syntactically incorrect, or violates schema.', + ErrorException::class + ) + ) + ->throwErrorOn( + '403', + ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class) + ) + ->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class)) + ->throwErrorOn( + '422', + ErrorType::init( + 'The requested action could not be performed, semantically incorrect, or fa' . + 'iled business validation.', + ErrorException::class + ) + ) + ->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class)) + ->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class)) + ->type(Order::class) + ->returnApiResponse(); + + return $this->execute($_reqBuilder, $_resHandler); + } + /** * Creates an order. Merchants and partners can add Level 2 and 3 data to payments to reduce risk and * payment processing costs. For more information about processing payments, see Orders v2 errors. - * - * @param array $options Array with all options for search - * - * @return ApiResponse Response from the API call - */ - public function ordersGet(array $options): ApiResponse - { - $_reqBuilder = $this->requestBuilder(RequestMethod::GET, '/v2/checkout/orders/{id}') - ->auth('Oauth2') - ->parameters( - TemplateParam::init('id', $options)->extract('id'), - QueryParam::init('fields', $options)->extract('fields') - ); - - $_resHandler = $this->responseHandler() - ->throwErrorOn( - '401', - ErrorType::init( - 'Authentication failed due to missing authorization header, or invalid auth' . - 'entication credentials.', - ErrorException::class - ) - ) - ->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class)) - ->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class)) - ->type(Order::class) - ->returnApiResponse(); - - return $this->execute($_reqBuilder, $_resHandler); - } - /** * Updates an order with a `CREATED` or `APPROVED` status. You cannot update an order with the * `COMPLETED` status.

To make an update, you must provide a `reference_id`. If you omit this @@ -201,122 +279,6 @@ class OrdersController extends BaseController return $this->execute($_reqBuilder, $_resHandler); } - /** - * Payer confirms their intent to pay for the the Order with the given payment source. - * - * @param array $options Array with all options for search - * - * @return ApiResponse Response from the API call - */ - public function ordersConfirm(array $options): ApiResponse - { - $_reqBuilder = $this->requestBuilder( - RequestMethod::POST, - '/v2/checkout/orders/{id}/confirm-payment-source' - ) - ->auth('Oauth2') - ->parameters( - TemplateParam::init('id', $options)->extract('id'), - HeaderParam::init('Content-Type', 'application/json'), - HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('payPalClientMetadataId'), - HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'), - BodyParam::init($options)->extract('body') - ); - - $_resHandler = $this->responseHandler() - ->throwErrorOn( - '400', - ErrorType::init( - 'Request is not well-formed, syntactically incorrect, or violates schema.', - ErrorException::class - ) - ) - ->throwErrorOn( - '403', - ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class) - ) - ->throwErrorOn( - '422', - ErrorType::init( - 'The requested action could not be performed, semantically incorrect, or fa' . - 'iled business validation.', - ErrorException::class - ) - ) - ->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class)) - ->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class)) - ->type(Order::class) - ->returnApiResponse(); - - return $this->execute($_reqBuilder, $_resHandler); - } - - /** - * Authorizes payment for an order. To successfully authorize payment for an order, the buyer must - * first approve the order or a valid payment_source must be provided in the request. A buyer can - * approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS - * links in the create order response.
Note: For error handling and - * troubleshooting, see Orders v2 errors.
- * - * @param array $options Array with all options for search - * - * @return ApiResponse Response from the API call - */ - public function ordersAuthorize(array $options): ApiResponse - { - $_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v2/checkout/orders/{id}/authorize') - ->auth('Oauth2') - ->parameters( - TemplateParam::init('id', $options)->extract('id'), - HeaderParam::init('Content-Type', 'application/json'), - HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'), - HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'), - HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('payPalClientMetadataId'), - HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('payPalAuthAssertion'), - BodyParam::init($options)->extract('body') - ); - - $_resHandler = $this->responseHandler() - ->throwErrorOn( - '400', - ErrorType::init( - 'Request is not well-formed, syntactically incorrect, or violates schema.', - ErrorException::class - ) - ) - ->throwErrorOn( - '401', - ErrorType::init( - 'Authentication failed due to missing authorization header, or invalid auth' . - 'entication credentials.', - ErrorException::class - ) - ) - ->throwErrorOn( - '403', - ErrorType::init( - 'The authorized payment failed due to insufficient permissions.', - ErrorException::class - ) - ) - ->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class)) - ->throwErrorOn( - '422', - ErrorType::init( - 'The requested action could not be performed, semantically incorrect, or fa' . - 'iled business validation.', - ErrorException::class - ) - ) - ->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class)) - ->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class)) - ->type(OrderAuthorizeResponse::class) - ->returnApiResponse(); - - return $this->execute($_reqBuilder, $_resHandler); - } - /** * Captures payment for an order. To successfully capture payment for an order, the buyer must first * approve the order or a valid payment_source must be provided in the request. A buyer can approve the @@ -336,10 +298,10 @@ class OrdersController extends BaseController ->parameters( TemplateParam::init('id', $options)->extract('id'), HeaderParam::init('Content-Type', 'application/json'), - HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'), + HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'), HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'), - HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('payPalClientMetadataId'), - HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('payPalAuthAssertion'), + HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('paypalClientMetadataId'), + HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('paypalAuthAssertion'), BodyParam::init($options)->extract('body') ); @@ -384,21 +346,60 @@ class OrdersController extends BaseController } /** - * Adds tracking information for an Order. + * Shows details for an order, by ID.
Note: For error handling and + * troubleshooting, see Orders v2 errors.
* * @param array $options Array with all options for search * * @return ApiResponse Response from the API call */ - public function ordersTrackCreate(array $options): ApiResponse + public function ordersGet(array $options): ApiResponse { - $_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v2/checkout/orders/{id}/track') + $_reqBuilder = $this->requestBuilder(RequestMethod::GET, '/v2/checkout/orders/{id}') + ->auth('Oauth2') + ->parameters( + TemplateParam::init('id', $options)->extract('id'), + QueryParam::init('fields', $options)->extract('fields') + ); + + $_resHandler = $this->responseHandler() + ->throwErrorOn( + '401', + ErrorType::init( + 'Authentication failed due to missing authorization header, or invalid auth' . + 'entication credentials.', + ErrorException::class + ) + ) + ->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class)) + ->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class)) + ->type(Order::class) + ->returnApiResponse(); + + return $this->execute($_reqBuilder, $_resHandler); + } + + /** + * Payer confirms their intent to pay for the the Order with the given payment source. + * + * @param array $options Array with all options for search + * + * @return ApiResponse Response from the API call + */ + public function ordersConfirm(array $options): ApiResponse + { + $_reqBuilder = $this->requestBuilder( + RequestMethod::POST, + '/v2/checkout/orders/{id}/confirm-payment-source' + ) ->auth('Oauth2') ->parameters( TemplateParam::init('id', $options)->extract('id'), HeaderParam::init('Content-Type', 'application/json'), - BodyParam::init($options)->extract('body'), - HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('payPalAuthAssertion') + HeaderParam::init('PayPal-Client-Metadata-Id', $options)->extract('paypalClientMetadataId'), + HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'), + BodyParam::init($options)->extract('body') ); $_resHandler = $this->responseHandler() @@ -413,7 +414,6 @@ class OrdersController extends BaseController '403', ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class) ) - ->throwErrorOn('404', ErrorType::init('The specified resource does not exist.', ErrorException::class)) ->throwErrorOn( '422', ErrorType::init( diff --git a/src/Controllers/PaymentsController.php b/src/Controllers/PaymentsController.php index f7f9b1f..59b4b34 100644 --- a/src/Controllers/PaymentsController.php +++ b/src/Controllers/PaymentsController.php @@ -3,23 +3,23 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Controllers; +namespace PaypalServerSdkLib\Controllers; use Core\Request\Parameters\BodyParam; use Core\Request\Parameters\HeaderParam; use Core\Request\Parameters\TemplateParam; use Core\Response\Types\ErrorType; use CoreInterfaces\Core\Request\RequestMethod; -use PaypalServerSDKLib\Exceptions\ErrorException; -use PaypalServerSDKLib\Http\ApiResponse; -use PaypalServerSDKLib\Models\CapturedPayment; -use PaypalServerSDKLib\Models\PaymentAuthorization; -use PaypalServerSDKLib\Models\Refund; +use PaypalServerSdkLib\Exceptions\ErrorException; +use PaypalServerSdkLib\Http\ApiResponse; +use PaypalServerSdkLib\Models\CapturedPayment; +use PaypalServerSdkLib\Models\PaymentAuthorization; +use PaypalServerSdkLib\Models\Refund; class PaymentsController extends BaseController { @@ -81,7 +81,7 @@ class PaymentsController extends BaseController ->parameters( TemplateParam::init('authorization_id', $options)->extract('authorizationId'), HeaderParam::init('Content-Type', 'application/json'), - HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'), + HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'), HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'), BodyParam::init($options)->extract('body') ); @@ -136,82 +136,6 @@ class PaymentsController extends BaseController return $this->execute($_reqBuilder, $_resHandler); } - /** - * Reauthorizes an authorized PayPal account payment, by ID. To ensure that funds are still available, - * reauthorize a payment after its initial three-day honor period expires. Within the 29-day - * authorization period, you can issue multiple re-authorizations after the honor period expires. - *

If 30 days have transpired since the date of the original authorization, you must create - * an authorized payment instead of reauthorizing the original authorized payment.

A - * reauthorized payment itself has a new honor period of three days.

You can reauthorize an - * authorized payment from 4 to 29 days after the 3-day honor period. The allowed amount depends on - * context and geography, for example in US it is up to 115% of the original authorized amount, not to - * exceed an increase of $75 USD.

Supports only the `amount` request parameter. - *
Note: This request is currently not supported for Partner use cases. - *
- * - * @param array $options Array with all options for search - * - * @return ApiResponse Response from the API call - */ - public function authorizationsReauthorize(array $options): ApiResponse - { - $_reqBuilder = $this->requestBuilder( - RequestMethod::POST, - '/v2/payments/authorizations/{authorization_id}/reauthorize' - ) - ->auth('Oauth2') - ->parameters( - TemplateParam::init('authorization_id', $options)->extract('authorizationId'), - HeaderParam::init('Content-Type', 'application/json'), - HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'), - HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'), - BodyParam::init($options)->extract('body') - ); - - $_resHandler = $this->responseHandler() - ->throwErrorOn( - '400', - ErrorType::init( - 'The request failed because it is not well-formed or is syntactically incor' . - 'rect or violates schema.', - ErrorException::class - ) - ) - ->throwErrorOn( - '401', - ErrorType::init( - 'Authentication failed due to missing authorization header, or invalid auth' . - 'entication credentials.', - ErrorException::class - ) - ) - ->throwErrorOn( - '403', - ErrorType::init( - 'The request failed because the caller has insufficient permissions.', - ErrorException::class - ) - ) - ->throwErrorOn( - '404', - ErrorType::init('The request failed because the resource does not exist.', ErrorException::class) - ) - ->throwErrorOn( - '422', - ErrorType::init( - 'The request failed because it either is semantically incorrect or failed b' . - 'usiness validation.', - ErrorException::class - ) - ) - ->throwErrorOn('500', ErrorType::init('The request failed because an internal server error occurred.')) - ->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class)) - ->type(PaymentAuthorization::class) - ->returnApiResponse(); - - return $this->execute($_reqBuilder, $_resHandler); - } - /** * Voids, or cancels, an authorized payment, by ID. You cannot void an authorized payment that has been * fully captured. @@ -229,7 +153,7 @@ class PaymentsController extends BaseController ->auth('Oauth2') ->parameters( TemplateParam::init('authorization_id', $options)->extract('authorizationId'), - HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('payPalAuthAssertion'), + HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('paypalAuthAssertion'), HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal') ); @@ -285,6 +209,82 @@ class PaymentsController extends BaseController return $this->execute($_reqBuilder, $_resHandler); } + /** + * Reauthorizes an authorized PayPal account payment, by ID. To ensure that funds are still available, + * reauthorize a payment after its initial three-day honor period expires. Within the 29-day + * authorization period, you can issue multiple re-authorizations after the honor period expires. + *

If 30 days have transpired since the date of the original authorization, you must create + * an authorized payment instead of reauthorizing the original authorized payment.

A + * reauthorized payment itself has a new honor period of three days.

You can reauthorize an + * authorized payment from 4 to 29 days after the 3-day honor period. The allowed amount depends on + * context and geography, for example in US it is up to 115% of the original authorized amount, not to + * exceed an increase of $75 USD.

Supports only the `amount` request parameter. + *
Note: This request is currently not supported for Partner use cases. + *
+ * + * @param array $options Array with all options for search + * + * @return ApiResponse Response from the API call + */ + public function authorizationsReauthorize(array $options): ApiResponse + { + $_reqBuilder = $this->requestBuilder( + RequestMethod::POST, + '/v2/payments/authorizations/{authorization_id}/reauthorize' + ) + ->auth('Oauth2') + ->parameters( + TemplateParam::init('authorization_id', $options)->extract('authorizationId'), + HeaderParam::init('Content-Type', 'application/json'), + HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'), + HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'), + BodyParam::init($options)->extract('body') + ); + + $_resHandler = $this->responseHandler() + ->throwErrorOn( + '400', + ErrorType::init( + 'The request failed because it is not well-formed or is syntactically incor' . + 'rect or violates schema.', + ErrorException::class + ) + ) + ->throwErrorOn( + '401', + ErrorType::init( + 'Authentication failed due to missing authorization header, or invalid auth' . + 'entication credentials.', + ErrorException::class + ) + ) + ->throwErrorOn( + '403', + ErrorType::init( + 'The request failed because the caller has insufficient permissions.', + ErrorException::class + ) + ) + ->throwErrorOn( + '404', + ErrorType::init('The request failed because the resource does not exist.', ErrorException::class) + ) + ->throwErrorOn( + '422', + ErrorType::init( + 'The request failed because it either is semantically incorrect or failed b' . + 'usiness validation.', + ErrorException::class + ) + ) + ->throwErrorOn('500', ErrorType::init('The request failed because an internal server error occurred.')) + ->throwErrorOn('0', ErrorType::init('The error response.', ErrorException::class)) + ->type(PaymentAuthorization::class) + ->returnApiResponse(); + + return $this->execute($_reqBuilder, $_resHandler); + } + /** * Shows details for a captured payment, by ID. * @@ -342,9 +342,9 @@ class PaymentsController extends BaseController ->parameters( TemplateParam::init('capture_id', $options)->extract('captureId'), HeaderParam::init('Content-Type', 'application/json'), - HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'), + HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'), HeaderParam::init('Prefer', $options)->extract('prefer', 'return=minimal'), - HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('payPalAuthAssertion'), + HeaderParam::init('PayPal-Auth-Assertion', $options)->extract('paypalAuthAssertion'), BodyParam::init($options)->extract('body') ); diff --git a/src/Controllers/VaultController.php b/src/Controllers/VaultController.php index 14a3014..b7eba3c 100644 --- a/src/Controllers/VaultController.php +++ b/src/Controllers/VaultController.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Controllers; +namespace PaypalServerSdkLib\Controllers; use Core\Request\Parameters\BodyParam; use Core\Request\Parameters\HeaderParam; @@ -16,66 +16,14 @@ use Core\Request\Parameters\QueryParam; use Core\Request\Parameters\TemplateParam; use Core\Response\Types\ErrorType; use CoreInterfaces\Core\Request\RequestMethod; -use PaypalServerSDKLib\Exceptions\ErrorException; -use PaypalServerSDKLib\Http\ApiResponse; -use PaypalServerSDKLib\Models\CustomerVaultPaymentTokensResponse; -use PaypalServerSDKLib\Models\PaymentTokenResponse; -use PaypalServerSDKLib\Models\SetupTokenResponse; +use PaypalServerSdkLib\Exceptions\ErrorException; +use PaypalServerSdkLib\Http\ApiResponse; +use PaypalServerSdkLib\Models\CustomerVaultPaymentTokensResponse; +use PaypalServerSdkLib\Models\PaymentTokenResponse; +use PaypalServerSdkLib\Models\SetupTokenResponse; class VaultController extends BaseController { - /** - * Creates a Payment Token from the given payment source and adds it to the Vault of the associated - * customer. - * - * @param array $options Array with all options for search - * - * @return ApiResponse Response from the API call - */ - public function paymentTokensCreate(array $options): ApiResponse - { - $_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v3/vault/payment-tokens') - ->auth('Oauth2') - ->parameters( - HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'), - HeaderParam::init('Content-Type', 'application/json'), - BodyParam::init($options)->extract('body') - ); - - $_resHandler = $this->responseHandler() - ->throwErrorOn( - '400', - ErrorType::init( - 'Request is not well-formed, syntactically incorrect, or violates schema.', - ErrorException::class - ) - ) - ->throwErrorOn( - '403', - ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class) - ) - ->throwErrorOn( - '404', - ErrorType::init( - 'Request contains reference to resources that do not exist.', - ErrorException::class - ) - ) - ->throwErrorOn( - '422', - ErrorType::init( - 'The requested action could not be performed, semantically incorrect, or fa' . - 'iled business validation.', - ErrorException::class - ) - ) - ->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class)) - ->type(PaymentTokenResponse::class) - ->returnApiResponse(); - - return $this->execute($_reqBuilder, $_resHandler); - } - /** * Returns all payment tokens for a customer. * @@ -148,17 +96,22 @@ class VaultController extends BaseController } /** - * Delete the payment token associated with the payment token id. + * Creates a Payment Token from the given payment source and adds it to the Vault of the associated + * customer. * - * @param string $id ID of the payment token. + * @param array $options Array with all options for search * * @return ApiResponse Response from the API call */ - public function paymentTokensDelete(string $id): ApiResponse + public function paymentTokensCreate(array $options): ApiResponse { - $_reqBuilder = $this->requestBuilder(RequestMethod::DELETE, '/v3/vault/payment-tokens/{id}') + $_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v3/vault/payment-tokens') ->auth('Oauth2') - ->parameters(TemplateParam::init('id', $id)); + ->parameters( + HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'), + HeaderParam::init('Content-Type', 'application/json'), + BodyParam::init($options)->extract('body') + ); $_resHandler = $this->responseHandler() ->throwErrorOn( @@ -172,7 +125,23 @@ class VaultController extends BaseController '403', ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class) ) + ->throwErrorOn( + '404', + ErrorType::init( + 'Request contains reference to resources that do not exist.', + ErrorException::class + ) + ) + ->throwErrorOn( + '422', + ErrorType::init( + 'The requested action could not be performed, semantically incorrect, or fa' . + 'iled business validation.', + ErrorException::class + ) + ) ->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class)) + ->type(PaymentTokenResponse::class) ->returnApiResponse(); return $this->execute($_reqBuilder, $_resHandler); @@ -191,7 +160,7 @@ class VaultController extends BaseController $_reqBuilder = $this->requestBuilder(RequestMethod::POST, '/v3/vault/setup-tokens') ->auth('Oauth2') ->parameters( - HeaderParam::init('PayPal-Request-Id', $options)->extract('payPalRequestId'), + HeaderParam::init('PayPal-Request-Id', $options)->extract('paypalRequestId'), HeaderParam::init('Content-Type', 'application/json'), BodyParam::init($options)->extract('body') ); @@ -223,6 +192,37 @@ class VaultController extends BaseController return $this->execute($_reqBuilder, $_resHandler); } + /** + * Delete the payment token associated with the payment token id. + * + * @param string $id ID of the payment token. + * + * @return ApiResponse Response from the API call + */ + public function paymentTokensDelete(string $id): ApiResponse + { + $_reqBuilder = $this->requestBuilder(RequestMethod::DELETE, '/v3/vault/payment-tokens/{id}') + ->auth('Oauth2') + ->parameters(TemplateParam::init('id', $id)); + + $_resHandler = $this->responseHandler() + ->throwErrorOn( + '400', + ErrorType::init( + 'Request is not well-formed, syntactically incorrect, or violates schema.', + ErrorException::class + ) + ) + ->throwErrorOn( + '403', + ErrorType::init('Authorization failed due to insufficient permissions.', ErrorException::class) + ) + ->throwErrorOn('500', ErrorType::init('An internal server error has occurred.', ErrorException::class)) + ->returnApiResponse(); + + return $this->execute($_reqBuilder, $_resHandler); + } + /** * Returns a readable representation of temporarily vaulted payment source associated with the setup * token id. diff --git a/src/Environment.php b/src/Environment.php index c1ebeda..545b837 100644 --- a/src/Environment.php +++ b/src/Environment.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib; +namespace PaypalServerSdkLib; /** * Environments available for API diff --git a/src/Exceptions/ApiException.php b/src/Exceptions/ApiException.php index fe8da83..f64896b 100644 --- a/src/Exceptions/ApiException.php +++ b/src/Exceptions/ApiException.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Exceptions; +namespace PaypalServerSdkLib\Exceptions; use CoreInterfaces\Sdk\ExceptionInterface; -use PaypalServerSDKLib\Http\HttpResponse; -use PaypalServerSDKLib\Http\HttpRequest; +use PaypalServerSdkLib\Http\HttpResponse; +use PaypalServerSdkLib\Http\HttpRequest; /** * Thrown when there is a network error or HTTP response status code is not okay. diff --git a/src/Exceptions/ErrorException.php b/src/Exceptions/ErrorException.php index fdafa2f..3559f28 100644 --- a/src/Exceptions/ErrorException.php +++ b/src/Exceptions/ErrorException.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Exceptions; +namespace PaypalServerSdkLib\Exceptions; /** * The error details. @@ -31,27 +31,27 @@ class ErrorException extends ApiException private $debugId; /** - * @var \PaypalServerSDKLib\Models\ErrorDetails[]|null + * @var \PaypalServerSdkLib\Models\ErrorDetails[]|null */ private $details; /** - * @var \PaypalServerSDKLib\Models\LinkDescription[]|null + * @var \PaypalServerSdkLib\Models\LinkDescription[]|null */ private $links; /** * @param string $reason - * @param \PaypalServerSDKLib\Http\HttpRequest $request - * @param \PaypalServerSDKLib\Http\HttpResponse $response + * @param \PaypalServerSdkLib\Http\HttpRequest $request + * @param \PaypalServerSdkLib\Http\HttpResponse $response * @param string $name * @param string $messageProperty * @param string $debugId */ public function __construct( string $reason, - \PaypalServerSDKLib\Http\HttpRequest $request, - \PaypalServerSDKLib\Http\HttpResponse $response, + \PaypalServerSdkLib\Http\HttpRequest $request, + \PaypalServerSdkLib\Http\HttpResponse $response, string $name, string $messageProperty, string $debugId @@ -129,7 +129,7 @@ class ErrorException extends ApiException * Returns Details. * An array of additional details about the error. * - * @return \PaypalServerSDKLib\Models\ErrorDetails[]|null + * @return \PaypalServerSdkLib\Models\ErrorDetails[]|null */ public function getDetails(): ?array { @@ -142,7 +142,7 @@ class ErrorException extends ApiException * * @maps details * - * @param \PaypalServerSDKLib\Models\ErrorDetails[]|null $details + * @param \PaypalServerSdkLib\Models\ErrorDetails[]|null $details */ public function setDetails(?array $details): void { @@ -153,7 +153,7 @@ class ErrorException extends ApiException * Returns Links. * An array of request-related [HATEOAS links](/api/rest/responses/#hateoas-links). * - * @return \PaypalServerSDKLib\Models\LinkDescription[]|null + * @return \PaypalServerSdkLib\Models\LinkDescription[]|null */ public function getLinks(): ?array { @@ -166,7 +166,7 @@ class ErrorException extends ApiException * * @maps links * - * @param \PaypalServerSDKLib\Models\LinkDescription[]|null $links + * @param \PaypalServerSdkLib\Models\LinkDescription[]|null $links */ public function setLinks(?array $links): void { diff --git a/src/Exceptions/OAuthProviderException.php b/src/Exceptions/OAuthProviderException.php index 26f0154..b689db4 100644 --- a/src/Exceptions/OAuthProviderException.php +++ b/src/Exceptions/OAuthProviderException.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Exceptions; +namespace PaypalServerSdkLib\Exceptions; /** * OAuth 2 Authorization endpoint exception. @@ -32,14 +32,14 @@ class OAuthProviderException extends ApiException /** * @param string $reason - * @param \PaypalServerSDKLib\Http\HttpRequest $request - * @param \PaypalServerSDKLib\Http\HttpResponse $response + * @param \PaypalServerSdkLib\Http\HttpRequest $request + * @param \PaypalServerSdkLib\Http\HttpResponse $response * @param string $error */ public function __construct( string $reason, - \PaypalServerSDKLib\Http\HttpRequest $request, - \PaypalServerSDKLib\Http\HttpResponse $response, + \PaypalServerSdkLib\Http\HttpRequest $request, + \PaypalServerSdkLib\Http\HttpResponse $response, string $error ) { parent::__construct($reason, $request, $response); @@ -61,7 +61,7 @@ class OAuthProviderException extends ApiException * * @required * @maps error - * @factory \PaypalServerSDKLib\Models\OAuthProviderError::checkValue + * @factory \PaypalServerSdkLib\Models\OAuthProviderError::checkValue */ public function setError(string $error): void { diff --git a/src/Http/ApiResponse.php b/src/Http/ApiResponse.php index 2cf4fc8..b0f077f 100644 --- a/src/Http/ApiResponse.php +++ b/src/Http/ApiResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Http; +namespace PaypalServerSdkLib\Http; use Core\Types\Sdk\CoreApiResponse; diff --git a/src/Http/HttpCallBack.php b/src/Http/HttpCallBack.php index 3566b6c..e632928 100644 --- a/src/Http/HttpCallBack.php +++ b/src/Http/HttpCallBack.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Http; +namespace PaypalServerSdkLib\Http; use Core\Types\Sdk\CoreCallback; diff --git a/src/Http/HttpContext.php b/src/Http/HttpContext.php index 208dd2a..e523a8e 100644 --- a/src/Http/HttpContext.php +++ b/src/Http/HttpContext.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Http; +namespace PaypalServerSdkLib\Http; use Core\Types\Sdk\CoreContext; diff --git a/src/Http/HttpMethod.php b/src/Http/HttpMethod.php index d9a1654..3337b00 100644 --- a/src/Http/HttpMethod.php +++ b/src/Http/HttpMethod.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Http; +namespace PaypalServerSdkLib\Http; use CoreInterfaces\Core\Request\RequestMethod; diff --git a/src/Http/HttpRequest.php b/src/Http/HttpRequest.php index ce311dc..88c8e44 100644 --- a/src/Http/HttpRequest.php +++ b/src/Http/HttpRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Http; +namespace PaypalServerSdkLib\Http; use Core\Types\Sdk\CoreRequest; diff --git a/src/Http/HttpResponse.php b/src/Http/HttpResponse.php index 489469b..0e10a10 100644 --- a/src/Http/HttpResponse.php +++ b/src/Http/HttpResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Http; +namespace PaypalServerSdkLib\Http; use Core\Types\Sdk\CoreResponse; diff --git a/src/Logging/LoggingConfigurationBuilder.php b/src/Logging/LoggingConfigurationBuilder.php index 8e273d5..b400549 100644 --- a/src/Logging/LoggingConfigurationBuilder.php +++ b/src/Logging/LoggingConfigurationBuilder.php @@ -3,14 +3,14 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Logging; +namespace PaypalServerSdkLib\Logging; -use PaypalServerSDKLib\ConfigurationDefaults; +use PaypalServerSdkLib\ConfigurationDefaults; use Core\Logger\Configuration\LoggingConfiguration; use Core\Logger\ConsoleLogger; use Core\Utils\CoreHelper; diff --git a/src/Logging/RequestLoggingConfigurationBuilder.php b/src/Logging/RequestLoggingConfigurationBuilder.php index 3d74930..79468a1 100644 --- a/src/Logging/RequestLoggingConfigurationBuilder.php +++ b/src/Logging/RequestLoggingConfigurationBuilder.php @@ -3,14 +3,14 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Logging; +namespace PaypalServerSdkLib\Logging; -use PaypalServerSDKLib\ConfigurationDefaults; +use PaypalServerSdkLib\ConfigurationDefaults; use Core\Logger\Configuration\RequestConfiguration; use Core\Utils\CoreHelper; diff --git a/src/Logging/ResponseLoggingConfigurationBuilder.php b/src/Logging/ResponseLoggingConfigurationBuilder.php index 963d594..0535b36 100644 --- a/src/Logging/ResponseLoggingConfigurationBuilder.php +++ b/src/Logging/ResponseLoggingConfigurationBuilder.php @@ -3,14 +3,14 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Logging; +namespace PaypalServerSdkLib\Logging; -use PaypalServerSDKLib\ConfigurationDefaults; +use PaypalServerSdkLib\ConfigurationDefaults; use Core\Logger\Configuration\ResponseConfiguration; use Core\Utils\CoreHelper; diff --git a/src/Models/ActivityTimestamps.php b/src/Models/ActivityTimestamps.php index 2869c1a..46bb7e1 100644 --- a/src/Models/ActivityTimestamps.php +++ b/src/Models/ActivityTimestamps.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/Address.php b/src/Models/Address.php index 25a13a6..fde39c8 100644 --- a/src/Models/Address.php +++ b/src/Models/Address.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/AddressDetails.php b/src/Models/AddressDetails.php index f564678..483c886 100644 --- a/src/Models/AddressDetails.php +++ b/src/Models/AddressDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/AmountBreakdown.php b/src/Models/AmountBreakdown.php index f2e479a..aabcf00 100644 --- a/src/Models/AmountBreakdown.php +++ b/src/Models/AmountBreakdown.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/AmountWithBreakdown.php b/src/Models/AmountWithBreakdown.php index bfee56f..dbed4a4 100644 --- a/src/Models/AmountWithBreakdown.php +++ b/src/Models/AmountWithBreakdown.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ApplePayAttributes.php b/src/Models/ApplePayAttributes.php index 400aa52..3273db4 100644 --- a/src/Models/ApplePayAttributes.php +++ b/src/Models/ApplePayAttributes.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ApplePayAttributesResponse.php b/src/Models/ApplePayAttributesResponse.php index f31606e..881852f 100644 --- a/src/Models/ApplePayAttributesResponse.php +++ b/src/Models/ApplePayAttributesResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ApplePayCard.php b/src/Models/ApplePayCard.php index 8469d33..ddda690 100644 --- a/src/Models/ApplePayCard.php +++ b/src/Models/ApplePayCard.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ApplePayCardResponse.php b/src/Models/ApplePayCardResponse.php index 4e79673..b441b0d 100644 --- a/src/Models/ApplePayCardResponse.php +++ b/src/Models/ApplePayCardResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ApplePayDecryptedTokenData.php b/src/Models/ApplePayDecryptedTokenData.php index 6538b1e..90b7cc6 100644 --- a/src/Models/ApplePayDecryptedTokenData.php +++ b/src/Models/ApplePayDecryptedTokenData.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ApplePayPaymentData.php b/src/Models/ApplePayPaymentData.php index c9d0e11..35d95bd 100644 --- a/src/Models/ApplePayPaymentData.php +++ b/src/Models/ApplePayPaymentData.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ApplePayPaymentDataType.php b/src/Models/ApplePayPaymentDataType.php index 3a100cc..08dabae 100644 --- a/src/Models/ApplePayPaymentDataType.php +++ b/src/Models/ApplePayPaymentDataType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/ApplePayPaymentObject.php b/src/Models/ApplePayPaymentObject.php index 95cd6e4..eeab2bf 100644 --- a/src/Models/ApplePayPaymentObject.php +++ b/src/Models/ApplePayPaymentObject.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ApplePayPaymentToken.php b/src/Models/ApplePayPaymentToken.php index 67091cc..53e330b 100644 --- a/src/Models/ApplePayPaymentToken.php +++ b/src/Models/ApplePayPaymentToken.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ApplePayRequest.php b/src/Models/ApplePayRequest.php index f1e9f81..1645509 100644 --- a/src/Models/ApplePayRequest.php +++ b/src/Models/ApplePayRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ApplePayTokenizedCard.php b/src/Models/ApplePayTokenizedCard.php index 005db21..60c5160 100644 --- a/src/Models/ApplePayTokenizedCard.php +++ b/src/Models/ApplePayTokenizedCard.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/AssuranceDetails.php b/src/Models/AssuranceDetails.php index 1fd04ef..76fb1ea 100644 --- a/src/Models/AssuranceDetails.php +++ b/src/Models/AssuranceDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/AuthenticationResponse.php b/src/Models/AuthenticationResponse.php index 42d18f0..59e416b 100644 --- a/src/Models/AuthenticationResponse.php +++ b/src/Models/AuthenticationResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/Authorization.php b/src/Models/Authorization.php index 9862213..8d1eb97 100644 --- a/src/Models/Authorization.php +++ b/src/Models/Authorization.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/AuthorizationIncompleteReason.php b/src/Models/AuthorizationIncompleteReason.php index ff1cb38..fbee5dc 100644 --- a/src/Models/AuthorizationIncompleteReason.php +++ b/src/Models/AuthorizationIncompleteReason.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/AuthorizationStatus.php b/src/Models/AuthorizationStatus.php index 509f700..160a2c5 100644 --- a/src/Models/AuthorizationStatus.php +++ b/src/Models/AuthorizationStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/AuthorizationStatusDetails.php b/src/Models/AuthorizationStatusDetails.php index 1d2c133..b47f36a 100644 --- a/src/Models/AuthorizationStatusDetails.php +++ b/src/Models/AuthorizationStatusDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/AuthorizationStatusWithDetails.php b/src/Models/AuthorizationStatusWithDetails.php index 8beae0a..5497244 100644 --- a/src/Models/AuthorizationStatusWithDetails.php +++ b/src/Models/AuthorizationStatusWithDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/AuthorizationWithAdditionalData.php b/src/Models/AuthorizationWithAdditionalData.php index e174391..120d7e8 100644 --- a/src/Models/AuthorizationWithAdditionalData.php +++ b/src/Models/AuthorizationWithAdditionalData.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/AVSCode.php b/src/Models/AvsCode.php similarity index 93% rename from src/Models/AVSCode.php rename to src/Models/AvsCode.php index 5f76136..9344573 100644 --- a/src/Models/AVSCode.php +++ b/src/Models/AvsCode.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -17,7 +17,7 @@ use stdClass; /** * The address verification code for Visa, Discover, Mastercard, or American Express transactions. */ -class AVSCode +class AvsCode { public const A = 'A'; @@ -109,6 +109,6 @@ class AVSCode if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for AVSCode."); + throw new Exception("$value is invalid for AvsCode."); } } diff --git a/src/Models/BancontactPaymentObject.php b/src/Models/BancontactPaymentObject.php index 872c6c3..f3947e5 100644 --- a/src/Models/BancontactPaymentObject.php +++ b/src/Models/BancontactPaymentObject.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/BancontactPaymentRequest.php b/src/Models/BancontactPaymentRequest.php index e9c7afe..5f54a42 100644 --- a/src/Models/BancontactPaymentRequest.php +++ b/src/Models/BancontactPaymentRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/BinDetails.php b/src/Models/BinDetails.php index 7a8ae1e..00cdeb4 100644 --- a/src/Models/BinDetails.php +++ b/src/Models/BinDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/BLIKExperienceContext.php b/src/Models/BlikExperienceContext.php similarity index 98% rename from src/Models/BLIKExperienceContext.php rename to src/Models/BlikExperienceContext.php index dff5c54..3946845 100644 --- a/src/Models/BLIKExperienceContext.php +++ b/src/Models/BlikExperienceContext.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Customizes the payer experience during the approval process for the BLIK payment. */ -class BLIKExperienceContext implements \JsonSerializable +class BlikExperienceContext implements \JsonSerializable { /** * @var string|null diff --git a/src/Models/BLIKLevel0PaymentObject.php b/src/Models/BlikLevel0PaymentObject.php similarity index 92% rename from src/Models/BLIKLevel0PaymentObject.php rename to src/Models/BlikLevel0PaymentObject.php index c4586ab..65a4515 100644 --- a/src/Models/BLIKLevel0PaymentObject.php +++ b/src/Models/BlikLevel0PaymentObject.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information used to pay using BLIK level_0 flow. */ -class BLIKLevel0PaymentObject implements \JsonSerializable +class BlikLevel0PaymentObject implements \JsonSerializable { /** * @var string diff --git a/src/Models/BLIKOneClickPaymentObject.php b/src/Models/BlikOneClickPaymentObject.php similarity index 92% rename from src/Models/BLIKOneClickPaymentObject.php rename to src/Models/BlikOneClickPaymentObject.php index 5a8fff5..cc3ca97 100644 --- a/src/Models/BLIKOneClickPaymentObject.php +++ b/src/Models/BlikOneClickPaymentObject.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information used to pay using BLIK one-click flow. */ -class BLIKOneClickPaymentObject implements \JsonSerializable +class BlikOneClickPaymentObject implements \JsonSerializable { /** * @var string|null diff --git a/src/Models/BLIKOneClickPaymentRequest.php b/src/Models/BlikOneClickPaymentRequest.php similarity index 97% rename from src/Models/BLIKOneClickPaymentRequest.php rename to src/Models/BlikOneClickPaymentRequest.php index 9cdf15a..4bf0df0 100644 --- a/src/Models/BLIKOneClickPaymentRequest.php +++ b/src/Models/BlikOneClickPaymentRequest.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information used to pay using BLIK one-click flow. */ -class BLIKOneClickPaymentRequest implements \JsonSerializable +class BlikOneClickPaymentRequest implements \JsonSerializable { /** * @var string|null diff --git a/src/Models/BLIKPaymentObject.php b/src/Models/BlikPaymentObject.php similarity index 93% rename from src/Models/BLIKPaymentObject.php rename to src/Models/BlikPaymentObject.php index 1b748a8..e05f725 100644 --- a/src/Models/BLIKPaymentObject.php +++ b/src/Models/BlikPaymentObject.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information used to pay using BLIK. */ -class BLIKPaymentObject implements \JsonSerializable +class BlikPaymentObject implements \JsonSerializable { /** * @var string|null @@ -33,7 +33,7 @@ class BLIKPaymentObject implements \JsonSerializable private $email; /** - * @var BLIKOneClickPaymentObject|null + * @var BlikOneClickPaymentObject|null */ private $oneClick; @@ -115,7 +115,7 @@ class BLIKPaymentObject implements \JsonSerializable * Returns One Click. * Information used to pay using BLIK one-click flow. */ - public function getOneClick(): ?BLIKOneClickPaymentObject + public function getOneClick(): ?BlikOneClickPaymentObject { return $this->oneClick; } @@ -126,7 +126,7 @@ class BLIKPaymentObject implements \JsonSerializable * * @maps one_click */ - public function setOneClick(?BLIKOneClickPaymentObject $oneClick): void + public function setOneClick(?BlikOneClickPaymentObject $oneClick): void { $this->oneClick = $oneClick; } diff --git a/src/Models/BLIKPaymentRequest.php b/src/Models/BlikPaymentRequest.php similarity index 90% rename from src/Models/BLIKPaymentRequest.php rename to src/Models/BlikPaymentRequest.php index 55ea714..2525c09 100644 --- a/src/Models/BLIKPaymentRequest.php +++ b/src/Models/BlikPaymentRequest.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information needed to pay using BLIK. */ -class BLIKPaymentRequest implements \JsonSerializable +class BlikPaymentRequest implements \JsonSerializable { /** * @var string @@ -33,17 +33,17 @@ class BLIKPaymentRequest implements \JsonSerializable private $email; /** - * @var BLIKExperienceContext|null + * @var BlikExperienceContext|null */ private $experienceContext; /** - * @var BLIKLevel0PaymentObject|null + * @var BlikLevel0PaymentObject|null */ private $level0; /** - * @var BLIKOneClickPaymentRequest|null + * @var BlikOneClickPaymentRequest|null */ private $oneClick; @@ -137,7 +137,7 @@ class BLIKPaymentRequest implements \JsonSerializable * Returns Experience Context. * Customizes the payer experience during the approval process for the BLIK payment. */ - public function getExperienceContext(): ?BLIKExperienceContext + public function getExperienceContext(): ?BlikExperienceContext { return $this->experienceContext; } @@ -148,7 +148,7 @@ class BLIKPaymentRequest implements \JsonSerializable * * @maps experience_context */ - public function setExperienceContext(?BLIKExperienceContext $experienceContext): void + public function setExperienceContext(?BlikExperienceContext $experienceContext): void { $this->experienceContext = $experienceContext; } @@ -157,7 +157,7 @@ class BLIKPaymentRequest implements \JsonSerializable * Returns Level 0. * Information used to pay using BLIK level_0 flow. */ - public function getLevel0(): ?BLIKLevel0PaymentObject + public function getLevel0(): ?BlikLevel0PaymentObject { return $this->level0; } @@ -168,7 +168,7 @@ class BLIKPaymentRequest implements \JsonSerializable * * @maps level_0 */ - public function setLevel0(?BLIKLevel0PaymentObject $level0): void + public function setLevel0(?BlikLevel0PaymentObject $level0): void { $this->level0 = $level0; } @@ -177,7 +177,7 @@ class BLIKPaymentRequest implements \JsonSerializable * Returns One Click. * Information used to pay using BLIK one-click flow. */ - public function getOneClick(): ?BLIKOneClickPaymentRequest + public function getOneClick(): ?BlikOneClickPaymentRequest { return $this->oneClick; } @@ -188,7 +188,7 @@ class BLIKPaymentRequest implements \JsonSerializable * * @maps one_click */ - public function setOneClick(?BLIKOneClickPaymentRequest $oneClick): void + public function setOneClick(?BlikOneClickPaymentRequest $oneClick): void { $this->oneClick = $oneClick; } diff --git a/src/Models/Builders/ActivityTimestampsBuilder.php b/src/Models/Builders/ActivityTimestampsBuilder.php index 718fbf7..482aaa6 100644 --- a/src/Models/Builders/ActivityTimestampsBuilder.php +++ b/src/Models/Builders/ActivityTimestampsBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ActivityTimestamps; +use PaypalServerSdkLib\Models\ActivityTimestamps; /** * Builder for model ActivityTimestamps diff --git a/src/Models/Builders/AddressBuilder.php b/src/Models/Builders/AddressBuilder.php index 03bed11..cd97ef2 100644 --- a/src/Models/Builders/AddressBuilder.php +++ b/src/Models/Builders/AddressBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; +use PaypalServerSdkLib\Models\Address; /** * Builder for model Address diff --git a/src/Models/Builders/AddressDetailsBuilder.php b/src/Models/Builders/AddressDetailsBuilder.php index e5f2465..3cc7fb0 100644 --- a/src/Models/Builders/AddressDetailsBuilder.php +++ b/src/Models/Builders/AddressDetailsBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AddressDetails; -use PaypalServerSDKLib\Models\Name; -use PaypalServerSDKLib\Models\Phone; +use PaypalServerSdkLib\Models\AddressDetails; +use PaypalServerSdkLib\Models\Name; +use PaypalServerSdkLib\Models\Phone; /** * Builder for model AddressDetails diff --git a/src/Models/Builders/AmountBreakdownBuilder.php b/src/Models/Builders/AmountBreakdownBuilder.php index 147309f..e80eb57 100644 --- a/src/Models/Builders/AmountBreakdownBuilder.php +++ b/src/Models/Builders/AmountBreakdownBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AmountBreakdown; -use PaypalServerSDKLib\Models\Money; +use PaypalServerSdkLib\Models\AmountBreakdown; +use PaypalServerSdkLib\Models\Money; /** * Builder for model AmountBreakdown diff --git a/src/Models/Builders/AmountWithBreakdownBuilder.php b/src/Models/Builders/AmountWithBreakdownBuilder.php index 9437698..b3e57a4 100644 --- a/src/Models/Builders/AmountWithBreakdownBuilder.php +++ b/src/Models/Builders/AmountWithBreakdownBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AmountBreakdown; -use PaypalServerSDKLib\Models\AmountWithBreakdown; +use PaypalServerSdkLib\Models\AmountBreakdown; +use PaypalServerSdkLib\Models\AmountWithBreakdown; /** * Builder for model AmountWithBreakdown diff --git a/src/Models/Builders/ApplePayAttributesBuilder.php b/src/Models/Builders/ApplePayAttributesBuilder.php index 1df14ce..d3fcb14 100644 --- a/src/Models/Builders/ApplePayAttributesBuilder.php +++ b/src/Models/Builders/ApplePayAttributesBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayAttributes; -use PaypalServerSDKLib\Models\CustomerInformation; -use PaypalServerSDKLib\Models\VaultInstruction; +use PaypalServerSdkLib\Models\ApplePayAttributes; +use PaypalServerSdkLib\Models\CustomerInformation; +use PaypalServerSdkLib\Models\VaultInstruction; /** * Builder for model ApplePayAttributes diff --git a/src/Models/Builders/ApplePayAttributesResponseBuilder.php b/src/Models/Builders/ApplePayAttributesResponseBuilder.php index d0132ee..e6a1269 100644 --- a/src/Models/Builders/ApplePayAttributesResponseBuilder.php +++ b/src/Models/Builders/ApplePayAttributesResponseBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayAttributesResponse; -use PaypalServerSDKLib\Models\VaultResponse; +use PaypalServerSdkLib\Models\ApplePayAttributesResponse; +use PaypalServerSdkLib\Models\VaultResponse; /** * Builder for model ApplePayAttributesResponse diff --git a/src/Models/Builders/ApplePayCardBuilder.php b/src/Models/Builders/ApplePayCardBuilder.php index c9278a7..d95729d 100644 --- a/src/Models/Builders/ApplePayCardBuilder.php +++ b/src/Models/Builders/ApplePayCardBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\ApplePayCard; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\ApplePayCard; /** * Builder for model ApplePayCard diff --git a/src/Models/Builders/ApplePayCardResponseBuilder.php b/src/Models/Builders/ApplePayCardResponseBuilder.php index 0a3482e..e7faba1 100644 --- a/src/Models/Builders/ApplePayCardResponseBuilder.php +++ b/src/Models/Builders/ApplePayCardResponseBuilder.php @@ -3,20 +3,20 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\ApplePayCardResponse; -use PaypalServerSDKLib\Models\AuthenticationResponse; -use PaypalServerSDKLib\Models\BinDetails; -use PaypalServerSDKLib\Models\CardAttributesResponse; -use PaypalServerSDKLib\Models\CardFromRequest; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\ApplePayCardResponse; +use PaypalServerSdkLib\Models\AuthenticationResponse; +use PaypalServerSdkLib\Models\BinDetails; +use PaypalServerSdkLib\Models\CardAttributesResponse; +use PaypalServerSdkLib\Models\CardFromRequest; /** * Builder for model ApplePayCardResponse diff --git a/src/Models/Builders/ApplePayDecryptedTokenDataBuilder.php b/src/Models/Builders/ApplePayDecryptedTokenDataBuilder.php index 5f7f822..1ce0647 100644 --- a/src/Models/Builders/ApplePayDecryptedTokenDataBuilder.php +++ b/src/Models/Builders/ApplePayDecryptedTokenDataBuilder.php @@ -3,18 +3,18 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayDecryptedTokenData; -use PaypalServerSDKLib\Models\ApplePayPaymentData; -use PaypalServerSDKLib\Models\ApplePayTokenizedCard; -use PaypalServerSDKLib\Models\Money; +use PaypalServerSdkLib\Models\ApplePayDecryptedTokenData; +use PaypalServerSdkLib\Models\ApplePayPaymentData; +use PaypalServerSdkLib\Models\ApplePayTokenizedCard; +use PaypalServerSdkLib\Models\Money; /** * Builder for model ApplePayDecryptedTokenData diff --git a/src/Models/Builders/ApplePayPaymentDataBuilder.php b/src/Models/Builders/ApplePayPaymentDataBuilder.php index 84e7d2a..e27780f 100644 --- a/src/Models/Builders/ApplePayPaymentDataBuilder.php +++ b/src/Models/Builders/ApplePayPaymentDataBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayPaymentData; +use PaypalServerSdkLib\Models\ApplePayPaymentData; /** * Builder for model ApplePayPaymentData diff --git a/src/Models/Builders/ApplePayPaymentObjectBuilder.php b/src/Models/Builders/ApplePayPaymentObjectBuilder.php index 93803ae..c097e53 100644 --- a/src/Models/Builders/ApplePayPaymentObjectBuilder.php +++ b/src/Models/Builders/ApplePayPaymentObjectBuilder.php @@ -3,18 +3,18 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayAttributesResponse; -use PaypalServerSDKLib\Models\ApplePayCardResponse; -use PaypalServerSDKLib\Models\ApplePayPaymentObject; -use PaypalServerSDKLib\Models\PhoneNumber; +use PaypalServerSdkLib\Models\ApplePayAttributesResponse; +use PaypalServerSdkLib\Models\ApplePayCardResponse; +use PaypalServerSdkLib\Models\ApplePayPaymentObject; +use PaypalServerSdkLib\Models\PhoneNumber; /** * Builder for model ApplePayPaymentObject diff --git a/src/Models/Builders/ApplePayPaymentTokenBuilder.php b/src/Models/Builders/ApplePayPaymentTokenBuilder.php index ea39053..9ea398e 100644 --- a/src/Models/Builders/ApplePayPaymentTokenBuilder.php +++ b/src/Models/Builders/ApplePayPaymentTokenBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayCard; -use PaypalServerSDKLib\Models\ApplePayPaymentToken; +use PaypalServerSdkLib\Models\ApplePayCard; +use PaypalServerSdkLib\Models\ApplePayPaymentToken; /** * Builder for model ApplePayPaymentToken diff --git a/src/Models/Builders/ApplePayRequestBuilder.php b/src/Models/Builders/ApplePayRequestBuilder.php index 6d18371..a3d3fc6 100644 --- a/src/Models/Builders/ApplePayRequestBuilder.php +++ b/src/Models/Builders/ApplePayRequestBuilder.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayAttributes; -use PaypalServerSDKLib\Models\ApplePayDecryptedTokenData; -use PaypalServerSDKLib\Models\ApplePayRequest; -use PaypalServerSDKLib\Models\CardStoredCredential; -use PaypalServerSDKLib\Models\PhoneNumber; +use PaypalServerSdkLib\Models\ApplePayAttributes; +use PaypalServerSdkLib\Models\ApplePayDecryptedTokenData; +use PaypalServerSdkLib\Models\ApplePayRequest; +use PaypalServerSdkLib\Models\CardStoredCredential; +use PaypalServerSdkLib\Models\PhoneNumber; /** * Builder for model ApplePayRequest diff --git a/src/Models/Builders/ApplePayTokenizedCardBuilder.php b/src/Models/Builders/ApplePayTokenizedCardBuilder.php index 6bb2619..c32f1e9 100644 --- a/src/Models/Builders/ApplePayTokenizedCardBuilder.php +++ b/src/Models/Builders/ApplePayTokenizedCardBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\ApplePayTokenizedCard; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\ApplePayTokenizedCard; /** * Builder for model ApplePayTokenizedCard diff --git a/src/Models/Builders/AssuranceDetailsBuilder.php b/src/Models/Builders/AssuranceDetailsBuilder.php index c59611c..0b3399a 100644 --- a/src/Models/Builders/AssuranceDetailsBuilder.php +++ b/src/Models/Builders/AssuranceDetailsBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AssuranceDetails; +use PaypalServerSdkLib\Models\AssuranceDetails; /** * Builder for model AssuranceDetails diff --git a/src/Models/Builders/AuthenticationResponseBuilder.php b/src/Models/Builders/AuthenticationResponseBuilder.php index 60da2df..aae83fe 100644 --- a/src/Models/Builders/AuthenticationResponseBuilder.php +++ b/src/Models/Builders/AuthenticationResponseBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AuthenticationResponse; -use PaypalServerSDKLib\Models\ThreeDSecureAuthenticationResponse; +use PaypalServerSdkLib\Models\AuthenticationResponse; +use PaypalServerSdkLib\Models\ThreeDSecureAuthenticationResponse; /** * Builder for model AuthenticationResponse diff --git a/src/Models/Builders/AuthorizationBuilder.php b/src/Models/Builders/AuthorizationBuilder.php index 4d2fedc..8cce06a 100644 --- a/src/Models/Builders/AuthorizationBuilder.php +++ b/src/Models/Builders/AuthorizationBuilder.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Authorization; -use PaypalServerSDKLib\Models\AuthorizationStatusDetails; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\NetworkTransactionReference; -use PaypalServerSDKLib\Models\SellerProtection; +use PaypalServerSdkLib\Models\Authorization; +use PaypalServerSdkLib\Models\AuthorizationStatusDetails; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\NetworkTransactionReference; +use PaypalServerSdkLib\Models\SellerProtection; /** * Builder for model Authorization diff --git a/src/Models/Builders/AuthorizationStatusDetailsBuilder.php b/src/Models/Builders/AuthorizationStatusDetailsBuilder.php index fe96aea..e9d8651 100644 --- a/src/Models/Builders/AuthorizationStatusDetailsBuilder.php +++ b/src/Models/Builders/AuthorizationStatusDetailsBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AuthorizationStatusDetails; +use PaypalServerSdkLib\Models\AuthorizationStatusDetails; /** * Builder for model AuthorizationStatusDetails diff --git a/src/Models/Builders/AuthorizationStatusWithDetailsBuilder.php b/src/Models/Builders/AuthorizationStatusWithDetailsBuilder.php index e3a50aa..f3e4550 100644 --- a/src/Models/Builders/AuthorizationStatusWithDetailsBuilder.php +++ b/src/Models/Builders/AuthorizationStatusWithDetailsBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AuthorizationStatusDetails; -use PaypalServerSDKLib\Models\AuthorizationStatusWithDetails; +use PaypalServerSdkLib\Models\AuthorizationStatusDetails; +use PaypalServerSdkLib\Models\AuthorizationStatusWithDetails; /** * Builder for model AuthorizationStatusWithDetails diff --git a/src/Models/Builders/AuthorizationWithAdditionalDataBuilder.php b/src/Models/Builders/AuthorizationWithAdditionalDataBuilder.php index 18277ab..c40e30f 100644 --- a/src/Models/Builders/AuthorizationWithAdditionalDataBuilder.php +++ b/src/Models/Builders/AuthorizationWithAdditionalDataBuilder.php @@ -3,20 +3,20 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AuthorizationStatusDetails; -use PaypalServerSDKLib\Models\AuthorizationWithAdditionalData; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\NetworkTransactionReference; -use PaypalServerSDKLib\Models\ProcessorResponse; -use PaypalServerSDKLib\Models\SellerProtection; +use PaypalServerSdkLib\Models\AuthorizationStatusDetails; +use PaypalServerSdkLib\Models\AuthorizationWithAdditionalData; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\NetworkTransactionReference; +use PaypalServerSdkLib\Models\ProcessorResponse; +use PaypalServerSdkLib\Models\SellerProtection; /** * Builder for model AuthorizationWithAdditionalData diff --git a/src/Models/Builders/BLIKLevel0PaymentObjectBuilder.php b/src/Models/Builders/BLIKLevel0PaymentObjectBuilder.php deleted file mode 100644 index 69b0afe..0000000 --- a/src/Models/Builders/BLIKLevel0PaymentObjectBuilder.php +++ /dev/null @@ -1,48 +0,0 @@ -instance = $instance; - } - - /** - * Initializes a new bliklevel 0 payment object Builder object. - */ - public static function init(string $authCode): self - { - return new self(new BLIKLevel0PaymentObject($authCode)); - } - - /** - * Initializes a new bliklevel 0 payment object object. - */ - public function build(): BLIKLevel0PaymentObject - { - return CoreHelper::clone($this->instance); - } -} diff --git a/src/Models/Builders/BancontactPaymentObjectBuilder.php b/src/Models/Builders/BancontactPaymentObjectBuilder.php index 79163bf..72e791d 100644 --- a/src/Models/Builders/BancontactPaymentObjectBuilder.php +++ b/src/Models/Builders/BancontactPaymentObjectBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\BancontactPaymentObject; +use PaypalServerSdkLib\Models\BancontactPaymentObject; /** * Builder for model BancontactPaymentObject diff --git a/src/Models/Builders/BancontactPaymentRequestBuilder.php b/src/Models/Builders/BancontactPaymentRequestBuilder.php index 867494e..7ce0719 100644 --- a/src/Models/Builders/BancontactPaymentRequestBuilder.php +++ b/src/Models/Builders/BancontactPaymentRequestBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\BancontactPaymentRequest; -use PaypalServerSDKLib\Models\ExperienceContext; +use PaypalServerSdkLib\Models\BancontactPaymentRequest; +use PaypalServerSdkLib\Models\ExperienceContext; /** * Builder for model BancontactPaymentRequest diff --git a/src/Models/Builders/BinDetailsBuilder.php b/src/Models/Builders/BinDetailsBuilder.php index 7e86e59..8f0aa78 100644 --- a/src/Models/Builders/BinDetailsBuilder.php +++ b/src/Models/Builders/BinDetailsBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\BinDetails; +use PaypalServerSdkLib\Models\BinDetails; /** * Builder for model BinDetails diff --git a/src/Models/Builders/BLIKExperienceContextBuilder.php b/src/Models/Builders/BlikExperienceContextBuilder.php similarity index 75% rename from src/Models/Builders/BLIKExperienceContextBuilder.php rename to src/Models/Builders/BlikExperienceContextBuilder.php index e26bbd7..9b33452 100644 --- a/src/Models/Builders/BLIKExperienceContextBuilder.php +++ b/src/Models/Builders/BlikExperienceContextBuilder.php @@ -3,39 +3,39 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\BLIKExperienceContext; +use PaypalServerSdkLib\Models\BlikExperienceContext; /** - * Builder for model BLIKExperienceContext + * Builder for model BlikExperienceContext * - * @see BLIKExperienceContext + * @see BlikExperienceContext */ -class BLIKExperienceContextBuilder +class BlikExperienceContextBuilder { /** - * @var BLIKExperienceContext + * @var BlikExperienceContext */ private $instance; - private function __construct(BLIKExperienceContext $instance) + private function __construct(BlikExperienceContext $instance) { $this->instance = $instance; } /** - * Initializes a new blikexperience context Builder object. + * Initializes a new blik experience context Builder object. */ public static function init(): self { - return new self(new BLIKExperienceContext()); + return new self(new BlikExperienceContext()); } /** @@ -102,9 +102,9 @@ class BLIKExperienceContextBuilder } /** - * Initializes a new blikexperience context object. + * Initializes a new blik experience context object. */ - public function build(): BLIKExperienceContext + public function build(): BlikExperienceContext { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/BlikLevel0PaymentObjectBuilder.php b/src/Models/Builders/BlikLevel0PaymentObjectBuilder.php new file mode 100644 index 0000000..156f716 --- /dev/null +++ b/src/Models/Builders/BlikLevel0PaymentObjectBuilder.php @@ -0,0 +1,48 @@ +instance = $instance; + } + + /** + * Initializes a new blik level 0 payment object Builder object. + */ + public static function init(string $authCode): self + { + return new self(new BlikLevel0PaymentObject($authCode)); + } + + /** + * Initializes a new blik level 0 payment object object. + */ + public function build(): BlikLevel0PaymentObject + { + return CoreHelper::clone($this->instance); + } +} diff --git a/src/Models/Builders/BLIKOneClickPaymentObjectBuilder.php b/src/Models/Builders/BlikOneClickPaymentObjectBuilder.php similarity index 51% rename from src/Models/Builders/BLIKOneClickPaymentObjectBuilder.php rename to src/Models/Builders/BlikOneClickPaymentObjectBuilder.php index 8f4e12a..accfe72 100644 --- a/src/Models/Builders/BLIKOneClickPaymentObjectBuilder.php +++ b/src/Models/Builders/BlikOneClickPaymentObjectBuilder.php @@ -3,39 +3,39 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\BLIKOneClickPaymentObject; +use PaypalServerSdkLib\Models\BlikOneClickPaymentObject; /** - * Builder for model BLIKOneClickPaymentObject + * Builder for model BlikOneClickPaymentObject * - * @see BLIKOneClickPaymentObject + * @see BlikOneClickPaymentObject */ -class BLIKOneClickPaymentObjectBuilder +class BlikOneClickPaymentObjectBuilder { /** - * @var BLIKOneClickPaymentObject + * @var BlikOneClickPaymentObject */ private $instance; - private function __construct(BLIKOneClickPaymentObject $instance) + private function __construct(BlikOneClickPaymentObject $instance) { $this->instance = $instance; } /** - * Initializes a new blikone click payment object Builder object. + * Initializes a new blik one click payment object Builder object. */ public static function init(): self { - return new self(new BLIKOneClickPaymentObject()); + return new self(new BlikOneClickPaymentObject()); } /** @@ -48,9 +48,9 @@ class BLIKOneClickPaymentObjectBuilder } /** - * Initializes a new blikone click payment object object. + * Initializes a new blik one click payment object object. */ - public function build(): BLIKOneClickPaymentObject + public function build(): BlikOneClickPaymentObject { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/BLIKOneClickPaymentRequestBuilder.php b/src/Models/Builders/BlikOneClickPaymentRequestBuilder.php similarity index 62% rename from src/Models/Builders/BLIKOneClickPaymentRequestBuilder.php rename to src/Models/Builders/BlikOneClickPaymentRequestBuilder.php index 29282c1..7c26a51 100644 --- a/src/Models/Builders/BLIKOneClickPaymentRequestBuilder.php +++ b/src/Models/Builders/BlikOneClickPaymentRequestBuilder.php @@ -3,39 +3,39 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\BLIKOneClickPaymentRequest; +use PaypalServerSdkLib\Models\BlikOneClickPaymentRequest; /** - * Builder for model BLIKOneClickPaymentRequest + * Builder for model BlikOneClickPaymentRequest * - * @see BLIKOneClickPaymentRequest + * @see BlikOneClickPaymentRequest */ -class BLIKOneClickPaymentRequestBuilder +class BlikOneClickPaymentRequestBuilder { /** - * @var BLIKOneClickPaymentRequest + * @var BlikOneClickPaymentRequest */ private $instance; - private function __construct(BLIKOneClickPaymentRequest $instance) + private function __construct(BlikOneClickPaymentRequest $instance) { $this->instance = $instance; } /** - * Initializes a new blikone click payment request Builder object. + * Initializes a new blik one click payment request Builder object. */ public static function init(string $consumerReference): self { - return new self(new BLIKOneClickPaymentRequest($consumerReference)); + return new self(new BlikOneClickPaymentRequest($consumerReference)); } /** @@ -66,9 +66,9 @@ class BLIKOneClickPaymentRequestBuilder } /** - * Initializes a new blikone click payment request object. + * Initializes a new blik one click payment request object. */ - public function build(): BLIKOneClickPaymentRequest + public function build(): BlikOneClickPaymentRequest { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/BLIKPaymentObjectBuilder.php b/src/Models/Builders/BlikPaymentObjectBuilder.php similarity index 62% rename from src/Models/Builders/BLIKPaymentObjectBuilder.php rename to src/Models/Builders/BlikPaymentObjectBuilder.php index c3c4ca3..a7d28d9 100644 --- a/src/Models/Builders/BLIKPaymentObjectBuilder.php +++ b/src/Models/Builders/BlikPaymentObjectBuilder.php @@ -3,40 +3,40 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\BLIKOneClickPaymentObject; -use PaypalServerSDKLib\Models\BLIKPaymentObject; +use PaypalServerSdkLib\Models\BlikOneClickPaymentObject; +use PaypalServerSdkLib\Models\BlikPaymentObject; /** - * Builder for model BLIKPaymentObject + * Builder for model BlikPaymentObject * - * @see BLIKPaymentObject + * @see BlikPaymentObject */ -class BLIKPaymentObjectBuilder +class BlikPaymentObjectBuilder { /** - * @var BLIKPaymentObject + * @var BlikPaymentObject */ private $instance; - private function __construct(BLIKPaymentObject $instance) + private function __construct(BlikPaymentObject $instance) { $this->instance = $instance; } /** - * Initializes a new blikpayment object Builder object. + * Initializes a new blik payment object Builder object. */ public static function init(): self { - return new self(new BLIKPaymentObject()); + return new self(new BlikPaymentObject()); } /** @@ -69,16 +69,16 @@ class BLIKPaymentObjectBuilder /** * Sets one click field. */ - public function oneClick(?BLIKOneClickPaymentObject $value): self + public function oneClick(?BlikOneClickPaymentObject $value): self { $this->instance->setOneClick($value); return $this; } /** - * Initializes a new blikpayment object object. + * Initializes a new blik payment object object. */ - public function build(): BLIKPaymentObject + public function build(): BlikPaymentObject { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/BLIKPaymentRequestBuilder.php b/src/Models/Builders/BlikPaymentRequestBuilder.php similarity index 53% rename from src/Models/Builders/BLIKPaymentRequestBuilder.php rename to src/Models/Builders/BlikPaymentRequestBuilder.php index a8d7545..98c59f4 100644 --- a/src/Models/Builders/BLIKPaymentRequestBuilder.php +++ b/src/Models/Builders/BlikPaymentRequestBuilder.php @@ -3,42 +3,42 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\BLIKExperienceContext; -use PaypalServerSDKLib\Models\BLIKLevel0PaymentObject; -use PaypalServerSDKLib\Models\BLIKOneClickPaymentRequest; -use PaypalServerSDKLib\Models\BLIKPaymentRequest; +use PaypalServerSdkLib\Models\BlikExperienceContext; +use PaypalServerSdkLib\Models\BlikLevel0PaymentObject; +use PaypalServerSdkLib\Models\BlikOneClickPaymentRequest; +use PaypalServerSdkLib\Models\BlikPaymentRequest; /** - * Builder for model BLIKPaymentRequest + * Builder for model BlikPaymentRequest * - * @see BLIKPaymentRequest + * @see BlikPaymentRequest */ -class BLIKPaymentRequestBuilder +class BlikPaymentRequestBuilder { /** - * @var BLIKPaymentRequest + * @var BlikPaymentRequest */ private $instance; - private function __construct(BLIKPaymentRequest $instance) + private function __construct(BlikPaymentRequest $instance) { $this->instance = $instance; } /** - * Initializes a new blikpayment request Builder object. + * Initializes a new blik payment request Builder object. */ public static function init(string $name, string $countryCode): self { - return new self(new BLIKPaymentRequest($name, $countryCode)); + return new self(new BlikPaymentRequest($name, $countryCode)); } /** @@ -53,7 +53,7 @@ class BLIKPaymentRequestBuilder /** * Sets experience context field. */ - public function experienceContext(?BLIKExperienceContext $value): self + public function experienceContext(?BlikExperienceContext $value): self { $this->instance->setExperienceContext($value); return $this; @@ -62,7 +62,7 @@ class BLIKPaymentRequestBuilder /** * Sets level 0 field. */ - public function level0(?BLIKLevel0PaymentObject $value): self + public function level0(?BlikLevel0PaymentObject $value): self { $this->instance->setLevel0($value); return $this; @@ -71,16 +71,16 @@ class BLIKPaymentRequestBuilder /** * Sets one click field. */ - public function oneClick(?BLIKOneClickPaymentRequest $value): self + public function oneClick(?BlikOneClickPaymentRequest $value): self { $this->instance->setOneClick($value); return $this; } /** - * Initializes a new blikpayment request object. + * Initializes a new blik payment request object. */ - public function build(): BLIKPaymentRequest + public function build(): BlikPaymentRequest { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/CaptureBuilder.php b/src/Models/Builders/CaptureBuilder.php index 8bb12e1..0d638bc 100644 --- a/src/Models/Builders/CaptureBuilder.php +++ b/src/Models/Builders/CaptureBuilder.php @@ -3,21 +3,21 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Capture; -use PaypalServerSDKLib\Models\CaptureStatusDetails; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\NetworkTransactionReference; -use PaypalServerSDKLib\Models\ProcessorResponse; -use PaypalServerSDKLib\Models\SellerProtection; -use PaypalServerSDKLib\Models\SellerReceivableBreakdown; +use PaypalServerSdkLib\Models\Capture; +use PaypalServerSdkLib\Models\CaptureStatusDetails; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\NetworkTransactionReference; +use PaypalServerSdkLib\Models\ProcessorResponse; +use PaypalServerSdkLib\Models\SellerProtection; +use PaypalServerSdkLib\Models\SellerReceivableBreakdown; /** * Builder for model Capture diff --git a/src/Models/Builders/CapturePaymentInstructionBuilder.php b/src/Models/Builders/CapturePaymentInstructionBuilder.php index 5dcd68d..46a0552 100644 --- a/src/Models/Builders/CapturePaymentInstructionBuilder.php +++ b/src/Models/Builders/CapturePaymentInstructionBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CapturePaymentInstruction; +use PaypalServerSdkLib\Models\CapturePaymentInstruction; /** * Builder for model CapturePaymentInstruction diff --git a/src/Models/Builders/CaptureRequestBuilder.php b/src/Models/Builders/CaptureRequestBuilder.php index ada016b..fcb67ba 100644 --- a/src/Models/Builders/CaptureRequestBuilder.php +++ b/src/Models/Builders/CaptureRequestBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CapturePaymentInstruction; -use PaypalServerSDKLib\Models\CaptureRequest; -use PaypalServerSDKLib\Models\Money; +use PaypalServerSdkLib\Models\CapturePaymentInstruction; +use PaypalServerSdkLib\Models\CaptureRequest; +use PaypalServerSdkLib\Models\Money; /** * Builder for model CaptureRequest diff --git a/src/Models/Builders/CaptureStatusDetailsBuilder.php b/src/Models/Builders/CaptureStatusDetailsBuilder.php index a986525..e155927 100644 --- a/src/Models/Builders/CaptureStatusDetailsBuilder.php +++ b/src/Models/Builders/CaptureStatusDetailsBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CaptureStatusDetails; +use PaypalServerSdkLib\Models\CaptureStatusDetails; /** * Builder for model CaptureStatusDetails diff --git a/src/Models/Builders/CaptureStatusWithDetailsBuilder.php b/src/Models/Builders/CaptureStatusWithDetailsBuilder.php index d39b2ec..4777968 100644 --- a/src/Models/Builders/CaptureStatusWithDetailsBuilder.php +++ b/src/Models/Builders/CaptureStatusWithDetailsBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CaptureStatusDetails; -use PaypalServerSDKLib\Models\CaptureStatusWithDetails; +use PaypalServerSdkLib\Models\CaptureStatusDetails; +use PaypalServerSdkLib\Models\CaptureStatusWithDetails; /** * Builder for model CaptureStatusWithDetails diff --git a/src/Models/Builders/CapturedPaymentBuilder.php b/src/Models/Builders/CapturedPaymentBuilder.php index 1bf61d3..7f70c37 100644 --- a/src/Models/Builders/CapturedPaymentBuilder.php +++ b/src/Models/Builders/CapturedPaymentBuilder.php @@ -3,23 +3,23 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CapturedPayment; -use PaypalServerSDKLib\Models\CaptureStatusDetails; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\NetworkTransactionReference; -use PaypalServerSDKLib\Models\Payee; -use PaypalServerSDKLib\Models\PaymentSupplementaryData; -use PaypalServerSDKLib\Models\ProcessorResponse; -use PaypalServerSDKLib\Models\SellerProtection; -use PaypalServerSDKLib\Models\SellerReceivableBreakdown; +use PaypalServerSdkLib\Models\CapturedPayment; +use PaypalServerSdkLib\Models\CaptureStatusDetails; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\NetworkTransactionReference; +use PaypalServerSdkLib\Models\Payee; +use PaypalServerSdkLib\Models\PaymentSupplementaryData; +use PaypalServerSdkLib\Models\ProcessorResponse; +use PaypalServerSdkLib\Models\SellerProtection; +use PaypalServerSdkLib\Models\SellerReceivableBreakdown; /** * Builder for model CapturedPayment diff --git a/src/Models/Builders/CardAttributesBuilder.php b/src/Models/Builders/CardAttributesBuilder.php index dad7cb6..cad06fe 100644 --- a/src/Models/Builders/CardAttributesBuilder.php +++ b/src/Models/Builders/CardAttributesBuilder.php @@ -3,18 +3,18 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardAttributes; -use PaypalServerSDKLib\Models\CardCustomerInformation; -use PaypalServerSDKLib\Models\CardVerification; -use PaypalServerSDKLib\Models\VaultInstructionBase; +use PaypalServerSdkLib\Models\CardAttributes; +use PaypalServerSdkLib\Models\CardCustomerInformation; +use PaypalServerSdkLib\Models\CardVerification; +use PaypalServerSdkLib\Models\VaultInstructionBase; /** * Builder for model CardAttributes diff --git a/src/Models/Builders/CardAttributesResponseBuilder.php b/src/Models/Builders/CardAttributesResponseBuilder.php index aba257f..1b02067 100644 --- a/src/Models/Builders/CardAttributesResponseBuilder.php +++ b/src/Models/Builders/CardAttributesResponseBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardAttributesResponse; -use PaypalServerSDKLib\Models\CardVaultResponse; +use PaypalServerSdkLib\Models\CardAttributesResponse; +use PaypalServerSdkLib\Models\CardVaultResponse; /** * Builder for model CardAttributesResponse diff --git a/src/Models/Builders/CardAuthenticationResponseBuilder.php b/src/Models/Builders/CardAuthenticationResponseBuilder.php index 7d7e647..1ce45ad 100644 --- a/src/Models/Builders/CardAuthenticationResponseBuilder.php +++ b/src/Models/Builders/CardAuthenticationResponseBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardAuthenticationResponse; -use PaypalServerSDKLib\Models\ThreeDSecureAuthenticationResponse; +use PaypalServerSdkLib\Models\CardAuthenticationResponse; +use PaypalServerSdkLib\Models\ThreeDSecureAuthenticationResponse; /** * Builder for model CardAuthenticationResponse diff --git a/src/Models/Builders/CardCustomerInformationBuilder.php b/src/Models/Builders/CardCustomerInformationBuilder.php index 8d798f3..525105c 100644 --- a/src/Models/Builders/CardCustomerInformationBuilder.php +++ b/src/Models/Builders/CardCustomerInformationBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardCustomerInformation; -use PaypalServerSDKLib\Models\PhoneWithType; +use PaypalServerSdkLib\Models\CardCustomerInformation; +use PaypalServerSdkLib\Models\PhoneWithType; /** * Builder for model CardCustomerInformation diff --git a/src/Models/Builders/CardExperienceContextBuilder.php b/src/Models/Builders/CardExperienceContextBuilder.php index f173642..a206c25 100644 --- a/src/Models/Builders/CardExperienceContextBuilder.php +++ b/src/Models/Builders/CardExperienceContextBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardExperienceContext; +use PaypalServerSdkLib\Models\CardExperienceContext; /** * Builder for model CardExperienceContext diff --git a/src/Models/Builders/CardFromRequestBuilder.php b/src/Models/Builders/CardFromRequestBuilder.php index 3a9a582..ab89cec 100644 --- a/src/Models/Builders/CardFromRequestBuilder.php +++ b/src/Models/Builders/CardFromRequestBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardFromRequest; +use PaypalServerSdkLib\Models\CardFromRequest; /** * Builder for model CardFromRequest diff --git a/src/Models/Builders/CardPaymentTokenBuilder.php b/src/Models/Builders/CardPaymentTokenBuilder.php index 1ffc748..200c10f 100644 --- a/src/Models/Builders/CardPaymentTokenBuilder.php +++ b/src/Models/Builders/CardPaymentTokenBuilder.php @@ -3,20 +3,20 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AddressDetails; -use PaypalServerSDKLib\Models\BinDetails; -use PaypalServerSDKLib\Models\CardAuthenticationResponse; -use PaypalServerSDKLib\Models\CardPaymentToken; -use PaypalServerSDKLib\Models\CardVerificationDetails; -use PaypalServerSDKLib\Models\NetworkTransactionReferenceEntity; +use PaypalServerSdkLib\Models\AddressDetails; +use PaypalServerSdkLib\Models\BinDetails; +use PaypalServerSdkLib\Models\CardAuthenticationResponse; +use PaypalServerSdkLib\Models\CardPaymentToken; +use PaypalServerSdkLib\Models\CardVerificationDetails; +use PaypalServerSdkLib\Models\NetworkTransactionReferenceEntity; /** * Builder for model CardPaymentToken diff --git a/src/Models/Builders/CardRequestBuilder.php b/src/Models/Builders/CardRequestBuilder.php index aa41ed5..5790990 100644 --- a/src/Models/Builders/CardRequestBuilder.php +++ b/src/Models/Builders/CardRequestBuilder.php @@ -3,20 +3,20 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\CardAttributes; -use PaypalServerSDKLib\Models\CardExperienceContext; -use PaypalServerSDKLib\Models\CardRequest; -use PaypalServerSDKLib\Models\CardStoredCredential; -use PaypalServerSDKLib\Models\NetworkToken; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\CardAttributes; +use PaypalServerSdkLib\Models\CardExperienceContext; +use PaypalServerSdkLib\Models\CardRequest; +use PaypalServerSdkLib\Models\CardStoredCredential; +use PaypalServerSdkLib\Models\NetworkToken; /** * Builder for model CardRequest diff --git a/src/Models/Builders/CardResponseBuilder.php b/src/Models/Builders/CardResponseBuilder.php index 0a4821e..28f5f0c 100644 --- a/src/Models/Builders/CardResponseBuilder.php +++ b/src/Models/Builders/CardResponseBuilder.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AuthenticationResponse; -use PaypalServerSDKLib\Models\BinDetails; -use PaypalServerSDKLib\Models\CardAttributesResponse; -use PaypalServerSDKLib\Models\CardFromRequest; -use PaypalServerSDKLib\Models\CardResponse; +use PaypalServerSdkLib\Models\AuthenticationResponse; +use PaypalServerSdkLib\Models\BinDetails; +use PaypalServerSdkLib\Models\CardAttributesResponse; +use PaypalServerSdkLib\Models\CardFromRequest; +use PaypalServerSdkLib\Models\CardResponse; /** * Builder for model CardResponse diff --git a/src/Models/Builders/CardResponseEntityBuilder.php b/src/Models/Builders/CardResponseEntityBuilder.php index 1cef6e0..a0e8120 100644 --- a/src/Models/Builders/CardResponseEntityBuilder.php +++ b/src/Models/Builders/CardResponseEntityBuilder.php @@ -3,20 +3,20 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AddressDetails; -use PaypalServerSDKLib\Models\BinDetails; -use PaypalServerSDKLib\Models\CardAuthenticationResponse; -use PaypalServerSDKLib\Models\CardResponseEntity; -use PaypalServerSDKLib\Models\CardVerificationDetails; -use PaypalServerSDKLib\Models\NetworkTransactionReferenceEntity; +use PaypalServerSdkLib\Models\AddressDetails; +use PaypalServerSdkLib\Models\BinDetails; +use PaypalServerSdkLib\Models\CardAuthenticationResponse; +use PaypalServerSdkLib\Models\CardResponseEntity; +use PaypalServerSdkLib\Models\CardVerificationDetails; +use PaypalServerSdkLib\Models\NetworkTransactionReferenceEntity; /** * Builder for model CardResponseEntity diff --git a/src/Models/Builders/CardStoredCredentialBuilder.php b/src/Models/Builders/CardStoredCredentialBuilder.php index b4f1dc6..d4fab5e 100644 --- a/src/Models/Builders/CardStoredCredentialBuilder.php +++ b/src/Models/Builders/CardStoredCredentialBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardStoredCredential; -use PaypalServerSDKLib\Models\NetworkTransactionReference; +use PaypalServerSdkLib\Models\CardStoredCredential; +use PaypalServerSdkLib\Models\NetworkTransactionReference; /** * Builder for model CardStoredCredential diff --git a/src/Models/Builders/CardSupplementaryDataBuilder.php b/src/Models/Builders/CardSupplementaryDataBuilder.php index 905d14a..87f63e5 100644 --- a/src/Models/Builders/CardSupplementaryDataBuilder.php +++ b/src/Models/Builders/CardSupplementaryDataBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardSupplementaryData; -use PaypalServerSDKLib\Models\Level2CardProcessingData; -use PaypalServerSDKLib\Models\Level3CardProcessingData; +use PaypalServerSdkLib\Models\CardSupplementaryData; +use PaypalServerSdkLib\Models\Level2CardProcessingData; +use PaypalServerSdkLib\Models\Level3CardProcessingData; /** * Builder for model CardSupplementaryData diff --git a/src/Models/Builders/CardVaultResponseBuilder.php b/src/Models/Builders/CardVaultResponseBuilder.php index bf1078d..7725e35 100644 --- a/src/Models/Builders/CardVaultResponseBuilder.php +++ b/src/Models/Builders/CardVaultResponseBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardCustomerInformation; -use PaypalServerSDKLib\Models\CardVaultResponse; +use PaypalServerSdkLib\Models\CardCustomerInformation; +use PaypalServerSdkLib\Models\CardVaultResponse; /** * Builder for model CardVaultResponse diff --git a/src/Models/Builders/CardVerificationBuilder.php b/src/Models/Builders/CardVerificationBuilder.php index 7c7d5f5..77a973d 100644 --- a/src/Models/Builders/CardVerificationBuilder.php +++ b/src/Models/Builders/CardVerificationBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardVerification; +use PaypalServerSdkLib\Models\CardVerification; /** * Builder for model CardVerification diff --git a/src/Models/Builders/CardVerificationDetailsBuilder.php b/src/Models/Builders/CardVerificationDetailsBuilder.php index 30c2217..6c663bb 100644 --- a/src/Models/Builders/CardVerificationDetailsBuilder.php +++ b/src/Models/Builders/CardVerificationDetailsBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardVerificationDetails; -use PaypalServerSDKLib\Models\CardVerificationProcessorResponse; -use PaypalServerSDKLib\Models\Money; +use PaypalServerSdkLib\Models\CardVerificationDetails; +use PaypalServerSdkLib\Models\CardVerificationProcessorResponse; +use PaypalServerSdkLib\Models\Money; /** * Builder for model CardVerificationDetails diff --git a/src/Models/Builders/CardVerificationProcessorResponseBuilder.php b/src/Models/Builders/CardVerificationProcessorResponseBuilder.php index 0e2a64d..c277341 100644 --- a/src/Models/Builders/CardVerificationProcessorResponseBuilder.php +++ b/src/Models/Builders/CardVerificationProcessorResponseBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardVerificationProcessorResponse; +use PaypalServerSdkLib\Models\CardVerificationProcessorResponse; /** * Builder for model CardVerificationProcessorResponse diff --git a/src/Models/Builders/CobrandedCardBuilder.php b/src/Models/Builders/CobrandedCardBuilder.php index 6998e43..15447eb 100644 --- a/src/Models/Builders/CobrandedCardBuilder.php +++ b/src/Models/Builders/CobrandedCardBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CobrandedCard; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\PayeeBase; +use PaypalServerSdkLib\Models\CobrandedCard; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\PayeeBase; /** * Builder for model CobrandedCard diff --git a/src/Models/Builders/ConfirmOrderRequestBuilder.php b/src/Models/Builders/ConfirmOrderRequestBuilder.php index a1d7e02..c906952 100644 --- a/src/Models/Builders/ConfirmOrderRequestBuilder.php +++ b/src/Models/Builders/ConfirmOrderRequestBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ConfirmOrderRequest; -use PaypalServerSDKLib\Models\OrderConfirmApplicationContext; -use PaypalServerSDKLib\Models\PaymentSource; +use PaypalServerSdkLib\Models\ConfirmOrderRequest; +use PaypalServerSdkLib\Models\OrderConfirmApplicationContext; +use PaypalServerSdkLib\Models\PaymentSource; /** * Builder for model ConfirmOrderRequest diff --git a/src/Models/Builders/CustomerInformationBuilder.php b/src/Models/Builders/CustomerInformationBuilder.php index 56d4c00..6f097c9 100644 --- a/src/Models/Builders/CustomerInformationBuilder.php +++ b/src/Models/Builders/CustomerInformationBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CustomerInformation; -use PaypalServerSDKLib\Models\PhoneWithType; +use PaypalServerSdkLib\Models\CustomerInformation; +use PaypalServerSdkLib\Models\PhoneWithType; /** * Builder for model CustomerInformation diff --git a/src/Models/Builders/CustomerRequestBuilder.php b/src/Models/Builders/CustomerRequestBuilder.php index 97f8d2f..b57e18e 100644 --- a/src/Models/Builders/CustomerRequestBuilder.php +++ b/src/Models/Builders/CustomerRequestBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CustomerRequest; +use PaypalServerSdkLib\Models\CustomerRequest; /** * Builder for model CustomerRequest diff --git a/src/Models/Builders/CustomerVaultPaymentTokensResponseBuilder.php b/src/Models/Builders/CustomerVaultPaymentTokensResponseBuilder.php index 2aa0e79..3fadc75 100644 --- a/src/Models/Builders/CustomerVaultPaymentTokensResponseBuilder.php +++ b/src/Models/Builders/CustomerVaultPaymentTokensResponseBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CustomerRequest; -use PaypalServerSDKLib\Models\CustomerVaultPaymentTokensResponse; +use PaypalServerSdkLib\Models\CustomerRequest; +use PaypalServerSdkLib\Models\CustomerVaultPaymentTokensResponse; /** * Builder for model CustomerVaultPaymentTokensResponse diff --git a/src/Models/Builders/EPSPaymentObjectBuilder.php b/src/Models/Builders/EpsPaymentObjectBuilder.php similarity index 64% rename from src/Models/Builders/EPSPaymentObjectBuilder.php rename to src/Models/Builders/EpsPaymentObjectBuilder.php index f184ec2..68b3886 100644 --- a/src/Models/Builders/EPSPaymentObjectBuilder.php +++ b/src/Models/Builders/EpsPaymentObjectBuilder.php @@ -3,39 +3,39 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\EPSPaymentObject; +use PaypalServerSdkLib\Models\EpsPaymentObject; /** - * Builder for model EPSPaymentObject + * Builder for model EpsPaymentObject * - * @see EPSPaymentObject + * @see EpsPaymentObject */ -class EPSPaymentObjectBuilder +class EpsPaymentObjectBuilder { /** - * @var EPSPaymentObject + * @var EpsPaymentObject */ private $instance; - private function __construct(EPSPaymentObject $instance) + private function __construct(EpsPaymentObject $instance) { $this->instance = $instance; } /** - * Initializes a new epspayment object Builder object. + * Initializes a new eps payment object Builder object. */ public static function init(): self { - return new self(new EPSPaymentObject()); + return new self(new EpsPaymentObject()); } /** @@ -66,9 +66,9 @@ class EPSPaymentObjectBuilder } /** - * Initializes a new epspayment object object. + * Initializes a new eps payment object object. */ - public function build(): EPSPaymentObject + public function build(): EpsPaymentObject { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/EPSPaymentRequestBuilder.php b/src/Models/Builders/EpsPaymentRequestBuilder.php similarity index 53% rename from src/Models/Builders/EPSPaymentRequestBuilder.php rename to src/Models/Builders/EpsPaymentRequestBuilder.php index 377130f..1f49b81 100644 --- a/src/Models/Builders/EPSPaymentRequestBuilder.php +++ b/src/Models/Builders/EpsPaymentRequestBuilder.php @@ -3,40 +3,40 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\EPSPaymentRequest; -use PaypalServerSDKLib\Models\ExperienceContext; +use PaypalServerSdkLib\Models\EpsPaymentRequest; +use PaypalServerSdkLib\Models\ExperienceContext; /** - * Builder for model EPSPaymentRequest + * Builder for model EpsPaymentRequest * - * @see EPSPaymentRequest + * @see EpsPaymentRequest */ -class EPSPaymentRequestBuilder +class EpsPaymentRequestBuilder { /** - * @var EPSPaymentRequest + * @var EpsPaymentRequest */ private $instance; - private function __construct(EPSPaymentRequest $instance) + private function __construct(EpsPaymentRequest $instance) { $this->instance = $instance; } /** - * Initializes a new epspayment request Builder object. + * Initializes a new eps payment request Builder object. */ public static function init(string $name, string $countryCode): self { - return new self(new EPSPaymentRequest($name, $countryCode)); + return new self(new EpsPaymentRequest($name, $countryCode)); } /** @@ -49,9 +49,9 @@ class EPSPaymentRequestBuilder } /** - * Initializes a new epspayment request object. + * Initializes a new eps payment request object. */ - public function build(): EPSPaymentRequest + public function build(): EpsPaymentRequest { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/ErrorDetailsBuilder.php b/src/Models/Builders/ErrorDetailsBuilder.php index aab9ea5..762d6e5 100644 --- a/src/Models/Builders/ErrorDetailsBuilder.php +++ b/src/Models/Builders/ErrorDetailsBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ErrorDetails; +use PaypalServerSdkLib\Models\ErrorDetails; /** * Builder for model ErrorDetails diff --git a/src/Models/Builders/ExchangeRateBuilder.php b/src/Models/Builders/ExchangeRateBuilder.php index 2322f9d..21d5c12 100644 --- a/src/Models/Builders/ExchangeRateBuilder.php +++ b/src/Models/Builders/ExchangeRateBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ExchangeRate; +use PaypalServerSdkLib\Models\ExchangeRate; /** * Builder for model ExchangeRate diff --git a/src/Models/Builders/ExperienceContextBuilder.php b/src/Models/Builders/ExperienceContextBuilder.php index 05430ef..cc07447 100644 --- a/src/Models/Builders/ExperienceContextBuilder.php +++ b/src/Models/Builders/ExperienceContextBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ExperienceContext; +use PaypalServerSdkLib\Models\ExperienceContext; /** * Builder for model ExperienceContext diff --git a/src/Models/Builders/GiropayPaymentObjectBuilder.php b/src/Models/Builders/GiropayPaymentObjectBuilder.php index ad4689d..af31c35 100644 --- a/src/Models/Builders/GiropayPaymentObjectBuilder.php +++ b/src/Models/Builders/GiropayPaymentObjectBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\GiropayPaymentObject; +use PaypalServerSdkLib\Models\GiropayPaymentObject; /** * Builder for model GiropayPaymentObject diff --git a/src/Models/Builders/GiropayPaymentRequestBuilder.php b/src/Models/Builders/GiropayPaymentRequestBuilder.php index 966bc77..596fcfa 100644 --- a/src/Models/Builders/GiropayPaymentRequestBuilder.php +++ b/src/Models/Builders/GiropayPaymentRequestBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ExperienceContext; -use PaypalServerSDKLib\Models\GiropayPaymentRequest; +use PaypalServerSdkLib\Models\ExperienceContext; +use PaypalServerSdkLib\Models\GiropayPaymentRequest; /** * Builder for model GiropayPaymentRequest diff --git a/src/Models/Builders/GooglePayCardAttributesBuilder.php b/src/Models/Builders/GooglePayCardAttributesBuilder.php index 7c535d2..71d6532 100644 --- a/src/Models/Builders/GooglePayCardAttributesBuilder.php +++ b/src/Models/Builders/GooglePayCardAttributesBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardVerification; -use PaypalServerSDKLib\Models\GooglePayCardAttributes; +use PaypalServerSdkLib\Models\CardVerification; +use PaypalServerSdkLib\Models\GooglePayCardAttributes; /** * Builder for model GooglePayCardAttributes diff --git a/src/Models/Builders/GooglePayCardResponseBuilder.php b/src/Models/Builders/GooglePayCardResponseBuilder.php index 420d2f1..7a730b1 100644 --- a/src/Models/Builders/GooglePayCardResponseBuilder.php +++ b/src/Models/Builders/GooglePayCardResponseBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\AuthenticationResponse; -use PaypalServerSDKLib\Models\GooglePayCardResponse; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\AuthenticationResponse; +use PaypalServerSdkLib\Models\GooglePayCardResponse; /** * Builder for model GooglePayCardResponse diff --git a/src/Models/Builders/GooglePayDecryptedTokenDataBuilder.php b/src/Models/Builders/GooglePayDecryptedTokenDataBuilder.php index 4fc35ea..974223e 100644 --- a/src/Models/Builders/GooglePayDecryptedTokenDataBuilder.php +++ b/src/Models/Builders/GooglePayDecryptedTokenDataBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\GooglePayDecryptedTokenData; +use PaypalServerSdkLib\Models\GooglePayDecryptedTokenData; /** * Builder for model GooglePayDecryptedTokenData diff --git a/src/Models/Builders/GooglePayRequestBuilder.php b/src/Models/Builders/GooglePayRequestBuilder.php index 47b7995..01604de 100644 --- a/src/Models/Builders/GooglePayRequestBuilder.php +++ b/src/Models/Builders/GooglePayRequestBuilder.php @@ -3,20 +3,20 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AssuranceDetails; -use PaypalServerSDKLib\Models\GooglePayCardAttributes; -use PaypalServerSDKLib\Models\GooglePayDecryptedTokenData; -use PaypalServerSDKLib\Models\GooglePayRequest; -use PaypalServerSDKLib\Models\GooglePayRequestCard; -use PaypalServerSDKLib\Models\PhoneNumberWithCountryCode; +use PaypalServerSdkLib\Models\AssuranceDetails; +use PaypalServerSdkLib\Models\GooglePayCardAttributes; +use PaypalServerSdkLib\Models\GooglePayDecryptedTokenData; +use PaypalServerSdkLib\Models\GooglePayRequest; +use PaypalServerSdkLib\Models\GooglePayRequestCard; +use PaypalServerSdkLib\Models\PhoneNumberWithCountryCode; /** * Builder for model GooglePayRequest diff --git a/src/Models/Builders/GooglePayRequestCardBuilder.php b/src/Models/Builders/GooglePayRequestCardBuilder.php index 26b9dcd..2b3d155 100644 --- a/src/Models/Builders/GooglePayRequestCardBuilder.php +++ b/src/Models/Builders/GooglePayRequestCardBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\GooglePayRequestCard; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\GooglePayRequestCard; /** * Builder for model GooglePayRequestCard diff --git a/src/Models/Builders/GooglePayWalletResponseBuilder.php b/src/Models/Builders/GooglePayWalletResponseBuilder.php index 3c0dcfa..506cdd6 100644 --- a/src/Models/Builders/GooglePayWalletResponseBuilder.php +++ b/src/Models/Builders/GooglePayWalletResponseBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\GooglePayCardResponse; -use PaypalServerSDKLib\Models\GooglePayWalletResponse; -use PaypalServerSDKLib\Models\PhoneNumberWithCountryCode; +use PaypalServerSdkLib\Models\GooglePayCardResponse; +use PaypalServerSdkLib\Models\GooglePayWalletResponse; +use PaypalServerSdkLib\Models\PhoneNumberWithCountryCode; /** * Builder for model GooglePayWalletResponse diff --git a/src/Models/Builders/IDEALPaymentObjectBuilder.php b/src/Models/Builders/IdealPaymentObjectBuilder.php similarity index 67% rename from src/Models/Builders/IDEALPaymentObjectBuilder.php rename to src/Models/Builders/IdealPaymentObjectBuilder.php index d75c2bf..1e16a79 100644 --- a/src/Models/Builders/IDEALPaymentObjectBuilder.php +++ b/src/Models/Builders/IdealPaymentObjectBuilder.php @@ -3,39 +3,39 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\IDEALPaymentObject; +use PaypalServerSdkLib\Models\IdealPaymentObject; /** - * Builder for model IDEALPaymentObject + * Builder for model IdealPaymentObject * - * @see IDEALPaymentObject + * @see IdealPaymentObject */ -class IDEALPaymentObjectBuilder +class IdealPaymentObjectBuilder { /** - * @var IDEALPaymentObject + * @var IdealPaymentObject */ private $instance; - private function __construct(IDEALPaymentObject $instance) + private function __construct(IdealPaymentObject $instance) { $this->instance = $instance; } /** - * Initializes a new idealpayment object Builder object. + * Initializes a new ideal payment object Builder object. */ public static function init(): self { - return new self(new IDEALPaymentObject()); + return new self(new IdealPaymentObject()); } /** @@ -75,9 +75,9 @@ class IDEALPaymentObjectBuilder } /** - * Initializes a new idealpayment object object. + * Initializes a new ideal payment object object. */ - public function build(): IDEALPaymentObject + public function build(): IdealPaymentObject { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/IDEALPaymentRequestBuilder.php b/src/Models/Builders/IdealPaymentRequestBuilder.php similarity index 58% rename from src/Models/Builders/IDEALPaymentRequestBuilder.php rename to src/Models/Builders/IdealPaymentRequestBuilder.php index cd0b023..e4b74ed 100644 --- a/src/Models/Builders/IDEALPaymentRequestBuilder.php +++ b/src/Models/Builders/IdealPaymentRequestBuilder.php @@ -3,40 +3,40 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ExperienceContext; -use PaypalServerSDKLib\Models\IDEALPaymentRequest; +use PaypalServerSdkLib\Models\ExperienceContext; +use PaypalServerSdkLib\Models\IdealPaymentRequest; /** - * Builder for model IDEALPaymentRequest + * Builder for model IdealPaymentRequest * - * @see IDEALPaymentRequest + * @see IdealPaymentRequest */ -class IDEALPaymentRequestBuilder +class IdealPaymentRequestBuilder { /** - * @var IDEALPaymentRequest + * @var IdealPaymentRequest */ private $instance; - private function __construct(IDEALPaymentRequest $instance) + private function __construct(IdealPaymentRequest $instance) { $this->instance = $instance; } /** - * Initializes a new idealpayment request Builder object. + * Initializes a new ideal payment request Builder object. */ public static function init(string $name, string $countryCode): self { - return new self(new IDEALPaymentRequest($name, $countryCode)); + return new self(new IdealPaymentRequest($name, $countryCode)); } /** @@ -58,9 +58,9 @@ class IDEALPaymentRequestBuilder } /** - * Initializes a new idealpayment request object. + * Initializes a new ideal payment request object. */ - public function build(): IDEALPaymentRequest + public function build(): IdealPaymentRequest { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/ItemBuilder.php b/src/Models/Builders/ItemBuilder.php index 7ed1466..e1214ce 100644 --- a/src/Models/Builders/ItemBuilder.php +++ b/src/Models/Builders/ItemBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Item; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\UniversalProductCode; +use PaypalServerSdkLib\Models\Item; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\UniversalProductCode; /** * Builder for model Item diff --git a/src/Models/Builders/Level2CardProcessingDataBuilder.php b/src/Models/Builders/Level2CardProcessingDataBuilder.php index 8c43a10..b10bc93 100644 --- a/src/Models/Builders/Level2CardProcessingDataBuilder.php +++ b/src/Models/Builders/Level2CardProcessingDataBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Level2CardProcessingData; -use PaypalServerSDKLib\Models\Money; +use PaypalServerSdkLib\Models\Level2CardProcessingData; +use PaypalServerSdkLib\Models\Money; /** * Builder for model Level2CardProcessingData diff --git a/src/Models/Builders/Level3CardProcessingDataBuilder.php b/src/Models/Builders/Level3CardProcessingDataBuilder.php index 3fdb55b..d36cd17 100644 --- a/src/Models/Builders/Level3CardProcessingDataBuilder.php +++ b/src/Models/Builders/Level3CardProcessingDataBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\Level3CardProcessingData; -use PaypalServerSDKLib\Models\Money; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\Level3CardProcessingData; +use PaypalServerSdkLib\Models\Money; /** * Builder for model Level3CardProcessingData diff --git a/src/Models/Builders/LineItemBuilder.php b/src/Models/Builders/LineItemBuilder.php index 82ab5c2..6a4738e 100644 --- a/src/Models/Builders/LineItemBuilder.php +++ b/src/Models/Builders/LineItemBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\LineItem; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\UniversalProductCode; +use PaypalServerSdkLib\Models\LineItem; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\UniversalProductCode; /** * Builder for model LineItem diff --git a/src/Models/Builders/LinkDescriptionBuilder.php b/src/Models/Builders/LinkDescriptionBuilder.php index e578d0b..f93e230 100644 --- a/src/Models/Builders/LinkDescriptionBuilder.php +++ b/src/Models/Builders/LinkDescriptionBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\LinkDescription; +use PaypalServerSdkLib\Models\LinkDescription; /** * Builder for model LinkDescription diff --git a/src/Models/Builders/MoneyBuilder.php b/src/Models/Builders/MoneyBuilder.php index d54ad08..42e40c2 100644 --- a/src/Models/Builders/MoneyBuilder.php +++ b/src/Models/Builders/MoneyBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Money; +use PaypalServerSdkLib\Models\Money; /** * Builder for model Money diff --git a/src/Models/Builders/MyBankPaymentObjectBuilder.php b/src/Models/Builders/MybankPaymentObjectBuilder.php similarity index 67% rename from src/Models/Builders/MyBankPaymentObjectBuilder.php rename to src/Models/Builders/MybankPaymentObjectBuilder.php index 81e72a7..6e180a6 100644 --- a/src/Models/Builders/MyBankPaymentObjectBuilder.php +++ b/src/Models/Builders/MybankPaymentObjectBuilder.php @@ -3,39 +3,39 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\MyBankPaymentObject; +use PaypalServerSdkLib\Models\MybankPaymentObject; /** - * Builder for model MyBankPaymentObject + * Builder for model MybankPaymentObject * - * @see MyBankPaymentObject + * @see MybankPaymentObject */ -class MyBankPaymentObjectBuilder +class MybankPaymentObjectBuilder { /** - * @var MyBankPaymentObject + * @var MybankPaymentObject */ private $instance; - private function __construct(MyBankPaymentObject $instance) + private function __construct(MybankPaymentObject $instance) { $this->instance = $instance; } /** - * Initializes a new my bank payment object Builder object. + * Initializes a new mybank payment object Builder object. */ public static function init(): self { - return new self(new MyBankPaymentObject()); + return new self(new MybankPaymentObject()); } /** @@ -75,9 +75,9 @@ class MyBankPaymentObjectBuilder } /** - * Initializes a new my bank payment object object. + * Initializes a new mybank payment object object. */ - public function build(): MyBankPaymentObject + public function build(): MybankPaymentObject { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/MyBankPaymentRequestBuilder.php b/src/Models/Builders/MybankPaymentRequestBuilder.php similarity index 52% rename from src/Models/Builders/MyBankPaymentRequestBuilder.php rename to src/Models/Builders/MybankPaymentRequestBuilder.php index ad08082..0602bc4 100644 --- a/src/Models/Builders/MyBankPaymentRequestBuilder.php +++ b/src/Models/Builders/MybankPaymentRequestBuilder.php @@ -3,40 +3,40 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ExperienceContext; -use PaypalServerSDKLib\Models\MyBankPaymentRequest; +use PaypalServerSdkLib\Models\ExperienceContext; +use PaypalServerSdkLib\Models\MybankPaymentRequest; /** - * Builder for model MyBankPaymentRequest + * Builder for model MybankPaymentRequest * - * @see MyBankPaymentRequest + * @see MybankPaymentRequest */ -class MyBankPaymentRequestBuilder +class MybankPaymentRequestBuilder { /** - * @var MyBankPaymentRequest + * @var MybankPaymentRequest */ private $instance; - private function __construct(MyBankPaymentRequest $instance) + private function __construct(MybankPaymentRequest $instance) { $this->instance = $instance; } /** - * Initializes a new my bank payment request Builder object. + * Initializes a new mybank payment request Builder object. */ public static function init(string $name, string $countryCode): self { - return new self(new MyBankPaymentRequest($name, $countryCode)); + return new self(new MybankPaymentRequest($name, $countryCode)); } /** @@ -49,9 +49,9 @@ class MyBankPaymentRequestBuilder } /** - * Initializes a new my bank payment request object. + * Initializes a new mybank payment request object. */ - public function build(): MyBankPaymentRequest + public function build(): MybankPaymentRequest { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/NameBuilder.php b/src/Models/Builders/NameBuilder.php index b45100a..c10ed2b 100644 --- a/src/Models/Builders/NameBuilder.php +++ b/src/Models/Builders/NameBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Name; +use PaypalServerSdkLib\Models\Name; /** * Builder for model Name diff --git a/src/Models/Builders/NetAmountBreakdownItemBuilder.php b/src/Models/Builders/NetAmountBreakdownItemBuilder.php index 23a8655..88b4be2 100644 --- a/src/Models/Builders/NetAmountBreakdownItemBuilder.php +++ b/src/Models/Builders/NetAmountBreakdownItemBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ExchangeRate; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\NetAmountBreakdownItem; +use PaypalServerSdkLib\Models\ExchangeRate; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\NetAmountBreakdownItem; /** * Builder for model NetAmountBreakdownItem diff --git a/src/Models/Builders/NetworkTokenBuilder.php b/src/Models/Builders/NetworkTokenBuilder.php index d117001..813c091 100644 --- a/src/Models/Builders/NetworkTokenBuilder.php +++ b/src/Models/Builders/NetworkTokenBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\NetworkToken; +use PaypalServerSdkLib\Models\NetworkToken; /** * Builder for model NetworkToken diff --git a/src/Models/Builders/NetworkTransactionReferenceBuilder.php b/src/Models/Builders/NetworkTransactionReferenceBuilder.php index f3add10..675542b 100644 --- a/src/Models/Builders/NetworkTransactionReferenceBuilder.php +++ b/src/Models/Builders/NetworkTransactionReferenceBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\NetworkTransactionReference; +use PaypalServerSdkLib\Models\NetworkTransactionReference; /** * Builder for model NetworkTransactionReference diff --git a/src/Models/Builders/NetworkTransactionReferenceEntityBuilder.php b/src/Models/Builders/NetworkTransactionReferenceEntityBuilder.php index 554c8a5..d801976 100644 --- a/src/Models/Builders/NetworkTransactionReferenceEntityBuilder.php +++ b/src/Models/Builders/NetworkTransactionReferenceEntityBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\NetworkTransactionReferenceEntity; +use PaypalServerSdkLib\Models\NetworkTransactionReferenceEntity; /** * Builder for model NetworkTransactionReferenceEntity diff --git a/src/Models/Builders/OAuthTokenBuilder.php b/src/Models/Builders/OAuthTokenBuilder.php index f197b4a..e09070c 100644 --- a/src/Models/Builders/OAuthTokenBuilder.php +++ b/src/Models/Builders/OAuthTokenBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OAuthToken; +use PaypalServerSdkLib\Models\OAuthToken; /** * Builder for model OAuthToken diff --git a/src/Models/Builders/OrderApplicationContextBuilder.php b/src/Models/Builders/OrderApplicationContextBuilder.php index e5a397f..31e0181 100644 --- a/src/Models/Builders/OrderApplicationContextBuilder.php +++ b/src/Models/Builders/OrderApplicationContextBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OrderApplicationContext; -use PaypalServerSDKLib\Models\PaymentMethodPreference; -use PaypalServerSDKLib\Models\StoredPaymentSource; +use PaypalServerSdkLib\Models\OrderApplicationContext; +use PaypalServerSdkLib\Models\PaymentMethodPreference; +use PaypalServerSdkLib\Models\StoredPaymentSource; /** * Builder for model OrderApplicationContext diff --git a/src/Models/Builders/OrderAuthorizeRequestBuilder.php b/src/Models/Builders/OrderAuthorizeRequestBuilder.php index fa4ed6b..38ad3b8 100644 --- a/src/Models/Builders/OrderAuthorizeRequestBuilder.php +++ b/src/Models/Builders/OrderAuthorizeRequestBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OrderAuthorizeRequest; -use PaypalServerSDKLib\Models\OrderAuthorizeRequestPaymentSource; +use PaypalServerSdkLib\Models\OrderAuthorizeRequest; +use PaypalServerSdkLib\Models\OrderAuthorizeRequestPaymentSource; /** * Builder for model OrderAuthorizeRequest diff --git a/src/Models/Builders/OrderAuthorizeRequestPaymentSourceBuilder.php b/src/Models/Builders/OrderAuthorizeRequestPaymentSourceBuilder.php index b56669b..f79ec3d 100644 --- a/src/Models/Builders/OrderAuthorizeRequestPaymentSourceBuilder.php +++ b/src/Models/Builders/OrderAuthorizeRequestPaymentSourceBuilder.php @@ -3,21 +3,21 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayRequest; -use PaypalServerSDKLib\Models\CardRequest; -use PaypalServerSDKLib\Models\GooglePayRequest; -use PaypalServerSDKLib\Models\OrderAuthorizeRequestPaymentSource; -use PaypalServerSDKLib\Models\PayPalWallet; -use PaypalServerSDKLib\Models\Token; -use PaypalServerSDKLib\Models\VenmoWalletRequest; +use PaypalServerSdkLib\Models\ApplePayRequest; +use PaypalServerSdkLib\Models\CardRequest; +use PaypalServerSdkLib\Models\GooglePayRequest; +use PaypalServerSdkLib\Models\OrderAuthorizeRequestPaymentSource; +use PaypalServerSdkLib\Models\PaypalWallet; +use PaypalServerSdkLib\Models\Token; +use PaypalServerSdkLib\Models\VenmoWalletRequest; /** * Builder for model OrderAuthorizeRequestPaymentSource @@ -65,7 +65,7 @@ class OrderAuthorizeRequestPaymentSourceBuilder /** * Sets paypal field. */ - public function paypal(?PayPalWallet $value): self + public function paypal(?PaypalWallet $value): self { $this->instance->setPaypal($value); return $this; diff --git a/src/Models/Builders/OrderAuthorizeResponseBuilder.php b/src/Models/Builders/OrderAuthorizeResponseBuilder.php index 0bc5ab7..e3face0 100644 --- a/src/Models/Builders/OrderAuthorizeResponseBuilder.php +++ b/src/Models/Builders/OrderAuthorizeResponseBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OrderAuthorizeResponse; -use PaypalServerSDKLib\Models\OrderAuthorizeResponsePaymentSource; -use PaypalServerSDKLib\Models\Payer; +use PaypalServerSdkLib\Models\OrderAuthorizeResponse; +use PaypalServerSdkLib\Models\OrderAuthorizeResponsePaymentSource; +use PaypalServerSdkLib\Models\Payer; /** * Builder for model OrderAuthorizeResponse diff --git a/src/Models/Builders/OrderAuthorizeResponsePaymentSourceBuilder.php b/src/Models/Builders/OrderAuthorizeResponsePaymentSourceBuilder.php index 65be4f0..46be382 100644 --- a/src/Models/Builders/OrderAuthorizeResponsePaymentSourceBuilder.php +++ b/src/Models/Builders/OrderAuthorizeResponsePaymentSourceBuilder.php @@ -3,20 +3,20 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayPaymentObject; -use PaypalServerSDKLib\Models\CardResponse; -use PaypalServerSDKLib\Models\GooglePayWalletResponse; -use PaypalServerSDKLib\Models\OrderAuthorizeResponsePaymentSource; -use PaypalServerSDKLib\Models\PayPalWalletResponse; -use PaypalServerSDKLib\Models\VenmoWalletResponse; +use PaypalServerSdkLib\Models\ApplePayPaymentObject; +use PaypalServerSdkLib\Models\CardResponse; +use PaypalServerSdkLib\Models\GooglePayWalletResponse; +use PaypalServerSdkLib\Models\OrderAuthorizeResponsePaymentSource; +use PaypalServerSdkLib\Models\PaypalWalletResponse; +use PaypalServerSdkLib\Models\VenmoWalletResponse; /** * Builder for model OrderAuthorizeResponsePaymentSource @@ -55,7 +55,7 @@ class OrderAuthorizeResponsePaymentSourceBuilder /** * Sets paypal field. */ - public function paypal(?PayPalWalletResponse $value): self + public function paypal(?PaypalWalletResponse $value): self { $this->instance->setPaypal($value); return $this; diff --git a/src/Models/Builders/OrderBuilder.php b/src/Models/Builders/OrderBuilder.php index e4c7156..3819fd4 100644 --- a/src/Models/Builders/OrderBuilder.php +++ b/src/Models/Builders/OrderBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Order; -use PaypalServerSDKLib\Models\Payer; -use PaypalServerSDKLib\Models\PaymentSourceResponse; +use PaypalServerSdkLib\Models\Order; +use PaypalServerSdkLib\Models\Payer; +use PaypalServerSdkLib\Models\PaymentSourceResponse; /** * Builder for model Order diff --git a/src/Models/Builders/OrderCaptureRequestBuilder.php b/src/Models/Builders/OrderCaptureRequestBuilder.php index 3ecd06d..41175c9 100644 --- a/src/Models/Builders/OrderCaptureRequestBuilder.php +++ b/src/Models/Builders/OrderCaptureRequestBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OrderCaptureRequest; -use PaypalServerSDKLib\Models\OrderCaptureRequestPaymentSource; +use PaypalServerSdkLib\Models\OrderCaptureRequest; +use PaypalServerSdkLib\Models\OrderCaptureRequestPaymentSource; /** * Builder for model OrderCaptureRequest diff --git a/src/Models/Builders/OrderCaptureRequestPaymentSourceBuilder.php b/src/Models/Builders/OrderCaptureRequestPaymentSourceBuilder.php index f677cf1..538a12c 100644 --- a/src/Models/Builders/OrderCaptureRequestPaymentSourceBuilder.php +++ b/src/Models/Builders/OrderCaptureRequestPaymentSourceBuilder.php @@ -3,21 +3,21 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayRequest; -use PaypalServerSDKLib\Models\CardRequest; -use PaypalServerSDKLib\Models\GooglePayRequest; -use PaypalServerSDKLib\Models\OrderCaptureRequestPaymentSource; -use PaypalServerSDKLib\Models\PayPalWallet; -use PaypalServerSDKLib\Models\Token; -use PaypalServerSDKLib\Models\VenmoWalletRequest; +use PaypalServerSdkLib\Models\ApplePayRequest; +use PaypalServerSdkLib\Models\CardRequest; +use PaypalServerSdkLib\Models\GooglePayRequest; +use PaypalServerSdkLib\Models\OrderCaptureRequestPaymentSource; +use PaypalServerSdkLib\Models\PaypalWallet; +use PaypalServerSdkLib\Models\Token; +use PaypalServerSdkLib\Models\VenmoWalletRequest; /** * Builder for model OrderCaptureRequestPaymentSource @@ -65,7 +65,7 @@ class OrderCaptureRequestPaymentSourceBuilder /** * Sets paypal field. */ - public function paypal(?PayPalWallet $value): self + public function paypal(?PaypalWallet $value): self { $this->instance->setPaypal($value); return $this; diff --git a/src/Models/Builders/OrderConfirmApplicationContextBuilder.php b/src/Models/Builders/OrderConfirmApplicationContextBuilder.php index 6551a52..d8cb228 100644 --- a/src/Models/Builders/OrderConfirmApplicationContextBuilder.php +++ b/src/Models/Builders/OrderConfirmApplicationContextBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OrderConfirmApplicationContext; -use PaypalServerSDKLib\Models\StoredPaymentSource; +use PaypalServerSdkLib\Models\OrderConfirmApplicationContext; +use PaypalServerSdkLib\Models\StoredPaymentSource; /** * Builder for model OrderConfirmApplicationContext diff --git a/src/Models/Builders/OrderRequestBuilder.php b/src/Models/Builders/OrderRequestBuilder.php index 2f29901..a3a4b5a 100644 --- a/src/Models/Builders/OrderRequestBuilder.php +++ b/src/Models/Builders/OrderRequestBuilder.php @@ -3,18 +3,18 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OrderApplicationContext; -use PaypalServerSDKLib\Models\OrderRequest; -use PaypalServerSDKLib\Models\Payer; -use PaypalServerSDKLib\Models\PaymentSource; +use PaypalServerSdkLib\Models\OrderApplicationContext; +use PaypalServerSdkLib\Models\OrderRequest; +use PaypalServerSdkLib\Models\Payer; +use PaypalServerSdkLib\Models\PaymentSource; /** * Builder for model OrderRequest diff --git a/src/Models/Builders/OrderTrackerItemBuilder.php b/src/Models/Builders/OrderTrackerItemBuilder.php index 5479b39..b54c801 100644 --- a/src/Models/Builders/OrderTrackerItemBuilder.php +++ b/src/Models/Builders/OrderTrackerItemBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OrderTrackerItem; -use PaypalServerSDKLib\Models\UniversalProductCode; +use PaypalServerSdkLib\Models\OrderTrackerItem; +use PaypalServerSdkLib\Models\UniversalProductCode; /** * Builder for model OrderTrackerItem diff --git a/src/Models/Builders/OrderTrackerRequestBuilder.php b/src/Models/Builders/OrderTrackerRequestBuilder.php index 93ad0ec..ff6e6b3 100644 --- a/src/Models/Builders/OrderTrackerRequestBuilder.php +++ b/src/Models/Builders/OrderTrackerRequestBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OrderTrackerRequest; +use PaypalServerSdkLib\Models\OrderTrackerRequest; /** * Builder for model OrderTrackerRequest diff --git a/src/Models/Builders/OrderTrackerResponseBuilder.php b/src/Models/Builders/OrderTrackerResponseBuilder.php index 0983364..dffa18c 100644 --- a/src/Models/Builders/OrderTrackerResponseBuilder.php +++ b/src/Models/Builders/OrderTrackerResponseBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\OrderTrackerResponse; +use PaypalServerSdkLib\Models\OrderTrackerResponse; /** * Builder for model OrderTrackerResponse diff --git a/src/Models/Builders/P24PaymentObjectBuilder.php b/src/Models/Builders/P24PaymentObjectBuilder.php index 704b8b1..eed53ab 100644 --- a/src/Models/Builders/P24PaymentObjectBuilder.php +++ b/src/Models/Builders/P24PaymentObjectBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\P24PaymentObject; +use PaypalServerSdkLib\Models\P24PaymentObject; /** * Builder for model P24PaymentObject diff --git a/src/Models/Builders/P24PaymentRequestBuilder.php b/src/Models/Builders/P24PaymentRequestBuilder.php index 894b587..5450679 100644 --- a/src/Models/Builders/P24PaymentRequestBuilder.php +++ b/src/Models/Builders/P24PaymentRequestBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ExperienceContext; -use PaypalServerSDKLib\Models\P24PaymentRequest; +use PaypalServerSdkLib\Models\ExperienceContext; +use PaypalServerSdkLib\Models\P24PaymentRequest; /** * Builder for model P24PaymentRequest diff --git a/src/Models/Builders/PatchBuilder.php b/src/Models/Builders/PatchBuilder.php index cde675f..cbcec85 100644 --- a/src/Models/Builders/PatchBuilder.php +++ b/src/Models/Builders/PatchBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Patch; +use PaypalServerSdkLib\Models\Patch; /** * Builder for model Patch diff --git a/src/Models/Builders/PayPalWalletAttributesBuilder.php b/src/Models/Builders/PayPalWalletAttributesBuilder.php deleted file mode 100644 index df4cdaa..0000000 --- a/src/Models/Builders/PayPalWalletAttributesBuilder.php +++ /dev/null @@ -1,68 +0,0 @@ -instance = $instance; - } - - /** - * Initializes a new pay pal wallet attributes Builder object. - */ - public static function init(): self - { - return new self(new PayPalWalletAttributes()); - } - - /** - * Sets customer field. - */ - public function customer(?PayPalWalletCustomerRequest $value): self - { - $this->instance->setCustomer($value); - return $this; - } - - /** - * Sets vault field. - */ - public function vault(?PayPalWalletVaultInstruction $value): self - { - $this->instance->setVault($value); - return $this; - } - - /** - * Initializes a new pay pal wallet attributes object. - */ - public function build(): PayPalWalletAttributes - { - return CoreHelper::clone($this->instance); - } -} diff --git a/src/Models/Builders/PayPalWalletAttributesResponseBuilder.php b/src/Models/Builders/PayPalWalletAttributesResponseBuilder.php deleted file mode 100644 index f9181c9..0000000 --- a/src/Models/Builders/PayPalWalletAttributesResponseBuilder.php +++ /dev/null @@ -1,67 +0,0 @@ -instance = $instance; - } - - /** - * Initializes a new pay pal wallet attributes response Builder object. - */ - public static function init(): self - { - return new self(new PayPalWalletAttributesResponse()); - } - - /** - * Sets vault field. - */ - public function vault(?PayPalWalletVaultResponse $value): self - { - $this->instance->setVault($value); - return $this; - } - - /** - * Sets cobranded cards field. - */ - public function cobrandedCards(?array $value): self - { - $this->instance->setCobrandedCards($value); - return $this; - } - - /** - * Initializes a new pay pal wallet attributes response object. - */ - public function build(): PayPalWalletAttributesResponse - { - return CoreHelper::clone($this->instance); - } -} diff --git a/src/Models/Builders/PayeeBaseBuilder.php b/src/Models/Builders/PayeeBaseBuilder.php index b91c35c..1342994 100644 --- a/src/Models/Builders/PayeeBaseBuilder.php +++ b/src/Models/Builders/PayeeBaseBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PayeeBase; +use PaypalServerSdkLib\Models\PayeeBase; /** * Builder for model PayeeBase diff --git a/src/Models/Builders/PayeeBuilder.php b/src/Models/Builders/PayeeBuilder.php index ca2b07c..1426bd7 100644 --- a/src/Models/Builders/PayeeBuilder.php +++ b/src/Models/Builders/PayeeBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Payee; +use PaypalServerSdkLib\Models\Payee; /** * Builder for model Payee diff --git a/src/Models/Builders/PayerBaseBuilder.php b/src/Models/Builders/PayerBaseBuilder.php index 75212df..1a84919 100644 --- a/src/Models/Builders/PayerBaseBuilder.php +++ b/src/Models/Builders/PayerBaseBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PayerBase; +use PaypalServerSdkLib\Models\PayerBase; /** * Builder for model PayerBase diff --git a/src/Models/Builders/PayerBuilder.php b/src/Models/Builders/PayerBuilder.php index 2f5bc23..019e808 100644 --- a/src/Models/Builders/PayerBuilder.php +++ b/src/Models/Builders/PayerBuilder.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\Name; -use PaypalServerSDKLib\Models\Payer; -use PaypalServerSDKLib\Models\PhoneWithType; -use PaypalServerSDKLib\Models\TaxInfo; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\Name; +use PaypalServerSdkLib\Models\Payer; +use PaypalServerSdkLib\Models\PhoneWithType; +use PaypalServerSdkLib\Models\TaxInfo; /** * Builder for model Payer diff --git a/src/Models/Builders/PaymentAuthorizationBuilder.php b/src/Models/Builders/PaymentAuthorizationBuilder.php index 6d632c6..7140a2b 100644 --- a/src/Models/Builders/PaymentAuthorizationBuilder.php +++ b/src/Models/Builders/PaymentAuthorizationBuilder.php @@ -3,21 +3,21 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AuthorizationStatusDetails; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\NetworkTransactionReference; -use PaypalServerSDKLib\Models\Payee; -use PaypalServerSDKLib\Models\PaymentAuthorization; -use PaypalServerSDKLib\Models\PaymentSupplementaryData; -use PaypalServerSDKLib\Models\SellerProtection; +use PaypalServerSdkLib\Models\AuthorizationStatusDetails; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\NetworkTransactionReference; +use PaypalServerSdkLib\Models\Payee; +use PaypalServerSdkLib\Models\PaymentAuthorization; +use PaypalServerSdkLib\Models\PaymentSupplementaryData; +use PaypalServerSdkLib\Models\SellerProtection; /** * Builder for model PaymentAuthorization diff --git a/src/Models/Builders/PaymentCollectionBuilder.php b/src/Models/Builders/PaymentCollectionBuilder.php index 96e3495..8252af0 100644 --- a/src/Models/Builders/PaymentCollectionBuilder.php +++ b/src/Models/Builders/PaymentCollectionBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PaymentCollection; +use PaypalServerSdkLib\Models\PaymentCollection; /** * Builder for model PaymentCollection diff --git a/src/Models/Builders/PaymentInstructionBuilder.php b/src/Models/Builders/PaymentInstructionBuilder.php index 22b9e54..c2e8a7a 100644 --- a/src/Models/Builders/PaymentInstructionBuilder.php +++ b/src/Models/Builders/PaymentInstructionBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PaymentInstruction; +use PaypalServerSdkLib\Models\PaymentInstruction; /** * Builder for model PaymentInstruction diff --git a/src/Models/Builders/PaymentMethodPreferenceBuilder.php b/src/Models/Builders/PaymentMethodPreferenceBuilder.php index 01890be..3ebade6 100644 --- a/src/Models/Builders/PaymentMethodPreferenceBuilder.php +++ b/src/Models/Builders/PaymentMethodPreferenceBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PaymentMethodPreference; +use PaypalServerSdkLib\Models\PaymentMethodPreference; /** * Builder for model PaymentMethodPreference diff --git a/src/Models/Builders/PaymentSourceBuilder.php b/src/Models/Builders/PaymentSourceBuilder.php index 448ea41..38b9b02 100644 --- a/src/Models/Builders/PaymentSourceBuilder.php +++ b/src/Models/Builders/PaymentSourceBuilder.php @@ -3,30 +3,30 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayRequest; -use PaypalServerSDKLib\Models\BancontactPaymentRequest; -use PaypalServerSDKLib\Models\BLIKPaymentRequest; -use PaypalServerSDKLib\Models\CardRequest; -use PaypalServerSDKLib\Models\EPSPaymentRequest; -use PaypalServerSDKLib\Models\GiropayPaymentRequest; -use PaypalServerSDKLib\Models\GooglePayRequest; -use PaypalServerSDKLib\Models\IDEALPaymentRequest; -use PaypalServerSDKLib\Models\MyBankPaymentRequest; -use PaypalServerSDKLib\Models\P24PaymentRequest; -use PaypalServerSDKLib\Models\PaymentSource; -use PaypalServerSDKLib\Models\PayPalWallet; -use PaypalServerSDKLib\Models\SofortPaymentRequest; -use PaypalServerSDKLib\Models\Token; -use PaypalServerSDKLib\Models\TrustlyPaymentRequest; -use PaypalServerSDKLib\Models\VenmoWalletRequest; +use PaypalServerSdkLib\Models\ApplePayRequest; +use PaypalServerSdkLib\Models\BancontactPaymentRequest; +use PaypalServerSdkLib\Models\BlikPaymentRequest; +use PaypalServerSdkLib\Models\CardRequest; +use PaypalServerSdkLib\Models\EpsPaymentRequest; +use PaypalServerSdkLib\Models\GiropayPaymentRequest; +use PaypalServerSdkLib\Models\GooglePayRequest; +use PaypalServerSdkLib\Models\IdealPaymentRequest; +use PaypalServerSdkLib\Models\MybankPaymentRequest; +use PaypalServerSdkLib\Models\P24PaymentRequest; +use PaypalServerSdkLib\Models\PaymentSource; +use PaypalServerSdkLib\Models\PaypalWallet; +use PaypalServerSdkLib\Models\SofortPaymentRequest; +use PaypalServerSdkLib\Models\Token; +use PaypalServerSdkLib\Models\TrustlyPaymentRequest; +use PaypalServerSdkLib\Models\VenmoWalletRequest; /** * Builder for model PaymentSource @@ -74,7 +74,7 @@ class PaymentSourceBuilder /** * Sets paypal field. */ - public function paypal(?PayPalWallet $value): self + public function paypal(?PaypalWallet $value): self { $this->instance->setPaypal($value); return $this; @@ -92,7 +92,7 @@ class PaymentSourceBuilder /** * Sets blik field. */ - public function blik(?BLIKPaymentRequest $value): self + public function blik(?BlikPaymentRequest $value): self { $this->instance->setBlik($value); return $this; @@ -101,7 +101,7 @@ class PaymentSourceBuilder /** * Sets eps field. */ - public function eps(?EPSPaymentRequest $value): self + public function eps(?EpsPaymentRequest $value): self { $this->instance->setEps($value); return $this; @@ -119,7 +119,7 @@ class PaymentSourceBuilder /** * Sets ideal field. */ - public function ideal(?IDEALPaymentRequest $value): self + public function ideal(?IdealPaymentRequest $value): self { $this->instance->setIdeal($value); return $this; @@ -128,7 +128,7 @@ class PaymentSourceBuilder /** * Sets mybank field. */ - public function mybank(?MyBankPaymentRequest $value): self + public function mybank(?MybankPaymentRequest $value): self { $this->instance->setMybank($value); return $this; diff --git a/src/Models/Builders/PaymentSourceResponseBuilder.php b/src/Models/Builders/PaymentSourceResponseBuilder.php index f6035aa..fc0e8c2 100644 --- a/src/Models/Builders/PaymentSourceResponseBuilder.php +++ b/src/Models/Builders/PaymentSourceResponseBuilder.php @@ -3,29 +3,29 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayPaymentObject; -use PaypalServerSDKLib\Models\BancontactPaymentObject; -use PaypalServerSDKLib\Models\BLIKPaymentObject; -use PaypalServerSDKLib\Models\CardResponse; -use PaypalServerSDKLib\Models\EPSPaymentObject; -use PaypalServerSDKLib\Models\GiropayPaymentObject; -use PaypalServerSDKLib\Models\GooglePayWalletResponse; -use PaypalServerSDKLib\Models\IDEALPaymentObject; -use PaypalServerSDKLib\Models\MyBankPaymentObject; -use PaypalServerSDKLib\Models\P24PaymentObject; -use PaypalServerSDKLib\Models\PaymentSourceResponse; -use PaypalServerSDKLib\Models\PayPalWalletResponse; -use PaypalServerSDKLib\Models\SofortPaymentObject; -use PaypalServerSDKLib\Models\TrustlyPaymentObject; -use PaypalServerSDKLib\Models\VenmoWalletResponse; +use PaypalServerSdkLib\Models\ApplePayPaymentObject; +use PaypalServerSdkLib\Models\BancontactPaymentObject; +use PaypalServerSdkLib\Models\BlikPaymentObject; +use PaypalServerSdkLib\Models\CardResponse; +use PaypalServerSdkLib\Models\EpsPaymentObject; +use PaypalServerSdkLib\Models\GiropayPaymentObject; +use PaypalServerSdkLib\Models\GooglePayWalletResponse; +use PaypalServerSdkLib\Models\IdealPaymentObject; +use PaypalServerSdkLib\Models\MybankPaymentObject; +use PaypalServerSdkLib\Models\P24PaymentObject; +use PaypalServerSdkLib\Models\PaymentSourceResponse; +use PaypalServerSdkLib\Models\PaypalWalletResponse; +use PaypalServerSdkLib\Models\SofortPaymentObject; +use PaypalServerSdkLib\Models\TrustlyPaymentObject; +use PaypalServerSdkLib\Models\VenmoWalletResponse; /** * Builder for model PaymentSourceResponse @@ -64,7 +64,7 @@ class PaymentSourceResponseBuilder /** * Sets paypal field. */ - public function paypal(?PayPalWalletResponse $value): self + public function paypal(?PaypalWalletResponse $value): self { $this->instance->setPaypal($value); return $this; @@ -82,7 +82,7 @@ class PaymentSourceResponseBuilder /** * Sets blik field. */ - public function blik(?BLIKPaymentObject $value): self + public function blik(?BlikPaymentObject $value): self { $this->instance->setBlik($value); return $this; @@ -91,7 +91,7 @@ class PaymentSourceResponseBuilder /** * Sets eps field. */ - public function eps(?EPSPaymentObject $value): self + public function eps(?EpsPaymentObject $value): self { $this->instance->setEps($value); return $this; @@ -109,7 +109,7 @@ class PaymentSourceResponseBuilder /** * Sets ideal field. */ - public function ideal(?IDEALPaymentObject $value): self + public function ideal(?IdealPaymentObject $value): self { $this->instance->setIdeal($value); return $this; @@ -118,7 +118,7 @@ class PaymentSourceResponseBuilder /** * Sets mybank field. */ - public function mybank(?MyBankPaymentObject $value): self + public function mybank(?MybankPaymentObject $value): self { $this->instance->setMybank($value); return $this; diff --git a/src/Models/Builders/PaymentSupplementaryDataBuilder.php b/src/Models/Builders/PaymentSupplementaryDataBuilder.php index af78787..9097254 100644 --- a/src/Models/Builders/PaymentSupplementaryDataBuilder.php +++ b/src/Models/Builders/PaymentSupplementaryDataBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PaymentSupplementaryData; -use PaypalServerSDKLib\Models\RelatedIdentifiers; +use PaypalServerSdkLib\Models\PaymentSupplementaryData; +use PaypalServerSdkLib\Models\RelatedIdentifiers; /** * Builder for model PaymentSupplementaryData diff --git a/src/Models/Builders/PaymentTokenRequestBuilder.php b/src/Models/Builders/PaymentTokenRequestBuilder.php index c35b0a1..eb04bf7 100644 --- a/src/Models/Builders/PaymentTokenRequestBuilder.php +++ b/src/Models/Builders/PaymentTokenRequestBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CustomerRequest; -use PaypalServerSDKLib\Models\PaymentTokenRequest; -use PaypalServerSDKLib\Models\PaymentTokenRequestPaymentSource; +use PaypalServerSdkLib\Models\CustomerRequest; +use PaypalServerSdkLib\Models\PaymentTokenRequest; +use PaypalServerSdkLib\Models\PaymentTokenRequestPaymentSource; /** * Builder for model PaymentTokenRequest diff --git a/src/Models/Builders/PaymentTokenRequestCardBuilder.php b/src/Models/Builders/PaymentTokenRequestCardBuilder.php index f30c8bf..071938e 100644 --- a/src/Models/Builders/PaymentTokenRequestCardBuilder.php +++ b/src/Models/Builders/PaymentTokenRequestCardBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\PaymentTokenRequestCard; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\PaymentTokenRequestCard; /** * Builder for model PaymentTokenRequestCard diff --git a/src/Models/Builders/PaymentTokenRequestPaymentSourceBuilder.php b/src/Models/Builders/PaymentTokenRequestPaymentSourceBuilder.php index 4683657..9f79940 100644 --- a/src/Models/Builders/PaymentTokenRequestPaymentSourceBuilder.php +++ b/src/Models/Builders/PaymentTokenRequestPaymentSourceBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PaymentTokenRequestCard; -use PaypalServerSDKLib\Models\PaymentTokenRequestPaymentSource; -use PaypalServerSDKLib\Models\VaultTokenRequest; +use PaypalServerSdkLib\Models\PaymentTokenRequestCard; +use PaypalServerSdkLib\Models\PaymentTokenRequestPaymentSource; +use PaypalServerSdkLib\Models\VaultTokenRequest; /** * Builder for model PaymentTokenRequestPaymentSource diff --git a/src/Models/Builders/PaymentTokenResponseBuilder.php b/src/Models/Builders/PaymentTokenResponseBuilder.php index 81adbe3..b49cca4 100644 --- a/src/Models/Builders/PaymentTokenResponseBuilder.php +++ b/src/Models/Builders/PaymentTokenResponseBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CustomerRequest; -use PaypalServerSDKLib\Models\PaymentTokenResponse; -use PaypalServerSDKLib\Models\PaymentTokenResponsePaymentSource; +use PaypalServerSdkLib\Models\CustomerRequest; +use PaypalServerSdkLib\Models\PaymentTokenResponse; +use PaypalServerSdkLib\Models\PaymentTokenResponsePaymentSource; /** * Builder for model PaymentTokenResponse diff --git a/src/Models/Builders/PaymentTokenResponsePaymentSourceBuilder.php b/src/Models/Builders/PaymentTokenResponsePaymentSourceBuilder.php index acfd55e..8900a77 100644 --- a/src/Models/Builders/PaymentTokenResponsePaymentSourceBuilder.php +++ b/src/Models/Builders/PaymentTokenResponsePaymentSourceBuilder.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ApplePayPaymentToken; -use PaypalServerSDKLib\Models\CardPaymentToken; -use PaypalServerSDKLib\Models\PaymentTokenResponsePaymentSource; -use PaypalServerSDKLib\Models\PayPalPaymentToken; -use PaypalServerSDKLib\Models\VenmoPaymentToken; +use PaypalServerSdkLib\Models\ApplePayPaymentToken; +use PaypalServerSdkLib\Models\CardPaymentToken; +use PaypalServerSdkLib\Models\PaymentTokenResponsePaymentSource; +use PaypalServerSdkLib\Models\PaypalPaymentToken; +use PaypalServerSdkLib\Models\VenmoPaymentToken; /** * Builder for model PaymentTokenResponsePaymentSource @@ -54,7 +54,7 @@ class PaymentTokenResponsePaymentSourceBuilder /** * Sets paypal field. */ - public function paypal(?PayPalPaymentToken $value): self + public function paypal(?PaypalPaymentToken $value): self { $this->instance->setPaypal($value); return $this; diff --git a/src/Models/Builders/PayPalPaymentTokenBuilder.php b/src/Models/Builders/PaypalPaymentTokenBuilder.php similarity index 77% rename from src/Models/Builders/PayPalPaymentTokenBuilder.php rename to src/Models/Builders/PaypalPaymentTokenBuilder.php index 94d6e21..1fff622 100644 --- a/src/Models/Builders/PayPalPaymentTokenBuilder.php +++ b/src/Models/Builders/PaypalPaymentTokenBuilder.php @@ -3,44 +3,44 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\Name; -use PaypalServerSDKLib\Models\PayPalPaymentToken; -use PaypalServerSDKLib\Models\Phone; -use PaypalServerSDKLib\Models\PhoneWithType; -use PaypalServerSDKLib\Models\VaultedDigitalWalletShippingDetails; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\Name; +use PaypalServerSdkLib\Models\PaypalPaymentToken; +use PaypalServerSdkLib\Models\Phone; +use PaypalServerSdkLib\Models\PhoneWithType; +use PaypalServerSdkLib\Models\VaultedDigitalWalletShippingDetails; /** - * Builder for model PayPalPaymentToken + * Builder for model PaypalPaymentToken * - * @see PayPalPaymentToken + * @see PaypalPaymentToken */ -class PayPalPaymentTokenBuilder +class PaypalPaymentTokenBuilder { /** - * @var PayPalPaymentToken + * @var PaypalPaymentToken */ private $instance; - private function __construct(PayPalPaymentToken $instance) + private function __construct(PaypalPaymentToken $instance) { $this->instance = $instance; } /** - * Initializes a new pay pal payment token Builder object. + * Initializes a new paypal payment token Builder object. */ public static function init(): self { - return new self(new PayPalPaymentToken()); + return new self(new PaypalPaymentToken()); } /** @@ -152,9 +152,9 @@ class PayPalPaymentTokenBuilder } /** - * Initializes a new pay pal payment token object. + * Initializes a new paypal payment token object. */ - public function build(): PayPalPaymentToken + public function build(): PaypalPaymentToken { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/PaypalWalletAttributesBuilder.php b/src/Models/Builders/PaypalWalletAttributesBuilder.php new file mode 100644 index 0000000..16e3dab --- /dev/null +++ b/src/Models/Builders/PaypalWalletAttributesBuilder.php @@ -0,0 +1,68 @@ +instance = $instance; + } + + /** + * Initializes a new paypal wallet attributes Builder object. + */ + public static function init(): self + { + return new self(new PaypalWalletAttributes()); + } + + /** + * Sets customer field. + */ + public function customer(?PaypalWalletCustomerRequest $value): self + { + $this->instance->setCustomer($value); + return $this; + } + + /** + * Sets vault field. + */ + public function vault(?PaypalWalletVaultInstruction $value): self + { + $this->instance->setVault($value); + return $this; + } + + /** + * Initializes a new paypal wallet attributes object. + */ + public function build(): PaypalWalletAttributes + { + return CoreHelper::clone($this->instance); + } +} diff --git a/src/Models/Builders/PaypalWalletAttributesResponseBuilder.php b/src/Models/Builders/PaypalWalletAttributesResponseBuilder.php new file mode 100644 index 0000000..9e7058d --- /dev/null +++ b/src/Models/Builders/PaypalWalletAttributesResponseBuilder.php @@ -0,0 +1,67 @@ +instance = $instance; + } + + /** + * Initializes a new paypal wallet attributes response Builder object. + */ + public static function init(): self + { + return new self(new PaypalWalletAttributesResponse()); + } + + /** + * Sets vault field. + */ + public function vault(?PaypalWalletVaultResponse $value): self + { + $this->instance->setVault($value); + return $this; + } + + /** + * Sets cobranded cards field. + */ + public function cobrandedCards(?array $value): self + { + $this->instance->setCobrandedCards($value); + return $this; + } + + /** + * Initializes a new paypal wallet attributes response object. + */ + public function build(): PaypalWalletAttributesResponse + { + return CoreHelper::clone($this->instance); + } +} diff --git a/src/Models/Builders/PayPalWalletBuilder.php b/src/Models/Builders/PaypalWalletBuilder.php similarity index 71% rename from src/Models/Builders/PayPalWalletBuilder.php rename to src/Models/Builders/PaypalWalletBuilder.php index 15a0b67..4e96f1b 100644 --- a/src/Models/Builders/PayPalWalletBuilder.php +++ b/src/Models/Builders/PaypalWalletBuilder.php @@ -3,45 +3,45 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\Name; -use PaypalServerSDKLib\Models\PayPalWallet; -use PaypalServerSDKLib\Models\PayPalWalletAttributes; -use PaypalServerSDKLib\Models\PayPalWalletExperienceContext; -use PaypalServerSDKLib\Models\PhoneWithType; -use PaypalServerSDKLib\Models\TaxInfo; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\Name; +use PaypalServerSdkLib\Models\PaypalWallet; +use PaypalServerSdkLib\Models\PaypalWalletAttributes; +use PaypalServerSdkLib\Models\PaypalWalletExperienceContext; +use PaypalServerSdkLib\Models\PhoneWithType; +use PaypalServerSdkLib\Models\TaxInfo; /** - * Builder for model PayPalWallet + * Builder for model PaypalWallet * - * @see PayPalWallet + * @see PaypalWallet */ -class PayPalWalletBuilder +class PaypalWalletBuilder { /** - * @var PayPalWallet + * @var PaypalWallet */ private $instance; - private function __construct(PayPalWallet $instance) + private function __construct(PaypalWallet $instance) { $this->instance = $instance; } /** - * Initializes a new pay pal wallet Builder object. + * Initializes a new paypal wallet Builder object. */ public static function init(): self { - return new self(new PayPalWallet()); + return new self(new PaypalWallet()); } /** @@ -110,7 +110,7 @@ class PayPalWalletBuilder /** * Sets attributes field. */ - public function attributes(?PayPalWalletAttributes $value): self + public function attributes(?PaypalWalletAttributes $value): self { $this->instance->setAttributes($value); return $this; @@ -119,7 +119,7 @@ class PayPalWalletBuilder /** * Sets experience context field. */ - public function experienceContext(?PayPalWalletExperienceContext $value): self + public function experienceContext(?PaypalWalletExperienceContext $value): self { $this->instance->setExperienceContext($value); return $this; @@ -135,9 +135,9 @@ class PayPalWalletBuilder } /** - * Initializes a new pay pal wallet object. + * Initializes a new paypal wallet object. */ - public function build(): PayPalWallet + public function build(): PaypalWallet { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/PayPalWalletCustomerBuilder.php b/src/Models/Builders/PaypalWalletCustomerBuilder.php similarity index 65% rename from src/Models/Builders/PayPalWalletCustomerBuilder.php rename to src/Models/Builders/PaypalWalletCustomerBuilder.php index 4843577..c70e091 100644 --- a/src/Models/Builders/PayPalWalletCustomerBuilder.php +++ b/src/Models/Builders/PaypalWalletCustomerBuilder.php @@ -3,40 +3,40 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PayPalWalletCustomer; -use PaypalServerSDKLib\Models\PhoneWithType; +use PaypalServerSdkLib\Models\PaypalWalletCustomer; +use PaypalServerSdkLib\Models\PhoneWithType; /** - * Builder for model PayPalWalletCustomer + * Builder for model PaypalWalletCustomer * - * @see PayPalWalletCustomer + * @see PaypalWalletCustomer */ -class PayPalWalletCustomerBuilder +class PaypalWalletCustomerBuilder { /** - * @var PayPalWalletCustomer + * @var PaypalWalletCustomer */ private $instance; - private function __construct(PayPalWalletCustomer $instance) + private function __construct(PaypalWalletCustomer $instance) { $this->instance = $instance; } /** - * Initializes a new pay pal wallet customer Builder object. + * Initializes a new paypal wallet customer Builder object. */ public static function init(): self { - return new self(new PayPalWalletCustomer()); + return new self(new PaypalWalletCustomer()); } /** @@ -76,9 +76,9 @@ class PayPalWalletCustomerBuilder } /** - * Initializes a new pay pal wallet customer object. + * Initializes a new paypal wallet customer object. */ - public function build(): PayPalWalletCustomer + public function build(): PaypalWalletCustomer { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/PayPalWalletCustomerRequestBuilder.php b/src/Models/Builders/PaypalWalletCustomerRequestBuilder.php similarity index 63% rename from src/Models/Builders/PayPalWalletCustomerRequestBuilder.php rename to src/Models/Builders/PaypalWalletCustomerRequestBuilder.php index dc0ad7c..890943f 100644 --- a/src/Models/Builders/PayPalWalletCustomerRequestBuilder.php +++ b/src/Models/Builders/PaypalWalletCustomerRequestBuilder.php @@ -3,40 +3,40 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PayPalWalletCustomerRequest; -use PaypalServerSDKLib\Models\PhoneWithType; +use PaypalServerSdkLib\Models\PaypalWalletCustomerRequest; +use PaypalServerSdkLib\Models\PhoneWithType; /** - * Builder for model PayPalWalletCustomerRequest + * Builder for model PaypalWalletCustomerRequest * - * @see PayPalWalletCustomerRequest + * @see PaypalWalletCustomerRequest */ -class PayPalWalletCustomerRequestBuilder +class PaypalWalletCustomerRequestBuilder { /** - * @var PayPalWalletCustomerRequest + * @var PaypalWalletCustomerRequest */ private $instance; - private function __construct(PayPalWalletCustomerRequest $instance) + private function __construct(PaypalWalletCustomerRequest $instance) { $this->instance = $instance; } /** - * Initializes a new pay pal wallet customer request Builder object. + * Initializes a new paypal wallet customer request Builder object. */ public static function init(): self { - return new self(new PayPalWalletCustomerRequest()); + return new self(new PaypalWalletCustomerRequest()); } /** @@ -76,9 +76,9 @@ class PayPalWalletCustomerRequestBuilder } /** - * Initializes a new pay pal wallet customer request object. + * Initializes a new paypal wallet customer request object. */ - public function build(): PayPalWalletCustomerRequest + public function build(): PaypalWalletCustomerRequest { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/PayPalWalletExperienceContextBuilder.php b/src/Models/Builders/PaypalWalletExperienceContextBuilder.php similarity index 75% rename from src/Models/Builders/PayPalWalletExperienceContextBuilder.php rename to src/Models/Builders/PaypalWalletExperienceContextBuilder.php index 45c3340..97dc486 100644 --- a/src/Models/Builders/PayPalWalletExperienceContextBuilder.php +++ b/src/Models/Builders/PaypalWalletExperienceContextBuilder.php @@ -3,39 +3,39 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PayPalWalletExperienceContext; +use PaypalServerSdkLib\Models\PaypalWalletExperienceContext; /** - * Builder for model PayPalWalletExperienceContext + * Builder for model PaypalWalletExperienceContext * - * @see PayPalWalletExperienceContext + * @see PaypalWalletExperienceContext */ -class PayPalWalletExperienceContextBuilder +class PaypalWalletExperienceContextBuilder { /** - * @var PayPalWalletExperienceContext + * @var PaypalWalletExperienceContext */ private $instance; - private function __construct(PayPalWalletExperienceContext $instance) + private function __construct(PaypalWalletExperienceContext $instance) { $this->instance = $instance; } /** - * Initializes a new pay pal wallet experience context Builder object. + * Initializes a new paypal wallet experience context Builder object. */ public static function init(): self { - return new self(new PayPalWalletExperienceContext()); + return new self(new PaypalWalletExperienceContext()); } /** @@ -111,9 +111,9 @@ class PayPalWalletExperienceContextBuilder } /** - * Initializes a new pay pal wallet experience context object. + * Initializes a new paypal wallet experience context object. */ - public function build(): PayPalWalletExperienceContext + public function build(): PaypalWalletExperienceContext { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/PayPalWalletResponseBuilder.php b/src/Models/Builders/PaypalWalletResponseBuilder.php similarity index 74% rename from src/Models/Builders/PayPalWalletResponseBuilder.php rename to src/Models/Builders/PaypalWalletResponseBuilder.php index ed44f47..150c45e 100644 --- a/src/Models/Builders/PayPalWalletResponseBuilder.php +++ b/src/Models/Builders/PaypalWalletResponseBuilder.php @@ -3,44 +3,44 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\Name; -use PaypalServerSDKLib\Models\PayPalWalletAttributesResponse; -use PaypalServerSDKLib\Models\PayPalWalletResponse; -use PaypalServerSDKLib\Models\PhoneNumber; -use PaypalServerSDKLib\Models\TaxInfo; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\Name; +use PaypalServerSdkLib\Models\PaypalWalletAttributesResponse; +use PaypalServerSdkLib\Models\PaypalWalletResponse; +use PaypalServerSdkLib\Models\PhoneNumber; +use PaypalServerSdkLib\Models\TaxInfo; /** - * Builder for model PayPalWalletResponse + * Builder for model PaypalWalletResponse * - * @see PayPalWalletResponse + * @see PaypalWalletResponse */ -class PayPalWalletResponseBuilder +class PaypalWalletResponseBuilder { /** - * @var PayPalWalletResponse + * @var PaypalWalletResponse */ private $instance; - private function __construct(PayPalWalletResponse $instance) + private function __construct(PaypalWalletResponse $instance) { $this->instance = $instance; } /** - * Initializes a new pay pal wallet response Builder object. + * Initializes a new paypal wallet response Builder object. */ public static function init(): self { - return new self(new PayPalWalletResponse()); + return new self(new PaypalWalletResponse()); } /** @@ -136,16 +136,16 @@ class PayPalWalletResponseBuilder /** * Sets attributes field. */ - public function attributes(?PayPalWalletAttributesResponse $value): self + public function attributes(?PaypalWalletAttributesResponse $value): self { $this->instance->setAttributes($value); return $this; } /** - * Initializes a new pay pal wallet response object. + * Initializes a new paypal wallet response object. */ - public function build(): PayPalWalletResponse + public function build(): PaypalWalletResponse { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/PayPalWalletVaultInstructionBuilder.php b/src/Models/Builders/PaypalWalletVaultInstructionBuilder.php similarity index 69% rename from src/Models/Builders/PayPalWalletVaultInstructionBuilder.php rename to src/Models/Builders/PaypalWalletVaultInstructionBuilder.php index 974a586..aef0553 100644 --- a/src/Models/Builders/PayPalWalletVaultInstructionBuilder.php +++ b/src/Models/Builders/PaypalWalletVaultInstructionBuilder.php @@ -3,39 +3,39 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PayPalWalletVaultInstruction; +use PaypalServerSdkLib\Models\PaypalWalletVaultInstruction; /** - * Builder for model PayPalWalletVaultInstruction + * Builder for model PaypalWalletVaultInstruction * - * @see PayPalWalletVaultInstruction + * @see PaypalWalletVaultInstruction */ -class PayPalWalletVaultInstructionBuilder +class PaypalWalletVaultInstructionBuilder { /** - * @var PayPalWalletVaultInstruction + * @var PaypalWalletVaultInstruction */ private $instance; - private function __construct(PayPalWalletVaultInstruction $instance) + private function __construct(PaypalWalletVaultInstruction $instance) { $this->instance = $instance; } /** - * Initializes a new pay pal wallet vault instruction Builder object. + * Initializes a new paypal wallet vault instruction Builder object. */ public static function init(string $usageType): self { - return new self(new PayPalWalletVaultInstruction($usageType)); + return new self(new PaypalWalletVaultInstruction($usageType)); } /** @@ -84,9 +84,9 @@ class PayPalWalletVaultInstructionBuilder } /** - * Initializes a new pay pal wallet vault instruction object. + * Initializes a new paypal wallet vault instruction object. */ - public function build(): PayPalWalletVaultInstruction + public function build(): PaypalWalletVaultInstruction { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/PayPalWalletVaultResponseBuilder.php b/src/Models/Builders/PaypalWalletVaultResponseBuilder.php similarity index 59% rename from src/Models/Builders/PayPalWalletVaultResponseBuilder.php rename to src/Models/Builders/PaypalWalletVaultResponseBuilder.php index b1ca662..ae1f575 100644 --- a/src/Models/Builders/PayPalWalletVaultResponseBuilder.php +++ b/src/Models/Builders/PaypalWalletVaultResponseBuilder.php @@ -3,40 +3,40 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PayPalWalletCustomer; -use PaypalServerSDKLib\Models\PayPalWalletVaultResponse; +use PaypalServerSdkLib\Models\PaypalWalletCustomer; +use PaypalServerSdkLib\Models\PaypalWalletVaultResponse; /** - * Builder for model PayPalWalletVaultResponse + * Builder for model PaypalWalletVaultResponse * - * @see PayPalWalletVaultResponse + * @see PaypalWalletVaultResponse */ -class PayPalWalletVaultResponseBuilder +class PaypalWalletVaultResponseBuilder { /** - * @var PayPalWalletVaultResponse + * @var PaypalWalletVaultResponse */ private $instance; - private function __construct(PayPalWalletVaultResponse $instance) + private function __construct(PaypalWalletVaultResponse $instance) { $this->instance = $instance; } /** - * Initializes a new pay pal wallet vault response Builder object. + * Initializes a new paypal wallet vault response Builder object. */ public static function init(): self { - return new self(new PayPalWalletVaultResponse()); + return new self(new PaypalWalletVaultResponse()); } /** @@ -69,16 +69,16 @@ class PayPalWalletVaultResponseBuilder /** * Sets customer field. */ - public function customer(?PayPalWalletCustomer $value): self + public function customer(?PaypalWalletCustomer $value): self { $this->instance->setCustomer($value); return $this; } /** - * Initializes a new pay pal wallet vault response object. + * Initializes a new paypal wallet vault response object. */ - public function build(): PayPalWalletVaultResponse + public function build(): PaypalWalletVaultResponse { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/PhoneBuilder.php b/src/Models/Builders/PhoneBuilder.php index 5e7257c..47cd943 100644 --- a/src/Models/Builders/PhoneBuilder.php +++ b/src/Models/Builders/PhoneBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Phone; +use PaypalServerSdkLib\Models\Phone; /** * Builder for model Phone diff --git a/src/Models/Builders/PhoneNumberBuilder.php b/src/Models/Builders/PhoneNumberBuilder.php index 1ebab65..7ad3361 100644 --- a/src/Models/Builders/PhoneNumberBuilder.php +++ b/src/Models/Builders/PhoneNumberBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PhoneNumber; +use PaypalServerSdkLib\Models\PhoneNumber; /** * Builder for model PhoneNumber diff --git a/src/Models/Builders/PhoneNumberWithCountryCodeBuilder.php b/src/Models/Builders/PhoneNumberWithCountryCodeBuilder.php index b68bead..bce68df 100644 --- a/src/Models/Builders/PhoneNumberWithCountryCodeBuilder.php +++ b/src/Models/Builders/PhoneNumberWithCountryCodeBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PhoneNumberWithCountryCode; +use PaypalServerSdkLib\Models\PhoneNumberWithCountryCode; /** * Builder for model PhoneNumberWithCountryCode diff --git a/src/Models/Builders/PhoneWithTypeBuilder.php b/src/Models/Builders/PhoneWithTypeBuilder.php index 7f7d944..58bbbe6 100644 --- a/src/Models/Builders/PhoneWithTypeBuilder.php +++ b/src/Models/Builders/PhoneWithTypeBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PhoneNumber; -use PaypalServerSDKLib\Models\PhoneWithType; +use PaypalServerSdkLib\Models\PhoneNumber; +use PaypalServerSdkLib\Models\PhoneWithType; /** * Builder for model PhoneWithType diff --git a/src/Models/Builders/PlatformFeeBuilder.php b/src/Models/Builders/PlatformFeeBuilder.php index c61efce..0871a36 100644 --- a/src/Models/Builders/PlatformFeeBuilder.php +++ b/src/Models/Builders/PlatformFeeBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\PayeeBase; -use PaypalServerSDKLib\Models\PlatformFee; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\PayeeBase; +use PaypalServerSdkLib\Models\PlatformFee; /** * Builder for model PlatformFee diff --git a/src/Models/Builders/ProcessorResponseBuilder.php b/src/Models/Builders/ProcessorResponseBuilder.php index ae0e7d9..2da5ca8 100644 --- a/src/Models/Builders/ProcessorResponseBuilder.php +++ b/src/Models/Builders/ProcessorResponseBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ProcessorResponse; +use PaypalServerSdkLib\Models\ProcessorResponse; /** * Builder for model ProcessorResponse diff --git a/src/Models/Builders/PurchaseUnitBuilder.php b/src/Models/Builders/PurchaseUnitBuilder.php index 41362c2..6e06024 100644 --- a/src/Models/Builders/PurchaseUnitBuilder.php +++ b/src/Models/Builders/PurchaseUnitBuilder.php @@ -3,21 +3,21 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AmountWithBreakdown; -use PaypalServerSDKLib\Models\Payee; -use PaypalServerSDKLib\Models\PaymentCollection; -use PaypalServerSDKLib\Models\PaymentInstruction; -use PaypalServerSDKLib\Models\PurchaseUnit; -use PaypalServerSDKLib\Models\ShippingWithTrackingDetails; -use PaypalServerSDKLib\Models\SupplementaryData; +use PaypalServerSdkLib\Models\AmountWithBreakdown; +use PaypalServerSdkLib\Models\Payee; +use PaypalServerSdkLib\Models\PaymentCollection; +use PaypalServerSdkLib\Models\PaymentInstruction; +use PaypalServerSdkLib\Models\PurchaseUnit; +use PaypalServerSdkLib\Models\ShippingWithTrackingDetails; +use PaypalServerSdkLib\Models\SupplementaryData; /** * Builder for model PurchaseUnit diff --git a/src/Models/Builders/PurchaseUnitRequestBuilder.php b/src/Models/Builders/PurchaseUnitRequestBuilder.php index 7cd9c40..f20bcb1 100644 --- a/src/Models/Builders/PurchaseUnitRequestBuilder.php +++ b/src/Models/Builders/PurchaseUnitRequestBuilder.php @@ -3,20 +3,20 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AmountWithBreakdown; -use PaypalServerSDKLib\Models\Payee; -use PaypalServerSDKLib\Models\PaymentInstruction; -use PaypalServerSDKLib\Models\PurchaseUnitRequest; -use PaypalServerSDKLib\Models\ShippingDetails; -use PaypalServerSDKLib\Models\SupplementaryData; +use PaypalServerSdkLib\Models\AmountWithBreakdown; +use PaypalServerSdkLib\Models\Payee; +use PaypalServerSdkLib\Models\PaymentInstruction; +use PaypalServerSdkLib\Models\PurchaseUnitRequest; +use PaypalServerSdkLib\Models\ShippingDetails; +use PaypalServerSdkLib\Models\SupplementaryData; /** * Builder for model PurchaseUnitRequest diff --git a/src/Models/Builders/ReauthorizeRequestBuilder.php b/src/Models/Builders/ReauthorizeRequestBuilder.php index 71f8822..09e30d9 100644 --- a/src/Models/Builders/ReauthorizeRequestBuilder.php +++ b/src/Models/Builders/ReauthorizeRequestBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\ReauthorizeRequest; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\ReauthorizeRequest; /** * Builder for model ReauthorizeRequest diff --git a/src/Models/Builders/RefundBuilder.php b/src/Models/Builders/RefundBuilder.php index 51cf242..d9db524 100644 --- a/src/Models/Builders/RefundBuilder.php +++ b/src/Models/Builders/RefundBuilder.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\PayeeBase; -use PaypalServerSDKLib\Models\Refund; -use PaypalServerSDKLib\Models\RefundStatusDetails; -use PaypalServerSDKLib\Models\SellerPayableBreakdown; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\PayeeBase; +use PaypalServerSdkLib\Models\Refund; +use PaypalServerSdkLib\Models\RefundStatusDetails; +use PaypalServerSdkLib\Models\SellerPayableBreakdown; /** * Builder for model Refund diff --git a/src/Models/Builders/RefundPaymentInstructionBuilder.php b/src/Models/Builders/RefundPaymentInstructionBuilder.php index cb49711..c9b9312 100644 --- a/src/Models/Builders/RefundPaymentInstructionBuilder.php +++ b/src/Models/Builders/RefundPaymentInstructionBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\RefundPaymentInstruction; +use PaypalServerSdkLib\Models\RefundPaymentInstruction; /** * Builder for model RefundPaymentInstruction diff --git a/src/Models/Builders/RefundPlatformFeeBuilder.php b/src/Models/Builders/RefundPlatformFeeBuilder.php index f304bb6..5ae05c7 100644 --- a/src/Models/Builders/RefundPlatformFeeBuilder.php +++ b/src/Models/Builders/RefundPlatformFeeBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\RefundPlatformFee; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\RefundPlatformFee; /** * Builder for model RefundPlatformFee diff --git a/src/Models/Builders/RefundRequestBuilder.php b/src/Models/Builders/RefundRequestBuilder.php index d551c6f..1a127b7 100644 --- a/src/Models/Builders/RefundRequestBuilder.php +++ b/src/Models/Builders/RefundRequestBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\RefundPaymentInstruction; -use PaypalServerSDKLib\Models\RefundRequest; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\RefundPaymentInstruction; +use PaypalServerSdkLib\Models\RefundRequest; /** * Builder for model RefundRequest diff --git a/src/Models/Builders/RefundStatusDetailsBuilder.php b/src/Models/Builders/RefundStatusDetailsBuilder.php index ca8a76b..93daebb 100644 --- a/src/Models/Builders/RefundStatusDetailsBuilder.php +++ b/src/Models/Builders/RefundStatusDetailsBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\RefundStatusDetails; +use PaypalServerSdkLib\Models\RefundStatusDetails; /** * Builder for model RefundStatusDetails diff --git a/src/Models/Builders/RefundStatusWithDetailsBuilder.php b/src/Models/Builders/RefundStatusWithDetailsBuilder.php index 8c94abf..6c81e9a 100644 --- a/src/Models/Builders/RefundStatusWithDetailsBuilder.php +++ b/src/Models/Builders/RefundStatusWithDetailsBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\RefundStatusDetails; -use PaypalServerSDKLib\Models\RefundStatusWithDetails; +use PaypalServerSdkLib\Models\RefundStatusDetails; +use PaypalServerSdkLib\Models\RefundStatusWithDetails; /** * Builder for model RefundStatusWithDetails diff --git a/src/Models/Builders/RelatedIdentifiersBuilder.php b/src/Models/Builders/RelatedIdentifiersBuilder.php index bf56fde..ce733e0 100644 --- a/src/Models/Builders/RelatedIdentifiersBuilder.php +++ b/src/Models/Builders/RelatedIdentifiersBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\RelatedIdentifiers; +use PaypalServerSdkLib\Models\RelatedIdentifiers; /** * Builder for model RelatedIdentifiers diff --git a/src/Models/Builders/SellerPayableBreakdownBuilder.php b/src/Models/Builders/SellerPayableBreakdownBuilder.php index edd685f..be93ee3 100644 --- a/src/Models/Builders/SellerPayableBreakdownBuilder.php +++ b/src/Models/Builders/SellerPayableBreakdownBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\SellerPayableBreakdown; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\SellerPayableBreakdown; /** * Builder for model SellerPayableBreakdown diff --git a/src/Models/Builders/SellerProtectionBuilder.php b/src/Models/Builders/SellerProtectionBuilder.php index c24f72a..2ec069d 100644 --- a/src/Models/Builders/SellerProtectionBuilder.php +++ b/src/Models/Builders/SellerProtectionBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\SellerProtection; +use PaypalServerSdkLib\Models\SellerProtection; /** * Builder for model SellerProtection diff --git a/src/Models/Builders/SellerReceivableBreakdownBuilder.php b/src/Models/Builders/SellerReceivableBreakdownBuilder.php index 06108db..21c5596 100644 --- a/src/Models/Builders/SellerReceivableBreakdownBuilder.php +++ b/src/Models/Builders/SellerReceivableBreakdownBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ExchangeRate; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\SellerReceivableBreakdown; +use PaypalServerSdkLib\Models\ExchangeRate; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\SellerReceivableBreakdown; /** * Builder for model SellerReceivableBreakdown diff --git a/src/Models/Builders/SetupTokenCardExperienceContextBuilder.php b/src/Models/Builders/SetupTokenCardExperienceContextBuilder.php index ec44db5..6f8258a 100644 --- a/src/Models/Builders/SetupTokenCardExperienceContextBuilder.php +++ b/src/Models/Builders/SetupTokenCardExperienceContextBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\SetupTokenCardExperienceContext; +use PaypalServerSdkLib\Models\SetupTokenCardExperienceContext; /** * Builder for model SetupTokenCardExperienceContext diff --git a/src/Models/Builders/SetupTokenRequestBuilder.php b/src/Models/Builders/SetupTokenRequestBuilder.php index ca28a97..a699d40 100644 --- a/src/Models/Builders/SetupTokenRequestBuilder.php +++ b/src/Models/Builders/SetupTokenRequestBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CustomerRequest; -use PaypalServerSDKLib\Models\SetupTokenRequest; -use PaypalServerSDKLib\Models\SetupTokenRequestPaymentSource; +use PaypalServerSdkLib\Models\CustomerRequest; +use PaypalServerSdkLib\Models\SetupTokenRequest; +use PaypalServerSdkLib\Models\SetupTokenRequestPaymentSource; /** * Builder for model SetupTokenRequest diff --git a/src/Models/Builders/SetupTokenRequestCardBuilder.php b/src/Models/Builders/SetupTokenRequestCardBuilder.php index ca74506..c460222 100644 --- a/src/Models/Builders/SetupTokenRequestCardBuilder.php +++ b/src/Models/Builders/SetupTokenRequestCardBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\SetupTokenCardExperienceContext; -use PaypalServerSDKLib\Models\SetupTokenRequestCard; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\SetupTokenCardExperienceContext; +use PaypalServerSdkLib\Models\SetupTokenRequestCard; /** * Builder for model SetupTokenRequestCard diff --git a/src/Models/Builders/SetupTokenRequestPaymentSourceBuilder.php b/src/Models/Builders/SetupTokenRequestPaymentSourceBuilder.php index 7e75052..7ea7321 100644 --- a/src/Models/Builders/SetupTokenRequestPaymentSourceBuilder.php +++ b/src/Models/Builders/SetupTokenRequestPaymentSourceBuilder.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\SetupTokenRequestCard; -use PaypalServerSDKLib\Models\SetupTokenRequestPaymentSource; -use PaypalServerSDKLib\Models\VaultPayPalWalletRequest; -use PaypalServerSDKLib\Models\VaultTokenRequest; -use PaypalServerSDKLib\Models\VaultVenmoRequest; +use PaypalServerSdkLib\Models\SetupTokenRequestCard; +use PaypalServerSdkLib\Models\SetupTokenRequestPaymentSource; +use PaypalServerSdkLib\Models\VaultPaypalWalletRequest; +use PaypalServerSdkLib\Models\VaultTokenRequest; +use PaypalServerSdkLib\Models\VaultVenmoRequest; /** * Builder for model SetupTokenRequestPaymentSource @@ -54,7 +54,7 @@ class SetupTokenRequestPaymentSourceBuilder /** * Sets paypal field. */ - public function paypal(?VaultPayPalWalletRequest $value): self + public function paypal(?VaultPaypalWalletRequest $value): self { $this->instance->setPaypal($value); return $this; diff --git a/src/Models/Builders/SetupTokenResponseBuilder.php b/src/Models/Builders/SetupTokenResponseBuilder.php index e475036..9cd4ce9 100644 --- a/src/Models/Builders/SetupTokenResponseBuilder.php +++ b/src/Models/Builders/SetupTokenResponseBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CustomerRequest; -use PaypalServerSDKLib\Models\SetupTokenResponse; -use PaypalServerSDKLib\Models\SetupTokenResponsePaymentSource; +use PaypalServerSdkLib\Models\CustomerRequest; +use PaypalServerSdkLib\Models\SetupTokenResponse; +use PaypalServerSdkLib\Models\SetupTokenResponsePaymentSource; /** * Builder for model SetupTokenResponse diff --git a/src/Models/Builders/SetupTokenResponseCardBuilder.php b/src/Models/Builders/SetupTokenResponseCardBuilder.php index 8027797..b3e68c4 100644 --- a/src/Models/Builders/SetupTokenResponseCardBuilder.php +++ b/src/Models/Builders/SetupTokenResponseCardBuilder.php @@ -3,20 +3,20 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\AddressDetails; -use PaypalServerSDKLib\Models\BinDetails; -use PaypalServerSDKLib\Models\CardAuthenticationResponse; -use PaypalServerSDKLib\Models\CardVerificationDetails; -use PaypalServerSDKLib\Models\NetworkTransactionReferenceEntity; -use PaypalServerSDKLib\Models\SetupTokenResponseCard; +use PaypalServerSdkLib\Models\AddressDetails; +use PaypalServerSdkLib\Models\BinDetails; +use PaypalServerSdkLib\Models\CardAuthenticationResponse; +use PaypalServerSdkLib\Models\CardVerificationDetails; +use PaypalServerSdkLib\Models\NetworkTransactionReferenceEntity; +use PaypalServerSdkLib\Models\SetupTokenResponseCard; /** * Builder for model SetupTokenResponseCard diff --git a/src/Models/Builders/SetupTokenResponsePaymentSourceBuilder.php b/src/Models/Builders/SetupTokenResponsePaymentSourceBuilder.php index 3052142..a957046 100644 --- a/src/Models/Builders/SetupTokenResponsePaymentSourceBuilder.php +++ b/src/Models/Builders/SetupTokenResponsePaymentSourceBuilder.php @@ -3,18 +3,18 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\PayPalPaymentToken; -use PaypalServerSDKLib\Models\SetupTokenResponseCard; -use PaypalServerSDKLib\Models\SetupTokenResponsePaymentSource; -use PaypalServerSDKLib\Models\VenmoPaymentToken; +use PaypalServerSdkLib\Models\PaypalPaymentToken; +use PaypalServerSdkLib\Models\SetupTokenResponseCard; +use PaypalServerSdkLib\Models\SetupTokenResponsePaymentSource; +use PaypalServerSdkLib\Models\VenmoPaymentToken; /** * Builder for model SetupTokenResponsePaymentSource @@ -53,7 +53,7 @@ class SetupTokenResponsePaymentSourceBuilder /** * Sets paypal field. */ - public function paypal(?PayPalPaymentToken $value): self + public function paypal(?PaypalPaymentToken $value): self { $this->instance->setPaypal($value); return $this; diff --git a/src/Models/Builders/ShippingDetailsBuilder.php b/src/Models/Builders/ShippingDetailsBuilder.php index 09a980a..470c319 100644 --- a/src/Models/Builders/ShippingDetailsBuilder.php +++ b/src/Models/Builders/ShippingDetailsBuilder.php @@ -3,18 +3,18 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\PhoneNumberWithCountryCode; -use PaypalServerSDKLib\Models\ShippingDetails; -use PaypalServerSDKLib\Models\ShippingName; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\PhoneNumberWithCountryCode; +use PaypalServerSdkLib\Models\ShippingDetails; +use PaypalServerSdkLib\Models\ShippingName; /** * Builder for model ShippingDetails diff --git a/src/Models/Builders/ShippingNameBuilder.php b/src/Models/Builders/ShippingNameBuilder.php index 44c12f7..309c373 100644 --- a/src/Models/Builders/ShippingNameBuilder.php +++ b/src/Models/Builders/ShippingNameBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ShippingName; +use PaypalServerSdkLib\Models\ShippingName; /** * Builder for model ShippingName diff --git a/src/Models/Builders/ShippingOptionBuilder.php b/src/Models/Builders/ShippingOptionBuilder.php index bd4dc8f..29ccf4e 100644 --- a/src/Models/Builders/ShippingOptionBuilder.php +++ b/src/Models/Builders/ShippingOptionBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Money; -use PaypalServerSDKLib\Models\ShippingOption; +use PaypalServerSdkLib\Models\Money; +use PaypalServerSdkLib\Models\ShippingOption; /** * Builder for model ShippingOption diff --git a/src/Models/Builders/ShippingWithTrackingDetailsBuilder.php b/src/Models/Builders/ShippingWithTrackingDetailsBuilder.php index 103eae5..347b480 100644 --- a/src/Models/Builders/ShippingWithTrackingDetailsBuilder.php +++ b/src/Models/Builders/ShippingWithTrackingDetailsBuilder.php @@ -3,18 +3,18 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\PhoneNumberWithCountryCode; -use PaypalServerSDKLib\Models\ShippingName; -use PaypalServerSDKLib\Models\ShippingWithTrackingDetails; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\PhoneNumberWithCountryCode; +use PaypalServerSdkLib\Models\ShippingName; +use PaypalServerSdkLib\Models\ShippingWithTrackingDetails; /** * Builder for model ShippingWithTrackingDetails diff --git a/src/Models/Builders/SofortPaymentObjectBuilder.php b/src/Models/Builders/SofortPaymentObjectBuilder.php index f753dbe..d61ccf9 100644 --- a/src/Models/Builders/SofortPaymentObjectBuilder.php +++ b/src/Models/Builders/SofortPaymentObjectBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\SofortPaymentObject; +use PaypalServerSdkLib\Models\SofortPaymentObject; /** * Builder for model SofortPaymentObject diff --git a/src/Models/Builders/SofortPaymentRequestBuilder.php b/src/Models/Builders/SofortPaymentRequestBuilder.php index 5cd1e10..d8a35b3 100644 --- a/src/Models/Builders/SofortPaymentRequestBuilder.php +++ b/src/Models/Builders/SofortPaymentRequestBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ExperienceContext; -use PaypalServerSDKLib\Models\SofortPaymentRequest; +use PaypalServerSdkLib\Models\ExperienceContext; +use PaypalServerSdkLib\Models\SofortPaymentRequest; /** * Builder for model SofortPaymentRequest diff --git a/src/Models/Builders/StoredPaymentSourceBuilder.php b/src/Models/Builders/StoredPaymentSourceBuilder.php index 7d70577..c5e29a8 100644 --- a/src/Models/Builders/StoredPaymentSourceBuilder.php +++ b/src/Models/Builders/StoredPaymentSourceBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\NetworkTransactionReference; -use PaypalServerSDKLib\Models\StoredPaymentSource; +use PaypalServerSdkLib\Models\NetworkTransactionReference; +use PaypalServerSdkLib\Models\StoredPaymentSource; /** * Builder for model StoredPaymentSource diff --git a/src/Models/Builders/SupplementaryDataBuilder.php b/src/Models/Builders/SupplementaryDataBuilder.php index 19b5895..a171389 100644 --- a/src/Models/Builders/SupplementaryDataBuilder.php +++ b/src/Models/Builders/SupplementaryDataBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\CardSupplementaryData; -use PaypalServerSDKLib\Models\SupplementaryData; +use PaypalServerSdkLib\Models\CardSupplementaryData; +use PaypalServerSdkLib\Models\SupplementaryData; /** * Builder for model SupplementaryData diff --git a/src/Models/Builders/SupplementaryPurchaseDataBuilder.php b/src/Models/Builders/SupplementaryPurchaseDataBuilder.php index 1b96f80..49ae9f4 100644 --- a/src/Models/Builders/SupplementaryPurchaseDataBuilder.php +++ b/src/Models/Builders/SupplementaryPurchaseDataBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\SupplementaryPurchaseData; +use PaypalServerSdkLib\Models\SupplementaryPurchaseData; /** * Builder for model SupplementaryPurchaseData diff --git a/src/Models/Builders/TaxInfoBuilder.php b/src/Models/Builders/TaxInfoBuilder.php index bf4b265..e6b7d70 100644 --- a/src/Models/Builders/TaxInfoBuilder.php +++ b/src/Models/Builders/TaxInfoBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\TaxInfo; +use PaypalServerSdkLib\Models\TaxInfo; /** * Builder for model TaxInfo diff --git a/src/Models/Builders/ThreeDSecureAuthenticationResponseBuilder.php b/src/Models/Builders/ThreeDSecureAuthenticationResponseBuilder.php index 377ed22..59b12b6 100644 --- a/src/Models/Builders/ThreeDSecureAuthenticationResponseBuilder.php +++ b/src/Models/Builders/ThreeDSecureAuthenticationResponseBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ThreeDSecureAuthenticationResponse; +use PaypalServerSdkLib\Models\ThreeDSecureAuthenticationResponse; /** * Builder for model ThreeDSecureAuthenticationResponse diff --git a/src/Models/Builders/TokenBuilder.php b/src/Models/Builders/TokenBuilder.php index 49ded96..9ca76b5 100644 --- a/src/Models/Builders/TokenBuilder.php +++ b/src/Models/Builders/TokenBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Token; +use PaypalServerSdkLib\Models\Token; /** * Builder for model Token diff --git a/src/Models/Builders/TrustlyPaymentObjectBuilder.php b/src/Models/Builders/TrustlyPaymentObjectBuilder.php index 116116e..50446f9 100644 --- a/src/Models/Builders/TrustlyPaymentObjectBuilder.php +++ b/src/Models/Builders/TrustlyPaymentObjectBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\TrustlyPaymentObject; +use PaypalServerSdkLib\Models\TrustlyPaymentObject; /** * Builder for model TrustlyPaymentObject diff --git a/src/Models/Builders/TrustlyPaymentRequestBuilder.php b/src/Models/Builders/TrustlyPaymentRequestBuilder.php index e5e7a5a..d3e297b 100644 --- a/src/Models/Builders/TrustlyPaymentRequestBuilder.php +++ b/src/Models/Builders/TrustlyPaymentRequestBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\ExperienceContext; -use PaypalServerSDKLib\Models\TrustlyPaymentRequest; +use PaypalServerSdkLib\Models\ExperienceContext; +use PaypalServerSdkLib\Models\TrustlyPaymentRequest; /** * Builder for model TrustlyPaymentRequest diff --git a/src/Models/Builders/UniversalProductCodeBuilder.php b/src/Models/Builders/UniversalProductCodeBuilder.php index 079a439..08b9c3d 100644 --- a/src/Models/Builders/UniversalProductCodeBuilder.php +++ b/src/Models/Builders/UniversalProductCodeBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\UniversalProductCode; +use PaypalServerSdkLib\Models\UniversalProductCode; /** * Builder for model UniversalProductCode diff --git a/src/Models/Builders/VaultCustomerBuilder.php b/src/Models/Builders/VaultCustomerBuilder.php index f4dc9d6..184581e 100644 --- a/src/Models/Builders/VaultCustomerBuilder.php +++ b/src/Models/Builders/VaultCustomerBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultCustomer; +use PaypalServerSdkLib\Models\VaultCustomer; /** * Builder for model VaultCustomer diff --git a/src/Models/Builders/VaultExperienceContextBuilder.php b/src/Models/Builders/VaultExperienceContextBuilder.php index ec11245..001e14a 100644 --- a/src/Models/Builders/VaultExperienceContextBuilder.php +++ b/src/Models/Builders/VaultExperienceContextBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultExperienceContext; +use PaypalServerSdkLib\Models\VaultExperienceContext; /** * Builder for model VaultExperienceContext diff --git a/src/Models/Builders/VaultInstructionBaseBuilder.php b/src/Models/Builders/VaultInstructionBaseBuilder.php index 1b3b60d..671fed3 100644 --- a/src/Models/Builders/VaultInstructionBaseBuilder.php +++ b/src/Models/Builders/VaultInstructionBaseBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultInstructionBase; +use PaypalServerSdkLib\Models\VaultInstructionBase; /** * Builder for model VaultInstructionBase diff --git a/src/Models/Builders/VaultInstructionBuilder.php b/src/Models/Builders/VaultInstructionBuilder.php index ade836a..4655371 100644 --- a/src/Models/Builders/VaultInstructionBuilder.php +++ b/src/Models/Builders/VaultInstructionBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultInstruction; +use PaypalServerSdkLib\Models\VaultInstruction; /** * Builder for model VaultInstruction diff --git a/src/Models/Builders/VaultPayPalWalletRequestBuilder.php b/src/Models/Builders/VaultPaypalWalletRequestBuilder.php similarity index 69% rename from src/Models/Builders/VaultPayPalWalletRequestBuilder.php rename to src/Models/Builders/VaultPaypalWalletRequestBuilder.php index 3b7f2b4..4b5c9d9 100644 --- a/src/Models/Builders/VaultPayPalWalletRequestBuilder.php +++ b/src/Models/Builders/VaultPaypalWalletRequestBuilder.php @@ -3,41 +3,41 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultedDigitalWalletShippingDetails; -use PaypalServerSDKLib\Models\VaultExperienceContext; -use PaypalServerSDKLib\Models\VaultPayPalWalletRequest; +use PaypalServerSdkLib\Models\VaultedDigitalWalletShippingDetails; +use PaypalServerSdkLib\Models\VaultExperienceContext; +use PaypalServerSdkLib\Models\VaultPaypalWalletRequest; /** - * Builder for model VaultPayPalWalletRequest + * Builder for model VaultPaypalWalletRequest * - * @see VaultPayPalWalletRequest + * @see VaultPaypalWalletRequest */ -class VaultPayPalWalletRequestBuilder +class VaultPaypalWalletRequestBuilder { /** - * @var VaultPayPalWalletRequest + * @var VaultPaypalWalletRequest */ private $instance; - private function __construct(VaultPayPalWalletRequest $instance) + private function __construct(VaultPaypalWalletRequest $instance) { $this->instance = $instance; } /** - * Initializes a new vault pay pal wallet request Builder object. + * Initializes a new vault paypal wallet request Builder object. */ public static function init(): self { - return new self(new VaultPayPalWalletRequest()); + return new self(new VaultPaypalWalletRequest()); } /** @@ -95,9 +95,9 @@ class VaultPayPalWalletRequestBuilder } /** - * Initializes a new vault pay pal wallet request object. + * Initializes a new vault paypal wallet request object. */ - public function build(): VaultPayPalWalletRequest + public function build(): VaultPaypalWalletRequest { return CoreHelper::clone($this->instance); } diff --git a/src/Models/Builders/VaultResponseBuilder.php b/src/Models/Builders/VaultResponseBuilder.php index ba2a601..a9ce2a6 100644 --- a/src/Models/Builders/VaultResponseBuilder.php +++ b/src/Models/Builders/VaultResponseBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultCustomer; -use PaypalServerSDKLib\Models\VaultResponse; +use PaypalServerSdkLib\Models\VaultCustomer; +use PaypalServerSdkLib\Models\VaultResponse; /** * Builder for model VaultResponse diff --git a/src/Models/Builders/VaultTokenRequestBuilder.php b/src/Models/Builders/VaultTokenRequestBuilder.php index b20e7ba..8d5e544 100644 --- a/src/Models/Builders/VaultTokenRequestBuilder.php +++ b/src/Models/Builders/VaultTokenRequestBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultTokenRequest; +use PaypalServerSdkLib\Models\VaultTokenRequest; /** * Builder for model VaultTokenRequest diff --git a/src/Models/Builders/VaultVenmoExperienceContextBuilder.php b/src/Models/Builders/VaultVenmoExperienceContextBuilder.php index 9d58a8a..1fa2598 100644 --- a/src/Models/Builders/VaultVenmoExperienceContextBuilder.php +++ b/src/Models/Builders/VaultVenmoExperienceContextBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultVenmoExperienceContext; +use PaypalServerSdkLib\Models\VaultVenmoExperienceContext; /** * Builder for model VaultVenmoExperienceContext diff --git a/src/Models/Builders/VaultVenmoRequestBuilder.php b/src/Models/Builders/VaultVenmoRequestBuilder.php index af1c78b..4495c78 100644 --- a/src/Models/Builders/VaultVenmoRequestBuilder.php +++ b/src/Models/Builders/VaultVenmoRequestBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultedDigitalWalletShippingDetails; -use PaypalServerSDKLib\Models\VaultVenmoExperienceContext; -use PaypalServerSDKLib\Models\VaultVenmoRequest; +use PaypalServerSdkLib\Models\VaultedDigitalWalletShippingDetails; +use PaypalServerSdkLib\Models\VaultVenmoExperienceContext; +use PaypalServerSdkLib\Models\VaultVenmoRequest; /** * Builder for model VaultVenmoRequest diff --git a/src/Models/Builders/VaultedDigitalWalletBuilder.php b/src/Models/Builders/VaultedDigitalWalletBuilder.php index c327c49..1e3c6f9 100644 --- a/src/Models/Builders/VaultedDigitalWalletBuilder.php +++ b/src/Models/Builders/VaultedDigitalWalletBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultedDigitalWallet; -use PaypalServerSDKLib\Models\VaultedDigitalWalletShippingDetails; +use PaypalServerSdkLib\Models\VaultedDigitalWallet; +use PaypalServerSdkLib\Models\VaultedDigitalWalletShippingDetails; /** * Builder for model VaultedDigitalWallet diff --git a/src/Models/Builders/VaultedDigitalWalletShippingDetailsBuilder.php b/src/Models/Builders/VaultedDigitalWalletShippingDetailsBuilder.php index 781035c..cbfccf7 100644 --- a/src/Models/Builders/VaultedDigitalWalletShippingDetailsBuilder.php +++ b/src/Models/Builders/VaultedDigitalWalletShippingDetailsBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\ShippingName; -use PaypalServerSDKLib\Models\VaultedDigitalWalletShippingDetails; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\ShippingName; +use PaypalServerSdkLib\Models\VaultedDigitalWalletShippingDetails; /** * Builder for model VaultedDigitalWalletShippingDetails diff --git a/src/Models/Builders/VenmoPaymentTokenBuilder.php b/src/Models/Builders/VenmoPaymentTokenBuilder.php index a61a644..6074b1a 100644 --- a/src/Models/Builders/VenmoPaymentTokenBuilder.php +++ b/src/Models/Builders/VenmoPaymentTokenBuilder.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\Name; -use PaypalServerSDKLib\Models\PhoneWithType; -use PaypalServerSDKLib\Models\VaultedDigitalWalletShippingDetails; -use PaypalServerSDKLib\Models\VenmoPaymentToken; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\Name; +use PaypalServerSdkLib\Models\PhoneWithType; +use PaypalServerSdkLib\Models\VaultedDigitalWalletShippingDetails; +use PaypalServerSdkLib\Models\VenmoPaymentToken; /** * Builder for model VenmoPaymentToken diff --git a/src/Models/Builders/VenmoWalletAdditionalAttributesBuilder.php b/src/Models/Builders/VenmoWalletAdditionalAttributesBuilder.php index 042991f..30026f7 100644 --- a/src/Models/Builders/VenmoWalletAdditionalAttributesBuilder.php +++ b/src/Models/Builders/VenmoWalletAdditionalAttributesBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VenmoWalletAdditionalAttributes; -use PaypalServerSDKLib\Models\VenmoWalletCustomerInformation; -use PaypalServerSDKLib\Models\VenmoWalletVaultAttributes; +use PaypalServerSdkLib\Models\VenmoWalletAdditionalAttributes; +use PaypalServerSdkLib\Models\VenmoWalletCustomerInformation; +use PaypalServerSdkLib\Models\VenmoWalletVaultAttributes; /** * Builder for model VenmoWalletAdditionalAttributes diff --git a/src/Models/Builders/VenmoWalletAttributesResponseBuilder.php b/src/Models/Builders/VenmoWalletAttributesResponseBuilder.php index 0b98fca..c2936fc 100644 --- a/src/Models/Builders/VenmoWalletAttributesResponseBuilder.php +++ b/src/Models/Builders/VenmoWalletAttributesResponseBuilder.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VaultResponse; -use PaypalServerSDKLib\Models\VenmoWalletAttributesResponse; +use PaypalServerSdkLib\Models\VaultResponse; +use PaypalServerSdkLib\Models\VenmoWalletAttributesResponse; /** * Builder for model VenmoWalletAttributesResponse diff --git a/src/Models/Builders/VenmoWalletCustomerInformationBuilder.php b/src/Models/Builders/VenmoWalletCustomerInformationBuilder.php index 7b3674d..c12a4c9 100644 --- a/src/Models/Builders/VenmoWalletCustomerInformationBuilder.php +++ b/src/Models/Builders/VenmoWalletCustomerInformationBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VenmoWalletCustomerInformation; +use PaypalServerSdkLib\Models\VenmoWalletCustomerInformation; /** * Builder for model VenmoWalletCustomerInformation diff --git a/src/Models/Builders/VenmoWalletExperienceContextBuilder.php b/src/Models/Builders/VenmoWalletExperienceContextBuilder.php index cc76b2b..684fe67 100644 --- a/src/Models/Builders/VenmoWalletExperienceContextBuilder.php +++ b/src/Models/Builders/VenmoWalletExperienceContextBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VenmoWalletExperienceContext; +use PaypalServerSdkLib\Models\VenmoWalletExperienceContext; /** * Builder for model VenmoWalletExperienceContext diff --git a/src/Models/Builders/VenmoWalletRequestBuilder.php b/src/Models/Builders/VenmoWalletRequestBuilder.php index 75f18fd..ae314e1 100644 --- a/src/Models/Builders/VenmoWalletRequestBuilder.php +++ b/src/Models/Builders/VenmoWalletRequestBuilder.php @@ -3,17 +3,17 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VenmoWalletAdditionalAttributes; -use PaypalServerSDKLib\Models\VenmoWalletExperienceContext; -use PaypalServerSDKLib\Models\VenmoWalletRequest; +use PaypalServerSdkLib\Models\VenmoWalletAdditionalAttributes; +use PaypalServerSdkLib\Models\VenmoWalletExperienceContext; +use PaypalServerSdkLib\Models\VenmoWalletRequest; /** * Builder for model VenmoWalletRequest diff --git a/src/Models/Builders/VenmoWalletResponseBuilder.php b/src/Models/Builders/VenmoWalletResponseBuilder.php index af4f36a..6735fa1 100644 --- a/src/Models/Builders/VenmoWalletResponseBuilder.php +++ b/src/Models/Builders/VenmoWalletResponseBuilder.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\Address; -use PaypalServerSDKLib\Models\Name; -use PaypalServerSDKLib\Models\PhoneNumber; -use PaypalServerSDKLib\Models\VenmoWalletAttributesResponse; -use PaypalServerSDKLib\Models\VenmoWalletResponse; +use PaypalServerSdkLib\Models\Address; +use PaypalServerSdkLib\Models\Name; +use PaypalServerSdkLib\Models\PhoneNumber; +use PaypalServerSdkLib\Models\VenmoWalletAttributesResponse; +use PaypalServerSdkLib\Models\VenmoWalletResponse; /** * Builder for model VenmoWalletResponse diff --git a/src/Models/Builders/VenmoWalletVaultAttributesBuilder.php b/src/Models/Builders/VenmoWalletVaultAttributesBuilder.php index fd01851..1c11b88 100644 --- a/src/Models/Builders/VenmoWalletVaultAttributesBuilder.php +++ b/src/Models/Builders/VenmoWalletVaultAttributesBuilder.php @@ -3,15 +3,15 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models\Builders; +namespace PaypalServerSdkLib\Models\Builders; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Models\VenmoWalletVaultAttributes; +use PaypalServerSdkLib\Models\VenmoWalletVaultAttributes; /** * Builder for model VenmoWalletVaultAttributes diff --git a/src/Models/Capture.php b/src/Models/Capture.php index 4b339e5..708283a 100644 --- a/src/Models/Capture.php +++ b/src/Models/Capture.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CaptureIncompleteReason.php b/src/Models/CaptureIncompleteReason.php index dc2b847..93071ef 100644 --- a/src/Models/CaptureIncompleteReason.php +++ b/src/Models/CaptureIncompleteReason.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/CapturePaymentInstruction.php b/src/Models/CapturePaymentInstruction.php index 86986d6..6152cf6 100644 --- a/src/Models/CapturePaymentInstruction.php +++ b/src/Models/CapturePaymentInstruction.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CaptureRequest.php b/src/Models/CaptureRequest.php index e675253..2a9acba 100644 --- a/src/Models/CaptureRequest.php +++ b/src/Models/CaptureRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CaptureStatus.php b/src/Models/CaptureStatus.php index 165ac9c..8dc8b4d 100644 --- a/src/Models/CaptureStatus.php +++ b/src/Models/CaptureStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/CaptureStatusDetails.php b/src/Models/CaptureStatusDetails.php index 4858765..e1b17cc 100644 --- a/src/Models/CaptureStatusDetails.php +++ b/src/Models/CaptureStatusDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CaptureStatusWithDetails.php b/src/Models/CaptureStatusWithDetails.php index b64a82e..b2b340a 100644 --- a/src/Models/CaptureStatusWithDetails.php +++ b/src/Models/CaptureStatusWithDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CapturedPayment.php b/src/Models/CapturedPayment.php index 117c8bd..6b6abbc 100644 --- a/src/Models/CapturedPayment.php +++ b/src/Models/CapturedPayment.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardAttributes.php b/src/Models/CardAttributes.php index 0051658..cbd3b79 100644 --- a/src/Models/CardAttributes.php +++ b/src/Models/CardAttributes.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardAttributesResponse.php b/src/Models/CardAttributesResponse.php index be586fb..c328117 100644 --- a/src/Models/CardAttributesResponse.php +++ b/src/Models/CardAttributesResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardAuthenticationResponse.php b/src/Models/CardAuthenticationResponse.php index f6bc724..0f1e79b 100644 --- a/src/Models/CardAuthenticationResponse.php +++ b/src/Models/CardAuthenticationResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardBrand.php b/src/Models/CardBrand.php index a1b07a3..6323811 100644 --- a/src/Models/CardBrand.php +++ b/src/Models/CardBrand.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/CardCustomerInformation.php b/src/Models/CardCustomerInformation.php index db91914..7358d04 100644 --- a/src/Models/CardCustomerInformation.php +++ b/src/Models/CardCustomerInformation.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardExperienceContext.php b/src/Models/CardExperienceContext.php index 92d7c3f..b55c951 100644 --- a/src/Models/CardExperienceContext.php +++ b/src/Models/CardExperienceContext.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardFromRequest.php b/src/Models/CardFromRequest.php index bdc399d..589114f 100644 --- a/src/Models/CardFromRequest.php +++ b/src/Models/CardFromRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardPaymentToken.php b/src/Models/CardPaymentToken.php index 8abe753..af6c03e 100644 --- a/src/Models/CardPaymentToken.php +++ b/src/Models/CardPaymentToken.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardRequest.php b/src/Models/CardRequest.php index ec71cdc..408a8d1 100644 --- a/src/Models/CardRequest.php +++ b/src/Models/CardRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardResponse.php b/src/Models/CardResponse.php index a41abeb..0641204 100644 --- a/src/Models/CardResponse.php +++ b/src/Models/CardResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardResponseEntity.php b/src/Models/CardResponseEntity.php index c7c81cb..555cccc 100644 --- a/src/Models/CardResponseEntity.php +++ b/src/Models/CardResponseEntity.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardStoredCredential.php b/src/Models/CardStoredCredential.php index b275eed..4740f03 100644 --- a/src/Models/CardStoredCredential.php +++ b/src/Models/CardStoredCredential.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardSupplementaryData.php b/src/Models/CardSupplementaryData.php index 8aa8b8b..220a751 100644 --- a/src/Models/CardSupplementaryData.php +++ b/src/Models/CardSupplementaryData.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardType.php b/src/Models/CardType.php index fd71dd2..1732f8d 100644 --- a/src/Models/CardType.php +++ b/src/Models/CardType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/CardVaultResponse.php b/src/Models/CardVaultResponse.php index 628cef5..c6415b8 100644 --- a/src/Models/CardVaultResponse.php +++ b/src/Models/CardVaultResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardVerification.php b/src/Models/CardVerification.php index 2881a93..77776ae 100644 --- a/src/Models/CardVerification.php +++ b/src/Models/CardVerification.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardVerificationDetails.php b/src/Models/CardVerificationDetails.php index 30f02d4..0bf9107 100644 --- a/src/Models/CardVerificationDetails.php +++ b/src/Models/CardVerificationDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CardVerificationMethod.php b/src/Models/CardVerificationMethod.php index 8bc857b..b41226e 100644 --- a/src/Models/CardVerificationMethod.php +++ b/src/Models/CardVerificationMethod.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/CardVerificationProcessorResponse.php b/src/Models/CardVerificationProcessorResponse.php index b5f828d..a3396ba 100644 --- a/src/Models/CardVerificationProcessorResponse.php +++ b/src/Models/CardVerificationProcessorResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -80,10 +80,10 @@ class CardVerificationProcessorResponse implements \JsonSerializable { $json = []; if (isset($this->avsCode)) { - $json['avs_code'] = AVSCode::checkValue($this->avsCode); + $json['avs_code'] = AvsCode::checkValue($this->avsCode); } if (isset($this->cvvCode)) { - $json['cvv_code'] = CVVCode::checkValue($this->cvvCode); + $json['cvv_code'] = CvvCode::checkValue($this->cvvCode); } return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; diff --git a/src/Models/CheckoutPaymentIntent.php b/src/Models/CheckoutPaymentIntent.php index aa717d7..954b423 100644 --- a/src/Models/CheckoutPaymentIntent.php +++ b/src/Models/CheckoutPaymentIntent.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/CobrandedCard.php b/src/Models/CobrandedCard.php index ca1ce54..7ee70f1 100644 --- a/src/Models/CobrandedCard.php +++ b/src/Models/CobrandedCard.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ConfirmOrderRequest.php b/src/Models/ConfirmOrderRequest.php index 67d791a..8db5733 100644 --- a/src/Models/ConfirmOrderRequest.php +++ b/src/Models/ConfirmOrderRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CustomerInformation.php b/src/Models/CustomerInformation.php index cd3b2e3..c799322 100644 --- a/src/Models/CustomerInformation.php +++ b/src/Models/CustomerInformation.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CustomerRequest.php b/src/Models/CustomerRequest.php index 7d421f9..e643649 100644 --- a/src/Models/CustomerRequest.php +++ b/src/Models/CustomerRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CustomerVaultPaymentTokensResponse.php b/src/Models/CustomerVaultPaymentTokensResponse.php index 2710e6b..f5a607f 100644 --- a/src/Models/CustomerVaultPaymentTokensResponse.php +++ b/src/Models/CustomerVaultPaymentTokensResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/CVVCode.php b/src/Models/CvvCode.php similarity index 92% rename from src/Models/CVVCode.php rename to src/Models/CvvCode.php index ee7ef40..4fc8da9 100644 --- a/src/Models/CVVCode.php +++ b/src/Models/CvvCode.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -17,7 +17,7 @@ use stdClass; /** * The card verification value code for for Visa, Discover, Mastercard, or American Express. */ -class CVVCode +class CvvCode { public const E = 'E'; @@ -79,6 +79,6 @@ class CVVCode if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for CVVCode."); + throw new Exception("$value is invalid for CvvCode."); } } diff --git a/src/Models/DisbursementMode.php b/src/Models/DisbursementMode.php index 580c579..fda67de 100644 --- a/src/Models/DisbursementMode.php +++ b/src/Models/DisbursementMode.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/DisputeCategory.php b/src/Models/DisputeCategory.php index 18817a9..b52879d 100644 --- a/src/Models/DisputeCategory.php +++ b/src/Models/DisputeCategory.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/ECIFlag.php b/src/Models/EciFlag.php similarity index 93% rename from src/Models/ECIFlag.php rename to src/Models/EciFlag.php index 391d69f..8e94749 100644 --- a/src/Models/ECIFlag.php +++ b/src/Models/EciFlag.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -19,7 +19,7 @@ use stdClass; * transaction was processed electronically. This should be passed on the authorization transaction to * the Gateway/Processor. */ -class ECIFlag +class EciFlag { public const MASTERCARD_NON_3D_SECURE_TRANSACTION = 'MASTERCARD_NON_3D_SECURE_TRANSACTION'; @@ -57,6 +57,6 @@ class ECIFlag if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for ECIFlag."); + throw new Exception("$value is invalid for EciFlag."); } } diff --git a/src/Models/EnrollmentStatus.php b/src/Models/EnrollmentStatus.php index 958ca67..7269a4a 100644 --- a/src/Models/EnrollmentStatus.php +++ b/src/Models/EnrollmentStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/EPSPaymentObject.php b/src/Models/EpsPaymentObject.php similarity index 96% rename from src/Models/EPSPaymentObject.php rename to src/Models/EpsPaymentObject.php index 8544855..7f1f71b 100644 --- a/src/Models/EPSPaymentObject.php +++ b/src/Models/EpsPaymentObject.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information used to pay using eps. */ -class EPSPaymentObject implements \JsonSerializable +class EpsPaymentObject implements \JsonSerializable { /** * @var string|null diff --git a/src/Models/EPSPaymentRequest.php b/src/Models/EpsPaymentRequest.php similarity index 97% rename from src/Models/EPSPaymentRequest.php rename to src/Models/EpsPaymentRequest.php index e5b7b92..66a90fa 100644 --- a/src/Models/EPSPaymentRequest.php +++ b/src/Models/EpsPaymentRequest.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information needed to pay using eps. */ -class EPSPaymentRequest implements \JsonSerializable +class EpsPaymentRequest implements \JsonSerializable { /** * @var string diff --git a/src/Models/ErrorDetails.php b/src/Models/ErrorDetails.php index 17d995e..2a4be67 100644 --- a/src/Models/ErrorDetails.php +++ b/src/Models/ErrorDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ExchangeRate.php b/src/Models/ExchangeRate.php index 7232d36..1411fed 100644 --- a/src/Models/ExchangeRate.php +++ b/src/Models/ExchangeRate.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ExperienceContext.php b/src/Models/ExperienceContext.php index a51edfc..dae3cf5 100644 --- a/src/Models/ExperienceContext.php +++ b/src/Models/ExperienceContext.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/FullfillmentType.php b/src/Models/FullfillmentType.php index cb8d260..14b151f 100644 --- a/src/Models/FullfillmentType.php +++ b/src/Models/FullfillmentType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/GiropayPaymentObject.php b/src/Models/GiropayPaymentObject.php index 61c01df..68f15d8 100644 --- a/src/Models/GiropayPaymentObject.php +++ b/src/Models/GiropayPaymentObject.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/GiropayPaymentRequest.php b/src/Models/GiropayPaymentRequest.php index 3c8098f..0dacab0 100644 --- a/src/Models/GiropayPaymentRequest.php +++ b/src/Models/GiropayPaymentRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/GooglePayAuthenticationMethod.php b/src/Models/GooglePayAuthenticationMethod.php index faeb951..4174f58 100644 --- a/src/Models/GooglePayAuthenticationMethod.php +++ b/src/Models/GooglePayAuthenticationMethod.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/GooglePayCardAttributes.php b/src/Models/GooglePayCardAttributes.php index 2842f12..9238ea6 100644 --- a/src/Models/GooglePayCardAttributes.php +++ b/src/Models/GooglePayCardAttributes.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/GooglePayCardResponse.php b/src/Models/GooglePayCardResponse.php index 8ecd93c..0a0b994 100644 --- a/src/Models/GooglePayCardResponse.php +++ b/src/Models/GooglePayCardResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/GooglePayDecryptedTokenData.php b/src/Models/GooglePayDecryptedTokenData.php index b8409f4..719cf57 100644 --- a/src/Models/GooglePayDecryptedTokenData.php +++ b/src/Models/GooglePayDecryptedTokenData.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/GooglePayPaymentMethod.php b/src/Models/GooglePayPaymentMethod.php index 325f8e0..593075f 100644 --- a/src/Models/GooglePayPaymentMethod.php +++ b/src/Models/GooglePayPaymentMethod.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/GooglePayRequest.php b/src/Models/GooglePayRequest.php index f310a6d..a2af2ca 100644 --- a/src/Models/GooglePayRequest.php +++ b/src/Models/GooglePayRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/GooglePayRequestCard.php b/src/Models/GooglePayRequestCard.php index abedd57..723f327 100644 --- a/src/Models/GooglePayRequestCard.php +++ b/src/Models/GooglePayRequestCard.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/GooglePayWalletResponse.php b/src/Models/GooglePayWalletResponse.php index bccd95f..d359528 100644 --- a/src/Models/GooglePayWalletResponse.php +++ b/src/Models/GooglePayWalletResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/IDEALPaymentObject.php b/src/Models/IdealPaymentObject.php similarity index 97% rename from src/Models/IDEALPaymentObject.php rename to src/Models/IdealPaymentObject.php index 7424adb..260ad38 100644 --- a/src/Models/IDEALPaymentObject.php +++ b/src/Models/IdealPaymentObject.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information used to pay using iDEAL. */ -class IDEALPaymentObject implements \JsonSerializable +class IdealPaymentObject implements \JsonSerializable { /** * @var string|null diff --git a/src/Models/IDEALPaymentRequest.php b/src/Models/IdealPaymentRequest.php similarity index 97% rename from src/Models/IDEALPaymentRequest.php rename to src/Models/IdealPaymentRequest.php index a80ddf1..faffeda 100644 --- a/src/Models/IDEALPaymentRequest.php +++ b/src/Models/IdealPaymentRequest.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information needed to pay using iDEAL. */ -class IDEALPaymentRequest implements \JsonSerializable +class IdealPaymentRequest implements \JsonSerializable { /** * @var string diff --git a/src/Models/Item.php b/src/Models/Item.php index 7f8e496..7d00519 100644 --- a/src/Models/Item.php +++ b/src/Models/Item.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ItemCategory.php b/src/Models/ItemCategory.php index 51aa910..008e641 100644 --- a/src/Models/ItemCategory.php +++ b/src/Models/ItemCategory.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/Level2CardProcessingData.php b/src/Models/Level2CardProcessingData.php index 0cd4b28..92557c5 100644 --- a/src/Models/Level2CardProcessingData.php +++ b/src/Models/Level2CardProcessingData.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/Level3CardProcessingData.php b/src/Models/Level3CardProcessingData.php index 3500dbc..4bfeaa6 100644 --- a/src/Models/Level3CardProcessingData.php +++ b/src/Models/Level3CardProcessingData.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/LiabilityShiftIndicator.php b/src/Models/LiabilityShiftIndicator.php index fc3b40e..b3ace5b 100644 --- a/src/Models/LiabilityShiftIndicator.php +++ b/src/Models/LiabilityShiftIndicator.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/LineItem.php b/src/Models/LineItem.php index 23144e5..4d3ce56 100644 --- a/src/Models/LineItem.php +++ b/src/Models/LineItem.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/LinkDescription.php b/src/Models/LinkDescription.php index bcac913..4ff471f 100644 --- a/src/Models/LinkDescription.php +++ b/src/Models/LinkDescription.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -129,7 +129,7 @@ class LinkDescription implements \JsonSerializable $json['href'] = $this->href; $json['rel'] = $this->rel; if (isset($this->method)) { - $json['method'] = LinkHTTPMethod::checkValue($this->method); + $json['method'] = LinkHttpMethod::checkValue($this->method); } return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; diff --git a/src/Models/LinkHTTPMethod.php b/src/Models/LinkHttpMethod.php similarity index 90% rename from src/Models/LinkHTTPMethod.php rename to src/Models/LinkHttpMethod.php index e9a6cb7..c5dd51d 100644 --- a/src/Models/LinkHTTPMethod.php +++ b/src/Models/LinkHttpMethod.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -17,7 +17,7 @@ use stdClass; /** * The HTTP method required to make the related call. */ -class LinkHTTPMethod +class LinkHttpMethod { public const GET = 'GET'; @@ -53,6 +53,6 @@ class LinkHTTPMethod if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for LinkHTTPMethod."); + throw new Exception("$value is invalid for LinkHttpMethod."); } } diff --git a/src/Models/Money.php b/src/Models/Money.php index 0549b03..5511511 100644 --- a/src/Models/Money.php +++ b/src/Models/Money.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/MyBankPaymentObject.php b/src/Models/MybankPaymentObject.php similarity index 97% rename from src/Models/MyBankPaymentObject.php rename to src/Models/MybankPaymentObject.php index 47caad0..5deef8c 100644 --- a/src/Models/MyBankPaymentObject.php +++ b/src/Models/MybankPaymentObject.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information used to pay using MyBank. */ -class MyBankPaymentObject implements \JsonSerializable +class MybankPaymentObject implements \JsonSerializable { /** * @var string|null diff --git a/src/Models/MyBankPaymentRequest.php b/src/Models/MybankPaymentRequest.php similarity index 96% rename from src/Models/MyBankPaymentRequest.php rename to src/Models/MybankPaymentRequest.php index 91d0a43..1a757d0 100644 --- a/src/Models/MyBankPaymentRequest.php +++ b/src/Models/MybankPaymentRequest.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Information needed to pay using MyBank. */ -class MyBankPaymentRequest implements \JsonSerializable +class MybankPaymentRequest implements \JsonSerializable { /** * @var string diff --git a/src/Models/Name.php b/src/Models/Name.php index 17b07d0..0bac215 100644 --- a/src/Models/Name.php +++ b/src/Models/Name.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/NetAmountBreakdownItem.php b/src/Models/NetAmountBreakdownItem.php index 5bb7a58..be89f1b 100644 --- a/src/Models/NetAmountBreakdownItem.php +++ b/src/Models/NetAmountBreakdownItem.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/NetworkToken.php b/src/Models/NetworkToken.php index fa6b857..076b5e2 100644 --- a/src/Models/NetworkToken.php +++ b/src/Models/NetworkToken.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -184,7 +184,7 @@ class NetworkToken implements \JsonSerializable $json['cryptogram'] = $this->cryptogram; } if (isset($this->eciFlag)) { - $json['eci_flag'] = ECIFlag::checkValue($this->eciFlag); + $json['eci_flag'] = EciFlag::checkValue($this->eciFlag); } if (isset($this->tokenRequestorId)) { $json['token_requestor_id'] = $this->tokenRequestorId; diff --git a/src/Models/NetworkTransactionReference.php b/src/Models/NetworkTransactionReference.php index c83e626..b573454 100644 --- a/src/Models/NetworkTransactionReference.php +++ b/src/Models/NetworkTransactionReference.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/NetworkTransactionReferenceEntity.php b/src/Models/NetworkTransactionReferenceEntity.php index fe1d9ee..212bdec 100644 --- a/src/Models/NetworkTransactionReferenceEntity.php +++ b/src/Models/NetworkTransactionReferenceEntity.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OAuthProviderError.php b/src/Models/OAuthProviderError.php index 1a6d556..eb3d38f 100644 --- a/src/Models/OAuthProviderError.php +++ b/src/Models/OAuthProviderError.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/OAuthToken.php b/src/Models/OAuthToken.php index de07f21..9c074b4 100644 --- a/src/Models/OAuthToken.php +++ b/src/Models/OAuthToken.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/Order.php b/src/Models/Order.php index 16daa9d..a38ef4e 100644 --- a/src/Models/Order.php +++ b/src/Models/Order.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OrderApplicationContext.php b/src/Models/OrderApplicationContext.php index eb21c61..b95ebd3 100644 --- a/src/Models/OrderApplicationContext.php +++ b/src/Models/OrderApplicationContext.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OrderApplicationContextLandingPage.php b/src/Models/OrderApplicationContextLandingPage.php index b1379a6..e5022e8 100644 --- a/src/Models/OrderApplicationContextLandingPage.php +++ b/src/Models/OrderApplicationContextLandingPage.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/OrderApplicationContextShippingPreference.php b/src/Models/OrderApplicationContextShippingPreference.php index 7c06612..f1d9654 100644 --- a/src/Models/OrderApplicationContextShippingPreference.php +++ b/src/Models/OrderApplicationContextShippingPreference.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/OrderApplicationContextUserAction.php b/src/Models/OrderApplicationContextUserAction.php index 7071b21..d261515 100644 --- a/src/Models/OrderApplicationContextUserAction.php +++ b/src/Models/OrderApplicationContextUserAction.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/OrderAuthorizeRequest.php b/src/Models/OrderAuthorizeRequest.php index ecd1019..02bbd7e 100644 --- a/src/Models/OrderAuthorizeRequest.php +++ b/src/Models/OrderAuthorizeRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OrderAuthorizeRequestPaymentSource.php b/src/Models/OrderAuthorizeRequestPaymentSource.php index cf3ab42..df85706 100644 --- a/src/Models/OrderAuthorizeRequestPaymentSource.php +++ b/src/Models/OrderAuthorizeRequestPaymentSource.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -28,7 +28,7 @@ class OrderAuthorizeRequestPaymentSource implements \JsonSerializable private $token; /** - * @var PayPalWallet|null + * @var PaypalWallet|null */ private $paypal; @@ -101,7 +101,7 @@ class OrderAuthorizeRequestPaymentSource implements \JsonSerializable * Returns Paypal. * A resource that identifies a PayPal Wallet is used for payment. */ - public function getPaypal(): ?PayPalWallet + public function getPaypal(): ?PaypalWallet { return $this->paypal; } @@ -112,7 +112,7 @@ class OrderAuthorizeRequestPaymentSource implements \JsonSerializable * * @maps paypal */ - public function setPaypal(?PayPalWallet $paypal): void + public function setPaypal(?PaypalWallet $paypal): void { $this->paypal = $paypal; } diff --git a/src/Models/OrderAuthorizeResponse.php b/src/Models/OrderAuthorizeResponse.php index b9d3698..9db8410 100644 --- a/src/Models/OrderAuthorizeResponse.php +++ b/src/Models/OrderAuthorizeResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OrderAuthorizeResponsePaymentSource.php b/src/Models/OrderAuthorizeResponsePaymentSource.php index f120cb9..7a2ba49 100644 --- a/src/Models/OrderAuthorizeResponsePaymentSource.php +++ b/src/Models/OrderAuthorizeResponsePaymentSource.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -23,7 +23,7 @@ class OrderAuthorizeResponsePaymentSource implements \JsonSerializable private $card; /** - * @var PayPalWalletResponse|null + * @var PaypalWalletResponse|null */ private $paypal; @@ -66,7 +66,7 @@ class OrderAuthorizeResponsePaymentSource implements \JsonSerializable * Returns Paypal. * The PayPal Wallet response. */ - public function getPaypal(): ?PayPalWalletResponse + public function getPaypal(): ?PaypalWalletResponse { return $this->paypal; } @@ -77,7 +77,7 @@ class OrderAuthorizeResponsePaymentSource implements \JsonSerializable * * @maps paypal */ - public function setPaypal(?PayPalWalletResponse $paypal): void + public function setPaypal(?PaypalWalletResponse $paypal): void { $this->paypal = $paypal; } diff --git a/src/Models/OrderCaptureRequest.php b/src/Models/OrderCaptureRequest.php index e2aa329..5204266 100644 --- a/src/Models/OrderCaptureRequest.php +++ b/src/Models/OrderCaptureRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OrderCaptureRequestPaymentSource.php b/src/Models/OrderCaptureRequestPaymentSource.php index b9b9476..e3c2e50 100644 --- a/src/Models/OrderCaptureRequestPaymentSource.php +++ b/src/Models/OrderCaptureRequestPaymentSource.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -28,7 +28,7 @@ class OrderCaptureRequestPaymentSource implements \JsonSerializable private $token; /** - * @var PayPalWallet|null + * @var PaypalWallet|null */ private $paypal; @@ -101,7 +101,7 @@ class OrderCaptureRequestPaymentSource implements \JsonSerializable * Returns Paypal. * A resource that identifies a PayPal Wallet is used for payment. */ - public function getPaypal(): ?PayPalWallet + public function getPaypal(): ?PaypalWallet { return $this->paypal; } @@ -112,7 +112,7 @@ class OrderCaptureRequestPaymentSource implements \JsonSerializable * * @maps paypal */ - public function setPaypal(?PayPalWallet $paypal): void + public function setPaypal(?PaypalWallet $paypal): void { $this->paypal = $paypal; } diff --git a/src/Models/OrderConfirmApplicationContext.php b/src/Models/OrderConfirmApplicationContext.php index d80086d..2ac6418 100644 --- a/src/Models/OrderConfirmApplicationContext.php +++ b/src/Models/OrderConfirmApplicationContext.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OrderRequest.php b/src/Models/OrderRequest.php index c85e7b3..300e236 100644 --- a/src/Models/OrderRequest.php +++ b/src/Models/OrderRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OrderStatus.php b/src/Models/OrderStatus.php index ac74d76..5e6120a 100644 --- a/src/Models/OrderStatus.php +++ b/src/Models/OrderStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/OrderTrackerItem.php b/src/Models/OrderTrackerItem.php index 8283a48..05bb9db 100644 --- a/src/Models/OrderTrackerItem.php +++ b/src/Models/OrderTrackerItem.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OrderTrackerRequest.php b/src/Models/OrderTrackerRequest.php index 2c393d0..4a77742 100644 --- a/src/Models/OrderTrackerRequest.php +++ b/src/Models/OrderTrackerRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OrderTrackerResponse.php b/src/Models/OrderTrackerResponse.php index e19fe65..135a428 100644 --- a/src/Models/OrderTrackerResponse.php +++ b/src/Models/OrderTrackerResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/OrderTrackerStatus.php b/src/Models/OrderTrackerStatus.php index a630c55..217efac 100644 --- a/src/Models/OrderTrackerStatus.php +++ b/src/Models/OrderTrackerStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/P24PaymentObject.php b/src/Models/P24PaymentObject.php index f93da7f..24e49ff 100644 --- a/src/Models/P24PaymentObject.php +++ b/src/Models/P24PaymentObject.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/P24PaymentRequest.php b/src/Models/P24PaymentRequest.php index 4c4d4ee..699f7b5 100644 --- a/src/Models/P24PaymentRequest.php +++ b/src/Models/P24PaymentRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PAResStatus.php b/src/Models/PaResStatus.php similarity index 89% rename from src/Models/PAResStatus.php rename to src/Models/PaResStatus.php index bee3066..3324d56 100644 --- a/src/Models/PAResStatus.php +++ b/src/Models/PaResStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -17,7 +17,7 @@ use stdClass; /** * Transactions status result identifier. The outcome of the issuer's authentication. */ -class PAResStatus +class PaResStatus { public const Y = 'Y'; @@ -52,6 +52,6 @@ class PAResStatus if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for PAResStatus."); + throw new Exception("$value is invalid for PaResStatus."); } } diff --git a/src/Models/Patch.php b/src/Models/Patch.php index aa44fa3..754c4e2 100644 --- a/src/Models/Patch.php +++ b/src/Models/Patch.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PatchOp.php b/src/Models/PatchOp.php index 5ffdcf5..862f4fd 100644 --- a/src/Models/PatchOp.php +++ b/src/Models/PatchOp.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/Payee.php b/src/Models/Payee.php index 5af9799..b2e434b 100644 --- a/src/Models/Payee.php +++ b/src/Models/Payee.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PayeeBase.php b/src/Models/PayeeBase.php index 2a94177..dca7303 100644 --- a/src/Models/PayeeBase.php +++ b/src/Models/PayeeBase.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PayeePaymentMethodPreference.php b/src/Models/PayeePaymentMethodPreference.php index f03971a..04e2917 100644 --- a/src/Models/PayeePaymentMethodPreference.php +++ b/src/Models/PayeePaymentMethodPreference.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/Payer.php b/src/Models/Payer.php index 511f332..3e536d8 100644 --- a/src/Models/Payer.php +++ b/src/Models/Payer.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PayerBase.php b/src/Models/PayerBase.php index ca3bbd2..f276acb 100644 --- a/src/Models/PayerBase.php +++ b/src/Models/PayerBase.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PaymentAdviceCode.php b/src/Models/PaymentAdviceCode.php index 0abd032..2a0adad 100644 --- a/src/Models/PaymentAdviceCode.php +++ b/src/Models/PaymentAdviceCode.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/PaymentAuthorization.php b/src/Models/PaymentAuthorization.php index 571e978..37201e5 100644 --- a/src/Models/PaymentAuthorization.php +++ b/src/Models/PaymentAuthorization.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PaymentCollection.php b/src/Models/PaymentCollection.php index a2bfe89..412e94b 100644 --- a/src/Models/PaymentCollection.php +++ b/src/Models/PaymentCollection.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PaymentInitiator.php b/src/Models/PaymentInitiator.php index 4c2a567..19128dc 100644 --- a/src/Models/PaymentInitiator.php +++ b/src/Models/PaymentInitiator.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/PaymentInstruction.php b/src/Models/PaymentInstruction.php index f16b2e4..d514354 100644 --- a/src/Models/PaymentInstruction.php +++ b/src/Models/PaymentInstruction.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PaymentMethodPreference.php b/src/Models/PaymentMethodPreference.php index 0cb8e24..cbb346b 100644 --- a/src/Models/PaymentMethodPreference.php +++ b/src/Models/PaymentMethodPreference.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PaymentSource.php b/src/Models/PaymentSource.php index a606e12..1035f32 100644 --- a/src/Models/PaymentSource.php +++ b/src/Models/PaymentSource.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -28,7 +28,7 @@ class PaymentSource implements \JsonSerializable private $token; /** - * @var PayPalWallet|null + * @var PaypalWallet|null */ private $paypal; @@ -38,12 +38,12 @@ class PaymentSource implements \JsonSerializable private $bancontact; /** - * @var BLIKPaymentRequest|null + * @var BlikPaymentRequest|null */ private $blik; /** - * @var EPSPaymentRequest|null + * @var EpsPaymentRequest|null */ private $eps; @@ -53,12 +53,12 @@ class PaymentSource implements \JsonSerializable private $giropay; /** - * @var IDEALPaymentRequest|null + * @var IdealPaymentRequest|null */ private $ideal; /** - * @var MyBankPaymentRequest|null + * @var MybankPaymentRequest|null */ private $mybank; @@ -146,7 +146,7 @@ class PaymentSource implements \JsonSerializable * Returns Paypal. * A resource that identifies a PayPal Wallet is used for payment. */ - public function getPaypal(): ?PayPalWallet + public function getPaypal(): ?PaypalWallet { return $this->paypal; } @@ -157,7 +157,7 @@ class PaymentSource implements \JsonSerializable * * @maps paypal */ - public function setPaypal(?PayPalWallet $paypal): void + public function setPaypal(?PaypalWallet $paypal): void { $this->paypal = $paypal; } @@ -186,7 +186,7 @@ class PaymentSource implements \JsonSerializable * Returns Blik. * Information needed to pay using BLIK. */ - public function getBlik(): ?BLIKPaymentRequest + public function getBlik(): ?BlikPaymentRequest { return $this->blik; } @@ -197,7 +197,7 @@ class PaymentSource implements \JsonSerializable * * @maps blik */ - public function setBlik(?BLIKPaymentRequest $blik): void + public function setBlik(?BlikPaymentRequest $blik): void { $this->blik = $blik; } @@ -206,7 +206,7 @@ class PaymentSource implements \JsonSerializable * Returns Eps. * Information needed to pay using eps. */ - public function getEps(): ?EPSPaymentRequest + public function getEps(): ?EpsPaymentRequest { return $this->eps; } @@ -217,7 +217,7 @@ class PaymentSource implements \JsonSerializable * * @maps eps */ - public function setEps(?EPSPaymentRequest $eps): void + public function setEps(?EpsPaymentRequest $eps): void { $this->eps = $eps; } @@ -246,7 +246,7 @@ class PaymentSource implements \JsonSerializable * Returns Ideal. * Information needed to pay using iDEAL. */ - public function getIdeal(): ?IDEALPaymentRequest + public function getIdeal(): ?IdealPaymentRequest { return $this->ideal; } @@ -257,7 +257,7 @@ class PaymentSource implements \JsonSerializable * * @maps ideal */ - public function setIdeal(?IDEALPaymentRequest $ideal): void + public function setIdeal(?IdealPaymentRequest $ideal): void { $this->ideal = $ideal; } @@ -266,7 +266,7 @@ class PaymentSource implements \JsonSerializable * Returns Mybank. * Information needed to pay using MyBank. */ - public function getMybank(): ?MyBankPaymentRequest + public function getMybank(): ?MybankPaymentRequest { return $this->mybank; } @@ -277,7 +277,7 @@ class PaymentSource implements \JsonSerializable * * @maps mybank */ - public function setMybank(?MyBankPaymentRequest $mybank): void + public function setMybank(?MybankPaymentRequest $mybank): void { $this->mybank = $mybank; } diff --git a/src/Models/PaymentSourceResponse.php b/src/Models/PaymentSourceResponse.php index 4fd8290..071109a 100644 --- a/src/Models/PaymentSourceResponse.php +++ b/src/Models/PaymentSourceResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -23,7 +23,7 @@ class PaymentSourceResponse implements \JsonSerializable private $card; /** - * @var PayPalWalletResponse|null + * @var PaypalWalletResponse|null */ private $paypal; @@ -33,12 +33,12 @@ class PaymentSourceResponse implements \JsonSerializable private $bancontact; /** - * @var BLIKPaymentObject|null + * @var BlikPaymentObject|null */ private $blik; /** - * @var EPSPaymentObject|null + * @var EpsPaymentObject|null */ private $eps; @@ -48,12 +48,12 @@ class PaymentSourceResponse implements \JsonSerializable private $giropay; /** - * @var IDEALPaymentObject|null + * @var IdealPaymentObject|null */ private $ideal; /** - * @var MyBankPaymentObject|null + * @var MybankPaymentObject|null */ private $mybank; @@ -111,7 +111,7 @@ class PaymentSourceResponse implements \JsonSerializable * Returns Paypal. * The PayPal Wallet response. */ - public function getPaypal(): ?PayPalWalletResponse + public function getPaypal(): ?PaypalWalletResponse { return $this->paypal; } @@ -122,7 +122,7 @@ class PaymentSourceResponse implements \JsonSerializable * * @maps paypal */ - public function setPaypal(?PayPalWalletResponse $paypal): void + public function setPaypal(?PaypalWalletResponse $paypal): void { $this->paypal = $paypal; } @@ -151,7 +151,7 @@ class PaymentSourceResponse implements \JsonSerializable * Returns Blik. * Information used to pay using BLIK. */ - public function getBlik(): ?BLIKPaymentObject + public function getBlik(): ?BlikPaymentObject { return $this->blik; } @@ -162,7 +162,7 @@ class PaymentSourceResponse implements \JsonSerializable * * @maps blik */ - public function setBlik(?BLIKPaymentObject $blik): void + public function setBlik(?BlikPaymentObject $blik): void { $this->blik = $blik; } @@ -171,7 +171,7 @@ class PaymentSourceResponse implements \JsonSerializable * Returns Eps. * Information used to pay using eps. */ - public function getEps(): ?EPSPaymentObject + public function getEps(): ?EpsPaymentObject { return $this->eps; } @@ -182,7 +182,7 @@ class PaymentSourceResponse implements \JsonSerializable * * @maps eps */ - public function setEps(?EPSPaymentObject $eps): void + public function setEps(?EpsPaymentObject $eps): void { $this->eps = $eps; } @@ -211,7 +211,7 @@ class PaymentSourceResponse implements \JsonSerializable * Returns Ideal. * Information used to pay using iDEAL. */ - public function getIdeal(): ?IDEALPaymentObject + public function getIdeal(): ?IdealPaymentObject { return $this->ideal; } @@ -222,7 +222,7 @@ class PaymentSourceResponse implements \JsonSerializable * * @maps ideal */ - public function setIdeal(?IDEALPaymentObject $ideal): void + public function setIdeal(?IdealPaymentObject $ideal): void { $this->ideal = $ideal; } @@ -231,7 +231,7 @@ class PaymentSourceResponse implements \JsonSerializable * Returns Mybank. * Information used to pay using MyBank. */ - public function getMybank(): ?MyBankPaymentObject + public function getMybank(): ?MybankPaymentObject { return $this->mybank; } @@ -242,7 +242,7 @@ class PaymentSourceResponse implements \JsonSerializable * * @maps mybank */ - public function setMybank(?MyBankPaymentObject $mybank): void + public function setMybank(?MybankPaymentObject $mybank): void { $this->mybank = $mybank; } diff --git a/src/Models/PaymentSupplementaryData.php b/src/Models/PaymentSupplementaryData.php index f25efc5..c96cb06 100644 --- a/src/Models/PaymentSupplementaryData.php +++ b/src/Models/PaymentSupplementaryData.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PaymentTokenRequest.php b/src/Models/PaymentTokenRequest.php index eaff2a7..2e99cdc 100644 --- a/src/Models/PaymentTokenRequest.php +++ b/src/Models/PaymentTokenRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PaymentTokenRequestCard.php b/src/Models/PaymentTokenRequestCard.php index ca4c1fa..0caa6c9 100644 --- a/src/Models/PaymentTokenRequestCard.php +++ b/src/Models/PaymentTokenRequestCard.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PaymentTokenRequestPaymentSource.php b/src/Models/PaymentTokenRequestPaymentSource.php index c805224..02fbfdb 100644 --- a/src/Models/PaymentTokenRequestPaymentSource.php +++ b/src/Models/PaymentTokenRequestPaymentSource.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PaymentTokenResponse.php b/src/Models/PaymentTokenResponse.php index c518555..64cf4cc 100644 --- a/src/Models/PaymentTokenResponse.php +++ b/src/Models/PaymentTokenResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PaymentTokenResponsePaymentSource.php b/src/Models/PaymentTokenResponsePaymentSource.php index 6932c92..f681feb 100644 --- a/src/Models/PaymentTokenResponsePaymentSource.php +++ b/src/Models/PaymentTokenResponsePaymentSource.php @@ -3,14 +3,14 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; -use PaypalServerSDKLib\ApiHelper; +use PaypalServerSdkLib\ApiHelper; use stdClass; /** @@ -24,7 +24,7 @@ class PaymentTokenResponsePaymentSource implements \JsonSerializable private $card; /** - * @var PayPalPaymentToken|null + * @var PaypalPaymentToken|null */ private $paypal; @@ -66,7 +66,7 @@ class PaymentTokenResponsePaymentSource implements \JsonSerializable /** * Returns Paypal. */ - public function getPaypal(): ?PayPalPaymentToken + public function getPaypal(): ?PaypalPaymentToken { return $this->paypal; } @@ -76,7 +76,7 @@ class PaymentTokenResponsePaymentSource implements \JsonSerializable * * @maps paypal */ - public function setPaypal(?PayPalPaymentToken $paypal): void + public function setPaypal(?PaypalPaymentToken $paypal): void { $this->paypal = $paypal; } diff --git a/src/Models/PayPalExperienceLandingPage.php b/src/Models/PaypalExperienceLandingPage.php similarity index 87% rename from src/Models/PayPalExperienceLandingPage.php rename to src/Models/PaypalExperienceLandingPage.php index 746bf9a..dbc87f2 100644 --- a/src/Models/PayPalExperienceLandingPage.php +++ b/src/Models/PaypalExperienceLandingPage.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -17,7 +17,7 @@ use stdClass; /** * The type of landing page to show on the PayPal site for customer checkout. */ -class PayPalExperienceLandingPage +class PaypalExperienceLandingPage { public const LOGIN = 'LOGIN'; @@ -42,6 +42,6 @@ class PayPalExperienceLandingPage if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for PayPalExperienceLandingPage."); + throw new Exception("$value is invalid for PaypalExperienceLandingPage."); } } diff --git a/src/Models/PayPalExperienceUserAction.php b/src/Models/PaypalExperienceUserAction.php similarity index 87% rename from src/Models/PayPalExperienceUserAction.php rename to src/Models/PaypalExperienceUserAction.php index f6406b6..88e3b83 100644 --- a/src/Models/PayPalExperienceUserAction.php +++ b/src/Models/PaypalExperienceUserAction.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -17,7 +17,7 @@ use stdClass; /** * Configures a Continue or Pay Now checkout flow. */ -class PayPalExperienceUserAction +class PaypalExperienceUserAction { public const CONTINUE_ = 'CONTINUE'; @@ -40,6 +40,6 @@ class PayPalExperienceUserAction if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for PayPalExperienceUserAction."); + throw new Exception("$value is invalid for PaypalExperienceUserAction."); } } diff --git a/src/Models/PayPalPaymentToken.php b/src/Models/PaypalPaymentToken.php similarity index 98% rename from src/Models/PayPalPaymentToken.php rename to src/Models/PaypalPaymentToken.php index f8976cd..648e9aa 100644 --- a/src/Models/PayPalPaymentToken.php +++ b/src/Models/PaypalPaymentToken.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; -class PayPalPaymentToken implements \JsonSerializable +class PaypalPaymentToken implements \JsonSerializable { /** * @var string|null diff --git a/src/Models/PayPalPaymentTokenCustomerType.php b/src/Models/PaypalPaymentTokenCustomerType.php similarity index 87% rename from src/Models/PayPalPaymentTokenCustomerType.php rename to src/Models/PaypalPaymentTokenCustomerType.php index 63855a4..2453888 100644 --- a/src/Models/PayPalPaymentTokenCustomerType.php +++ b/src/Models/PaypalPaymentTokenCustomerType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -18,7 +18,7 @@ use stdClass; * The customer type associated with the PayPal payment token. This is to indicate whether the customer * acting on the merchant / platform is either a business or a consumer. */ -class PayPalPaymentTokenCustomerType +class PaypalPaymentTokenCustomerType { public const CONSUMER = 'CONSUMER'; @@ -41,6 +41,6 @@ class PayPalPaymentTokenCustomerType if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for PayPalPaymentTokenCustomerType."); + throw new Exception("$value is invalid for PaypalPaymentTokenCustomerType."); } } diff --git a/src/Models/PayPalPaymentTokenUsagePattern.php b/src/Models/PaypalPaymentTokenUsagePattern.php similarity index 90% rename from src/Models/PayPalPaymentTokenUsagePattern.php rename to src/Models/PaypalPaymentTokenUsagePattern.php index b021d0b..73448c3 100644 --- a/src/Models/PayPalPaymentTokenUsagePattern.php +++ b/src/Models/PaypalPaymentTokenUsagePattern.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -17,7 +17,7 @@ use stdClass; /** * Expected business/pricing model for the billing agreement. */ -class PayPalPaymentTokenUsagePattern +class PaypalPaymentTokenUsagePattern { public const IMMEDIATE = 'IMMEDIATE'; @@ -55,6 +55,6 @@ class PayPalPaymentTokenUsagePattern if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for PayPalPaymentTokenUsagePattern."); + throw new Exception("$value is invalid for PaypalPaymentTokenUsagePattern."); } } diff --git a/src/Models/PayPalPaymentTokenUsageType.php b/src/Models/PaypalPaymentTokenUsageType.php similarity index 86% rename from src/Models/PayPalPaymentTokenUsageType.php rename to src/Models/PaypalPaymentTokenUsageType.php index fc47e72..1ad7762 100644 --- a/src/Models/PayPalPaymentTokenUsageType.php +++ b/src/Models/PaypalPaymentTokenUsageType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -17,7 +17,7 @@ use stdClass; /** * The usage type associated with the PayPal payment token. */ -class PayPalPaymentTokenUsageType +class PaypalPaymentTokenUsageType { public const MERCHANT = 'MERCHANT'; @@ -40,6 +40,6 @@ class PayPalPaymentTokenUsageType if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for PayPalPaymentTokenUsageType."); + throw new Exception("$value is invalid for PaypalPaymentTokenUsageType."); } } diff --git a/src/Models/PayPalWallet.php b/src/Models/PaypalWallet.php similarity index 95% rename from src/Models/PayPalWallet.php rename to src/Models/PaypalWallet.php index 7261d40..76dd9d3 100644 --- a/src/Models/PayPalWallet.php +++ b/src/Models/PaypalWallet.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * A resource that identifies a PayPal Wallet is used for payment. */ -class PayPalWallet implements \JsonSerializable +class PaypalWallet implements \JsonSerializable { /** * @var string|null @@ -53,12 +53,12 @@ class PayPalWallet implements \JsonSerializable private $address; /** - * @var PayPalWalletAttributes|null + * @var PaypalWalletAttributes|null */ private $attributes; /** - * @var PayPalWalletExperienceContext|null + * @var PaypalWalletExperienceContext|null */ private $experienceContext; @@ -235,7 +235,7 @@ class PayPalWallet implements \JsonSerializable * Returns Attributes. * Additional attributes associated with the use of this PayPal Wallet. */ - public function getAttributes(): ?PayPalWalletAttributes + public function getAttributes(): ?PaypalWalletAttributes { return $this->attributes; } @@ -246,7 +246,7 @@ class PayPalWallet implements \JsonSerializable * * @maps attributes */ - public function setAttributes(?PayPalWalletAttributes $attributes): void + public function setAttributes(?PaypalWalletAttributes $attributes): void { $this->attributes = $attributes; } @@ -258,7 +258,7 @@ class PayPalWallet implements \JsonSerializable * and shipping_preference during partner account setup, which overrides the request * values. */ - public function getExperienceContext(): ?PayPalWalletExperienceContext + public function getExperienceContext(): ?PaypalWalletExperienceContext { return $this->experienceContext; } @@ -272,7 +272,7 @@ class PayPalWallet implements \JsonSerializable * * @maps experience_context */ - public function setExperienceContext(?PayPalWalletExperienceContext $experienceContext): void + public function setExperienceContext(?PaypalWalletExperienceContext $experienceContext): void { $this->experienceContext = $experienceContext; } diff --git a/src/Models/PayPalWalletAccountVerificationStatus.php b/src/Models/PaypalWalletAccountVerificationStatus.php similarity index 87% rename from src/Models/PayPalWalletAccountVerificationStatus.php rename to src/Models/PaypalWalletAccountVerificationStatus.php index 8ef858a..96604cf 100644 --- a/src/Models/PayPalWalletAccountVerificationStatus.php +++ b/src/Models/PaypalWalletAccountVerificationStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -18,7 +18,7 @@ use stdClass; * The account status indicates whether the buyer has verified the financial details associated with * their PayPal account. */ -class PayPalWalletAccountVerificationStatus +class PaypalWalletAccountVerificationStatus { public const VERIFIED = 'VERIFIED'; @@ -41,6 +41,6 @@ class PayPalWalletAccountVerificationStatus if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for PayPalWalletAccountVerificationStatus."); + throw new Exception("$value is invalid for PaypalWalletAccountVerificationStatus."); } } diff --git a/src/Models/PayPalWalletAttributes.php b/src/Models/PaypalWalletAttributes.php similarity index 75% rename from src/Models/PayPalWalletAttributes.php rename to src/Models/PaypalWalletAttributes.php index 0754df8..afac89c 100644 --- a/src/Models/PayPalWalletAttributes.php +++ b/src/Models/PaypalWalletAttributes.php @@ -3,34 +3,34 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Additional attributes associated with the use of this PayPal Wallet. */ -class PayPalWalletAttributes implements \JsonSerializable +class PaypalWalletAttributes implements \JsonSerializable { /** - * @var PayPalWalletCustomerRequest|null + * @var PaypalWalletCustomerRequest|null */ private $customer; /** - * @var PayPalWalletVaultInstruction|null + * @var PaypalWalletVaultInstruction|null */ private $vault; /** * Returns Customer. */ - public function getCustomer(): ?PayPalWalletCustomerRequest + public function getCustomer(): ?PaypalWalletCustomerRequest { return $this->customer; } @@ -40,7 +40,7 @@ class PayPalWalletAttributes implements \JsonSerializable * * @maps customer */ - public function setCustomer(?PayPalWalletCustomerRequest $customer): void + public function setCustomer(?PaypalWalletCustomerRequest $customer): void { $this->customer = $customer; } @@ -48,7 +48,7 @@ class PayPalWalletAttributes implements \JsonSerializable /** * Returns Vault. */ - public function getVault(): ?PayPalWalletVaultInstruction + public function getVault(): ?PaypalWalletVaultInstruction { return $this->vault; } @@ -58,7 +58,7 @@ class PayPalWalletAttributes implements \JsonSerializable * * @maps vault */ - public function setVault(?PayPalWalletVaultInstruction $vault): void + public function setVault(?PaypalWalletVaultInstruction $vault): void { $this->vault = $vault; } diff --git a/src/Models/PayPalWalletAttributesResponse.php b/src/Models/PaypalWalletAttributesResponse.php similarity index 88% rename from src/Models/PayPalWalletAttributesResponse.php rename to src/Models/PaypalWalletAttributesResponse.php index 89535e5..f79c85a 100644 --- a/src/Models/PayPalWalletAttributesResponse.php +++ b/src/Models/PaypalWalletAttributesResponse.php @@ -3,22 +3,22 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * Additional attributes associated with the use of a PayPal Wallet. */ -class PayPalWalletAttributesResponse implements \JsonSerializable +class PaypalWalletAttributesResponse implements \JsonSerializable { /** - * @var PayPalWalletVaultResponse|null + * @var PaypalWalletVaultResponse|null */ private $vault; @@ -31,7 +31,7 @@ class PayPalWalletAttributesResponse implements \JsonSerializable * Returns Vault. * The details about a saved PayPal Wallet payment source. */ - public function getVault(): ?PayPalWalletVaultResponse + public function getVault(): ?PaypalWalletVaultResponse { return $this->vault; } @@ -42,7 +42,7 @@ class PayPalWalletAttributesResponse implements \JsonSerializable * * @maps vault */ - public function setVault(?PayPalWalletVaultResponse $vault): void + public function setVault(?PaypalWalletVaultResponse $vault): void { $this->vault = $vault; } diff --git a/src/Models/PayPalWalletCustomer.php b/src/Models/PaypalWalletCustomer.php similarity index 97% rename from src/Models/PayPalWalletCustomer.php rename to src/Models/PaypalWalletCustomer.php index 4ba13ef..4eb4cad 100644 --- a/src/Models/PayPalWalletCustomer.php +++ b/src/Models/PaypalWalletCustomer.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * The details about a customer in PayPal's system of record. */ -class PayPalWalletCustomer implements \JsonSerializable +class PaypalWalletCustomer implements \JsonSerializable { /** * @var string|null diff --git a/src/Models/PayPalWalletCustomerRequest.php b/src/Models/PaypalWalletCustomerRequest.php similarity index 97% rename from src/Models/PayPalWalletCustomerRequest.php rename to src/Models/PaypalWalletCustomerRequest.php index acab4c2..f2568f8 100644 --- a/src/Models/PayPalWalletCustomerRequest.php +++ b/src/Models/PaypalWalletCustomerRequest.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; -class PayPalWalletCustomerRequest implements \JsonSerializable +class PaypalWalletCustomerRequest implements \JsonSerializable { /** * @var string|null diff --git a/src/Models/PayPalWalletExperienceContext.php b/src/Models/PaypalWalletExperienceContext.php similarity index 95% rename from src/Models/PayPalWalletExperienceContext.php rename to src/Models/PaypalWalletExperienceContext.php index 7292eb5..62f4fdb 100644 --- a/src/Models/PayPalWalletExperienceContext.php +++ b/src/Models/PaypalWalletExperienceContext.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -18,7 +18,7 @@ use stdClass; * and shipping_preference during partner account setup, which overrides the request * values. */ -class PayPalWalletExperienceContext implements \JsonSerializable +class PaypalWalletExperienceContext implements \JsonSerializable { /** * @var string|null @@ -48,12 +48,12 @@ class PayPalWalletExperienceContext implements \JsonSerializable /** * @var string|null */ - private $landingPage = PayPalExperienceLandingPage::NO_PREFERENCE; + private $landingPage = PaypalExperienceLandingPage::NO_PREFERENCE; /** * @var string|null */ - private $userAction = PayPalExperienceUserAction::CONTINUE_; + private $userAction = PaypalExperienceUserAction::CONTINUE_; /** * @var string|null @@ -260,10 +260,10 @@ class PayPalWalletExperienceContext implements \JsonSerializable $json['cancel_url'] = $this->cancelUrl; } if (isset($this->landingPage)) { - $json['landing_page'] = PayPalExperienceLandingPage::checkValue($this->landingPage); + $json['landing_page'] = PaypalExperienceLandingPage::checkValue($this->landingPage); } if (isset($this->userAction)) { - $json['user_action'] = PayPalExperienceUserAction::checkValue($this->userAction); + $json['user_action'] = PaypalExperienceUserAction::checkValue($this->userAction); } if (isset($this->paymentMethodPreference)) { $json['payment_method_preference'] = diff --git a/src/Models/PayPalWalletResponse.php b/src/Models/PaypalWalletResponse.php similarity index 96% rename from src/Models/PayPalWalletResponse.php rename to src/Models/PaypalWalletResponse.php index bbd39e2..693e34d 100644 --- a/src/Models/PayPalWalletResponse.php +++ b/src/Models/PaypalWalletResponse.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * The PayPal Wallet response. */ -class PayPalWalletResponse implements \JsonSerializable +class PaypalWalletResponse implements \JsonSerializable { /** * @var string|null @@ -68,7 +68,7 @@ class PayPalWalletResponse implements \JsonSerializable private $address; /** - * @var PayPalWalletAttributesResponse|null + * @var PaypalWalletAttributesResponse|null */ private $attributes; @@ -306,7 +306,7 @@ class PayPalWalletResponse implements \JsonSerializable * Returns Attributes. * Additional attributes associated with the use of a PayPal Wallet. */ - public function getAttributes(): ?PayPalWalletAttributesResponse + public function getAttributes(): ?PaypalWalletAttributesResponse { return $this->attributes; } @@ -317,7 +317,7 @@ class PayPalWalletResponse implements \JsonSerializable * * @maps attributes */ - public function setAttributes(?PayPalWalletAttributesResponse $attributes): void + public function setAttributes(?PaypalWalletAttributesResponse $attributes): void { $this->attributes = $attributes; } @@ -341,7 +341,7 @@ class PayPalWalletResponse implements \JsonSerializable $json['account_id'] = $this->accountId; } if (isset($this->accountStatus)) { - $json['account_status'] = PayPalWalletAccountVerificationStatus::checkValue($this->accountStatus); + $json['account_status'] = PaypalWalletAccountVerificationStatus::checkValue($this->accountStatus); } if (isset($this->name)) { $json['name'] = $this->name; diff --git a/src/Models/PayPalWalletVaultInstruction.php b/src/Models/PaypalWalletVaultInstruction.php similarity index 94% rename from src/Models/PayPalWalletVaultInstruction.php rename to src/Models/PaypalWalletVaultInstruction.php index 0371298..8740740 100644 --- a/src/Models/PayPalWalletVaultInstruction.php +++ b/src/Models/PaypalWalletVaultInstruction.php @@ -3,16 +3,16 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; -class PayPalWalletVaultInstruction implements \JsonSerializable +class PaypalWalletVaultInstruction implements \JsonSerializable { /** * @var string|null @@ -37,7 +37,7 @@ class PayPalWalletVaultInstruction implements \JsonSerializable /** * @var string|null */ - private $customerType = PayPalPaymentTokenCustomerType::CONSUMER; + private $customerType = PaypalPaymentTokenCustomerType::CONSUMER; /** * @var bool|null @@ -206,11 +206,11 @@ class PayPalWalletVaultInstruction implements \JsonSerializable $json['description'] = $this->description; } if (isset($this->usagePattern)) { - $json['usage_pattern'] = PayPalPaymentTokenUsagePattern::checkValue($this->usagePattern); + $json['usage_pattern'] = PaypalPaymentTokenUsagePattern::checkValue($this->usagePattern); } - $json['usage_type'] = PayPalPaymentTokenUsageType::checkValue($this->usageType); + $json['usage_type'] = PaypalPaymentTokenUsageType::checkValue($this->usageType); if (isset($this->customerType)) { - $json['customer_type'] = PayPalPaymentTokenCustomerType::checkValue($this->customerType); + $json['customer_type'] = PaypalPaymentTokenCustomerType::checkValue($this->customerType); } if (isset($this->permitMultiplePaymentTokens)) { $json['permit_multiple_payment_tokens'] = $this->permitMultiplePaymentTokens; diff --git a/src/Models/PayPalWalletVaultResponse.php b/src/Models/PaypalWalletVaultResponse.php similarity index 89% rename from src/Models/PayPalWalletVaultResponse.php rename to src/Models/PaypalWalletVaultResponse.php index ab4828b..409a26c 100644 --- a/src/Models/PayPalWalletVaultResponse.php +++ b/src/Models/PaypalWalletVaultResponse.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * The details about a saved PayPal Wallet payment source. */ -class PayPalWalletVaultResponse implements \JsonSerializable +class PaypalWalletVaultResponse implements \JsonSerializable { /** * @var string|null @@ -33,7 +33,7 @@ class PayPalWalletVaultResponse implements \JsonSerializable private $links; /** - * @var PayPalWalletCustomer|null + * @var PaypalWalletCustomer|null */ private $customer; @@ -105,7 +105,7 @@ class PayPalWalletVaultResponse implements \JsonSerializable * Returns Customer. * The details about a customer in PayPal's system of record. */ - public function getCustomer(): ?PayPalWalletCustomer + public function getCustomer(): ?PaypalWalletCustomer { return $this->customer; } @@ -116,7 +116,7 @@ class PayPalWalletVaultResponse implements \JsonSerializable * * @maps customer */ - public function setCustomer(?PayPalWalletCustomer $customer): void + public function setCustomer(?PaypalWalletCustomer $customer): void { $this->customer = $customer; } @@ -137,7 +137,7 @@ class PayPalWalletVaultResponse implements \JsonSerializable $json['id'] = $this->id; } if (isset($this->status)) { - $json['status'] = PayPalWalletVaultStatus::checkValue($this->status); + $json['status'] = PaypalWalletVaultStatus::checkValue($this->status); } if (isset($this->links)) { $json['links'] = $this->links; diff --git a/src/Models/PayPalWalletVaultStatus.php b/src/Models/PaypalWalletVaultStatus.php similarity index 87% rename from src/Models/PayPalWalletVaultStatus.php rename to src/Models/PaypalWalletVaultStatus.php index 5f6d7c4..9bf7b21 100644 --- a/src/Models/PayPalWalletVaultStatus.php +++ b/src/Models/PaypalWalletVaultStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -17,7 +17,7 @@ use stdClass; /** * The vault status. */ -class PayPalWalletVaultStatus +class PaypalWalletVaultStatus { public const VAULTED = 'VAULTED'; @@ -42,6 +42,6 @@ class PayPalWalletVaultStatus if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for PayPalWalletVaultStatus."); + throw new Exception("$value is invalid for PaypalWalletVaultStatus."); } } diff --git a/src/Models/Phone.php b/src/Models/Phone.php index 9db1472..9167e09 100644 --- a/src/Models/Phone.php +++ b/src/Models/Phone.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PhoneNumber.php b/src/Models/PhoneNumber.php index 24d83f8..e595acc 100644 --- a/src/Models/PhoneNumber.php +++ b/src/Models/PhoneNumber.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PhoneNumberWithCountryCode.php b/src/Models/PhoneNumberWithCountryCode.php index 80ed655..fbec0f9 100644 --- a/src/Models/PhoneNumberWithCountryCode.php +++ b/src/Models/PhoneNumberWithCountryCode.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PhoneType.php b/src/Models/PhoneType.php index 8abd2a8..db05783 100644 --- a/src/Models/PhoneType.php +++ b/src/Models/PhoneType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/PhoneWithType.php b/src/Models/PhoneWithType.php index de4a1d6..c5737ed 100644 --- a/src/Models/PhoneWithType.php +++ b/src/Models/PhoneWithType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PlatformFee.php b/src/Models/PlatformFee.php index b2bd0c4..e816df3 100644 --- a/src/Models/PlatformFee.php +++ b/src/Models/PlatformFee.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ProcessingInstruction.php b/src/Models/ProcessingInstruction.php index a04f504..3131b5d 100644 --- a/src/Models/ProcessingInstruction.php +++ b/src/Models/ProcessingInstruction.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/ProcessorResponse.php b/src/Models/ProcessorResponse.php index 189f75e..198f79b 100644 --- a/src/Models/ProcessorResponse.php +++ b/src/Models/ProcessorResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -132,10 +132,10 @@ class ProcessorResponse implements \JsonSerializable { $json = []; if (isset($this->avsCode)) { - $json['avs_code'] = AVSCode::checkValue($this->avsCode); + $json['avs_code'] = AvsCode::checkValue($this->avsCode); } if (isset($this->cvvCode)) { - $json['cvv_code'] = CVVCode::checkValue($this->cvvCode); + $json['cvv_code'] = CvvCode::checkValue($this->cvvCode); } if (isset($this->responseCode)) { $json['response_code'] = ProcessorResponseCode::checkValue($this->responseCode); diff --git a/src/Models/ProcessorResponseCode.php b/src/Models/ProcessorResponseCode.php index dd7b789..b44f368 100644 --- a/src/Models/ProcessorResponseCode.php +++ b/src/Models/ProcessorResponseCode.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/PurchaseUnit.php b/src/Models/PurchaseUnit.php index 902367d..a0b328a 100644 --- a/src/Models/PurchaseUnit.php +++ b/src/Models/PurchaseUnit.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/PurchaseUnitRequest.php b/src/Models/PurchaseUnitRequest.php index 32eb76a..46ca24a 100644 --- a/src/Models/PurchaseUnitRequest.php +++ b/src/Models/PurchaseUnitRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ReauthorizeRequest.php b/src/Models/ReauthorizeRequest.php index dc815af..65f4493 100644 --- a/src/Models/ReauthorizeRequest.php +++ b/src/Models/ReauthorizeRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/Refund.php b/src/Models/Refund.php index 76daaa3..0d6cc82 100644 --- a/src/Models/Refund.php +++ b/src/Models/Refund.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/RefundIncompleteReason.php b/src/Models/RefundIncompleteReason.php index b651797..efee4e1 100644 --- a/src/Models/RefundIncompleteReason.php +++ b/src/Models/RefundIncompleteReason.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/RefundPaymentInstruction.php b/src/Models/RefundPaymentInstruction.php index a542b68..a125bf4 100644 --- a/src/Models/RefundPaymentInstruction.php +++ b/src/Models/RefundPaymentInstruction.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/RefundPlatformFee.php b/src/Models/RefundPlatformFee.php index b96e7cc..365da0a 100644 --- a/src/Models/RefundPlatformFee.php +++ b/src/Models/RefundPlatformFee.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/RefundRequest.php b/src/Models/RefundRequest.php index dd0514a..16fc142 100644 --- a/src/Models/RefundRequest.php +++ b/src/Models/RefundRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/RefundStatus.php b/src/Models/RefundStatus.php index 71c5185..8d8fd63 100644 --- a/src/Models/RefundStatus.php +++ b/src/Models/RefundStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/RefundStatusDetails.php b/src/Models/RefundStatusDetails.php index 9f81f74..1a81aa1 100644 --- a/src/Models/RefundStatusDetails.php +++ b/src/Models/RefundStatusDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/RefundStatusWithDetails.php b/src/Models/RefundStatusWithDetails.php index 8a71516..b1a4f44 100644 --- a/src/Models/RefundStatusWithDetails.php +++ b/src/Models/RefundStatusWithDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/RelatedIdentifiers.php b/src/Models/RelatedIdentifiers.php index 988e88c..9608ff8 100644 --- a/src/Models/RelatedIdentifiers.php +++ b/src/Models/RelatedIdentifiers.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SellerPayableBreakdown.php b/src/Models/SellerPayableBreakdown.php index 0e889fa..c2d5d85 100644 --- a/src/Models/SellerPayableBreakdown.php +++ b/src/Models/SellerPayableBreakdown.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SellerProtection.php b/src/Models/SellerProtection.php index 8ae9073..61d1a45 100644 --- a/src/Models/SellerProtection.php +++ b/src/Models/SellerProtection.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SellerProtectionStatus.php b/src/Models/SellerProtectionStatus.php index 9b9902f..8b95e1b 100644 --- a/src/Models/SellerProtectionStatus.php +++ b/src/Models/SellerProtectionStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/SellerReceivableBreakdown.php b/src/Models/SellerReceivableBreakdown.php index f7f8e35..a0e8db3 100644 --- a/src/Models/SellerReceivableBreakdown.php +++ b/src/Models/SellerReceivableBreakdown.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SetupTokenCardExperienceContext.php b/src/Models/SetupTokenCardExperienceContext.php index 2855bfb..845948b 100644 --- a/src/Models/SetupTokenCardExperienceContext.php +++ b/src/Models/SetupTokenCardExperienceContext.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SetupTokenRequest.php b/src/Models/SetupTokenRequest.php index f09f8bd..dbb5bd9 100644 --- a/src/Models/SetupTokenRequest.php +++ b/src/Models/SetupTokenRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SetupTokenRequestCard.php b/src/Models/SetupTokenRequestCard.php index 4a8374e..8713278 100644 --- a/src/Models/SetupTokenRequestCard.php +++ b/src/Models/SetupTokenRequestCard.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SetupTokenRequestPaymentSource.php b/src/Models/SetupTokenRequestPaymentSource.php index 96b509b..ad80f2c 100644 --- a/src/Models/SetupTokenRequestPaymentSource.php +++ b/src/Models/SetupTokenRequestPaymentSource.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -23,7 +23,7 @@ class SetupTokenRequestPaymentSource implements \JsonSerializable private $card; /** - * @var VaultPayPalWalletRequest|null + * @var VaultPaypalWalletRequest|null */ private $paypal; @@ -61,7 +61,7 @@ class SetupTokenRequestPaymentSource implements \JsonSerializable * Returns Paypal. * A resource representing a request to vault PayPal Wallet. */ - public function getPaypal(): ?VaultPayPalWalletRequest + public function getPaypal(): ?VaultPaypalWalletRequest { return $this->paypal; } @@ -72,7 +72,7 @@ class SetupTokenRequestPaymentSource implements \JsonSerializable * * @maps paypal */ - public function setPaypal(?VaultPayPalWalletRequest $paypal): void + public function setPaypal(?VaultPaypalWalletRequest $paypal): void { $this->paypal = $paypal; } diff --git a/src/Models/SetupTokenResponse.php b/src/Models/SetupTokenResponse.php index 577839c..db3c8f1 100644 --- a/src/Models/SetupTokenResponse.php +++ b/src/Models/SetupTokenResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SetupTokenResponseCard.php b/src/Models/SetupTokenResponseCard.php index f677a90..467cdb0 100644 --- a/src/Models/SetupTokenResponseCard.php +++ b/src/Models/SetupTokenResponseCard.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SetupTokenResponsePaymentSource.php b/src/Models/SetupTokenResponsePaymentSource.php index 7d85a5a..8210166 100644 --- a/src/Models/SetupTokenResponsePaymentSource.php +++ b/src/Models/SetupTokenResponsePaymentSource.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -23,7 +23,7 @@ class SetupTokenResponsePaymentSource implements \JsonSerializable private $card; /** - * @var PayPalPaymentToken|null + * @var PaypalPaymentToken|null */ private $paypal; @@ -53,7 +53,7 @@ class SetupTokenResponsePaymentSource implements \JsonSerializable /** * Returns Paypal. */ - public function getPaypal(): ?PayPalPaymentToken + public function getPaypal(): ?PaypalPaymentToken { return $this->paypal; } @@ -63,7 +63,7 @@ class SetupTokenResponsePaymentSource implements \JsonSerializable * * @maps paypal */ - public function setPaypal(?PayPalPaymentToken $paypal): void + public function setPaypal(?PaypalPaymentToken $paypal): void { $this->paypal = $paypal; } diff --git a/src/Models/ShipmentCarrier.php b/src/Models/ShipmentCarrier.php index 0ea33b0..1ee5d3c 100644 --- a/src/Models/ShipmentCarrier.php +++ b/src/Models/ShipmentCarrier.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/ShippingDetails.php b/src/Models/ShippingDetails.php index 306d234..809ce17 100644 --- a/src/Models/ShippingDetails.php +++ b/src/Models/ShippingDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ShippingName.php b/src/Models/ShippingName.php index 9e3af18..9becf00 100644 --- a/src/Models/ShippingName.php +++ b/src/Models/ShippingName.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ShippingOption.php b/src/Models/ShippingOption.php index a9c7cd3..a2db008 100644 --- a/src/Models/ShippingOption.php +++ b/src/Models/ShippingOption.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ShippingPreference.php b/src/Models/ShippingPreference.php index 314fcd2..dabbf45 100644 --- a/src/Models/ShippingPreference.php +++ b/src/Models/ShippingPreference.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/ShippingType.php b/src/Models/ShippingType.php index 8f9b880..decc726 100644 --- a/src/Models/ShippingType.php +++ b/src/Models/ShippingType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/ShippingWithTrackingDetails.php b/src/Models/ShippingWithTrackingDetails.php index d80d60a..d621c64 100644 --- a/src/Models/ShippingWithTrackingDetails.php +++ b/src/Models/ShippingWithTrackingDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SofortPaymentObject.php b/src/Models/SofortPaymentObject.php index 2f11f3f..793420b 100644 --- a/src/Models/SofortPaymentObject.php +++ b/src/Models/SofortPaymentObject.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SofortPaymentRequest.php b/src/Models/SofortPaymentRequest.php index 498d90f..6fbff04 100644 --- a/src/Models/SofortPaymentRequest.php +++ b/src/Models/SofortPaymentRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/StandardEntryClassCode.php b/src/Models/StandardEntryClassCode.php index eb0b1bd..b8e496e 100644 --- a/src/Models/StandardEntryClassCode.php +++ b/src/Models/StandardEntryClassCode.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/StoreInVaultInstruction.php b/src/Models/StoreInVaultInstruction.php index d3c472c..5e9f33a 100644 --- a/src/Models/StoreInVaultInstruction.php +++ b/src/Models/StoreInVaultInstruction.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/StoredPaymentSource.php b/src/Models/StoredPaymentSource.php index c1a0db2..8d2e18a 100644 --- a/src/Models/StoredPaymentSource.php +++ b/src/Models/StoredPaymentSource.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/StoredPaymentSourcePaymentType.php b/src/Models/StoredPaymentSourcePaymentType.php index d65df5a..de1bc70 100644 --- a/src/Models/StoredPaymentSourcePaymentType.php +++ b/src/Models/StoredPaymentSourcePaymentType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/StoredPaymentSourceUsageType.php b/src/Models/StoredPaymentSourceUsageType.php index 56bd77f..3b06485 100644 --- a/src/Models/StoredPaymentSourceUsageType.php +++ b/src/Models/StoredPaymentSourceUsageType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/SupplementaryData.php b/src/Models/SupplementaryData.php index ff2ddd3..13a471f 100644 --- a/src/Models/SupplementaryData.php +++ b/src/Models/SupplementaryData.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/SupplementaryPurchaseData.php b/src/Models/SupplementaryPurchaseData.php index e650468..61fa527 100644 --- a/src/Models/SupplementaryPurchaseData.php +++ b/src/Models/SupplementaryPurchaseData.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/TaxIdType.php b/src/Models/TaxIdType.php index b5fc5ae..8d52015 100644 --- a/src/Models/TaxIdType.php +++ b/src/Models/TaxIdType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/TaxInfo.php b/src/Models/TaxInfo.php index 39d5a06..49333d3 100644 --- a/src/Models/TaxInfo.php +++ b/src/Models/TaxInfo.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/ThreeDSecureAuthenticationResponse.php b/src/Models/ThreeDSecureAuthenticationResponse.php index d1cd5a5..b377296 100644 --- a/src/Models/ThreeDSecureAuthenticationResponse.php +++ b/src/Models/ThreeDSecureAuthenticationResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -80,7 +80,7 @@ class ThreeDSecureAuthenticationResponse implements \JsonSerializable { $json = []; if (isset($this->authenticationStatus)) { - $json['authentication_status'] = PAResStatus::checkValue($this->authenticationStatus); + $json['authentication_status'] = PaResStatus::checkValue($this->authenticationStatus); } if (isset($this->enrollmentStatus)) { $json['enrollment_status'] = EnrollmentStatus::checkValue($this->enrollmentStatus); diff --git a/src/Models/Token.php b/src/Models/Token.php index c9fe591..e90505d 100644 --- a/src/Models/Token.php +++ b/src/Models/Token.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/TokenRequestType.php b/src/Models/TokenRequestType.php index c5d97d2..3eaa98c 100644 --- a/src/Models/TokenRequestType.php +++ b/src/Models/TokenRequestType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/TokenType.php b/src/Models/TokenType.php index 3d79b83..69974a0 100644 --- a/src/Models/TokenType.php +++ b/src/Models/TokenType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/TrustlyPaymentObject.php b/src/Models/TrustlyPaymentObject.php index a24e30f..516f96e 100644 --- a/src/Models/TrustlyPaymentObject.php +++ b/src/Models/TrustlyPaymentObject.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/TrustlyPaymentRequest.php b/src/Models/TrustlyPaymentRequest.php index cbd5f98..f4ac92a 100644 --- a/src/Models/TrustlyPaymentRequest.php +++ b/src/Models/TrustlyPaymentRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/UniversalProductCode.php b/src/Models/UniversalProductCode.php index 530b0b0..b2eb1ad 100644 --- a/src/Models/UniversalProductCode.php +++ b/src/Models/UniversalProductCode.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; @@ -91,7 +91,7 @@ class UniversalProductCode implements \JsonSerializable public function jsonSerialize(bool $asArrayWhenEmpty = false) { $json = []; - $json['type'] = UPCType::checkValue($this->type); + $json['type'] = UpcType::checkValue($this->type); $json['code'] = $this->code; return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; diff --git a/src/Models/UPCType.php b/src/Models/UpcType.php similarity index 89% rename from src/Models/UPCType.php rename to src/Models/UpcType.php index eb28d49..e27671a 100644 --- a/src/Models/UPCType.php +++ b/src/Models/UpcType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; @@ -17,7 +17,7 @@ use stdClass; /** * The Universal Product Code type. */ -class UPCType +class UpcType { public const UPCA = 'UPC-A'; @@ -50,6 +50,6 @@ class UPCType if (CoreHelper::checkValueOrValuesInList($value, self::_ALL_VALUES)) { return $value; } - throw new Exception("$value is invalid for UPCType."); + throw new Exception("$value is invalid for UpcType."); } } diff --git a/src/Models/VaultCustomer.php b/src/Models/VaultCustomer.php index 15108f3..4a2fb68 100644 --- a/src/Models/VaultCustomer.php +++ b/src/Models/VaultCustomer.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VaultExperienceContext.php b/src/Models/VaultExperienceContext.php index c5d9a21..a83a21b 100644 --- a/src/Models/VaultExperienceContext.php +++ b/src/Models/VaultExperienceContext.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VaultInstruction.php b/src/Models/VaultInstruction.php index 28787f8..fc4f1c0 100644 --- a/src/Models/VaultInstruction.php +++ b/src/Models/VaultInstruction.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VaultInstructionBase.php b/src/Models/VaultInstructionBase.php index b021cc5..f01eaf5 100644 --- a/src/Models/VaultInstructionBase.php +++ b/src/Models/VaultInstructionBase.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VaultPayPalWalletRequest.php b/src/Models/VaultPaypalWalletRequest.php similarity index 98% rename from src/Models/VaultPayPalWalletRequest.php rename to src/Models/VaultPaypalWalletRequest.php index fbcff1e..3b264f3 100644 --- a/src/Models/VaultPayPalWalletRequest.php +++ b/src/Models/VaultPaypalWalletRequest.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; /** * A resource representing a request to vault PayPal Wallet. */ -class VaultPayPalWalletRequest implements \JsonSerializable +class VaultPaypalWalletRequest implements \JsonSerializable { /** * @var string|null diff --git a/src/Models/VaultResponse.php b/src/Models/VaultResponse.php index 4b97511..7e26559 100644 --- a/src/Models/VaultResponse.php +++ b/src/Models/VaultResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VaultStatus.php b/src/Models/VaultStatus.php index 327afd5..21f9a08 100644 --- a/src/Models/VaultStatus.php +++ b/src/Models/VaultStatus.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/VaultTokenRequest.php b/src/Models/VaultTokenRequest.php index b9af371..d6d428b 100644 --- a/src/Models/VaultTokenRequest.php +++ b/src/Models/VaultTokenRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VaultVenmoExperienceContext.php b/src/Models/VaultVenmoExperienceContext.php index 41a87f3..8a5b4b0 100644 --- a/src/Models/VaultVenmoExperienceContext.php +++ b/src/Models/VaultVenmoExperienceContext.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VaultVenmoRequest.php b/src/Models/VaultVenmoRequest.php index 82b1d37..5f5e380 100644 --- a/src/Models/VaultVenmoRequest.php +++ b/src/Models/VaultVenmoRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VaultedDigitalWallet.php b/src/Models/VaultedDigitalWallet.php index d4bb148..cbfaf04 100644 --- a/src/Models/VaultedDigitalWallet.php +++ b/src/Models/VaultedDigitalWallet.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VaultedDigitalWalletShippingDetails.php b/src/Models/VaultedDigitalWalletShippingDetails.php index e0e4d91..5fe12a2 100644 --- a/src/Models/VaultedDigitalWalletShippingDetails.php +++ b/src/Models/VaultedDigitalWalletShippingDetails.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VenmoPaymentToken.php b/src/Models/VenmoPaymentToken.php index b0428f7..9849e5d 100644 --- a/src/Models/VenmoPaymentToken.php +++ b/src/Models/VenmoPaymentToken.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VenmoPaymentTokenCustomerType.php b/src/Models/VenmoPaymentTokenCustomerType.php index e01a40c..f2ca186 100644 --- a/src/Models/VenmoPaymentTokenCustomerType.php +++ b/src/Models/VenmoPaymentTokenCustomerType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/VenmoPaymentTokenUsagePattern.php b/src/Models/VenmoPaymentTokenUsagePattern.php index 262e2e7..c3bcb98 100644 --- a/src/Models/VenmoPaymentTokenUsagePattern.php +++ b/src/Models/VenmoPaymentTokenUsagePattern.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/VenmoPaymentTokenUsageType.php b/src/Models/VenmoPaymentTokenUsageType.php index 70e543c..b48d3c0 100644 --- a/src/Models/VenmoPaymentTokenUsageType.php +++ b/src/Models/VenmoPaymentTokenUsageType.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use Core\Utils\CoreHelper; use Exception; diff --git a/src/Models/VenmoWalletAdditionalAttributes.php b/src/Models/VenmoWalletAdditionalAttributes.php index 314f159..85cb0d7 100644 --- a/src/Models/VenmoWalletAdditionalAttributes.php +++ b/src/Models/VenmoWalletAdditionalAttributes.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VenmoWalletAttributesResponse.php b/src/Models/VenmoWalletAttributesResponse.php index ea8e18c..ed69629 100644 --- a/src/Models/VenmoWalletAttributesResponse.php +++ b/src/Models/VenmoWalletAttributesResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VenmoWalletCustomerInformation.php b/src/Models/VenmoWalletCustomerInformation.php index 79a3fe4..27bea74 100644 --- a/src/Models/VenmoWalletCustomerInformation.php +++ b/src/Models/VenmoWalletCustomerInformation.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VenmoWalletExperienceContext.php b/src/Models/VenmoWalletExperienceContext.php index 9363e29..3c76343 100644 --- a/src/Models/VenmoWalletExperienceContext.php +++ b/src/Models/VenmoWalletExperienceContext.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VenmoWalletRequest.php b/src/Models/VenmoWalletRequest.php index f851630..b9764e5 100644 --- a/src/Models/VenmoWalletRequest.php +++ b/src/Models/VenmoWalletRequest.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VenmoWalletResponse.php b/src/Models/VenmoWalletResponse.php index 432a151..915148c 100644 --- a/src/Models/VenmoWalletResponse.php +++ b/src/Models/VenmoWalletResponse.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/Models/VenmoWalletVaultAttributes.php b/src/Models/VenmoWalletVaultAttributes.php index eeae08c..455901e 100644 --- a/src/Models/VenmoWalletVaultAttributes.php +++ b/src/Models/VenmoWalletVaultAttributes.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Models; +namespace PaypalServerSdkLib\Models; use stdClass; diff --git a/src/PaypalServerSDKClient.php b/src/PaypalServerSdkClient.php similarity index 88% rename from src/PaypalServerSDKClient.php rename to src/PaypalServerSdkClient.php index 8b1724c..0b08c06 100644 --- a/src/PaypalServerSDKClient.php +++ b/src/PaypalServerSdkClient.php @@ -3,29 +3,29 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib; +namespace PaypalServerSdkLib; use Core\ClientBuilder; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Authentication\ClientCredentialsAuthCredentialsBuilder; -use PaypalServerSDKLib\Authentication\ClientCredentialsAuthManager; -use PaypalServerSDKLib\Controllers\OAuthAuthorizationController; -use PaypalServerSDKLib\Controllers\OrdersController; -use PaypalServerSDKLib\Controllers\PaymentsController; -use PaypalServerSDKLib\Controllers\VaultController; -use PaypalServerSDKLib\Logging\LoggingConfigurationBuilder; -use PaypalServerSDKLib\Logging\RequestLoggingConfigurationBuilder; -use PaypalServerSDKLib\Logging\ResponseLoggingConfigurationBuilder; -use PaypalServerSDKLib\Utils\CompatibilityConverter; +use PaypalServerSdkLib\Authentication\ClientCredentialsAuthCredentialsBuilder; +use PaypalServerSdkLib\Authentication\ClientCredentialsAuthManager; +use PaypalServerSdkLib\Controllers\OAuthAuthorizationController; +use PaypalServerSdkLib\Controllers\OrdersController; +use PaypalServerSdkLib\Controllers\PaymentsController; +use PaypalServerSdkLib\Controllers\VaultController; +use PaypalServerSdkLib\Logging\LoggingConfigurationBuilder; +use PaypalServerSdkLib\Logging\RequestLoggingConfigurationBuilder; +use PaypalServerSdkLib\Logging\ResponseLoggingConfigurationBuilder; +use PaypalServerSdkLib\Utils\CompatibilityConverter; use Unirest\Configuration; use Unirest\HttpClient; -class PaypalServerSDKClient implements ConfigurationInterface +class PaypalServerSdkClient implements ConfigurationInterface { private $orders; @@ -44,8 +44,8 @@ class PaypalServerSDKClient implements ConfigurationInterface private $client; /** - * @see PaypalServerSDKClientBuilder::init() - * @see PaypalServerSDKClientBuilder::build() + * @see PaypalServerSdkClientBuilder::init() + * @see PaypalServerSdkClientBuilder::build() * * @param array $config */ @@ -62,7 +62,7 @@ class PaypalServerSDKClient implements ConfigurationInterface ->converter(new CompatibilityConverter()) ->jsonHelper(ApiHelper::getJsonHelper()) ->apiCallback($this->config['httpCallback'] ?? null) - ->userAgent('PayPal REST API PHP SDK, Version: 0.5.2, on OS {os-info}') + ->userAgent('PayPal REST API PHP SDK, Version: 0.6.0, on OS {os-info}') ->serverUrls(self::ENVIRONMENT_MAP[$this->getEnvironment()], Server::DEFAULT_) ->authManagers(['Oauth2' => $this->clientCredentialsAuthManager]) ->loggingConfiguration($loggingConfiguration) @@ -73,11 +73,11 @@ class PaypalServerSDKClient implements ConfigurationInterface /** * Create a builder with the current client's configurations. * - * @return PaypalServerSDKClientBuilder PaypalServerSDKClientBuilder instance + * @return PaypalServerSdkClientBuilder PaypalServerSdkClientBuilder instance */ - public function toBuilder(): PaypalServerSDKClientBuilder + public function toBuilder(): PaypalServerSdkClientBuilder { - $builder = PaypalServerSDKClientBuilder::init() + $builder = PaypalServerSdkClientBuilder::init() ->timeout($this->getTimeout()) ->enableRetries($this->shouldEnableRetries()) ->numberOfRetries($this->getNumberOfRetries()) @@ -198,7 +198,7 @@ class PaypalServerSDKClient implements ConfigurationInterface /** * Get the client configuration as an associative array * - * @see PaypalServerSDKClientBuilder::getConfiguration() + * @see PaypalServerSdkClientBuilder::getConfiguration() */ public function getConfiguration(): array { @@ -208,7 +208,7 @@ class PaypalServerSDKClient implements ConfigurationInterface /** * Clone this client and override given configuration options * - * @see PaypalServerSDKClientBuilder::build() + * @see PaypalServerSdkClientBuilder::build() */ public function withConfiguration(array $config): self { diff --git a/src/PaypalServerSDKClientBuilder.php b/src/PaypalServerSdkClientBuilder.php similarity index 90% rename from src/PaypalServerSDKClientBuilder.php rename to src/PaypalServerSdkClientBuilder.php index 203a6d1..be352ef 100644 --- a/src/PaypalServerSDKClientBuilder.php +++ b/src/PaypalServerSdkClientBuilder.php @@ -3,19 +3,19 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib; +namespace PaypalServerSdkLib; use Core\Types\Sdk\CoreCallback; use Core\Utils\CoreHelper; -use PaypalServerSDKLib\Authentication\ClientCredentialsAuthCredentialsBuilder; -use PaypalServerSDKLib\Logging\LoggingConfigurationBuilder; +use PaypalServerSdkLib\Authentication\ClientCredentialsAuthCredentialsBuilder; +use PaypalServerSdkLib\Logging\LoggingConfigurationBuilder; -class PaypalServerSDKClientBuilder +class PaypalServerSdkClientBuilder { /** * @var array @@ -131,8 +131,8 @@ class PaypalServerSDKClientBuilder return $this; } - public function build(): PaypalServerSDKClient + public function build(): PaypalServerSdkClient { - return new PaypalServerSDKClient($this->config); + return new PaypalServerSdkClient($this->config); } } diff --git a/src/Server.php b/src/Server.php index 5181a7d..b7083f3 100644 --- a/src/Server.php +++ b/src/Server.php @@ -3,12 +3,12 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib; +namespace PaypalServerSdkLib; /** * Baseurl aliases diff --git a/src/Utils/CompatibilityConverter.php b/src/Utils/CompatibilityConverter.php index fb2c1e2..dcdd0b1 100644 --- a/src/Utils/CompatibilityConverter.php +++ b/src/Utils/CompatibilityConverter.php @@ -3,22 +3,22 @@ declare(strict_types=1); /* - * PaypalServerSDKLib + * PaypalServerSdkLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ -namespace PaypalServerSDKLib\Utils; +namespace PaypalServerSdkLib\Utils; use CoreInterfaces\Core\ContextInterface; use CoreInterfaces\Core\Request\RequestInterface; use CoreInterfaces\Core\Response\ResponseInterface; use CoreInterfaces\Sdk\ConverterInterface; -use PaypalServerSDKLib\Exceptions\ApiException; -use PaypalServerSDKLib\Http\ApiResponse; -use PaypalServerSDKLib\Http\HttpContext; -use PaypalServerSDKLib\Http\HttpRequest; -use PaypalServerSDKLib\Http\HttpResponse; +use PaypalServerSdkLib\Exceptions\ApiException; +use PaypalServerSdkLib\Http\ApiResponse; +use PaypalServerSdkLib\Http\HttpContext; +use PaypalServerSdkLib\Http\HttpRequest; +use PaypalServerSdkLib\Http\HttpResponse; class CompatibilityConverter implements ConverterInterface {