From c83ed13a5573b2929ff5d1ff19a9a35c1784c00a Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Mon, 6 Nov 2023 05:00:57 +0000 Subject: [PATCH] Generated Xendit php SDK --- .openapi-generator/FILES | 92 +- README.md | 22 +- composer.json | 2 +- docs/BalanceAndTransaction.yaml | 1054 ------- docs/BalanceAndTransaction/Balance.md | 9 +- .../ChannelsCategories.md | 3 +- docs/BalanceAndTransaction/Currency.md | 3 +- docs/BalanceAndTransaction/DateRangeFilter.md | 9 +- docs/BalanceAndTransaction/FeeResponse.md | 15 +- docs/BalanceAndTransaction/LinkItem.md | 11 +- docs/BalanceAndTransaction/ServerError.md | 11 +- .../TransactionResponse.md | 39 +- .../TransactionResponseType.md | 7 +- .../TransactionStatuses.md | 3 +- .../BalanceAndTransaction/TransactionTypes.md | 3 +- .../TransactionsResponse.md | 13 +- docs/BalanceAndTransaction/ValidationError.md | 13 +- .../{BalanceAndTransaction => }/BalanceApi.md | 60 +- docs/Customer.yaml | 1555 ---------- docs/Customer/AccountBank.md | 17 +- docs/Customer/AccountCard.md | 7 +- docs/Customer/AccountEwallet.md | 11 +- docs/Customer/AccountOTC.md | 9 +- docs/Customer/AccountPayLater.md | 11 +- docs/Customer/AccountQRCode.md | 7 +- docs/Customer/Address.md | 31 +- docs/Customer/AddressRequest.md | 25 +- docs/Customer/AddressStatus.md | 3 +- docs/Customer/BusinessDetail.md | 15 +- docs/Customer/CreateCustomer400Response.md | 11 +- .../CreateCustomer400ResponseAllOf.md | 9 +- docs/Customer/Customer.md | 37 +- docs/Customer/CustomerApi.md | 239 -- docs/Customer/CustomerRequest.md | 31 +- docs/Customer/EmploymentDetail.md | 11 +- docs/Customer/EndCustomerStatus.md | 3 +- docs/Customer/Error.md | 11 +- .../GetCustomerByReferenceID200Response.md | 9 +- .../GetCustomerByReferenceID400Response.md | 11 +- ...etCustomerByReferenceID400ResponseAllOf.md | 9 +- docs/Customer/IdentityAccountRequest.md | 15 +- .../IdentityAccountRequestProperties.md | 27 +- docs/Customer/IdentityAccountResponse.md | 23 +- .../IdentityAccountResponseProperties.md | 27 +- docs/Customer/IdentityAccountType.md | 3 +- docs/Customer/IndividualDetail.md | 27 +- docs/Customer/KYCDocumentRequest.md | 21 +- docs/Customer/KYCDocumentResponse.md | 21 +- docs/Customer/KYCDocumentSubType.md | 3 +- docs/Customer/KYCDocumentType.md | 3 +- docs/Customer/PatchCustomer.md | 31 +- docs/Customer/ResponseDataNotFound.md | 9 +- docs/Customer/UpdateCustomer400Response.md | 11 +- .../UpdateCustomer400ResponseAllOf.md | 9 +- docs/CustomerApi.md | 217 ++ docs/Invoice.yaml | 1466 --------- docs/Invoice/AddressObject.md | 21 +- docs/Invoice/AlternativeDisplayItem.md | 11 +- docs/Invoice/BadRequestError.md | 11 +- docs/Invoice/Bank.md | 21 +- docs/Invoice/BankCode.md | 5 +- docs/Invoice/CreateInvoiceRequest.md | 47 +- docs/Invoice/CustomerObject.md | 23 +- docs/Invoice/DirectDebit.md | 9 +- docs/Invoice/DirectDebitType.md | 5 +- docs/Invoice/Ewallet.md | 9 +- docs/Invoice/EwalletType.md | 5 +- docs/Invoice/ForbiddenError.md | 11 +- docs/Invoice/Invoice.md | 73 +- docs/Invoice/InvoiceClientType.md | 5 +- docs/Invoice/InvoiceCurrency.md | 5 +- .../InvoiceError404ResponseDefinition.md | 11 +- docs/Invoice/InvoiceFee.md | 11 +- docs/Invoice/InvoiceItem.md | 19 +- docs/Invoice/InvoiceNotFoundError.md | 11 +- docs/Invoice/InvoicePaymentMethod.md | 5 +- docs/Invoice/InvoiceStatus.md | 5 +- docs/Invoice/NotificationChannel.md | 5 +- docs/Invoice/NotificationPreference.md | 15 +- docs/Invoice/Paylater.md | 11 +- docs/Invoice/PaylaterType.md | 5 +- docs/Invoice/QrCode.md | 9 +- docs/Invoice/QrCodeType.md | 5 +- docs/Invoice/RetailOutlet.md | 15 +- docs/Invoice/RetailOutletName.md | 5 +- docs/Invoice/ServerError.md | 9 +- docs/Invoice/UnauthorizedError.md | 11 +- docs/{Invoice => }/InvoiceApi.md | 215 +- docs/PaymentMethod.yaml | 2287 -------------- docs/PaymentMethod/BillingInformation.md | 19 +- docs/PaymentMethod/Card.md | 15 +- docs/PaymentMethod/CardChannelProperties.md | 15 +- docs/PaymentMethod/CardParameters.md | 11 +- .../CardParametersCardInformation.md | 17 +- docs/PaymentMethod/CardVerificationResults.md | 11 +- .../CardVerificationResultsThreeDSecure.md | 15 +- .../CreatePaymentMethod409Response.md | 9 +- .../CreatePaymentMethod503Response.md | 9 +- docs/PaymentMethod/DirectDebit.md | 17 +- docs/PaymentMethod/DirectDebitAllOf.md | 11 +- docs/PaymentMethod/DirectDebitBankAccount.md | 13 +- docs/PaymentMethod/DirectDebitChannelCode.md | 5 +- .../DirectDebitChannelProperties.md | 24 +- docs/PaymentMethod/DirectDebitDebitCard.md | 14 +- docs/PaymentMethod/DirectDebitParameters.md | 9 +- docs/PaymentMethod/DirectDebitType.md | 3 +- docs/PaymentMethod/EWallet.md | 13 +- docs/PaymentMethod/EWalletAccount.md | 15 +- docs/PaymentMethod/EWalletChannelCode.md | 7 +- .../PaymentMethod/EWalletChannelProperties.md | 19 +- docs/PaymentMethod/EWalletParameters.md | 11 +- .../GetAllPaymentMethods400Response.md | 9 +- .../GetAllPaymentMethods403Response.md | 9 +- .../GetAllPaymentMethods404Response.md | 9 +- .../GetAllPaymentMethodsDefaultResponse.md | 9 +- docs/PaymentMethod/OverTheCounter.md | 15 +- .../OverTheCounterChannelCode.md | 5 +- .../OverTheCounterChannelProperties.md | 13 +- .../OverTheCounterChannelPropertiesUpdate.md | 11 +- .../PaymentMethod/OverTheCounterParameters.md | 13 +- .../OverTheCounterUpdateParameters.md | 9 +- docs/PaymentMethod/PaymentMethod.md | 49 +- docs/PaymentMethod/PaymentMethodAction.md | 13 +- docs/PaymentMethod/PaymentMethodApi.md | 508 ---- .../PaymentMethodAuthParameters.md | 7 +- docs/PaymentMethod/PaymentMethodCountry.md | 5 +- .../PaymentMethodExpireParameters.md | 9 +- docs/PaymentMethod/PaymentMethodList.md | 9 +- docs/PaymentMethod/PaymentMethodParameters.md | 33 +- .../PaymentMethod/PaymentMethodReusability.md | 3 +- docs/PaymentMethod/PaymentMethodStatus.md | 3 +- docs/PaymentMethod/PaymentMethodType.md | 3 +- .../PaymentMethodUpdateParameters.md | 17 +- docs/PaymentMethod/QRCode.md | 15 +- docs/PaymentMethod/QRCodeChannelCode.md | 5 +- docs/PaymentMethod/QRCodeChannelProperties.md | 11 +- docs/PaymentMethod/QRCodeParameters.md | 13 +- docs/PaymentMethod/SimulatePaymentRequest.md | 7 +- .../PaymentMethod/TokenizedCardInformation.md | 27 +- docs/PaymentMethod/VirtualAccount.md | 23 +- docs/PaymentMethod/VirtualAccountAllOf.md | 7 +- .../VirtualAccountAlternativeDisplay.md | 11 +- .../VirtualAccountChannelCode.md | 7 +- .../VirtualAccountChannelProperties.md | 15 +- .../VirtualAccountChannelPropertiesPatch.md | 11 +- .../PaymentMethod/VirtualAccountParameters.md | 19 +- .../VirtualAccountUpdateParameters.md | 15 +- docs/PaymentMethodApi.md | 513 ++++ docs/PaymentRequest.yaml | 2617 ----------------- docs/PaymentRequest/Capture.md | 35 +- docs/PaymentRequest/CaptureListResponse.md | 9 +- docs/PaymentRequest/CaptureParameters.md | 9 +- docs/PaymentRequest/Card.md | 13 +- docs/PaymentRequest/CardChannelProperties.md | 17 +- docs/PaymentRequest/CardInformation.md | 27 +- .../PaymentRequest/CardVerificationResults.md | 11 +- .../CardVerificationResultsThreeDSecure.md | 15 +- docs/PaymentRequest/DirectDebit.md | 17 +- docs/PaymentRequest/DirectDebitAllOf.md | 11 +- docs/PaymentRequest/DirectDebitBankAccount.md | 9 +- docs/PaymentRequest/DirectDebitChannelCode.md | 5 +- .../DirectDebitChannelProperties.md | 21 +- ...DirectDebitChannelPropertiesBankAccount.md | 15 +- ...irectDebitChannelPropertiesBankRedirect.md | 13 +- .../DirectDebitChannelPropertiesDebitCard.md | 17 +- docs/PaymentRequest/DirectDebitDebitCard.md | 15 +- docs/PaymentRequest/DirectDebitParameters.md | 11 +- docs/PaymentRequest/DirectDebitType.md | 3 +- docs/PaymentRequest/EWallet.md | 13 +- docs/PaymentRequest/EWalletAccount.md | 15 +- docs/PaymentRequest/EWalletAllOf.md | 7 +- docs/PaymentRequest/EWalletChannelCode.md | 7 +- .../EWalletChannelProperties.md | 19 +- docs/PaymentRequest/EWalletParameters.md | 9 +- docs/PaymentRequest/Error.md | 9 +- docs/PaymentRequest/OverTheCounter.md | 15 +- .../OverTheCounterChannelCode.md | 5 +- .../OverTheCounterChannelProperties.md | 13 +- .../OverTheCounterParameters.md | 13 +- docs/PaymentRequest/PaymentMethod.md | 35 +- .../PaymentRequest/PaymentMethodParameters.md | 23 +- .../PaymentMethodReusability.md | 3 +- docs/PaymentRequest/PaymentMethodStatus.md | 3 +- docs/PaymentRequest/PaymentMethodType.md | 3 +- docs/PaymentRequest/PaymentRequest.md | 51 +- docs/PaymentRequest/PaymentRequestAction.md | 15 +- docs/PaymentRequest/PaymentRequestApi.md | 424 --- .../PaymentRequestAuthParameters.md | 7 +- .../PaymentRequestBasketItem.md | 31 +- .../PaymentRequestCaptureMethod.md | 3 +- .../PaymentRequestCardVerificationResults.md | 11 +- ...stCardVerificationResultsThreeDeeSecure.md | 15 +- .../PaymentRequestChannelProperties.md | 19 +- docs/PaymentRequest/PaymentRequestCountry.md | 3 +- docs/PaymentRequest/PaymentRequestCurrency.md | 5 +- .../PaymentRequest/PaymentRequestInitiator.md | 3 +- .../PaymentRequestListResponse.md | 9 +- .../PaymentRequestParameters.md | 33 +- ...ymentRequestParametersChannelProperties.md | 21 +- ...RequestParametersChannelPropertiesAllOf.md | 7 +- .../PaymentRequestShippingInformation.md | 17 +- docs/PaymentRequest/PaymentRequestStatus.md | 3 +- docs/PaymentRequest/QRCode.md | 11 +- docs/PaymentRequest/QRCodeChannelCode.md | 5 +- .../PaymentRequest/QRCodeChannelProperties.md | 11 +- docs/PaymentRequest/QRCodeParameters.md | 9 +- docs/PaymentRequest/VirtualAccount.md | 23 +- docs/PaymentRequest/VirtualAccountAllOf.md | 7 +- .../VirtualAccountAlternativeDisplay.md | 11 +- .../VirtualAccountChannelCode.md | 7 +- .../VirtualAccountChannelProperties.md | 15 +- .../VirtualAccountParameters.md | 19 +- docs/PaymentRequestApi.md | 535 ++++ docs/Payout.yaml | 894 ------ docs/Payout/Channel.md | 17 +- docs/Payout/ChannelAccountType.md | 5 +- docs/Payout/ChannelAmountLimits.md | 13 +- docs/Payout/ChannelCategory.md | 5 +- docs/Payout/CreatePayoutRequest.md | 23 +- docs/Payout/DigitalPayoutChannelProperties.md | 13 +- docs/Payout/Error.md | 11 +- docs/Payout/ErrorErrorsInner.md | 9 +- docs/Payout/GetPayouts200Response.md | 11 +- docs/Payout/GetPayouts200ResponseDataInner.md | 35 +- docs/Payout/GetPayouts200ResponseLinks.md | 11 +- docs/Payout/Payout.md | 35 +- docs/Payout/PayoutAllOf.md | 19 +- docs/Payout/ReceiptNotification.md | 13 +- docs/{Payout => }/PayoutApi.md | 242 +- docs/Refund.yaml | 569 ---- docs/Refund/CreateRefund.md | 19 +- docs/Refund/CreateRefund400Response.md | 9 +- docs/Refund/CreateRefund403Response.md | 9 +- docs/Refund/CreateRefund404Response.md | 9 +- docs/Refund/CreateRefund409Response.md | 9 +- docs/Refund/CreateRefund503Response.md | 9 +- docs/Refund/GetAllRefundsDefaultResponse.md | 9 +- docs/Refund/Refund.md | 29 +- docs/Refund/RefundList.md | 9 +- docs/{Refund => }/RefundApi.md | 192 +- .../TransactionApi.md | 128 +- {docs => images}/header.jpg | Bin lib/BalanceAndTransaction/Balance.php | 2 +- lib/BalanceAndTransaction/BalanceApi.php | 4 +- .../ChannelsCategories.php | 2 +- lib/BalanceAndTransaction/Currency.php | 2 +- lib/BalanceAndTransaction/DateRangeFilter.php | 2 +- lib/BalanceAndTransaction/FeeResponse.php | 2 +- lib/BalanceAndTransaction/LinkItem.php | 2 +- lib/BalanceAndTransaction/ServerError.php | 2 +- lib/BalanceAndTransaction/TransactionApi.php | 6 +- .../TransactionResponse.php | 2 +- .../TransactionResponseType.php | 2 +- .../TransactionStatuses.php | 2 +- .../TransactionTypes.php | 2 +- .../TransactionsResponse.php | 2 +- lib/BalanceAndTransaction/ValidationError.php | 2 +- lib/Configuration.php | 8 +- lib/Customer/CustomerApi.php | 8 +- lib/HeaderSelector.php | 2 +- lib/Invoice/InvoiceApi.php | 8 +- lib/Model/ModelInterface.php | 2 +- lib/ObjectSerializer.php | 2 +- lib/PaymentMethod/BillingInformation.php | 2 +- lib/PaymentMethod/Card.php | 2 +- lib/PaymentMethod/CardChannelProperties.php | 2 +- lib/PaymentMethod/CardParameters.php | 2 +- .../CardParametersCardInformation.php | 2 +- lib/PaymentMethod/CardVerificationResults.php | 2 +- .../CardVerificationResultsThreeDSecure.php | 2 +- .../CreatePaymentMethod409Response.php | 2 +- .../CreatePaymentMethod503Response.php | 2 +- lib/PaymentMethod/DirectDebit.php | 2 +- lib/PaymentMethod/DirectDebitAllOf.php | 2 +- lib/PaymentMethod/DirectDebitBankAccount.php | 2 +- lib/PaymentMethod/DirectDebitChannelCode.php | 2 +- .../DirectDebitChannelProperties.php | 55 +- lib/PaymentMethod/DirectDebitDebitCard.php | 55 +- lib/PaymentMethod/DirectDebitParameters.php | 2 +- lib/PaymentMethod/DirectDebitType.php | 2 +- lib/PaymentMethod/EWallet.php | 2 +- lib/PaymentMethod/EWalletAccount.php | 2 +- lib/PaymentMethod/EWalletChannelCode.php | 5 +- .../EWalletChannelProperties.php | 2 +- lib/PaymentMethod/EWalletParameters.php | 2 +- .../GetAllPaymentMethods400Response.php | 2 +- .../GetAllPaymentMethods403Response.php | 2 +- .../GetAllPaymentMethods404Response.php | 2 +- .../GetAllPaymentMethodsDefaultResponse.php | 2 +- lib/PaymentMethod/OverTheCounter.php | 2 +- .../OverTheCounterChannelCode.php | 2 +- .../OverTheCounterChannelProperties.php | 2 +- .../OverTheCounterChannelPropertiesUpdate.php | 2 +- .../OverTheCounterParameters.php | 2 +- .../OverTheCounterUpdateParameters.php | 2 +- lib/PaymentMethod/PaymentMethod.php | 2 +- lib/PaymentMethod/PaymentMethodAction.php | 2 +- lib/PaymentMethod/PaymentMethodApi.php | 18 +- .../PaymentMethodAuthParameters.php | 2 +- lib/PaymentMethod/PaymentMethodCountry.php | 5 +- .../PaymentMethodExpireParameters.php | 2 +- lib/PaymentMethod/PaymentMethodList.php | 2 +- lib/PaymentMethod/PaymentMethodParameters.php | 2 +- .../PaymentMethodReusability.php | 2 +- lib/PaymentMethod/PaymentMethodStatus.php | 2 +- lib/PaymentMethod/PaymentMethodType.php | 2 +- .../PaymentMethodUpdateParameters.php | 2 +- lib/PaymentMethod/QRCode.php | 2 +- lib/PaymentMethod/QRCodeChannelCode.php | 2 +- lib/PaymentMethod/QRCodeChannelProperties.php | 2 +- lib/PaymentMethod/QRCodeParameters.php | 2 +- lib/PaymentMethod/SimulatePaymentRequest.php | 2 +- .../TokenizedCardInformation.php | 2 +- lib/PaymentMethod/VirtualAccount.php | 2 +- lib/PaymentMethod/VirtualAccountAllOf.php | 2 +- .../VirtualAccountAlternativeDisplay.php | 2 +- .../VirtualAccountChannelCode.php | 5 +- .../VirtualAccountChannelProperties.php | 2 +- .../VirtualAccountChannelPropertiesPatch.php | 2 +- .../VirtualAccountParameters.php | 2 +- .../VirtualAccountUpdateParameters.php | 2 +- lib/PaymentRequest/Capture.php | 2 +- lib/PaymentRequest/CaptureListResponse.php | 2 +- lib/PaymentRequest/CaptureParameters.php | 2 +- lib/PaymentRequest/Card.php | 2 +- lib/PaymentRequest/CardChannelProperties.php | 2 +- lib/PaymentRequest/CardInformation.php | 2 +- .../CardVerificationResults.php | 2 +- .../CardVerificationResultsThreeDSecure.php | 2 +- lib/PaymentRequest/DirectDebit.php | 2 +- lib/PaymentRequest/DirectDebitAllOf.php | 2 +- lib/PaymentRequest/DirectDebitBankAccount.php | 2 +- lib/PaymentRequest/DirectDebitChannelCode.php | 2 +- .../DirectDebitChannelProperties.php | 2 +- ...irectDebitChannelPropertiesBankAccount.php | 2 +- ...rectDebitChannelPropertiesBankRedirect.php | 2 +- .../DirectDebitChannelPropertiesDebitCard.php | 2 +- lib/PaymentRequest/DirectDebitDebitCard.php | 2 +- lib/PaymentRequest/DirectDebitParameters.php | 2 +- lib/PaymentRequest/DirectDebitType.php | 2 +- lib/PaymentRequest/EWallet.php | 2 +- lib/PaymentRequest/EWalletAccount.php | 2 +- lib/PaymentRequest/EWalletAllOf.php | 2 +- lib/PaymentRequest/EWalletChannelCode.php | 5 +- .../EWalletChannelProperties.php | 2 +- lib/PaymentRequest/EWalletParameters.php | 2 +- lib/PaymentRequest/Error.php | 2 +- lib/PaymentRequest/OverTheCounter.php | 2 +- .../OverTheCounterChannelCode.php | 2 +- .../OverTheCounterChannelProperties.php | 2 +- .../OverTheCounterParameters.php | 2 +- lib/PaymentRequest/PaymentMethod.php | 2 +- .../PaymentMethodParameters.php | 2 +- .../PaymentMethodReusability.php | 2 +- lib/PaymentRequest/PaymentMethodStatus.php | 2 +- lib/PaymentRequest/PaymentMethodType.php | 2 +- lib/PaymentRequest/PaymentRequest.php | 2 +- lib/PaymentRequest/PaymentRequestAction.php | 2 +- lib/PaymentRequest/PaymentRequestApi.php | 16 +- .../PaymentRequestAuthParameters.php | 2 +- .../PaymentRequestBasketItem.php | 2 +- .../PaymentRequestCaptureMethod.php | 2 +- .../PaymentRequestCardVerificationResults.php | 2 +- ...tCardVerificationResultsThreeDeeSecure.php | 2 +- .../PaymentRequestChannelProperties.php | 2 +- lib/PaymentRequest/PaymentRequestCountry.php | 2 +- lib/PaymentRequest/PaymentRequestCurrency.php | 5 +- .../PaymentRequestInitiator.php | 2 +- .../PaymentRequestListResponse.php | 2 +- .../PaymentRequestParameters.php | 2 +- ...mentRequestParametersChannelProperties.php | 2 +- ...equestParametersChannelPropertiesAllOf.php | 2 +- .../PaymentRequestShippingInformation.php | 2 +- lib/PaymentRequest/PaymentRequestStatus.php | 2 +- lib/PaymentRequest/QRCode.php | 2 +- lib/PaymentRequest/QRCodeChannelCode.php | 2 +- .../QRCodeChannelProperties.php | 2 +- lib/PaymentRequest/QRCodeParameters.php | 2 +- lib/PaymentRequest/VirtualAccount.php | 2 +- lib/PaymentRequest/VirtualAccountAllOf.php | 2 +- .../VirtualAccountAlternativeDisplay.php | 2 +- .../VirtualAccountChannelCode.php | 5 +- .../VirtualAccountChannelProperties.php | 2 +- .../VirtualAccountParameters.php | 2 +- lib/Payout/PayoutApi.php | 10 +- lib/Refund/RefundApi.php | 8 +- lib/XenditSdkException.php | 2 +- test/Api/BalanceApiTest.php | 2 +- test/Api/PaymentMethodApiTest.php | 2 +- test/Api/PaymentRequestApiTest.php | 2 +- test/Api/TransactionApiTest.php | 2 +- .../BalanceTest.php | 4 +- .../ChannelsCategoriesTest.php | 4 +- .../CurrencyTest.php | 4 +- .../DateRangeFilterTest.php | 4 +- .../FeeResponseTest.php | 4 +- .../LinkItemTest.php | 4 +- .../ServerErrorTest.php | 4 +- .../TransactionResponseTest.php | 4 +- .../TransactionResponseTypeTest.php | 4 +- .../TransactionStatusesTest.php | 4 +- .../TransactionTypesTest.php | 4 +- .../TransactionsResponseTest.php | 4 +- .../ValidationErrorTest.php | 4 +- test/Model/{ => Customer}/AccountBankTest.php | 2 +- test/Model/{ => Customer}/AccountCardTest.php | 2 +- .../{ => Customer}/AccountEwalletTest.php | 2 +- test/Model/{ => Customer}/AccountOTCTest.php | 2 +- .../{ => Customer}/AccountPayLaterTest.php | 2 +- .../{ => Customer}/AccountQRCodeTest.php | 2 +- .../{ => Customer}/AddressRequestTest.php | 2 +- .../{ => Customer}/AddressStatusTest.php | 2 +- test/Model/{ => Customer}/AddressTest.php | 2 +- .../{ => Customer}/BusinessDetailTest.php | 2 +- .../CreateCustomer400ResponseAllOfTest.php | 2 +- .../CreateCustomer400ResponseTest.php | 2 +- .../{ => Customer}/CustomerRequestTest.php | 2 +- test/Model/{ => Customer}/CustomerTest.php | 2 +- .../{ => Customer}/EmploymentDetailTest.php | 2 +- .../{ => Customer}/EndCustomerStatusTest.php | 2 +- test/Model/{ => Customer}/ErrorTest.php | 2 +- ...etCustomerByReferenceID200ResponseTest.php | 2 +- ...tomerByReferenceID400ResponseAllOfTest.php | 2 +- ...etCustomerByReferenceID400ResponseTest.php | 2 +- .../IdentityAccountRequestPropertiesTest.php | 2 +- .../IdentityAccountRequestTest.php | 2 +- .../IdentityAccountResponsePropertiesTest.php | 2 +- .../IdentityAccountResponseTest.php | 2 +- .../IdentityAccountTypeTest.php | 2 +- .../{ => Customer}/IndividualDetailTest.php | 2 +- .../{ => Customer}/KYCDocumentRequestTest.php | 2 +- .../KYCDocumentResponseTest.php | 2 +- .../{ => Customer}/KYCDocumentSubTypeTest.php | 2 +- .../{ => Customer}/KYCDocumentTypeTest.php | 2 +- .../{ => Customer}/PatchCustomerTest.php | 2 +- .../ResponseDataNotFoundTest.php | 2 +- .../UpdateCustomer400ResponseAllOfTest.php | 2 +- .../UpdateCustomer400ResponseTest.php | 2 +- .../Model/{ => Invoice}/AddressObjectTest.php | 2 +- .../AlternativeDisplayItemTest.php | 2 +- .../{ => Invoice}/BadRequestErrorTest.php | 2 +- test/Model/{ => Invoice}/BankCodeTest.php | 2 +- test/Model/{ => Invoice}/BankTest.php | 2 +- .../CreateInvoiceRequestTest.php | 2 +- .../{ => Invoice}/CustomerObjectTest.php | 2 +- test/Model/{ => Invoice}/DirectDebitTest.php | 2 +- .../{ => Invoice}/DirectDebitTypeTest.php | 2 +- test/Model/{ => Invoice}/EwalletTest.php | 2 +- test/Model/{ => Invoice}/EwalletTypeTest.php | 2 +- .../{ => Invoice}/ForbiddenErrorTest.php | 2 +- .../{ => Invoice}/InvoiceClientTypeTest.php | 2 +- .../{ => Invoice}/InvoiceCurrencyTest.php | 2 +- .../InvoiceError404ResponseDefinitionTest.php | 2 +- test/Model/{ => Invoice}/InvoiceFeeTest.php | 2 +- test/Model/{ => Invoice}/InvoiceItemTest.php | 2 +- .../InvoiceNotFoundErrorTest.php | 2 +- .../InvoicePaymentMethodTest.php | 2 +- .../Model/{ => Invoice}/InvoiceStatusTest.php | 2 +- test/Model/{ => Invoice}/InvoiceTest.php | 2 +- .../{ => Invoice}/NotificationChannelTest.php | 2 +- .../NotificationPreferenceTest.php | 2 +- test/Model/{ => Invoice}/PaylaterTest.php | 2 +- test/Model/{ => Invoice}/PaylaterTypeTest.php | 2 +- test/Model/{ => Invoice}/QrCodeTest.php | 2 +- test/Model/{ => Invoice}/QrCodeTypeTest.php | 2 +- .../{ => Invoice}/RetailOutletNameTest.php | 2 +- test/Model/{ => Invoice}/RetailOutletTest.php | 2 +- test/Model/Invoice/ServerErrorTest.php | 92 + .../{ => Invoice}/UnauthorizedErrorTest.php | 2 +- .../BillingInformationTest.php | 4 +- .../CardChannelPropertiesTest.php | 4 +- .../CardParametersCardInformationTest.php | 4 +- .../CardParametersTest.php | 4 +- test/Model/{ => PaymentMethod}/CardTest.php | 4 +- .../CardVerificationResultsTest.php | 4 +- ...ardVerificationResultsThreeDSecureTest.php | 4 +- .../CreatePaymentMethod409ResponseTest.php | 4 +- .../CreatePaymentMethod503ResponseTest.php | 4 +- .../DirectDebitAllOfTest.php | 4 +- .../DirectDebitBankAccountTest.php | 4 +- .../DirectDebitChannelCodeTest.php | 4 +- .../DirectDebitChannelPropertiesTest.php | 155 + .../DirectDebitDebitCardTest.php | 13 +- .../DirectDebitParametersTest.php | 4 +- test/Model/PaymentMethod/DirectDebitTest.php | 119 + .../PaymentMethod/DirectDebitTypeTest.php | 74 + .../EWalletAccountTest.php | 4 +- .../EWalletChannelCodeTest.php | 4 +- .../EWalletChannelPropertiesTest.php | 4 +- .../EWalletParametersTest.php | 4 +- .../Model/{ => PaymentMethod}/EWalletTest.php | 4 +- .../GetAllPaymentMethods400ResponseTest.php | 4 +- .../GetAllPaymentMethods403ResponseTest.php | 4 +- .../GetAllPaymentMethods404ResponseTest.php | 4 +- ...etAllPaymentMethodsDefaultResponseTest.php | 4 +- .../OverTheCounterChannelCodeTest.php | 4 +- .../OverTheCounterChannelPropertiesTest.php | 4 +- ...rTheCounterChannelPropertiesUpdateTest.php | 4 +- .../OverTheCounterParametersTest.php | 4 +- .../OverTheCounterTest.php | 4 +- .../OverTheCounterUpdateParametersTest.php | 4 +- .../PaymentMethodActionTest.php | 4 +- .../PaymentMethodAuthParametersTest.php | 4 +- .../PaymentMethodCountryTest.php | 4 +- .../PaymentMethodExpireParametersTest.php | 4 +- .../PaymentMethodListTest.php | 4 +- .../PaymentMethodParametersTest.php | 4 +- .../PaymentMethodReusabilityTest.php | 4 +- .../PaymentMethodStatusTest.php | 4 +- .../{ => PaymentMethod}/PaymentMethodTest.php | 4 +- .../PaymentMethodTypeTest.php | 4 +- .../PaymentMethodUpdateParametersTest.php | 4 +- .../QRCodeChannelCodeTest.php | 4 +- .../QRCodeChannelPropertiesTest.php | 4 +- .../QRCodeParametersTest.php | 4 +- test/Model/{ => PaymentMethod}/QRCodeTest.php | 4 +- .../SimulatePaymentRequestTest.php | 4 +- .../TokenizedCardInformationTest.php | 4 +- .../VirtualAccountAllOfTest.php | 4 +- .../VirtualAccountAlternativeDisplayTest.php | 4 +- .../VirtualAccountChannelCodeTest.php | 4 +- ...rtualAccountChannelPropertiesPatchTest.php | 4 +- .../VirtualAccountChannelPropertiesTest.php | 4 +- .../VirtualAccountParametersTest.php | 4 +- .../VirtualAccountTest.php | 4 +- .../VirtualAccountUpdateParametersTest.php | 4 +- .../CaptureListResponseTest.php | 4 +- .../CaptureParametersTest.php | 4 +- .../{ => PaymentRequest}/CaptureTest.php | 4 +- .../CardChannelPropertiesTest.php | 119 + .../CardInformationTest.php | 4 +- test/Model/PaymentRequest/CardTest.php | 110 + .../CardVerificationResultsTest.php | 101 + ...ardVerificationResultsThreeDSecureTest.php | 119 + .../PaymentRequest/DirectDebitAllOfTest.php | 101 + .../DirectDebitBankAccountTest.php | 92 + .../DirectDebitChannelCodeTest.php | 74 + ...tDebitChannelPropertiesBankAccountTest.php | 4 +- ...DebitChannelPropertiesBankRedirectTest.php | 4 +- ...ectDebitChannelPropertiesDebitCardTest.php | 4 +- .../DirectDebitChannelPropertiesTest.php | 40 +- .../DirectDebitDebitCardTest.php | 119 + .../DirectDebitParametersTest.php | 101 + test/Model/PaymentRequest/DirectDebitTest.php | 119 + .../PaymentRequest/DirectDebitTypeTest.php | 74 + .../PaymentRequest/EWalletAccountTest.php | 110 + .../{ => PaymentRequest}/EWalletAllOfTest.php | 4 +- .../PaymentRequest/EWalletChannelCodeTest.php | 74 + .../EWalletChannelPropertiesTest.php | 128 + .../PaymentRequest/EWalletParametersTest.php | 92 + test/Model/PaymentRequest/EWalletTest.php | 101 + test/Model/PaymentRequest/ErrorTest.php | 92 + .../OverTheCounterChannelCodeTest.php | 74 + .../OverTheCounterChannelPropertiesTest.php | 101 + .../OverTheCounterParametersTest.php | 110 + .../PaymentRequest/OverTheCounterTest.php | 110 + .../PaymentMethodParametersTest.php | 155 + .../PaymentMethodReusabilityTest.php | 74 + .../PaymentMethodStatusTest.php | 74 + .../PaymentRequest/PaymentMethodTest.php | 209 ++ .../PaymentRequest/PaymentMethodTypeTest.php | 74 + .../PaymentRequestActionTest.php | 4 +- .../PaymentRequestAuthParametersTest.php | 4 +- .../PaymentRequestBasketItemTest.php | 4 +- .../PaymentRequestCaptureMethodTest.php | 4 +- ...mentRequestCardVerificationResultsTest.php | 4 +- ...dVerificationResultsThreeDeeSecureTest.php | 4 +- .../PaymentRequestChannelPropertiesTest.php | 4 +- .../PaymentRequestCountryTest.php | 4 +- .../PaymentRequestCurrencyTest.php | 4 +- .../PaymentRequestInitiatorTest.php | 4 +- .../PaymentRequestListResponseTest.php | 4 +- ...stParametersChannelPropertiesAllOfTest.php | 4 +- ...RequestParametersChannelPropertiesTest.php | 4 +- .../PaymentRequestParametersTest.php | 4 +- .../PaymentRequestShippingInformationTest.php | 4 +- .../PaymentRequestStatusTest.php | 4 +- .../PaymentRequestTest.php | 4 +- .../PaymentRequest/QRCodeChannelCodeTest.php | 74 + .../QRCodeChannelPropertiesTest.php | 92 + .../PaymentRequest/QRCodeParametersTest.php | 92 + test/Model/PaymentRequest/QRCodeTest.php | 92 + .../VirtualAccountAllOfTest.php | 83 + .../VirtualAccountAlternativeDisplayTest.php | 92 + .../VirtualAccountChannelCodeTest.php | 74 + .../VirtualAccountChannelPropertiesTest.php | 110 + .../VirtualAccountParametersTest.php | 137 + .../PaymentRequest/VirtualAccountTest.php | 146 + .../{ => Payout}/ChannelAccountTypeTest.php | 2 +- .../{ => Payout}/ChannelAmountLimitsTest.php | 2 +- .../{ => Payout}/ChannelCategoryTest.php | 2 +- test/Model/{ => Payout}/ChannelTest.php | 2 +- .../{ => Payout}/CreatePayoutRequestTest.php | 2 +- .../DigitalPayoutChannelPropertiesTest.php | 2 +- .../{ => Payout}/ErrorErrorsInnerTest.php | 2 +- test/Model/Payout/ErrorTest.php | 101 + .../GetPayouts200ResponseDataInnerTest.php | 2 +- .../GetPayouts200ResponseLinksTest.php | 2 +- .../GetPayouts200ResponseTest.php | 2 +- test/Model/{ => Payout}/PayoutAllOfTest.php | 2 +- test/Model/{ => Payout}/PayoutTest.php | 2 +- .../{ => Payout}/ReceiptNotificationTest.php | 2 +- .../CreateRefund400ResponseTest.php | 2 +- .../CreateRefund403ResponseTest.php | 2 +- .../CreateRefund404ResponseTest.php | 2 +- .../CreateRefund409ResponseTest.php | 2 +- .../CreateRefund503ResponseTest.php | 2 +- test/Model/{ => Refund}/CreateRefundTest.php | 2 +- .../GetAllRefundsDefaultResponseTest.php | 2 +- test/Model/{ => Refund}/RefundListTest.php | 2 +- test/Model/{ => Refund}/RefundTest.php | 2 +- 611 files changed, 8167 insertions(+), 13931 deletions(-) delete mode 100644 docs/BalanceAndTransaction.yaml rename docs/{BalanceAndTransaction => }/BalanceApi.md (50%) delete mode 100644 docs/Customer.yaml delete mode 100644 docs/Customer/CustomerApi.md create mode 100644 docs/CustomerApi.md delete mode 100644 docs/Invoice.yaml rename docs/{Invoice => }/InvoiceApi.md (51%) delete mode 100644 docs/PaymentMethod.yaml delete mode 100644 docs/PaymentMethod/PaymentMethodApi.md create mode 100644 docs/PaymentMethodApi.md delete mode 100644 docs/PaymentRequest.yaml delete mode 100644 docs/PaymentRequest/PaymentRequestApi.md create mode 100644 docs/PaymentRequestApi.md delete mode 100644 docs/Payout.yaml rename docs/{Payout => }/PayoutApi.md (52%) delete mode 100644 docs/Refund.yaml rename docs/{Refund => }/RefundApi.md (52%) rename docs/{BalanceAndTransaction => }/TransactionApi.md (54%) rename {docs => images}/header.jpg (100%) rename test/Model/{ => BalanceAndTransaction}/BalanceTest.php (93%) rename test/Model/{ => BalanceAndTransaction}/ChannelsCategoriesTest.php (92%) rename test/Model/{ => BalanceAndTransaction}/CurrencyTest.php (92%) rename test/Model/{ => BalanceAndTransaction}/DateRangeFilterTest.php (94%) rename test/Model/{ => BalanceAndTransaction}/FeeResponseTest.php (95%) rename test/Model/{ => BalanceAndTransaction}/LinkItemTest.php (94%) rename test/Model/{ => BalanceAndTransaction}/ServerErrorTest.php (94%) rename test/Model/{ => BalanceAndTransaction}/TransactionResponseTest.php (97%) rename test/Model/{ => BalanceAndTransaction}/TransactionResponseTypeTest.php (92%) rename test/Model/{ => BalanceAndTransaction}/TransactionStatusesTest.php (92%) rename test/Model/{ => BalanceAndTransaction}/TransactionTypesTest.php (92%) rename test/Model/{ => BalanceAndTransaction}/TransactionsResponseTest.php (94%) rename test/Model/{ => BalanceAndTransaction}/ValidationErrorTest.php (95%) rename test/Model/{ => Customer}/AccountBankTest.php (98%) rename test/Model/{ => Customer}/AccountCardTest.php (97%) rename test/Model/{ => Customer}/AccountEwalletTest.php (97%) rename test/Model/{ => Customer}/AccountOTCTest.php (97%) rename test/Model/{ => Customer}/AccountPayLaterTest.php (97%) rename test/Model/{ => Customer}/AccountQRCodeTest.php (97%) rename test/Model/{ => Customer}/AddressRequestTest.php (98%) rename test/Model/{ => Customer}/AddressStatusTest.php (96%) rename test/Model/{ => Customer}/AddressTest.php (98%) rename test/Model/{ => Customer}/BusinessDetailTest.php (98%) rename test/Model/{ => Customer}/CreateCustomer400ResponseAllOfTest.php (97%) rename test/Model/{ => Customer}/CreateCustomer400ResponseTest.php (97%) rename test/Model/{ => Customer}/CustomerRequestTest.php (98%) rename test/Model/{ => Customer}/CustomerTest.php (99%) rename test/Model/{ => Customer}/EmploymentDetailTest.php (97%) rename test/Model/{ => Customer}/EndCustomerStatusTest.php (97%) rename test/Model/{ => Customer}/ErrorTest.php (97%) rename test/Model/{ => Customer}/GetCustomerByReferenceID200ResponseTest.php (97%) rename test/Model/{ => Customer}/GetCustomerByReferenceID400ResponseAllOfTest.php (97%) rename test/Model/{ => Customer}/GetCustomerByReferenceID400ResponseTest.php (98%) rename test/Model/{ => Customer}/IdentityAccountRequestPropertiesTest.php (98%) rename test/Model/{ => Customer}/IdentityAccountRequestTest.php (98%) rename test/Model/{ => Customer}/IdentityAccountResponsePropertiesTest.php (98%) rename test/Model/{ => Customer}/IdentityAccountResponseTest.php (98%) rename test/Model/{ => Customer}/IdentityAccountTypeTest.php (97%) rename test/Model/{ => Customer}/IndividualDetailTest.php (98%) rename test/Model/{ => Customer}/KYCDocumentRequestTest.php (98%) rename test/Model/{ => Customer}/KYCDocumentResponseTest.php (98%) rename test/Model/{ => Customer}/KYCDocumentSubTypeTest.php (97%) rename test/Model/{ => Customer}/KYCDocumentTypeTest.php (97%) rename test/Model/{ => Customer}/PatchCustomerTest.php (98%) rename test/Model/{ => Customer}/ResponseDataNotFoundTest.php (97%) rename test/Model/{ => Customer}/UpdateCustomer400ResponseAllOfTest.php (97%) rename test/Model/{ => Customer}/UpdateCustomer400ResponseTest.php (97%) rename test/Model/{ => Invoice}/AddressObjectTest.php (98%) rename test/Model/{ => Invoice}/AlternativeDisplayItemTest.php (97%) rename test/Model/{ => Invoice}/BadRequestErrorTest.php (97%) rename test/Model/{ => Invoice}/BankCodeTest.php (97%) rename test/Model/{ => Invoice}/BankTest.php (98%) rename test/Model/{ => Invoice}/CreateInvoiceRequestTest.php (99%) rename test/Model/{ => Invoice}/CustomerObjectTest.php (98%) rename test/Model/{ => Invoice}/DirectDebitTest.php (97%) rename test/Model/{ => Invoice}/DirectDebitTypeTest.php (97%) rename test/Model/{ => Invoice}/EwalletTest.php (97%) rename test/Model/{ => Invoice}/EwalletTypeTest.php (97%) rename test/Model/{ => Invoice}/ForbiddenErrorTest.php (97%) rename test/Model/{ => Invoice}/InvoiceClientTypeTest.php (97%) rename test/Model/{ => Invoice}/InvoiceCurrencyTest.php (97%) rename test/Model/{ => Invoice}/InvoiceError404ResponseDefinitionTest.php (97%) rename test/Model/{ => Invoice}/InvoiceFeeTest.php (97%) rename test/Model/{ => Invoice}/InvoiceItemTest.php (98%) rename test/Model/{ => Invoice}/InvoiceNotFoundErrorTest.php (97%) rename test/Model/{ => Invoice}/InvoicePaymentMethodTest.php (97%) rename test/Model/{ => Invoice}/InvoiceStatusTest.php (97%) rename test/Model/{ => Invoice}/InvoiceTest.php (99%) rename test/Model/{ => Invoice}/NotificationChannelTest.php (97%) rename test/Model/{ => Invoice}/NotificationPreferenceTest.php (98%) rename test/Model/{ => Invoice}/PaylaterTest.php (97%) rename test/Model/{ => Invoice}/PaylaterTypeTest.php (97%) rename test/Model/{ => Invoice}/QrCodeTest.php (97%) rename test/Model/{ => Invoice}/QrCodeTypeTest.php (97%) rename test/Model/{ => Invoice}/RetailOutletNameTest.php (97%) rename test/Model/{ => Invoice}/RetailOutletTest.php (98%) create mode 100644 test/Model/Invoice/ServerErrorTest.php rename test/Model/{ => Invoice}/UnauthorizedErrorTest.php (97%) rename test/Model/{ => PaymentMethod}/BillingInformationTest.php (96%) rename test/Model/{ => PaymentMethod}/CardChannelPropertiesTest.php (95%) rename test/Model/{ => PaymentMethod}/CardParametersCardInformationTest.php (96%) rename test/Model/{ => PaymentMethod}/CardParametersTest.php (95%) rename test/Model/{ => PaymentMethod}/CardTest.php (95%) rename test/Model/{ => PaymentMethod}/CardVerificationResultsTest.php (95%) rename test/Model/{ => PaymentMethod}/CardVerificationResultsThreeDSecureTest.php (96%) rename test/Model/{ => PaymentMethod}/CreatePaymentMethod409ResponseTest.php (94%) rename test/Model/{ => PaymentMethod}/CreatePaymentMethod503ResponseTest.php (94%) rename test/Model/{ => PaymentMethod}/DirectDebitAllOfTest.php (95%) rename test/Model/{ => PaymentMethod}/DirectDebitBankAccountTest.php (95%) rename test/Model/{ => PaymentMethod}/DirectDebitChannelCodeTest.php (93%) create mode 100644 test/Model/PaymentMethod/DirectDebitChannelPropertiesTest.php rename test/Model/{ => PaymentMethod}/DirectDebitDebitCardTest.php (87%) rename test/Model/{ => PaymentMethod}/DirectDebitParametersTest.php (94%) create mode 100644 test/Model/PaymentMethod/DirectDebitTest.php create mode 100644 test/Model/PaymentMethod/DirectDebitTypeTest.php rename test/Model/{ => PaymentMethod}/EWalletAccountTest.php (95%) rename test/Model/{ => PaymentMethod}/EWalletChannelCodeTest.php (93%) rename test/Model/{ => PaymentMethod}/EWalletChannelPropertiesTest.php (96%) rename test/Model/{ => PaymentMethod}/EWalletParametersTest.php (95%) rename test/Model/{ => PaymentMethod}/EWalletTest.php (95%) rename test/Model/{ => PaymentMethod}/GetAllPaymentMethods400ResponseTest.php (94%) rename test/Model/{ => PaymentMethod}/GetAllPaymentMethods403ResponseTest.php (94%) rename test/Model/{ => PaymentMethod}/GetAllPaymentMethods404ResponseTest.php (94%) rename test/Model/{ => PaymentMethod}/GetAllPaymentMethodsDefaultResponseTest.php (94%) rename test/Model/{ => PaymentMethod}/OverTheCounterChannelCodeTest.php (93%) rename test/Model/{ => PaymentMethod}/OverTheCounterChannelPropertiesTest.php (95%) rename test/Model/{ => PaymentMethod}/OverTheCounterChannelPropertiesUpdateTest.php (95%) rename test/Model/{ => PaymentMethod}/OverTheCounterParametersTest.php (95%) rename test/Model/{ => PaymentMethod}/OverTheCounterTest.php (95%) rename test/Model/{ => PaymentMethod}/OverTheCounterUpdateParametersTest.php (94%) rename test/Model/{ => PaymentMethod}/PaymentMethodActionTest.php (95%) rename test/Model/{ => PaymentMethod}/PaymentMethodAuthParametersTest.php (94%) rename test/Model/{ => PaymentMethod}/PaymentMethodCountryTest.php (93%) rename test/Model/{ => PaymentMethod}/PaymentMethodExpireParametersTest.php (94%) rename test/Model/{ => PaymentMethod}/PaymentMethodListTest.php (94%) rename test/Model/{ => PaymentMethod}/PaymentMethodParametersTest.php (97%) rename test/Model/{ => PaymentMethod}/PaymentMethodReusabilityTest.php (93%) rename test/Model/{ => PaymentMethod}/PaymentMethodStatusTest.php (93%) rename test/Model/{ => PaymentMethod}/PaymentMethodTest.php (98%) rename test/Model/{ => PaymentMethod}/PaymentMethodTypeTest.php (93%) rename test/Model/{ => PaymentMethod}/PaymentMethodUpdateParametersTest.php (96%) rename test/Model/{ => PaymentMethod}/QRCodeChannelCodeTest.php (93%) rename test/Model/{ => PaymentMethod}/QRCodeChannelPropertiesTest.php (94%) rename test/Model/{ => PaymentMethod}/QRCodeParametersTest.php (95%) rename test/Model/{ => PaymentMethod}/QRCodeTest.php (95%) rename test/Model/{ => PaymentMethod}/SimulatePaymentRequestTest.php (94%) rename test/Model/{ => PaymentMethod}/TokenizedCardInformationTest.php (97%) rename test/Model/{ => PaymentMethod}/VirtualAccountAllOfTest.php (94%) rename test/Model/{ => PaymentMethod}/VirtualAccountAlternativeDisplayTest.php (94%) rename test/Model/{ => PaymentMethod}/VirtualAccountChannelCodeTest.php (93%) rename test/Model/{ => PaymentMethod}/VirtualAccountChannelPropertiesPatchTest.php (94%) rename test/Model/{ => PaymentMethod}/VirtualAccountChannelPropertiesTest.php (95%) rename test/Model/{ => PaymentMethod}/VirtualAccountParametersTest.php (96%) rename test/Model/{ => PaymentMethod}/VirtualAccountTest.php (96%) rename test/Model/{ => PaymentMethod}/VirtualAccountUpdateParametersTest.php (96%) rename test/Model/{ => PaymentRequest}/CaptureListResponseTest.php (94%) rename test/Model/{ => PaymentRequest}/CaptureParametersTest.php (94%) rename test/Model/{ => PaymentRequest}/CaptureTest.php (97%) create mode 100644 test/Model/PaymentRequest/CardChannelPropertiesTest.php rename test/Model/{ => PaymentRequest}/CardInformationTest.php (97%) create mode 100644 test/Model/PaymentRequest/CardTest.php create mode 100644 test/Model/PaymentRequest/CardVerificationResultsTest.php create mode 100644 test/Model/PaymentRequest/CardVerificationResultsThreeDSecureTest.php create mode 100644 test/Model/PaymentRequest/DirectDebitAllOfTest.php create mode 100644 test/Model/PaymentRequest/DirectDebitBankAccountTest.php create mode 100644 test/Model/PaymentRequest/DirectDebitChannelCodeTest.php rename test/Model/{ => PaymentRequest}/DirectDebitChannelPropertiesBankAccountTest.php (95%) rename test/Model/{ => PaymentRequest}/DirectDebitChannelPropertiesBankRedirectTest.php (95%) rename test/Model/{ => PaymentRequest}/DirectDebitChannelPropertiesDebitCardTest.php (96%) rename test/Model/{ => PaymentRequest}/DirectDebitChannelPropertiesTest.php (91%) create mode 100644 test/Model/PaymentRequest/DirectDebitDebitCardTest.php create mode 100644 test/Model/PaymentRequest/DirectDebitParametersTest.php create mode 100644 test/Model/PaymentRequest/DirectDebitTest.php create mode 100644 test/Model/PaymentRequest/DirectDebitTypeTest.php create mode 100644 test/Model/PaymentRequest/EWalletAccountTest.php rename test/Model/{ => PaymentRequest}/EWalletAllOfTest.php (93%) create mode 100644 test/Model/PaymentRequest/EWalletChannelCodeTest.php create mode 100644 test/Model/PaymentRequest/EWalletChannelPropertiesTest.php create mode 100644 test/Model/PaymentRequest/EWalletParametersTest.php create mode 100644 test/Model/PaymentRequest/EWalletTest.php create mode 100644 test/Model/PaymentRequest/ErrorTest.php create mode 100644 test/Model/PaymentRequest/OverTheCounterChannelCodeTest.php create mode 100644 test/Model/PaymentRequest/OverTheCounterChannelPropertiesTest.php create mode 100644 test/Model/PaymentRequest/OverTheCounterParametersTest.php create mode 100644 test/Model/PaymentRequest/OverTheCounterTest.php create mode 100644 test/Model/PaymentRequest/PaymentMethodParametersTest.php create mode 100644 test/Model/PaymentRequest/PaymentMethodReusabilityTest.php create mode 100644 test/Model/PaymentRequest/PaymentMethodStatusTest.php create mode 100644 test/Model/PaymentRequest/PaymentMethodTest.php create mode 100644 test/Model/PaymentRequest/PaymentMethodTypeTest.php rename test/Model/{ => PaymentRequest}/PaymentRequestActionTest.php (95%) rename test/Model/{ => PaymentRequest}/PaymentRequestAuthParametersTest.php (94%) rename test/Model/{ => PaymentRequest}/PaymentRequestBasketItemTest.php (97%) rename test/Model/{ => PaymentRequest}/PaymentRequestCaptureMethodTest.php (93%) rename test/Model/{ => PaymentRequest}/PaymentRequestCardVerificationResultsTest.php (95%) rename test/Model/{ => PaymentRequest}/PaymentRequestCardVerificationResultsThreeDeeSecureTest.php (96%) rename test/Model/{ => PaymentRequest}/PaymentRequestChannelPropertiesTest.php (96%) rename test/Model/{ => PaymentRequest}/PaymentRequestCountryTest.php (93%) rename test/Model/{ => PaymentRequest}/PaymentRequestCurrencyTest.php (93%) rename test/Model/{ => PaymentRequest}/PaymentRequestInitiatorTest.php (93%) rename test/Model/{ => PaymentRequest}/PaymentRequestListResponseTest.php (94%) rename test/Model/{ => PaymentRequest}/PaymentRequestParametersChannelPropertiesAllOfTest.php (94%) rename test/Model/{ => PaymentRequest}/PaymentRequestParametersChannelPropertiesTest.php (96%) rename test/Model/{ => PaymentRequest}/PaymentRequestParametersTest.php (97%) rename test/Model/{ => PaymentRequest}/PaymentRequestShippingInformationTest.php (96%) rename test/Model/{ => PaymentRequest}/PaymentRequestStatusTest.php (93%) rename test/Model/{ => PaymentRequest}/PaymentRequestTest.php (98%) create mode 100644 test/Model/PaymentRequest/QRCodeChannelCodeTest.php create mode 100644 test/Model/PaymentRequest/QRCodeChannelPropertiesTest.php create mode 100644 test/Model/PaymentRequest/QRCodeParametersTest.php create mode 100644 test/Model/PaymentRequest/QRCodeTest.php create mode 100644 test/Model/PaymentRequest/VirtualAccountAllOfTest.php create mode 100644 test/Model/PaymentRequest/VirtualAccountAlternativeDisplayTest.php create mode 100644 test/Model/PaymentRequest/VirtualAccountChannelCodeTest.php create mode 100644 test/Model/PaymentRequest/VirtualAccountChannelPropertiesTest.php create mode 100644 test/Model/PaymentRequest/VirtualAccountParametersTest.php create mode 100644 test/Model/PaymentRequest/VirtualAccountTest.php rename test/Model/{ => Payout}/ChannelAccountTypeTest.php (97%) rename test/Model/{ => Payout}/ChannelAmountLimitsTest.php (98%) rename test/Model/{ => Payout}/ChannelCategoryTest.php (97%) rename test/Model/{ => Payout}/ChannelTest.php (98%) rename test/Model/{ => Payout}/CreatePayoutRequestTest.php (98%) rename test/Model/{ => Payout}/DigitalPayoutChannelPropertiesTest.php (98%) rename test/Model/{ => Payout}/ErrorErrorsInnerTest.php (97%) create mode 100644 test/Model/Payout/ErrorTest.php rename test/Model/{ => Payout}/GetPayouts200ResponseDataInnerTest.php (99%) rename test/Model/{ => Payout}/GetPayouts200ResponseLinksTest.php (98%) rename test/Model/{ => Payout}/GetPayouts200ResponseTest.php (98%) rename test/Model/{ => Payout}/PayoutAllOfTest.php (98%) rename test/Model/{ => Payout}/PayoutTest.php (99%) rename test/Model/{ => Payout}/ReceiptNotificationTest.php (98%) rename test/Model/{ => Refund}/CreateRefund400ResponseTest.php (97%) rename test/Model/{ => Refund}/CreateRefund403ResponseTest.php (97%) rename test/Model/{ => Refund}/CreateRefund404ResponseTest.php (97%) rename test/Model/{ => Refund}/CreateRefund409ResponseTest.php (97%) rename test/Model/{ => Refund}/CreateRefund503ResponseTest.php (97%) rename test/Model/{ => Refund}/CreateRefundTest.php (98%) rename test/Model/{ => Refund}/GetAllRefundsDefaultResponseTest.php (97%) rename test/Model/{ => Refund}/RefundListTest.php (97%) rename test/Model/{ => Refund}/RefundTest.php (98%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c055fca..79124a3 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,7 +5,6 @@ LICENSE README.md composer.json -docs/PaymentRequest.yaml docs/PaymentRequest/Capture.md docs/PaymentRequest/CaptureListResponse.md docs/PaymentRequest/CaptureParameters.md @@ -43,7 +42,6 @@ docs/PaymentRequest/PaymentMethodStatus.md docs/PaymentRequest/PaymentMethodType.md docs/PaymentRequest/PaymentRequest.md docs/PaymentRequest/PaymentRequestAction.md -docs/PaymentRequest/PaymentRequestApi.md docs/PaymentRequest/PaymentRequestAuthParameters.md docs/PaymentRequest/PaymentRequestBasketItem.md docs/PaymentRequest/PaymentRequestCaptureMethod.md @@ -69,7 +67,8 @@ docs/PaymentRequest/VirtualAccountAlternativeDisplay.md docs/PaymentRequest/VirtualAccountChannelCode.md docs/PaymentRequest/VirtualAccountChannelProperties.md docs/PaymentRequest/VirtualAccountParameters.md -docs/header.jpg +docs/PaymentRequestApi.md +images/header.jpg lib/Configuration.php lib/HeaderSelector.php lib/Model/ModelInterface.php @@ -140,28 +139,65 @@ lib/PaymentRequest/VirtualAccountParameters.php lib/XenditSdkException.php phpunit.xml.dist test/Api/PaymentRequestApiTest.php -test/Model/CaptureListResponseTest.php -test/Model/CaptureParametersTest.php -test/Model/CaptureTest.php -test/Model/CardInformationTest.php -test/Model/DirectDebitChannelPropertiesBankAccountTest.php -test/Model/DirectDebitChannelPropertiesBankRedirectTest.php -test/Model/DirectDebitChannelPropertiesDebitCardTest.php -test/Model/EWalletAllOfTest.php -test/Model/PaymentRequestActionTest.php -test/Model/PaymentRequestAuthParametersTest.php -test/Model/PaymentRequestBasketItemTest.php -test/Model/PaymentRequestCaptureMethodTest.php -test/Model/PaymentRequestCardVerificationResultsTest.php -test/Model/PaymentRequestCardVerificationResultsThreeDeeSecureTest.php -test/Model/PaymentRequestChannelPropertiesTest.php -test/Model/PaymentRequestCountryTest.php -test/Model/PaymentRequestCurrencyTest.php -test/Model/PaymentRequestInitiatorTest.php -test/Model/PaymentRequestListResponseTest.php -test/Model/PaymentRequestParametersChannelPropertiesAllOfTest.php -test/Model/PaymentRequestParametersChannelPropertiesTest.php -test/Model/PaymentRequestParametersTest.php -test/Model/PaymentRequestShippingInformationTest.php -test/Model/PaymentRequestStatusTest.php -test/Model/PaymentRequestTest.php +test/Model/PaymentRequest/CaptureListResponseTest.php +test/Model/PaymentRequest/CaptureParametersTest.php +test/Model/PaymentRequest/CaptureTest.php +test/Model/PaymentRequest/CardChannelPropertiesTest.php +test/Model/PaymentRequest/CardInformationTest.php +test/Model/PaymentRequest/CardTest.php +test/Model/PaymentRequest/CardVerificationResultsTest.php +test/Model/PaymentRequest/CardVerificationResultsThreeDSecureTest.php +test/Model/PaymentRequest/DirectDebitAllOfTest.php +test/Model/PaymentRequest/DirectDebitBankAccountTest.php +test/Model/PaymentRequest/DirectDebitChannelCodeTest.php +test/Model/PaymentRequest/DirectDebitChannelPropertiesBankAccountTest.php +test/Model/PaymentRequest/DirectDebitChannelPropertiesBankRedirectTest.php +test/Model/PaymentRequest/DirectDebitChannelPropertiesDebitCardTest.php +test/Model/PaymentRequest/DirectDebitChannelPropertiesTest.php +test/Model/PaymentRequest/DirectDebitDebitCardTest.php +test/Model/PaymentRequest/DirectDebitParametersTest.php +test/Model/PaymentRequest/DirectDebitTest.php +test/Model/PaymentRequest/DirectDebitTypeTest.php +test/Model/PaymentRequest/EWalletAccountTest.php +test/Model/PaymentRequest/EWalletAllOfTest.php +test/Model/PaymentRequest/EWalletChannelCodeTest.php +test/Model/PaymentRequest/EWalletChannelPropertiesTest.php +test/Model/PaymentRequest/EWalletParametersTest.php +test/Model/PaymentRequest/EWalletTest.php +test/Model/PaymentRequest/ErrorTest.php +test/Model/PaymentRequest/OverTheCounterChannelCodeTest.php +test/Model/PaymentRequest/OverTheCounterChannelPropertiesTest.php +test/Model/PaymentRequest/OverTheCounterParametersTest.php +test/Model/PaymentRequest/OverTheCounterTest.php +test/Model/PaymentRequest/PaymentMethodParametersTest.php +test/Model/PaymentRequest/PaymentMethodReusabilityTest.php +test/Model/PaymentRequest/PaymentMethodStatusTest.php +test/Model/PaymentRequest/PaymentMethodTest.php +test/Model/PaymentRequest/PaymentMethodTypeTest.php +test/Model/PaymentRequest/PaymentRequestActionTest.php +test/Model/PaymentRequest/PaymentRequestAuthParametersTest.php +test/Model/PaymentRequest/PaymentRequestBasketItemTest.php +test/Model/PaymentRequest/PaymentRequestCaptureMethodTest.php +test/Model/PaymentRequest/PaymentRequestCardVerificationResultsTest.php +test/Model/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecureTest.php +test/Model/PaymentRequest/PaymentRequestChannelPropertiesTest.php +test/Model/PaymentRequest/PaymentRequestCountryTest.php +test/Model/PaymentRequest/PaymentRequestCurrencyTest.php +test/Model/PaymentRequest/PaymentRequestInitiatorTest.php +test/Model/PaymentRequest/PaymentRequestListResponseTest.php +test/Model/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOfTest.php +test/Model/PaymentRequest/PaymentRequestParametersChannelPropertiesTest.php +test/Model/PaymentRequest/PaymentRequestParametersTest.php +test/Model/PaymentRequest/PaymentRequestShippingInformationTest.php +test/Model/PaymentRequest/PaymentRequestStatusTest.php +test/Model/PaymentRequest/PaymentRequestTest.php +test/Model/PaymentRequest/QRCodeChannelCodeTest.php +test/Model/PaymentRequest/QRCodeChannelPropertiesTest.php +test/Model/PaymentRequest/QRCodeParametersTest.php +test/Model/PaymentRequest/QRCodeTest.php +test/Model/PaymentRequest/VirtualAccountAllOfTest.php +test/Model/PaymentRequest/VirtualAccountAlternativeDisplayTest.php +test/Model/PaymentRequest/VirtualAccountChannelCodeTest.php +test/Model/PaymentRequest/VirtualAccountChannelPropertiesTest.php +test/Model/PaymentRequest/VirtualAccountParametersTest.php +test/Model/PaymentRequest/VirtualAccountTest.php diff --git a/README.md b/README.md index a575755..d926cec 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -![Xendit PHP SDK](docs/header.jpg "Xendit PHP SDK") +![Xendit PHP SDK](images/header.jpg "Xendit PHP SDK") # Xendit PHP SDK The official Xendit PHP SDK provides a simple and convenient way to call Xendit's REST API in applications written in PHP. -* Package version: 3.4.0 +* Package version: 3.6.0 # Getting Started @@ -28,7 +28,7 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow } ], "require": { - "xendit/xendit-php": "3.4.0" + "xendit/xendit-php": "3.6.0" } } ``` @@ -59,14 +59,14 @@ Configuration::setXenditKey('XENDIT_API_KEY'); Find detailed API information and examples for each of our product’s by clicking the links below, -* [Invoice](docs/Invoice/InvoiceApi.md) -* [PaymentRequest](docs/PaymentRequest/PaymentRequestApi.md) -* [PaymentMethod](docs/PaymentMethod/PaymentMethodApi.md) -* [Refund](docs/Refund/RefundApi.md) -* [Balance](docs/BalanceAndTransaction/BalanceApi.md) -* [Transaction](docs/BalanceAndTransaction/TransactionApi.md) -* [Customer](docs/Customer/CustomerApi.md) -* [Payout](docs/Payout/PayoutApi.md) +* [Invoice](docs/InvoiceApi.md) +* [PaymentRequest](docs/PaymentRequestApi.md) +* [PaymentMethod](docs/PaymentMethodApi.md) +* [Refund](docs/RefundApi.md) +* [Balance](docs/BalanceApi.md) +* [Transaction](docs/TransactionApi.md) +* [Customer](docs/CustomerApi.md) +* [Payout](docs/PayoutApi.md) All URIs are relative to *https://api.xendit.co*. For more information about our API, please refer to *https://developers.xendit.co/*. diff --git a/composer.json b/composer.json index a3e2bd7..a5797f5 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "xendit/xendit-php", - "version": "3.4.0", + "version": "3.6.0", "description": "Xendit PHP SDK", "keywords": [ "openapitools", diff --git a/docs/BalanceAndTransaction.yaml b/docs/BalanceAndTransaction.yaml deleted file mode 100644 index a47247e..0000000 --- a/docs/BalanceAndTransaction.yaml +++ /dev/null @@ -1,1054 +0,0 @@ -openapi: 3.0.0 -info: - contact: - email: email@xendit.com - description: "# Introduction\nThis specification describes how to use the Transaction\ - \ Service V4 API. \n\n**Transaction Service** is the service that records the\ - \ customer transactions and is responsible to calculate their balance. All products\ - \ that move customer money around whether it is money-in, money-out, or transfer\ - \ will interact with the Transaction Service on its flow. Transaction Service\ - \ is the source of truth of Xendit and Customer regarding how much money that\ - \ customer has that is stored in Xendit. Transaction Service is the source that\ - \ is used for both our internal and customer financial reconciliation. Internally,\ - \ the Transaction Service data structure is similar to how double-entry accounting\ - \ works.\n\n## How Xendit teams/services do integrate with Transaction Service\ - \ V4\n\n\n**Channel product team/service** They interact with the Transaction\ - \ Service when they want to record the transactions. This transaction can be money-in\ - \ (balance added), money-out (balance deducted), transfer, refund/void/reversal,\ - \ or other kind of transaction that affects customer balance. Product team also\ - \ interacts with the Transaction Service for getting information about the transaction\ - \ or balance.\n\n**Billing/Fee team/service** They interact with Transaction Service\ - \ either as the dependency of Transaction Service for getting the correct fee\ - \ calculation/settings. Or using Transaction Service for getting the transaction/fee\ - \ information to calculate the bill for the customer.\n\n**NUX team/service**\ - \ They interact with the Transaction Service to set up the customer ledger_account\ - \ that is used to record their transactions.\n\n**Finance team/service** They\ - \ interact with the Transaction Service to get the transaction and balance data\ - \ for each customer to do reconciliation.\n\n**Dashboard/API team/service** They\ - \ interact with the Transaction Service as a proxy to show the data to the Customer.\n\ - \n## Prerequisites\n\nBefore staring to use **Transaction Service API** you need\ - \ to complete a few things:\n1. Find out **Base URL** for the API. Every endpoint\ - \ definition in this document contains list of available servers (local, staging,\ - \ production)\n2. Set up ledger accounts using business id and currency. **Ledger\ - \ Account** represents the account of the customer that will be used to associate\ - \ with ledger lines. Each business may have at least 1 ledger account group (a\ - \ group consists of a few accounts of types such as cash, liability, holding),\ - \ and the money movement of their ledger will revolve around those ledger accounts.\ - \ **Ledger Lines** that show a debit or credit transaction for a ledger account.\ - \ We’re using the double-entry principle in accounting where we should post 2\ - \ lines every time we make a transaction, 1 to debit an account and 1 to credit\ - \ another account. See how to call Create cash, liability, holding, and tax account for a business (api/ledger-accounts/setup)\ - \ section of this document\n3. To be able to create payments with fee/VAT the\ - \ Product rate settings and VAT rate settings should be created using Transaction\ - \ Fee Service. See Fee Service Documentation for details about how to create Product/VAT rate\ - \ settings.\n\n\n## Transaction flows\n\nTo integrate with the Transaction Service\ - \ you should decide what types of transaction flows your integration will be using.\ - \ Transaction flow is set by the transaction `type` during transaction creation\n\ - \n1. Money In flows\n 1. Payment from credit card\n\n\n `type: CREDIT_CARD_PAYMENT`\n\ - \t\t\n\t\t\n 3. Payment from other sources without fee/VAT\n\n\n `type:\ - \ DEPOSIT, FOREX_DEPOSIT, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_CREDIT,\ - \ PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK, BATCH_VA_PAYMENT`\n\t\t\n\t\t\n 4.\ - \ Payment from other sources with fee/VAT\n\n\n `type: VA_PAYMENT, IM_ESCROW_VA_PAYMENT,\ - \ IM_DEPOSIT, RO_PAYMENT, EWALLET_PAYMENT, CARDLESS_CREDIT_PAYMENT, IM_REMITTANCE_VA_PAYMENT,\ - \ PAYLATER_PAYMENT, INVOICE, QR_CODE_PAYMENT, DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER,\ - \ ACH_PAYMENT, CRYPTO_PAYMENT`\n\t\t\n\t\t\n 5. Billing deposit from cash\n\ - \n\n `type: BILLING_DEPOSIT`\n\t\t\n\t\t\n 6. Billing deposit from other\ - \ sources\n\n\n `type: BILLING_DIRECT_DEPOSIT, BILLING_VA_DIRECT_DEPOSIT`\n\ - \t\t\n\t\t\n2. Money out flows\n 1. Instant payment\n\n\n `type: simple\ - \ money out types`\n\t\t\t\t\n `status: COMPLETED`\n\t\t\n\t\t\n 2.\ - \ Simple payment without fee/VAT\n\n\n `type: CHARGEBACK_DEDUCTION, FRAUD_DEDUCTION,\ - \ LOAN_REPAYMENT, FOREX_DEDUCTION, BNPL_PARTNER_SETTLEMENT_DEBIT, WITHDRAWAL`\n\ - \n\n 3. Simple payment with fee/VAT\n\n\n `type: ISSUING_FUNDING, BATCH_DISBURSEMENT,\ - \ CASH_DISBURSEMENT, DISBURSEMENT, REMITTANCE, REMITTANCE_PAYOUT, TAX_DISBURSEMENT`\n\ - \t\t\n\t\t\n 4. Billing withdraw to cash\n\n\n `type: BILLING_WITHDRAWAL`\n\ - \t\t\n\t\t\n 4. Billing withdraw to other destinations\n\n\n `type:\ - \ BILL_PAYMENT`\n\t\t\n\t\t\n3. Reversal flow\n\n Some of transactions could\ - \ be reversed. See Reversible / non reversible transaction types section of this document. To\ - \ reverse transaction you should call Update transaction (/api/transactions/:id) endpoint with the transaction\ - \ status `REVERSED`.\n\t\t\n4. Void/Cancellation Flow\n\n Transaction in the\ - \ `PENDING_SETTLEMENT` status could be canceled. To do that you should call Update transaction (/api/transactions/:id)\ - \ endpoint with the transaction status `VOIDED`.\n\t\t\n\t\t\n5. Switcher flow\n\ - \n Switchers are transactions that do not affect the customer balance. These\ - \ are transactions that goes directly to the customers’ account and simply passes\ - \ through Xendit. Therefore, it will not impact the customer balance and we will\ - \ only charge Fee and VAT. To create switcher flow you should set `is_switcher_payment`\ - \ field to `true`.\n\n\n\n\t\t\n## Instant/non instant settlement\n\nTransactions\ - \ can be performed instantly (instant settlement) or with delay (non instant settlement).\ - \ Some of the transaction types are only instantly processed, some of them support\ - \ both instant and non instant settlement and some of them have only non instant\ - \ settlement. If settlement is instant than balance will be changed instantly.\ - \ In opposite case the transaction status has to be set into PENDING_SETTLEMENT\ - \ and settlement date should be provided. \n\n1. Instant settlement Money In transaction\ - \ types\n\n `DEPOSIT, BATCH_VA_PAYMENT, FOREX_DEPOSIT, IM_DEPOSIT, CARDLESS_CREDIT_PAYMENT,\ - \ ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_CREDIT, PROMO_FEE_CASHBACK,\ - \ PROMO_VAT_CASHBACK, REMITTANCE_VA_PAYMENT_CLAIM`\n\t\t\n2. Both instant and\ - \ non instant Money In transaction types\n\n `DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER,\ - \ ACH_PAYMENT, RO_PAYMENT, EWALLET_PAYMENT, QR_CODE_PAYMENT, VA_PAYMENT, INVOICE,\ - \ PAYLATER_PAYMENT`\n\n3. Non Instant settlement Money In transaction types\n\n\ - \ `CREDIT_CARD_PAYMENT`\n\t\t\n4. Instant settlement Money Out transaction\ - \ types\n\n `LOAN_REPAYMENT, FOREX_DEDUCTION, BILL_PAYMENT, ISSUING_FUNDING,\ - \ BNPL_PARTNER_SETTLEMENT_DEBIT, FRAUD_DEDUCTION`\n\n5. Both instant and non instant\ - \ settlement supported Money Out transaction types\n\n `CHARGEBACK_DEDUCTION`\n\ - \n6. Non Instant settlement Money Out transaction types\n\n All other money\ - \ out types are non instant settlement\n\n## Reversible / non reversible transaction\ - \ types\n\nSome transactions can be reversed. Here are the list of transaction\ - \ types that could be reversed: \n\n`CASH_DISBURSEMENT, DISBURSEMENT, BATCH_DISBURSEMENT,\ - \ REMITTANCE, REMITTANCE_PAYOUT, TAX_DISBURSEMENT, WITHDRAWAL, DEPOSIT, FOREX_DEPOSIT,\ - \ FOREX_DEDUCTION, VA_PAYMENT, BATCH_VA_PAYMENT, IM_REMITTANCE_VA_PAYMENT, IM_ESCROW_VA_PAYMENT,\ - \ IM_DEPOSIT, REMITTANCE_VA_PAYMENT, REMITTANCE_VA_PAYMENT_CLAIM, RO_PAYMENT,\ - \ CARDLESS_CREDIT_PAYMENT, PAYLATER_PAYMENT, INVOICE, QR_CODE_PAYMENT, CREDIT_CARD_PAYMENT,\ - \ EWALLET_PAYMENT, DIRECT_DEBIT_PAYMENT, DIRECT_BANK_TRANSFER, ACH_PAYMENT, CHARGEBACK_DEDUCTION,\ - \ FRAUD_DEDUCTION, LOAN_REPAYMENT, ISSUING_FUNDING, ISSUING_FUNDING_REFUND, BNPL_PARTNER_SETTLEMENT_DEBIT,\ - \ BNPL_PARTNER_SETTLEMENT_CREDIT, BILLING_DEPOSIT, BILLING_DIRECT_DEPOSIT, BILLING_VA_DIRECT_DEPOSIT,\ - \ BILLING_WITHDRAWAL, BILL_PAYMENT, PROMO_FEE_CASHBACK, PROMO_VAT_CASHBACK`\n\n\ - \ \n## How to create transaction\n\nAfter you created or already have the `BUSINESS_CASH`\ - \ ledger account ID (See Prerequisites\ - \ section) and you know what transaction flows are going to be used you can create\ - \ the new transaction using POST request to the Create a new transaction (/api/transactions) endpoint\n\n## How to update\ - \ transaction\n\nTo update transaction you should do PATCH request to the Update transaction (/api/transactions/::id)\ - \ endpoint\n\n\n" - license: - name: Apache 2.0 - url: http://www.apache.org/licenses/LICENSE-2.0.html - title: Transaction Service V4 API - version: 3.4.3 - x-logo: - url: https://dashboard.xendit.co/assets/images/xendit-blue-logo.svg -servers: -- description: Xendit API Server - url: https://api.xendit.co -paths: - /balance: - get: - description: "Retrieves balance for your business, defaults to CASH type" - operationId: getBalance - parameters: - - description: The selected balance type - explode: true - in: query - name: account_type - required: false - schema: - default: CASH - enum: - - CASH - - HOLDING - - TAX - example: CASH - type: string - style: form - - description: Currency for filter for customers with multi currency accounts - explode: true - in: query - name: currency - required: false - schema: - example: IDR - type: string - style: form - - description: The sub-account user-id that you want to make this transaction - for. This header is only used if you have access to xenPlatform. See xenPlatform - for more information - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5dbf20d7c8eb0c0896f811b6 - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Balance' - description: success - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ValidationError' - description: "invalid input, object invalid" - default: - content: - application/json: - schema: - $ref: '#/components/schemas/ServerError' - description: Errors - summary: "Retrieves balances for a business, default to CASH type" - tags: - - balance - /transactions: - get: - description: Get a list of all transactions based on filter and search parameters. - operationId: getAllTransactions - parameters: - - description: The sub-account user-id that you want to make this transaction - for. This header is only used if you have access to xenPlatform. See xenPlatform - for more information - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5dbf20d7c8eb0c0896f811b6 - type: string - style: simple - - description: Transaction types that will be included in the result. Default - is to include all transaction types - example: - - DISBURSEMENT - - PAYMENT - explode: true - in: query - name: types - required: false - schema: - items: - $ref: '#/components/schemas/TransactionTypes' - type: array - style: form - - description: Status of the transaction. Default is to include all status. - example: - - SUCCESS - - PENDING - explode: true - in: query - name: statuses - required: false - schema: - items: - $ref: '#/components/schemas/TransactionStatuses' - type: array - style: form - - description: Payment channels in which the transaction is carried out. Default - is to include all channels. - example: - - BANK - - INVOICE - explode: true - in: query - name: channel_categories - required: false - schema: - items: - $ref: '#/components/schemas/ChannelsCategories' - type: array - style: form - - description: To filter the result for transactions with matching reference - given (case sensitive) - example: ref23232 - explode: true - in: query - name: reference_id - required: false - schema: - type: string - style: form - - description: To filter the result for transactions with matching product_id - (a.k.a payment_id) given (case sensitive) - example: d290f1ee-6c54-4b01-90e6-d701748f0701 - explode: true - in: query - name: product_id - required: false - schema: - type: string - style: form - - description: "Account identifier of transaction. The format will be different\ - \ from each channel. For example, on `BANK` channel it will be account number\ - \ and on `CARD` it will be masked card number." - example: 123123123 - explode: true - in: query - name: account_identifier - required: false - schema: - type: string - style: form - - description: Specific transaction amount to search for - example: 100 - explode: true - in: query - name: amount - required: false - schema: - type: number - style: form - - explode: true - in: query - name: currency - required: false - schema: - $ref: '#/components/schemas/Currency' - style: form - - description: Filter time of transaction by created date. If not specified - will list all dates. - explode: true - in: query - name: created - required: false - schema: - $ref: '#/components/schemas/DateRangeFilter' - style: deepObject - - description: Filter time of transaction by updated date. If not specified - will list all dates. - explode: true - in: query - name: updated - required: false - schema: - $ref: '#/components/schemas/DateRangeFilter' - style: deepObject - - description: number of items in the result per page. Another name for "results_per_page" - example: 10 - explode: true - in: query - name: limit - required: false - schema: - default: 10 - maximum: 50 - type: number - style: form - - explode: true - in: query - name: after_id - required: false - schema: - $ref: '#/components/schemas/TransactionId' - style: form - - explode: true - in: query - name: before_id - required: false - schema: - $ref: '#/components/schemas/TransactionId' - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/TransactionsResponse' - description: List of transaction object - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ValidationError' - description: "invalid input, object invalid" - default: - content: - application/json: - schema: - $ref: '#/components/schemas/ServerError' - description: Errors - summary: Get a list of transactions - tags: - - transaction - /transactions/{id}: - get: - description: Get single specific transaction by transaction id. - operationId: getTransactionByID - parameters: - - description: The sub-account user-id that you want to make this transaction - for. This header is only used if you have access to xenPlatform. See xenPlatform - for more information - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5dbf20d7c8eb0c0896f811b6 - type: string - style: simple - - explode: false - in: path - name: id - required: true - schema: - $ref: '#/components/schemas/TransactionId' - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/TransactionResponse' - description: OK - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/ValidationError' - description: "invalid input, object invalid" - default: - content: - application/json: - schema: - $ref: '#/components/schemas/ServerError' - description: Errors - summary: Get a transaction based on its id - tags: - - transaction -components: - parameters: - TransactionTypes: - description: Transaction types that will be included in the result. Default - is to include all transaction types - example: - - DISBURSEMENT - - PAYMENT - explode: true - in: query - name: types - required: false - schema: - items: - $ref: '#/components/schemas/TransactionTypes' - type: array - style: form - TransactionStatuses: - description: Status of the transaction. Default is to include all status. - example: - - SUCCESS - - PENDING - explode: true - in: query - name: statuses - required: false - schema: - items: - $ref: '#/components/schemas/TransactionStatuses' - type: array - style: form - ChannelsCategories: - description: Payment channels in which the transaction is carried out. Default - is to include all channels. - example: - - BANK - - INVOICE - explode: true - in: query - name: channel_categories - required: false - schema: - items: - $ref: '#/components/schemas/ChannelsCategories' - type: array - style: form - ReferenceId: - description: To filter the result for transactions with matching reference given - (case sensitive) - example: ref23232 - explode: true - in: query - name: reference_id - required: false - schema: - type: string - style: form - ProductId: - description: To filter the result for transactions with matching product_id - (a.k.a payment_id) given (case sensitive) - example: d290f1ee-6c54-4b01-90e6-d701748f0701 - explode: true - in: query - name: product_id - required: false - schema: - type: string - style: form - AccountIdentifier: - description: "Account identifier of transaction. The format will be different\ - \ from each channel. For example, on `BANK` channel it will be account number\ - \ and on `CARD` it will be masked card number." - example: 123123123 - explode: true - in: query - name: account_identifier - required: false - schema: - type: string - style: form - Amount: - description: Specific transaction amount to search for - example: 100 - explode: true - in: query - name: amount - required: false - schema: - type: number - style: form - Limit: - description: number of items in the result per page. Another name for "results_per_page" - example: 10 - explode: true - in: query - name: limit - required: false - schema: - default: 10 - maximum: 50 - type: number - style: form - schemas: - Balance: - description: The balance remaining in your account - example: - balance: 123000.12 - properties: - balance: - example: 123000.12 - type: number - required: - - balance - type: object - LinkItem: - example: - method: GET - rel: next - href: /transactions?types=PAYMENT&statuses=SUCCESS&channel_categories=EWALLET&channel_categories=RETAIL_OUTLET&limit=2&after_id=txn_a765a3f0-34c0-41ee-8686-bca11835ebdc - properties: - href: - description: "URI of target, this will be to the next link." - example: /transactions?types=PAYMENT&statuses=SUCCESS&channel_categories=EWALLET&channel_categories=RETAIL_OUTLET&limit=2&after_id=txn_a765a3f0-34c0-41ee-8686-bca11835ebdc - type: string - rel: - description: The relationship between source and target. The value will - be `next`. - example: next - type: string - method: - description: "The HTTP method, the value will be `GET`." - example: GET - type: string - required: - - href - - method - - rel - type: object - TransactionsResponse: - description: Returns an array of Transaction Objects. Returns empty array when - there is no result. - example: - data: - - amount: 150.21 - settlement_status: PENDING - reference_id: My custom reference - created: 2016-08-29T09:12:33.001Z - fee: - third_party_withholding_tax: 10 - value_added_tax: 1 - xendit_withholding_tax: 10 - xendit_fee: 10 - status: PENDING - account_identifier: "123123123" - channel_code: BCA - type: null - channel_category: INVOICE - estimated_settlement_time: 2016-08-29T09:12:33.001Z - cashflow: MONEY_IN - product_id: d290f1ee-6c54-4b01-90e6-d701748f0851 - currency: IDR - id: txn_438e4b61-7c4c-4dbb-bbba-94a896bff333 - business_id: 5fc9f5b246f820517e38c84d - updated: 2016-08-29T09:12:33.001Z - status: SUCCESS - - amount: 150.21 - settlement_status: PENDING - reference_id: My custom reference - created: 2016-08-29T09:12:33.001Z - fee: - third_party_withholding_tax: 10 - value_added_tax: 1 - xendit_withholding_tax: 10 - xendit_fee: 10 - status: PENDING - account_identifier: "123123123" - channel_code: BCA - type: null - channel_category: INVOICE - estimated_settlement_time: 2016-08-29T09:12:33.001Z - cashflow: MONEY_IN - product_id: d290f1ee-6c54-4b01-90e6-d701748f0851 - currency: IDR - id: txn_438e4b61-7c4c-4dbb-bbba-94a896bff333 - business_id: 5fc9f5b246f820517e38c84d - updated: 2016-08-29T09:12:33.001Z - status: SUCCESS - links: - - method: GET - rel: next - href: /transactions?types=PAYMENT&statuses=SUCCESS&channel_categories=EWALLET&channel_categories=RETAIL_OUTLET&limit=2&after_id=txn_a765a3f0-34c0-41ee-8686-bca11835ebdc - - method: GET - rel: next - href: /transactions?types=PAYMENT&statuses=SUCCESS&channel_categories=EWALLET&channel_categories=RETAIL_OUTLET&limit=2&after_id=txn_a765a3f0-34c0-41ee-8686-bca11835ebdc - has_more: true - properties: - has_more: - description: Indicates whether there are more items to be queried with `after_id` - of the last item from the current result. Use the `links` to follow to - the next result. - type: boolean - links: - description: The links to the next page based on LinkItem if there is next - result. - items: - $ref: '#/components/schemas/LinkItem' - type: array - data: - items: - $ref: '#/components/schemas/TransactionResponse' - type: array - required: - - data - - has_more - type: object - DateRangeFilter: - properties: - gte: - description: Start time of transaction. If not specified will list all dates. - example: 2020-08-29T17:00:00Z - format: date-time - type: string - lte: - description: End time of transaction. If not specified will list all dates. - example: 2020-08-29T17:00:00Z - format: date-time - type: string - type: object - TransactionId: - description: The unique id of a transaction. It will have `txn_` as prefix - example: txn_438e4b61-7c4c-4dbb-bbba-94a896bff333 - pattern: "^txn_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" - type: string - Currency: - enum: - - IDR - - PHP - - USD - - JPY - - VND - - SGD - - AED - - AFN - - ALL - - AMD - - ANG - - AOA - - ARS - - AUD - - AWG - - AZN - - BAM - - BBD - - BDT - - BGN - - BHD - - BIF - - BMD - - BND - - BOB - - BRL - - BSD - - BTN - - BWP - - BYN - - BZD - - CAD - - CDF - - CHF - - CLP - - CNY - - COP - - CRC - - CUC - - CUP - - CVE - - CZK - - DJF - - DKK - - DOP - - DZD - - EGP - - ERN - - ETB - - EUR - - FJD - - FKP - - GBP - - GEL - - GGP - - GHS - - GIP - - GMD - - GNF - - GTQ - - GYD - - HKD - - HNL - - HRK - - HTG - - HUF - - ILS - - IMP - - INR - - IQD - - IRR - - ISK - - JEP - - JMD - - JOD - - KES - - KGS - - KHR - - KMF - - KPW - - KRW - - KWD - - KYD - - KZT - - LAK - - LBP - - LKR - - LRD - - LSL - - LYD - - MAD - - MDL - - MGA - - MKD - - MMK - - MNT - - MOP - - MRU - - MUR - - MVR - - MWK - - MXN - - MYR - - MZN - - NAD - - NGN - - NIO - - NOK - - NPR - - NZD - - OMR - - PAB - - PEN - - PGK - - PKR - - PLN - - PYG - - QAR - - RON - - RSD - - RUB - - RWF - - SAR - - SBD - - SCR - - SDG - - SEK - - SHP - - SLL - - SOS - - SPL - - SRD - - STN - - SVC - - SYP - - SZL - - THB - - TJS - - TMT - - TND - - TOP - - TRY - - TTD - - TVD - - TWD - - TZS - - UAH - - UGX - - UYU - - UZS - - VEF - - VUV - - WST - - XAF - - XCD - - XDR - - XOF - - XPF - - YER - - ZAR - - ZMW - - ZWD - example: IDR - type: string - ValidationError: - properties: - status_code: - example: 400 - type: number - error: - example: API_VALIDATION_ERROR - type: string - message: - example: \"from\" is required. \"status\" is required. \"currency\" is required - type: string - validation: - example: - source: query - keys: - - from - - status - - currency - nullable: true - type: object - required: - - error - - message - - status_code - type: object - ServerError: - properties: - status_code: - example: 500 - type: number - error: - example: Internal Server Error - type: string - message: - example: An internal server error occurred - type: string - required: - - error - - message - - status_code - type: object - TransactionTypes: - enum: - - BATCH_DISBURSEMENT - - DISBURSEMENT - - PAYMENT - - REMITTANCE - - REMITTANCE_PAYOUT - - REMITTANCE_COLLECTION - - TRANSFER - - PLATFORM_FEE - - REFUND - - CASHBACK - - TOPUP - - WITHDRAWAL - - OTHER - example: DISBURSEMENT - type: string - ChannelsCategories: - enum: - - BANK - - CARDLESS_CREDIT - - PAYLATER - - CARDS - - CASH - - DIRECT_DEBIT - - EWALLET - - INVOICE - - QR_CODE - - RETAIL_OUTLET - - VIRTUAL_ACCOUNT - - XENPLATFORM - - DIRECT_BANK_TRANSFER - - OTHER - example: INVOICE - type: string - TransactionResponse: - example: - amount: 150.21 - settlement_status: PENDING - reference_id: My custom reference - created: 2016-08-29T09:12:33.001Z - fee: - third_party_withholding_tax: 10 - value_added_tax: 1 - xendit_withholding_tax: 10 - xendit_fee: 10 - status: PENDING - account_identifier: "123123123" - channel_code: BCA - type: null - channel_category: INVOICE - estimated_settlement_time: 2016-08-29T09:12:33.001Z - cashflow: MONEY_IN - product_id: d290f1ee-6c54-4b01-90e6-d701748f0851 - currency: IDR - id: txn_438e4b61-7c4c-4dbb-bbba-94a896bff333 - business_id: 5fc9f5b246f820517e38c84d - updated: 2016-08-29T09:12:33.001Z - status: SUCCESS - properties: - id: - description: The unique id of a transaction. It will have `txn_` as prefix - example: txn_438e4b61-7c4c-4dbb-bbba-94a896bff333 - pattern: "^txn_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" - type: string - product_id: - description: The product_id of the transaction. Product id will have a different - prefix for each product. You can use this id to match the transaction - from this API to each product API. - example: d290f1ee-6c54-4b01-90e6-d701748f0851 - type: string - type: - $ref: '#/components/schemas/TransactionResponse_type' - status: - $ref: '#/components/schemas/TransactionStatuses' - channel_category: - $ref: '#/components/schemas/ChannelsCategories' - channel_code: - description: "The channel of the transaction that is used. See [channel\ - \ codes](https://docs.xendit.co/xendisburse/channel-codes) for the list\ - \ of available per channel categories." - example: BCA - nullable: true - type: string - account_identifier: - description: Account identifier of transaction. The format will be different - from each channel. - example: "123123123" - nullable: true - type: string - reference_id: - description: customer supplied reference/external_id - example: My custom reference - type: string - currency: - $ref: '#/components/schemas/Currency' - amount: - description: The transaction amount. The number of decimal places will be - different for each currency according to ISO 4217. - example: 150.21 - type: number - cashflow: - description: "Representing whether the transaction is money in or money\ - \ out For transfer, the transfer out side it will shows up as money out\ - \ and on transfer in side in will shows up as money-in. Available values\ - \ are `MONEY_IN` for money in and `MONEY_OUT` for money out." - enum: - - MONEY_IN - - MONEY_OUT - type: string - settlement_status: - description: The settlement status of the transaction. `PENDING` - Transaction - amount has not been settled to merchant's balance. `SETTLED` - Transaction - has been settled to merchant's balance - enum: - - PENDING - - SETTLED - nullable: true - type: string - estimated_settlement_time: - description: "Estimated settlement time will only apply to money-in transactions.\ - \ For money-out transaction, the value will be `NULL`. Estimated settlement\ - \ time in which transaction amount will be settled to merchant's balance." - example: 2016-08-29T09:12:33.001Z - format: date-time - nullable: true - type: string - business_id: - description: The id of business where this transaction belong to - example: 5fc9f5b246f820517e38c84d - type: string - fee: - $ref: '#/components/schemas/FeeResponse' - created: - description: Transaction created timestamp (UTC+0) - example: 2016-08-29T09:12:33.001Z - format: date-time - type: string - updated: - description: Transaction updated timestamp (UTC+0) - example: 2016-08-29T09:12:33.001Z - format: date-time - type: string - required: - - account_identifier - - amount - - business_id - - cashflow - - channel_category - - channel_code - - created - - currency - - fee - - id - - product_id - - reference_id - - status - - type - - updated - type: object - FeeResponse: - example: - third_party_withholding_tax: 10 - value_added_tax: 1 - xendit_withholding_tax: 10 - xendit_fee: 10 - status: PENDING - properties: - xendit_fee: - description: Amount of the Xendit fee for this transaction. - example: 10 - type: number - value_added_tax: - description: Amount of the VAT for this transaction. - example: 1 - type: number - xendit_withholding_tax: - description: "Amount of the Xendit Withholding Tax for this transaction\ - \ if applicable. See [Tax Documentation](https://docs.xendit.co/fees-and-vat#vat)\ - \ for more information." - example: 10 - type: number - third_party_withholding_tax: - description: | - Amount of the 3rd Party Withholding Tax for this transaction if applicable. 3rd party example: Bank - example: 10 - type: number - status: - enum: - - PENDING - - COMPLETED - - CANCELED - - REVERSED - type: string - required: - - value_added_tax - - xendit_fee - type: object - TransactionStatuses: - enum: - - SUCCESS - - PENDING - - FAILED - - REVERSED - - VOIDED - example: SUCCESS - type: string - TransactionResponse_type: - anyOf: - - $ref: '#/components/schemas/TransactionTypes' - - type: string - description: The type of the transactions. diff --git a/docs/BalanceAndTransaction/Balance.md b/docs/BalanceAndTransaction/Balance.md index 0195a06..507eaed 100644 --- a/docs/BalanceAndTransaction/Balance.md +++ b/docs/BalanceAndTransaction/Balance.md @@ -1,14 +1,15 @@ # # Balance - +The balance remaining in your account ```php use Xendit\BalanceAndTransaction\Balance; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **balance** | **float** | | 123000.12 | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **balance** | **float** | ☑️ | | 123000.12 | [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/ChannelsCategories.md b/docs/BalanceAndTransaction/ChannelsCategories.md index 2d09e66..425e4c0 100644 --- a/docs/BalanceAndTransaction/ChannelsCategories.md +++ b/docs/BalanceAndTransaction/ChannelsCategories.md @@ -5,6 +5,7 @@ use Xendit\BalanceAndTransaction\ChannelsCategories; ``` + ## Enum @@ -38,6 +39,6 @@ use Xendit\BalanceAndTransaction\ChannelsCategories; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/Currency.md b/docs/BalanceAndTransaction/Currency.md index 6b94dc0..cb9a041 100644 --- a/docs/BalanceAndTransaction/Currency.md +++ b/docs/BalanceAndTransaction/Currency.md @@ -5,6 +5,7 @@ use Xendit\BalanceAndTransaction\Currency; ``` + ## Enum @@ -334,6 +335,6 @@ use Xendit\BalanceAndTransaction\Currency; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/DateRangeFilter.md b/docs/BalanceAndTransaction/DateRangeFilter.md index 0a22aa0..0680768 100644 --- a/docs/BalanceAndTransaction/DateRangeFilter.md +++ b/docs/BalanceAndTransaction/DateRangeFilter.md @@ -4,12 +4,13 @@ ```php use Xendit\BalanceAndTransaction\DateRangeFilter; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **gte** | **\DateTime** | Start time of transaction. If not specified will list all dates. | 2020-08-29T17:00Z | [optional] | -| **lte** | **\DateTime** | End time of transaction. If not specified will list all dates. | 2020-08-29T17:00Z | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **gte** | **\DateTime** | | Start time of transaction. If not specified will list all dates. | 2020-08-29T17:00Z | +| **lte** | **\DateTime** | | End time of transaction. If not specified will list all dates. | 2020-08-29T17:00Z | [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/FeeResponse.md b/docs/BalanceAndTransaction/FeeResponse.md index 06686e1..6cf9177 100644 --- a/docs/BalanceAndTransaction/FeeResponse.md +++ b/docs/BalanceAndTransaction/FeeResponse.md @@ -4,15 +4,16 @@ ```php use Xendit\BalanceAndTransaction\FeeResponse; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **xendit_fee** | **float** | Amount of the Xendit fee for this transaction. | 10 | | -| **value_added_tax** | **float** | Amount of the VAT for this transaction. | 1 | | -| **xendit_withholding_tax** | **float** | Amount of the Xendit Withholding Tax for this transaction if applicable. See [Tax Documentation](https://docs.xendit.co/fees-and-vat#vat) for more information. | 10 | [optional] | -| **third_party_withholding_tax** | **float** | Amount of the 3rd Party Withholding Tax for this transaction if applicable. 3rd party example: Bank | 10 | [optional] | -| **status** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **xendit_fee** | **float** | ☑️ | Amount of the Xendit fee for this transaction. | 10 | +| **value_added_tax** | **float** | ☑️ | Amount of the VAT for this transaction. | 1 | +| **xendit_withholding_tax** | **float** | | Amount of the Xendit Withholding Tax for this transaction if applicable. See [Tax Documentation](https://docs.xendit.co/fees-and-vat#vat) for more information. | 10 | +| **third_party_withholding_tax** | **float** | | Amount of the 3rd Party Withholding Tax for this transaction if applicable. 3rd party example: Bank | 10 | +| **status** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/LinkItem.md b/docs/BalanceAndTransaction/LinkItem.md index 63b685a..7af785a 100644 --- a/docs/BalanceAndTransaction/LinkItem.md +++ b/docs/BalanceAndTransaction/LinkItem.md @@ -4,13 +4,14 @@ ```php use Xendit\BalanceAndTransaction\LinkItem; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **href** | **string** | URI of target, this will be to the next link. | /transactions?types=PAYMENT&statuses=SUCCESS&channel_categories=EWALLET&channel_categories=RETAIL_OUTLET&limit=2&after_id=txn_a765a3f0-34c0-41ee-8686-bca11835ebdc | | -| **rel** | **string** | The relationship between source and target. The value will be `next`. | next | | -| **method** | **string** | The HTTP method, the value will be `GET`. | GET | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **href** | **string** | ☑️ | URI of target, this will be to the next link. | /transactions?types=PAYMENT&statuses=SUCCESS&channel_categories=EWALLET&channel_categories=RETAIL_OUTLET&limit=2&after_id=txn_a765a3f0-34c0-41ee-8686-bca11835ebdc | +| **rel** | **string** | ☑️ | The relationship between source and target. The value will be `next`. | next | +| **method** | **string** | ☑️ | The HTTP method, the value will be `GET`. | GET | [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/ServerError.md b/docs/BalanceAndTransaction/ServerError.md index a4778ba..99e7e2c 100644 --- a/docs/BalanceAndTransaction/ServerError.md +++ b/docs/BalanceAndTransaction/ServerError.md @@ -4,13 +4,14 @@ ```php use Xendit\BalanceAndTransaction\ServerError; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **status_code** | **float** | | 500 | | -| **error** | **string** | | Internal Server Error | | -| **message** | **string** | | An internal server error occurred | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **status_code** | **float** | ☑️ | | 500 | +| **error** | **string** | ☑️ | | Internal Server Error | +| **message** | **string** | ☑️ | | An internal server error occurred | [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/TransactionResponse.md b/docs/BalanceAndTransaction/TransactionResponse.md index 0235ce5..e93c045 100644 --- a/docs/BalanceAndTransaction/TransactionResponse.md +++ b/docs/BalanceAndTransaction/TransactionResponse.md @@ -4,27 +4,28 @@ ```php use Xendit\BalanceAndTransaction\TransactionResponse; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **id** | **string** | The unique id of a transaction. It will have `txn_` as prefix | txn_438e4b61-7c4c-4dbb-bbba-94a896bff333 | | -| **product_id** | **string** | The product_id of the transaction. Product id will have a different prefix for each product. You can use this id to match the transaction from this API to each product API. | d290f1ee-6c54-4b01-90e6-d701748f0851 | | -| **type** | [**TransactionResponseType**](TransactionResponseType.md) | | null | | -| **status** | [**TransactionStatuses**](TransactionStatuses.md) | | null | | -| **channel_category** | [**ChannelsCategories**](ChannelsCategories.md) | | null | | -| **channel_code** | **string** | The channel of the transaction that is used. See [channel codes](https://docs.xendit.co/xendisburse/channel-codes) for the list of available per channel categories. | BCA | | -| **account_identifier** | **string** | Account identifier of transaction. The format will be different from each channel. | 123123123 | | -| **reference_id** | **string** | customer supplied reference/external_id | My custom reference | | -| **currency** | [**Currency**](Currency.md) | | null | | -| **amount** | **float** | The transaction amount. The number of decimal places will be different for each currency according to ISO 4217. | 150.21 | | -| **cashflow** | **string** | Representing whether the transaction is money in or money out For transfer, the transfer out side it will shows up as money out and on transfer in side in will shows up as money-in. Available values are `MONEY_IN` for money in and `MONEY_OUT` for money out. | null | | -| **settlement_status** | **string** | The settlement status of the transaction. `PENDING` - Transaction amount has not been settled to merchant's balance. `SETTLED` - Transaction has been settled to merchant's balance | null | [optional] | -| **estimated_settlement_time** | **\DateTime** | Estimated settlement time will only apply to money-in transactions. For money-out transaction, the value will be `NULL`. Estimated settlement time in which transaction amount will be settled to merchant's balance. | 2016-08-29T09:12:33.001Z | [optional] | -| **business_id** | **string** | The id of business where this transaction belong to | 5fc9f5b246f820517e38c84d | | -| **fee** | [**FeeResponse**](FeeResponse.md) | | null | | -| **created** | **\DateTime** | Transaction created timestamp (UTC+0) | 2016-08-29T09:12:33.001Z | | -| **updated** | **\DateTime** | Transaction updated timestamp (UTC+0) | 2016-08-29T09:12:33.001Z | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | ☑️ | The unique id of a transaction. It will have `txn_` as prefix | txn_438e4b61-7c4c-4dbb-bbba-94a896bff333 | +| **product_id** | **string** | ☑️ | The product_id of the transaction. Product id will have a different prefix for each product. You can use this id to match the transaction from this API to each product API. | d290f1ee-6c54-4b01-90e6-d701748f0851 | +| **type** | [**TransactionResponseType**](TransactionResponseType.md) | ☑️ | | null | +| **status** | [**TransactionStatuses**](TransactionStatuses.md) | ☑️ | | null | +| **channel_category** | [**ChannelsCategories**](ChannelsCategories.md) | ☑️ | | null | +| **channel_code** | **string** | ☑️ | The channel of the transaction that is used. See [channel codes](https://docs.xendit.co/xendisburse/channel-codes) for the list of available per channel categories. | BCA | +| **account_identifier** | **string** | ☑️ | Account identifier of transaction. The format will be different from each channel. | 123123123 | +| **reference_id** | **string** | ☑️ | customer supplied reference/external_id | My custom reference | +| **currency** | [**Currency**](Currency.md) | ☑️ | | null | +| **amount** | **float** | ☑️ | The transaction amount. The number of decimal places will be different for each currency according to ISO 4217. | 150.21 | +| **cashflow** | **string** | ☑️ | Representing whether the transaction is money in or money out For transfer, the transfer out side it will shows up as money out and on transfer in side in will shows up as money-in. Available values are `MONEY_IN` for money in and `MONEY_OUT` for money out. | null | +| **settlement_status** | **string** | | The settlement status of the transaction. `PENDING` - Transaction amount has not been settled to merchant's balance. `SETTLED` - Transaction has been settled to merchant's balance | null | +| **estimated_settlement_time** | **\DateTime** | | Estimated settlement time will only apply to money-in transactions. For money-out transaction, the value will be `NULL`. Estimated settlement time in which transaction amount will be settled to merchant's balance. | 2016-08-29T09:12:33.001Z | +| **business_id** | **string** | ☑️ | The id of business where this transaction belong to | 5fc9f5b246f820517e38c84d | +| **fee** | [**FeeResponse**](FeeResponse.md) | ☑️ | | null | +| **created** | **\DateTime** | ☑️ | Transaction created timestamp (UTC+0) | 2016-08-29T09:12:33.001Z | +| **updated** | **\DateTime** | ☑️ | Transaction updated timestamp (UTC+0) | 2016-08-29T09:12:33.001Z | [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/TransactionResponseType.md b/docs/BalanceAndTransaction/TransactionResponseType.md index 620a3c1..5f22ed2 100644 --- a/docs/BalanceAndTransaction/TransactionResponseType.md +++ b/docs/BalanceAndTransaction/TransactionResponseType.md @@ -1,13 +1,14 @@ # # TransactionResponseType - +The type of the transactions. ```php use Xendit\BalanceAndTransaction\TransactionResponseType; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/TransactionStatuses.md b/docs/BalanceAndTransaction/TransactionStatuses.md index d19fab7..377218f 100644 --- a/docs/BalanceAndTransaction/TransactionStatuses.md +++ b/docs/BalanceAndTransaction/TransactionStatuses.md @@ -5,6 +5,7 @@ use Xendit\BalanceAndTransaction\TransactionStatuses; ``` + ## Enum @@ -20,6 +21,6 @@ use Xendit\BalanceAndTransaction\TransactionStatuses; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/TransactionTypes.md b/docs/BalanceAndTransaction/TransactionTypes.md index ff17c52..3cf8214 100644 --- a/docs/BalanceAndTransaction/TransactionTypes.md +++ b/docs/BalanceAndTransaction/TransactionTypes.md @@ -5,6 +5,7 @@ use Xendit\BalanceAndTransaction\TransactionTypes; ``` + ## Enum @@ -36,6 +37,6 @@ use Xendit\BalanceAndTransaction\TransactionTypes; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/TransactionsResponse.md b/docs/BalanceAndTransaction/TransactionsResponse.md index d9acb5c..9138c3a 100644 --- a/docs/BalanceAndTransaction/TransactionsResponse.md +++ b/docs/BalanceAndTransaction/TransactionsResponse.md @@ -1,16 +1,17 @@ # # TransactionsResponse - +Returns an array of Transaction Objects. Returns empty array when there is no result. ```php use Xendit\BalanceAndTransaction\TransactionsResponse; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **has_more** | **bool** | Indicates whether there are more items to be queried with `after_id` of the last item from the current result. Use the `links` to follow to the next result. | null | | -| **links** | [**array**](LinkItem.md) | The links to the next page based on LinkItem if there is next result. | null | [optional] | -| **data** | [**array**](TransactionResponse.md) | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **has_more** | **bool** | ☑️ | Indicates whether there are more items to be queried with `after_id` of the last item from the current result. Use the `links` to follow to the next result. | null | +| **links** | [**array**](LinkItem.md) | | The links to the next page based on LinkItem if there is next result. | null | +| **data** | [**array**](TransactionResponse.md) | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/ValidationError.md b/docs/BalanceAndTransaction/ValidationError.md index 3b57790..e72179d 100644 --- a/docs/BalanceAndTransaction/ValidationError.md +++ b/docs/BalanceAndTransaction/ValidationError.md @@ -4,14 +4,15 @@ ```php use Xendit\BalanceAndTransaction\ValidationError; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **status_code** | **float** | | 400 | | -| **error** | **string** | | API_VALIDATION_ERROR | | -| **message** | **string** | | \"from\" is required. \"status\" is required. \"currency\" is required | | -| **validation** | **object** | | {"source":"query","keys":["from","status","currency"]} | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **status_code** | **float** | ☑️ | | 400 | +| **error** | **string** | ☑️ | | API_VALIDATION_ERROR | +| **message** | **string** | ☑️ | | \"from\" is required. \"status\" is required. \"currency\" is required | +| **validation** | **object** | | | {"source":"query","keys":["from","status","currency"]} | [[Back to README]](../../README.md) diff --git a/docs/BalanceAndTransaction/BalanceApi.md b/docs/BalanceApi.md similarity index 50% rename from docs/BalanceAndTransaction/BalanceApi.md rename to docs/BalanceApi.md index 9866851..2f1f75d 100644 --- a/docs/BalanceAndTransaction/BalanceApi.md +++ b/docs/BalanceApi.md @@ -1,24 +1,52 @@ -# Xendit\BalanceApi +# BalanceApi + + +You can use the APIs below to interface with Xendit's `BalanceApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```php +createCustomer($idempotency_key, $for_user_id, $customer_request); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling CustomerApi->createCustomer: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **idempotency_key** | **string**| A unique key to prevent processing duplicate requests. | [optional] | -| **for_user_id** | **string**| The sub-account user-id that you want to make this transaction for. | [optional] | -| **customer_request** | [**CustomerRequest**](CustomerRequest.md)| Request object for end customer object | [optional] | - -### Return type - -[**\Xendit\Customer\Customer**](Customer.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `getCustomer()` - -```php -getCustomer($id, $for_user_id): \Customer\Customer -``` - -Get Customer By ID - -Retrieves a single customer object For detail explanations, see this link: https://developers.xendit.co/api-reference/#get-customer - -### Example - -```php -getCustomer($id, $for_user_id); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling CustomerApi->getCustomer: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **id** | **string**| End customer resource id | | -| **for_user_id** | **string**| The sub-account user-id that you want to make this transaction for. | [optional] | - -### Return type - -[**\Xendit\Customer\Customer**](Customer.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `getCustomerByReferenceID()` - -```php -getCustomerByReferenceID($reference_id, $for_user_id): \Customer\GetCustomerByReferenceID200Response -``` - -GET customers by reference id - -Retrieves an array with a customer object that matches the provided reference_id - the identifier provided by you For detail explanations, see this link: https://developers.xendit.co/api-reference/#get-customer-by-reference-id - -### Example - -```php -getCustomerByReferenceID($reference_id, $for_user_id); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling CustomerApi->getCustomerByReferenceID: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **reference_id** | **string**| Merchant's reference of end customer | | -| **for_user_id** | **string**| The sub-account user-id that you want to make this transaction for. | [optional] | - -### Return type - -[**\Xendit\Customer\GetCustomerByReferenceID200Response**](GetCustomerByReferenceID200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `updateCustomer()` - -```php -updateCustomer($id, $for_user_id, $patch_customer): \Customer\Customer -``` - -Update End Customer Resource - -Function to update an existing customer. For a detailed explanation For detail explanations, see this link: https://developers.xendit.co/api-reference/#update-customer - -### Example - -```php -updateCustomer($id, $for_user_id, $patch_customer); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling CustomerApi->updateCustomer: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **id** | **string**| End customer resource id | | -| **for_user_id** | **string**| The sub-account user-id that you want to make this transaction for. | [optional] | -| **patch_customer** | [**PatchCustomer**](PatchCustomer.md)| Update Request for end customer object | [optional] | - -### Return type - -[**\Xendit\Customer\Customer**](Customer.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) diff --git a/docs/Customer/CustomerRequest.md b/docs/Customer/CustomerRequest.md index 500ffcf..31460e1 100644 --- a/docs/Customer/CustomerRequest.md +++ b/docs/Customer/CustomerRequest.md @@ -4,23 +4,24 @@ ```php use Xendit\Customer\CustomerRequest; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **client_name** | **string** | Entity's name for this client | AirAsia Indonesia | [optional] | -| **reference_id** | **string** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | null | | -| **type** | **string** | | null | [optional] [default to 'INDIVIDUAL'] | -| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | null | [optional] | -| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | null | [optional] | -| **description** | **string** | | null | [optional] | -| **email** | **string** | | info@xendit.co | [optional] | -| **mobile_number** | **string** | | +6281295412345 | [optional] | -| **phone_number** | **string** | | +6281295412345 | [optional] | -| **addresses** | [**array**](AddressRequest.md) | | null | [optional] | -| **identity_accounts** | [**array**](IdentityAccountRequest.md) | | null | [optional] | -| **kyc_documents** | [**array**](KYCDocumentRequest.md) | | null | [optional] | -| **metadata** | **object** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **client_name** | **string** | | Entity's name for this client | AirAsia Indonesia | +| **reference_id** | **string** | ☑️ | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | null | +| **type** | **string** | | | null | +| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | | null | +| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | | null | +| **description** | **string** | | | null | +| **email** | **string** | | | info@xendit.co | +| **mobile_number** | **string** | | | +6281295412345 | +| **phone_number** | **string** | | | +6281295412345 | +| **addresses** | [**array**](AddressRequest.md) | | | null | +| **identity_accounts** | [**array**](IdentityAccountRequest.md) | | | null | +| **kyc_documents** | [**array**](KYCDocumentRequest.md) | | | null | +| **metadata** | **object** | | | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/EmploymentDetail.md b/docs/Customer/EmploymentDetail.md index 84986a3..e2f1baa 100644 --- a/docs/Customer/EmploymentDetail.md +++ b/docs/Customer/EmploymentDetail.md @@ -4,13 +4,14 @@ ```php use Xendit\Customer\EmploymentDetail; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **employer_name** | **string** | Name of employer | null | [optional] | -| **nature_of_business** | **string** | Industry or nature of business | null | [optional] | -| **role_description** | **string** | Occupation or title | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **employer_name** | **string** | | Name of employer | null | +| **nature_of_business** | **string** | | Industry or nature of business | null | +| **role_description** | **string** | | Occupation or title | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/EndCustomerStatus.md b/docs/Customer/EndCustomerStatus.md index b339270..b66a3d8 100644 --- a/docs/Customer/EndCustomerStatus.md +++ b/docs/Customer/EndCustomerStatus.md @@ -5,6 +5,7 @@ use Xendit\Customer\EndCustomerStatus; ``` + ## Enum @@ -20,6 +21,6 @@ use Xendit\Customer\EndCustomerStatus; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Customer/Error.md b/docs/Customer/Error.md index 95f0cbd..04ed8c7 100644 --- a/docs/Customer/Error.md +++ b/docs/Customer/Error.md @@ -4,13 +4,14 @@ ```php use Xendit\Customer\Error; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | | SERVER_ERROR | | -| **message** | **string** | | Something unexpected happened, we are investigating this issue right now | | -| **errors** | **object[]** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | ☑️ | | SERVER_ERROR | +| **message** | **string** | ☑️ | | Something unexpected happened, we are investigating this issue right now | +| **errors** | **object[]** | | | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/GetCustomerByReferenceID200Response.md b/docs/Customer/GetCustomerByReferenceID200Response.md index f913e7d..3c2aa5d 100644 --- a/docs/Customer/GetCustomerByReferenceID200Response.md +++ b/docs/Customer/GetCustomerByReferenceID200Response.md @@ -4,12 +4,13 @@ ```php use Xendit\Customer\GetCustomerByReferenceID200Response; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **has_more** | **bool** | | null | [optional] | -| **data** | [**array**](Customer.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **has_more** | **bool** | | | null | +| **data** | [**array**](Customer.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/GetCustomerByReferenceID400Response.md b/docs/Customer/GetCustomerByReferenceID400Response.md index 6677ab7..68751e8 100644 --- a/docs/Customer/GetCustomerByReferenceID400Response.md +++ b/docs/Customer/GetCustomerByReferenceID400Response.md @@ -4,13 +4,14 @@ ```php use Xendit\Customer\GetCustomerByReferenceID400Response; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | | ENTITY_NOT_FOUND_ERROR | | -| **message** | **mixed** | | Entity does not exist | | -| **errors** | **object[]** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | ☑️ | | ENTITY_NOT_FOUND_ERROR | +| **message** | **mixed** | ☑️ | | Entity does not exist | +| **errors** | **object[]** | | | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/GetCustomerByReferenceID400ResponseAllOf.md b/docs/Customer/GetCustomerByReferenceID400ResponseAllOf.md index 4efbbc3..ebc7443 100644 --- a/docs/Customer/GetCustomerByReferenceID400ResponseAllOf.md +++ b/docs/Customer/GetCustomerByReferenceID400ResponseAllOf.md @@ -4,12 +4,13 @@ ```php use Xendit\Customer\GetCustomerByReferenceID400ResponseAllOf; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | | ENTITY_NOT_FOUND_ERROR | [optional] | -| **message** | **mixed** | | Entity does not exist | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | | | ENTITY_NOT_FOUND_ERROR | +| **message** | **mixed** | | | Entity does not exist | [[Back to README]](../../README.md) diff --git a/docs/Customer/IdentityAccountRequest.md b/docs/Customer/IdentityAccountRequest.md index 9fc30e3..7ab23c2 100644 --- a/docs/Customer/IdentityAccountRequest.md +++ b/docs/Customer/IdentityAccountRequest.md @@ -4,15 +4,16 @@ ```php use Xendit\Customer\IdentityAccountRequest; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **type** | [**IdentityAccountType**](IdentityAccountType.md) | | null | [optional] | -| **company** | **string** | The issuing institution associated with the account (e.g., OCBC, GOPAY, 7-11). If adding financial accounts that Xendit supports, we recommend you use the channel_name found at https://xendit.github.io/apireference/#payment-channels for this field | null | [optional] | -| **description** | **string** | Free text description of this account | null | [optional] | -| **country** | **string** | ISO3166-2 country code | ID | [optional] | -| **properties** | [**IdentityAccountRequestProperties**](IdentityAccountRequestProperties.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | [**IdentityAccountType**](IdentityAccountType.md) | | | null | +| **company** | **string** | | The issuing institution associated with the account (e.g., OCBC, GOPAY, 7-11). If adding financial accounts that Xendit supports, we recommend you use the channel_name found at https://xendit.github.io/apireference/#payment-channels for this field | null | +| **description** | **string** | | Free text description of this account | null | +| **country** | **string** | | ISO3166-2 country code | ID | +| **properties** | [**IdentityAccountRequestProperties**](IdentityAccountRequestProperties.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/IdentityAccountRequestProperties.md b/docs/Customer/IdentityAccountRequestProperties.md index a6d0359..2e65b59 100644 --- a/docs/Customer/IdentityAccountRequestProperties.md +++ b/docs/Customer/IdentityAccountRequestProperties.md @@ -4,21 +4,22 @@ ```php use Xendit\Customer\IdentityAccountRequestProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **account_number** | **string** | Unique account identifier as per the bank records. | null | [optional] | -| **account_holder_name** | **string** | Name of account holder as per the cardless credit account. | null | [optional] | -| **swift_code** | **string** | The SWIFT code for international payments | null | [optional] | -| **account_type** | **string** | Free text account type, e.g., Savings, Transaction, Virtual Account. | null | [optional] | -| **account_details** | **string** | Potentially masked account detail, for display purposes only. | null | [optional] | -| **currency** | **string** | | null | [optional] | -| **token_id** | **string** | The token id returned in tokenisation | null | [optional] | -| **account_id** | **string** | Alphanumeric string identifying this account. Usually an email address or phone number. | null | [optional] | -| **payment_code** | **string** | Complete fixed payment code (including prefix) | null | [optional] | -| **expires_at** | **string** | YYYY-MM-DD string with expiry date for the payment code | null | [optional] | -| **qr_string** | **string** | String representation of the QR Code image | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account_number** | **string** | | Unique account identifier as per the bank records. | null | +| **account_holder_name** | **string** | | Name of account holder as per the cardless credit account. | null | +| **swift_code** | **string** | | The SWIFT code for international payments | null | +| **account_type** | **string** | | Free text account type, e.g., Savings, Transaction, Virtual Account. | null | +| **account_details** | **string** | | Potentially masked account detail, for display purposes only. | null | +| **currency** | **string** | | | null | +| **token_id** | **string** | | The token id returned in tokenisation | null | +| **account_id** | **string** | | Alphanumeric string identifying this account. Usually an email address or phone number. | null | +| **payment_code** | **string** | | Complete fixed payment code (including prefix) | null | +| **expires_at** | **string** | | YYYY-MM-DD string with expiry date for the payment code | null | +| **qr_string** | **string** | | String representation of the QR Code image | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/IdentityAccountResponse.md b/docs/Customer/IdentityAccountResponse.md index 34b8176..ae206f4 100644 --- a/docs/Customer/IdentityAccountResponse.md +++ b/docs/Customer/IdentityAccountResponse.md @@ -4,19 +4,20 @@ ```php use Xendit\Customer\IdentityAccountResponse; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **id** | **string** | | d290f1ee-6c54-4b01-90e6-d701748f0851 | [optional] | -| **code** | **string** | | null | [optional] | -| **company** | **string** | | null | | -| **description** | **string** | | null | | -| **country** | **string** | ISO3166-2 country code | ID | | -| **holder_name** | **string** | | null | [optional] | -| **type** | **string** | | null | | -| **properties** | [**IdentityAccountResponseProperties**](IdentityAccountResponseProperties.md) | | null | | -| **created** | **\DateTime** | | 2016-08-29T09:12:33.001Z | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | | | d290f1ee-6c54-4b01-90e6-d701748f0851 | +| **code** | **string** | | | null | +| **company** | **string** | ☑️ | | null | +| **description** | **string** | ☑️ | | null | +| **country** | **string** | ☑️ | ISO3166-2 country code | ID | +| **holder_name** | **string** | | | null | +| **type** | **string** | ☑️ | | null | +| **properties** | [**IdentityAccountResponseProperties**](IdentityAccountResponseProperties.md) | ☑️ | | null | +| **created** | **\DateTime** | | | 2016-08-29T09:12:33.001Z | [[Back to README]](../../README.md) diff --git a/docs/Customer/IdentityAccountResponseProperties.md b/docs/Customer/IdentityAccountResponseProperties.md index 76ecc47..e8fbf5c 100644 --- a/docs/Customer/IdentityAccountResponseProperties.md +++ b/docs/Customer/IdentityAccountResponseProperties.md @@ -4,21 +4,22 @@ ```php use Xendit\Customer\IdentityAccountResponseProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **account_number** | **string** | Unique account identifier as per the bank records. | null | [optional] | -| **account_holder_name** | **string** | Name of account holder as per the cardless credit account. | null | [optional] | -| **swift_code** | **string** | The SWIFT code for international payments | null | [optional] | -| **account_type** | **string** | Free text account type, e.g., Savings, Transaction, Virtual Account. | null | [optional] | -| **account_details** | **string** | Potentially masked account detail, for display purposes only. | null | [optional] | -| **currency** | **string** | | null | [optional] | -| **token_id** | **string** | The token id returned in tokenisation | null | [optional] | -| **payment_code** | **string** | Complete fixed payment code (including prefix) | null | [optional] | -| **expires_at** | **string** | YYYY-MM-DD string with expiry date for the payment code | null | [optional] | -| **qr_string** | **string** | String representation of the QR Code image | null | [optional] | -| **account_id** | **string** | Alphanumeric string identifying this account. Usually an email address or phone number. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account_number** | **string** | | Unique account identifier as per the bank records. | null | +| **account_holder_name** | **string** | | Name of account holder as per the cardless credit account. | null | +| **swift_code** | **string** | | The SWIFT code for international payments | null | +| **account_type** | **string** | | Free text account type, e.g., Savings, Transaction, Virtual Account. | null | +| **account_details** | **string** | | Potentially masked account detail, for display purposes only. | null | +| **currency** | **string** | | | null | +| **token_id** | **string** | | The token id returned in tokenisation | null | +| **payment_code** | **string** | | Complete fixed payment code (including prefix) | null | +| **expires_at** | **string** | | YYYY-MM-DD string with expiry date for the payment code | null | +| **qr_string** | **string** | | String representation of the QR Code image | null | +| **account_id** | **string** | | Alphanumeric string identifying this account. Usually an email address or phone number. | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/IdentityAccountType.md b/docs/Customer/IdentityAccountType.md index 9b917ba..12476ab 100644 --- a/docs/Customer/IdentityAccountType.md +++ b/docs/Customer/IdentityAccountType.md @@ -5,6 +5,7 @@ use Xendit\Customer\IdentityAccountType; ``` + ## Enum @@ -22,6 +23,6 @@ use Xendit\Customer\IdentityAccountType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Customer/IndividualDetail.md b/docs/Customer/IndividualDetail.md index 4076f1f..91c869c 100644 --- a/docs/Customer/IndividualDetail.md +++ b/docs/Customer/IndividualDetail.md @@ -4,21 +4,22 @@ ```php use Xendit\Customer\IndividualDetail; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **given_names** | **string** | | null | [optional] | -| **given_names_non_roman** | **string** | | null | [optional] | -| **middle_name** | **string** | | null | [optional] | -| **surname** | **string** | | null | [optional] | -| **surname_non_roman** | **string** | | null | [optional] | -| **mother_maiden_name** | **string** | | null | [optional] | -| **gender** | **string** | | null | [optional] | -| **date_of_birth** | **string** | | 2017-07-21 | [optional] | -| **nationality** | **string** | ISO3166-2 country code | ID | [optional] | -| **place_of_birth** | **string** | | null | [optional] | -| **employment** | [**EmploymentDetail**](EmploymentDetail.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **given_names** | **string** | | | null | +| **given_names_non_roman** | **string** | | | null | +| **middle_name** | **string** | | | null | +| **surname** | **string** | | | null | +| **surname_non_roman** | **string** | | | null | +| **mother_maiden_name** | **string** | | | null | +| **gender** | **string** | | | null | +| **date_of_birth** | **string** | | | 2017-07-21 | +| **nationality** | **string** | | ISO3166-2 country code | ID | +| **place_of_birth** | **string** | | | null | +| **employment** | [**EmploymentDetail**](EmploymentDetail.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/KYCDocumentRequest.md b/docs/Customer/KYCDocumentRequest.md index d36cacf..fd2046d 100644 --- a/docs/Customer/KYCDocumentRequest.md +++ b/docs/Customer/KYCDocumentRequest.md @@ -4,18 +4,19 @@ ```php use Xendit\Customer\KYCDocumentRequest; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **country** | **string** | ISO3166-2 country code | ID | [optional] | -| **type** | [**KYCDocumentType**](KYCDocumentType.md) | | null | [optional] | -| **sub_type** | [**KYCDocumentSubType**](KYCDocumentSubType.md) | | null | [optional] | -| **document_name** | **string** | | KTP | [optional] | -| **document_number** | **string** | | AA123467890 | [optional] | -| **expires_at** | **string** | | 2017-07-21 | [optional] | -| **holder_name** | **string** | | John Doe | [optional] | -| **document_images** | **string[]** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **country** | **string** | | ISO3166-2 country code | ID | +| **type** | [**KYCDocumentType**](KYCDocumentType.md) | | | null | +| **sub_type** | [**KYCDocumentSubType**](KYCDocumentSubType.md) | | | null | +| **document_name** | **string** | | | KTP | +| **document_number** | **string** | | | AA123467890 | +| **expires_at** | **string** | | | 2017-07-21 | +| **holder_name** | **string** | | | John Doe | +| **document_images** | **string[]** | | | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/KYCDocumentResponse.md b/docs/Customer/KYCDocumentResponse.md index 9ef6654..3d98415 100644 --- a/docs/Customer/KYCDocumentResponse.md +++ b/docs/Customer/KYCDocumentResponse.md @@ -4,18 +4,19 @@ ```php use Xendit\Customer\KYCDocumentResponse; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **country** | **string** | | null | | -| **type** | [**KYCDocumentType**](KYCDocumentType.md) | | null | | -| **sub_type** | [**KYCDocumentSubType**](KYCDocumentSubType.md) | | null | | -| **document_name** | **string** | | null | | -| **document_number** | **string** | | null | | -| **expires_at** | **string** | | null | | -| **holder_name** | **string** | | null | | -| **document_images** | **string[]** | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **country** | **string** | ☑️ | | null | +| **type** | [**KYCDocumentType**](KYCDocumentType.md) | ☑️ | | null | +| **sub_type** | [**KYCDocumentSubType**](KYCDocumentSubType.md) | ☑️ | | null | +| **document_name** | **string** | ☑️ | | null | +| **document_number** | **string** | ☑️ | | null | +| **expires_at** | **string** | ☑️ | | null | +| **holder_name** | **string** | ☑️ | | null | +| **document_images** | **string[]** | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/KYCDocumentSubType.md b/docs/Customer/KYCDocumentSubType.md index b7468f3..8578aa7 100644 --- a/docs/Customer/KYCDocumentSubType.md +++ b/docs/Customer/KYCDocumentSubType.md @@ -5,6 +5,7 @@ use Xendit\Customer\KYCDocumentSubType; ``` + ## Enum @@ -30,6 +31,6 @@ use Xendit\Customer\KYCDocumentSubType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Customer/KYCDocumentType.md b/docs/Customer/KYCDocumentType.md index f178225..a4db817 100644 --- a/docs/Customer/KYCDocumentType.md +++ b/docs/Customer/KYCDocumentType.md @@ -5,6 +5,7 @@ use Xendit\Customer\KYCDocumentType; ``` + ## Enum @@ -26,6 +27,6 @@ use Xendit\Customer\KYCDocumentType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Customer/PatchCustomer.md b/docs/Customer/PatchCustomer.md index 1d0b748..1739d74 100644 --- a/docs/Customer/PatchCustomer.md +++ b/docs/Customer/PatchCustomer.md @@ -4,23 +4,24 @@ ```php use Xendit\Customer\PatchCustomer; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **client_name** | **string** | Entity's name for this client | AirAsia Indonesia | [optional] | -| **reference_id** | **string** | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | null | [optional] | -| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | null | [optional] | -| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | null | [optional] | -| **description** | **string** | | null | [optional] | -| **email** | **string** | | info@xendit.co | [optional] | -| **mobile_number** | **string** | | +6281295412345 | [optional] | -| **phone_number** | **string** | | +6281295412345 | [optional] | -| **metadata** | **object** | | null | [optional] | -| **addresses** | [**array**](AddressRequest.md) | | null | [optional] | -| **identity_accounts** | [**array**](IdentityAccountRequest.md) | | null | [optional] | -| **kyc_documents** | [**array**](KYCDocumentRequest.md) | | null | [optional] | -| **status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **client_name** | **string** | | Entity's name for this client | AirAsia Indonesia | +| **reference_id** | **string** | | Merchant's reference of this end customer, eg Merchant's user's id. Must be unique. | null | +| **individual_detail** | [**IndividualDetail**](IndividualDetail.md) | | | null | +| **business_detail** | [**BusinessDetail**](BusinessDetail.md) | | | null | +| **description** | **string** | | | null | +| **email** | **string** | | | info@xendit.co | +| **mobile_number** | **string** | | | +6281295412345 | +| **phone_number** | **string** | | | +6281295412345 | +| **metadata** | **object** | | | null | +| **addresses** | [**array**](AddressRequest.md) | | | null | +| **identity_accounts** | [**array**](IdentityAccountRequest.md) | | | null | +| **kyc_documents** | [**array**](KYCDocumentRequest.md) | | | null | +| **status** | [**EndCustomerStatus**](EndCustomerStatus.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/ResponseDataNotFound.md b/docs/Customer/ResponseDataNotFound.md index 469c1f5..367ce07 100644 --- a/docs/Customer/ResponseDataNotFound.md +++ b/docs/Customer/ResponseDataNotFound.md @@ -4,12 +4,13 @@ ```php use Xendit\Customer\ResponseDataNotFound; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | | DATA_NOT_FOUND | [optional] | -| **message** | **mixed** | | Provided customer_id does not exist | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | | | DATA_NOT_FOUND | +| **message** | **mixed** | | | Provided customer_id does not exist | [[Back to README]](../../README.md) diff --git a/docs/Customer/UpdateCustomer400Response.md b/docs/Customer/UpdateCustomer400Response.md index e364703..7ce379c 100644 --- a/docs/Customer/UpdateCustomer400Response.md +++ b/docs/Customer/UpdateCustomer400Response.md @@ -4,13 +4,14 @@ ```php use Xendit\Customer\UpdateCustomer400Response; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | | ENTITY_NOT_FOUND_ERROR | | -| **message** | **mixed** | | Entity does not exist | | -| **errors** | **object[]** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | ☑️ | | ENTITY_NOT_FOUND_ERROR | +| **message** | **mixed** | ☑️ | | Entity does not exist | +| **errors** | **object[]** | | | null | [[Back to README]](../../README.md) diff --git a/docs/Customer/UpdateCustomer400ResponseAllOf.md b/docs/Customer/UpdateCustomer400ResponseAllOf.md index 66dc93a..e4c383e 100644 --- a/docs/Customer/UpdateCustomer400ResponseAllOf.md +++ b/docs/Customer/UpdateCustomer400ResponseAllOf.md @@ -4,12 +4,13 @@ ```php use Xendit\Customer\UpdateCustomer400ResponseAllOf; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | | ENTITY_NOT_FOUND_ERROR | [optional] | -| **message** | **mixed** | | Entity does not exist | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | | | ENTITY_NOT_FOUND_ERROR | +| **message** | **mixed** | | | Entity does not exist | [[Back to README]](../../README.md) diff --git a/docs/CustomerApi.md b/docs/CustomerApi.md new file mode 100644 index 0000000..00398b0 --- /dev/null +++ b/docs/CustomerApi.md @@ -0,0 +1,217 @@ +# CustomerApi + + +You can use the APIs below to interface with Xendit's `CustomerApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```php +createCustomer($idempotency_key, $for_user_id, $customer_request); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling CustomerApi->createCustomer: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `getCustomer()` Function + +```php +getCustomer($id, $for_user_id): \Customer\Customer +``` + +Get Customer By ID + Retrieves a single customer object For detail explanations, see this link: https://developers.xendit.co/api-reference/#get-customer + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `getCustomer` | +| Request Parameters | [GetCustomerRequestParams](#request-parameters--GetCustomerRequestParams) | +| Return Type | [**\Xendit\Customer\Customer**](Customer/Customer.md) | + +### Request Parameters - GetCustomerRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | + +### Usage Example +```php +getCustomer($id, $for_user_id); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling CustomerApi->getCustomer: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `getCustomerByReferenceID()` Function + +```php +getCustomerByReferenceID($reference_id, $for_user_id): \Customer\GetCustomerByReferenceID200Response +``` + +GET customers by reference id + Retrieves an array with a customer object that matches the provided reference_id - the identifier provided by you For detail explanations, see this link: https://developers.xendit.co/api-reference/#get-customer-by-reference-id + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `getCustomerByReferenceID` | +| Request Parameters | [GetCustomerByReferenceIDRequestParams](#request-parameters--GetCustomerByReferenceIDRequestParams) | +| Return Type | [**\Xendit\Customer\GetCustomerByReferenceID200Response**](Customer/GetCustomerByReferenceID200Response.md) | + +### Request Parameters - GetCustomerByReferenceIDRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **reference_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | + +### Usage Example +```php +getCustomerByReferenceID($reference_id, $for_user_id); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling CustomerApi->getCustomerByReferenceID: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `updateCustomer()` Function + +```php +updateCustomer($id, $for_user_id, $patch_customer): \Customer\Customer +``` + +Update End Customer Resource + Function to update an existing customer. For a detailed explanation For detail explanations, see this link: https://developers.xendit.co/api-reference/#update-customer + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `updateCustomer` | +| Request Parameters | [UpdateCustomerRequestParams](#request-parameters--UpdateCustomerRequestParams) | +| Return Type | [**\Xendit\Customer\Customer**](Customer/Customer.md) | + +### Request Parameters - UpdateCustomerRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | +| **patch_customer** | [**PatchCustomer**](Customer/PatchCustomer.md) | | | + +### Usage Example +```php +updateCustomer($id, $for_user_id, $patch_customer); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling CustomerApi->updateCustomer: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +[[Back to README]](../README.md) diff --git a/docs/Invoice.yaml b/docs/Invoice.yaml deleted file mode 100644 index 264e4b2..0000000 --- a/docs/Invoice.yaml +++ /dev/null @@ -1,1466 +0,0 @@ -openapi: 3.0.0 -info: - description: xendit-invoice-service descriptions - title: xendit-invoice-service - version: 1.5.0 -servers: -- description: Xendit API Server - url: https://api.xendit.co -paths: - /v2/invoices/: - post: - operationId: createInvoice - parameters: - - description: Business ID of the sub-account merchant (XP feature) - explode: false - in: header - name: for-user-id - required: false - schema: - example: 62efe4c33e45694d63f585f8 - type: string - style: simple - requestBody: - content: - application/json: - examples: - Create Invoice Request: - value: - external_id: test1234 - description: Test Invoice - amount: 10000 - invoice_duration: 172800 - currency: IDR - reminder_time: 1 - schema: - $ref: '#/components/schemas/CreateInvoiceRequest' - required: true - responses: - "200": - content: - application/json: - examples: - Successfully created Invoice: - $ref: '#/components/examples/InvoiceExample' - value: null - schema: - $ref: '#/components/schemas/Invoice' - description: OK - "400": - content: - application/json: - examples: - Maximum Transfer Amount Error: - value: - error_code: MAXIMUM_TRANSFER_AMOUNT_ERROR - message: "The maximum amount for using this payment is ${currency}\ - \ 5,000,000" - No Collections Method Error: - value: - error_code: NO_COLLECTION_METHODS_ERROR - message: Could not create invoice without any active payment channels - Email Format Error: - summary: EMAIL_FORMAT_ERROR - value: - error_code: EMAIL_FORMAT_ERROR - message: Customer email format is invalid - Unavailable Payment Error: - value: - error_code: UNAVAILABLE_PAYMENT_METHOD_ERROR - message: The payment method choices did not match with the available - one on this business - Unsupported Currency Error: - value: - error_code: UNSUPPORTED_CURRENCY - message: The payment currency request is not supported for this - payment channel - Currency Mismatch Error: - summary: Invoice settings not found for this currency' - value: - error_code: MISMATCH_CURRENCY_ERROR - message: "" - Invalid Remind Time Error: - value: - error_code: INVALID_REMINDER_TIME - message: The reminder time is invalid - Invoice Amount Mismatch: - value: - error_code: INVOICE_AMOUNT_MISMATCHED_CLOSED_VA_EXPECTED_AMOUNT - message: Could not create invoice due to invoice amount is not - match with Closed VA expected amount." - schema: - $ref: '#/components/schemas/BadRequestError' - description: Bad request - "401": - content: - application/json: - examples: - Invalid API Key: - $ref: '#/components/examples/InvalidApiKeyExample' - value: null - schema: - $ref: '#/components/schemas/UnauthorizedError' - description: Unauthorized - "403": - content: - application/json: - examples: - Access Suspended: - $ref: '#/components/examples/AccessSuspendedErrorExample' - value: null - schema: - $ref: '#/components/schemas/ForbiddenError' - description: Forbidden - "404": - content: - application/json: - examples: - Callback Virtual Account Error: - value: - error_code: CALLBACK_VIRTUAL_ACCOUNT_NOT_FOUND_ERROR - message: Could not find callback virtual account - Unique Account Number Error: - value: - error_code: UNIQUE_ACCOUNT_NUMBER_UNAVAILABLE_ERROR - message: There is no available virtual account in your non-fixed - virtual account range - Payment Code Not Available: - value: - error_code: PAYMENT_CODE_NOT_AVAILABLE_ERROR - message: No more vacant space for convenience store code - schema: - $ref: '#/components/schemas/InvoiceNotFoundError' - description: Not found - security: - - {} - summary: Create an invoice - tags: - - invoice - /v2/invoices/{invoice_id}: - get: - operationId: getInvoiceById - parameters: - - description: Business ID of the sub-account merchant (XP feature) - explode: false - in: header - name: for-user-id - required: false - schema: - example: 62efe4c33e45694d63f585f8 - type: string - style: simple - - description: Invoice ID - explode: false - in: path - name: invoice_id - required: true - schema: - example: 62efe4c33e45294d63f585f2 - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Invoice' - description: OK - "401": - content: - application/json: - examples: - Invalid API Key: - $ref: '#/components/examples/InvalidApiKeyExample' - value: null - schema: - $ref: '#/components/schemas/UnauthorizedError' - description: Unauthorized - "404": - content: - application/json: - examples: - Invoice not found: - $ref: '#/components/examples/InvoiceNotFoundErrorExample' - value: null - schema: - $ref: '#/components/schemas/InvoiceError404ResponseDefinition' - description: Not found - "500": - content: - application/json: - examples: - Internal Server error: - $ref: '#/components/examples/ServerErrorExample' - value: null - schema: - $ref: '#/components/schemas/ServerError' - description: Internal server error - security: - - {} - summary: Get invoice by invoice id - tags: - - invoice - /v2/invoices: - get: - operationId: getInvoices - parameters: - - description: Business ID of the sub-account merchant (XP feature) - explode: false - in: header - name: for-user-id - required: false - schema: - example: 62efe4c33e45694d63f585f8 - type: string - style: simple - - explode: true - in: query - name: external_id - required: false - schema: - example: test-external - type: string - style: form - - explode: true - in: query - name: statuses - required: false - schema: - example: - - PENDING - - SETTLED - items: - $ref: '#/components/schemas/InvoiceStatus' - type: array - style: form - - explode: true - in: query - name: limit - required: false - schema: - example: 10 - type: number - style: form - - explode: true - in: query - name: created_after - required: false - schema: - $ref: '#/components/schemas/Datetime' - style: form - - explode: true - in: query - name: created_before - required: false - schema: - $ref: '#/components/schemas/Datetime' - style: form - - explode: true - in: query - name: paid_after - required: false - schema: - $ref: '#/components/schemas/Datetime' - style: form - - explode: true - in: query - name: paid_before - required: false - schema: - $ref: '#/components/schemas/Datetime' - style: form - - explode: true - in: query - name: expired_after - required: false - schema: - $ref: '#/components/schemas/Datetime' - style: form - - explode: true - in: query - name: expired_before - required: false - schema: - $ref: '#/components/schemas/Datetime' - style: form - - explode: true - in: query - name: last_invoice - required: false - schema: - example: 62efe4c33e45294d63f585f2 - type: string - style: form - - explode: true - in: query - name: client_types - required: false - schema: - example: - - API_GATEWAY - - DASHBOARD - items: - $ref: '#/components/schemas/InvoiceClientType' - type: array - style: form - - explode: true - in: query - name: payment_channels - required: false - schema: - example: - - BNI - - BRI - items: - type: string - type: array - style: form - - explode: true - in: query - name: on_demand_link - required: false - schema: - example: test-link - type: string - style: form - - explode: true - in: query - name: recurring_payment_id - required: false - schema: - example: 62efe4c33e45294d63f585f2 - type: string - style: form - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/Invoice' - type: array - description: OK - "401": - content: - application/json: - examples: - INVALID_API_KEY: - summary: INVALID_API_KEY - value: - error_code: INVALID_API_KEY - message: Your API key is invalid - schema: - $ref: '#/components/schemas/UnauthorizedError' - description: Unauthorized - "500": - content: - application/json: - examples: - Internal Server error: - $ref: '#/components/examples/ServerErrorExample' - value: null - schema: - $ref: '#/components/schemas/ServerError' - description: Internal server error - security: - - {} - summary: Get all Invoices - tags: - - invoice - /invoices/{invoice_id}/expire!: - post: - operationId: expireInvoice - parameters: - - description: Business ID of the sub-account merchant (XP feature) - explode: false - in: header - name: for-user-id - required: false - schema: - example: 62efe4c33e45694d63f585f8 - type: string - style: simple - - description: Invoice ID to be expired - explode: false - in: path - name: invoice_id - required: true - schema: - example: 5f4708b7bd394b0400b96276 - type: string - style: simple - responses: - "200": - content: - application/json: - examples: - Successfully expire Invoice: - $ref: '#/components/examples/InvoiceExample' - value: null - schema: - $ref: '#/components/schemas/Invoice' - description: OK - "404": - content: - application/json: - examples: - Invoice not found: - $ref: '#/components/examples/InvoiceNotFoundErrorExample' - value: null - schema: - $ref: '#/components/schemas/InvoiceNotFoundError' - description: Not found - "500": - content: - application/json: - examples: - Internal Server error: - $ref: '#/components/examples/ServerErrorExample' - value: null - schema: - $ref: '#/components/schemas/ServerError' - description: Internal server error - security: - - {} - summary: Manually expire an invoice - tags: - - invoice -components: - examples: - InvoiceExample: - summary: Example of Invoice - value: - id: 64e44c42cf6ba3554184a337 - external_id: invoice-1692683329 - user_id: 5f4708b7bd394b0400b96276 - status: PENDING - merchant_name: Boxify - merchant_profile_picture_url: https://xnd-companies.s3.amazonaws.com/prod/1633484308963_880.jpg - amount: 1800000 - payer_email: customer@domain.com - description: "Invoice Demo #123" - expiry_date: 2023-08-22T07:48:50.150Z - invoice_url: https://checkout-staging.xendit.co/v2/64e44c42cf6ba3554184a337 - available_banks: - - bank_code: MANDIRI - collection_type: POOL - transfer_amount: 1800000 - bank_branch: Virtual Account - account_holder_name: BOXIFY - - bank_code: BRI - collection_type: POOL - transfer_amount: 1800000 - bank_branch: Virtual Account - account_holder_name: BOXIFY - - bank_code: BNI - collection_type: POOL - transfer_amount: 1800000 - bank_branch: Virtual Account - account_holder_name: BOXIFY - - bank_code: PERMATA - collection_type: POOL - transfer_amount: 1800000 - bank_branch: Virtual Account - account_holder_name: BOXIFY - - bank_code: BCA - collection_type: POOL - transfer_amount: 1800000 - bank_branch: Virtual Account - account_holder_name: BOXIFY - - bank_code: BSI - collection_type: POOL - transfer_amount: 1800000 - bank_branch: Virtual Account - account_holder_name: BOXIFY - - bank_code: BJB - collection_type: POOL - transfer_amount: 1800000 - bank_branch: Virtual Account - account_holder_name: BOXIFY - - bank_code: CIMB - collection_type: POOL - transfer_amount: 1800000 - bank_branch: Virtual Account - account_holder_name: BOXIFY - - bank_code: SAHABAT_SAMPOERNA - collection_type: POOL - transfer_amount: 1800000 - bank_branch: Virtual Account - account_holder_name: BOXIFY - - bank_code: BNC - collection_type: POOL - transfer_amount: 1800000 - bank_branch: Virtual Account - account_holder_name: BOXIFY - available_retail_outlets: - - retail_outlet_name: ALFAMART - - retail_outlet_name: INDOMARET - available_ewallets: - - ewallet_type: OVO - - ewallet_type: DANA - - ewallet_type: SHOPEEPAY - - ewallet_type: LINKAJA - - ewallet_type: ASTRAPAY - - ewallet_type: NEXCASH - - ewallet_type: JENIUSPAY - available_qr_codes: - - qr_code_type: QRIS - available_direct_debits: - - direct_debit_type: DD_BRI - - direct_debit_type: DD_BCA_KLIKPAY - - direct_debit_type: DD_MANDIRI - available_paylaters: - - paylater_type: KREDIVO - - paylater_type: UANGME - - paylater_type: AKULAKU - - paylater_type: ATOME - should_exclude_credit_card: false - should_send_email: false - created: 2023-08-22T05:48:51.105Z - updated: 2023-08-22T05:48:51.105Z - currency: IDR - reminder_date: 2023-08-22T06:48:50.150Z - customer_notification_preference: - invoice_created: - - email - invoice_paid: - - email - InvalidApiKeyExample: - summary: Example of Invalid API Key error - value: - error_code: INVALID_API_KEY - message: Your API key is invalid - AccessSuspendedErrorExample: - summary: Example of Access Suspended error - value: - error_code: ACCESS_SUSPENDED - message: "Access to API has been suspended temporarily due to indication of\ - \ fraudulent activities. If you believe this is inaccurate, kindly contact\ - \ our Customer Success for resolution." - InvoiceNotFoundErrorExample: - summary: Example of Invoice not found error - value: - error_code: INVOICE_NOT_FOUND_ERROR - message: Invoice not found. - ServerErrorExample: - summary: Example of Server Error - value: - error_code: INTERNAL_SERVER_ERROR - message: Something unxpected happened. - parameters: - ForUserId: - description: Business ID of the sub-account merchant (XP feature) - explode: false - in: header - name: for-user-id - required: false - schema: - example: 62efe4c33e45694d63f585f8 - type: string - style: simple - schemas: - UnauthorizedError: - description: An error object used to indicate unauthorized access to an invoice-related - resource. - properties: - error_code: - description: The specific error code associated with the unauthorized access. - enum: - - INVALID_API_KEY - type: string - message: - description: A human-readable error message providing additional context - about the unauthorized access. - type: string - required: - - error_code - - message - type: object - ForbiddenError: - description: An error object used to indicate a 403 Forbidden response related - to invoice operations. - properties: - error_code: - description: The specific error code indicating that access to the invoice - operation is suspended. - enum: - - ACCESS_SUSPENDED - type: string - message: - description: A human-readable error message providing additional context - about the 403 Forbidden response. - type: string - required: - - error_code - - message - type: object - InvoiceError404ResponseDefinition: - description: "An error object used to indicate that the requested resource,\ - \ in this case, an invoice, was not found." - properties: - error_code: - description: The specific error code indicating that the requested invoice - was not found. - enum: - - INVOICE_NOT_FOUND_ERROR - type: string - message: - description: A human-readable error message providing additional context - about the resource not being found. - type: string - required: - - error_code - - message - type: object - Datetime: - description: Representing a date and time in ISO 8601 format. - example: 2016-08-29T09:12:33.001Z - format: date-time - type: string - NotificationChannel: - description: Representing a notification channel for sending messages. - enum: - - email - - sms - - whatsapp - - viber - type: string - InvoiceStatus: - description: Representing the status of an invoice. - enum: - - PENDING - - PAID - - SETTLED - - EXPIRED - type: string - InvoiceCurrency: - description: Representing the currency used for an invoice. - enum: - - IDR - - USD - - THB - - VND - - PHP - type: string - InvoiceClientType: - description: Representing the client type or source of an invoice. - enum: - - DASHBOARD - - API_GATEWAY - - INTEGRATION - - ON_DEMAND - - RECURRING - - MOBILE - type: string - InvoicePaymentMethod: - description: Representing the payment method used for an invoice. - enum: - - POOL - - CALLBACK_VIRTUAL_ACCOUNT - - CREDIT_CARD - - RETAIL_OUTLET - - QR_CODE - - QRIS - - EWALLET - - DIRECT_DEBIT - - BANK_TRANSFER - - PAYLATER - type: string - BankCode: - description: Representing the available bank channels used for invoice-related - transactions. - enum: - - BCA - - BNI - - BRI - - MANDIRI - - PERMATA - - BSI - - BJB - - SAHABAT_SAMPOERNA - - CIMB - - BNC - type: string - RetailOutletName: - description: Representing the available retail outlet channels used for invoice-related - transactions. - enum: - - ALFAMART - - INDOMARET - - 7ELEVEN - - CEBUANA - - DP_ECPAY_LOAN - - DP_MLHUILLIER - - DP_PALAWAN - - DP_ECPAY_SCHOOL - - LBC - type: string - EwalletType: - description: Representing the available eWallet channels used for invoice-related - transactions. - enum: - - OVO - - DANA - - LINKAJA - - PAYMAYA - - SHOPEEPAY - - GCASH - - GRABPAY - - ASTRAPAY - - NEXCASH - - JENIUSPAY - type: string - QrCodeType: - description: Representing the available QR Code channels used for invoice-related - transactions. - enum: - - QRIS - - PROMPTPAY - type: string - DirectDebitType: - description: Representing the available Direct Debit channels used for invoice-related - transactions. - enum: - - BA_BRI - - DC_BRI - - DD_BRI - - DD_MANDIRI - - BA_BPI - - DC_BPI - - DD_BPI - - BA_UBP - - DC_UBP - - DD_UBP - - BCA_KLIKPAY - - BA_BCA_KLIKPAY - - DC_BCA_KLIKPAY - - DD_BCA_KLIKPAY - - DD_BDO_EPAY - - DD_RCBC - - DD_CHINABANK - - BA_CHINABANK - - DC_CHINABANK - type: string - PaylaterType: - description: Representing the available paylater channels used for invoice-related - transactions. - enum: - - KREDIVO - - AKULAKU - - UANGME - - BILLEASE - - CASHALO - - ATOME - type: string - AddressObject: - description: An object representing an address with various properties. - example: - country: country - province: province - city: city - street_line2: street_line2 - street_line1: street_line1 - state: state - postal_code: postal_code - properties: - country: - description: The country where the address is located. - nullable: true - type: string - street_line1: - description: The first line of the street address. - nullable: true - type: string - street_line2: - description: The second line of the street address. - nullable: true - type: string - city: - description: The city or locality within the address. - nullable: true - type: string - province: - description: The province or region within the country. - nullable: true - type: string - state: - description: The state or administrative division within the country. - nullable: true - type: string - postal_code: - description: The postal code or ZIP code for the address. - nullable: true - type: string - type: object - CustomerObject: - description: "An object representing a customer with various properties, including\ - \ addresses." - example: - addresses: - - country: country - province: province - city: city - street_line2: street_line2 - street_line1: street_line1 - state: state - postal_code: postal_code - - country: country - province: province - city: city - street_line2: street_line2 - street_line1: street_line1 - state: state - postal_code: postal_code - surname: surname - phone_number: phone_number - id: id - given_names: given_names - mobile_number: mobile_number - customer_id: customer_id - email: email - properties: - id: - description: The unique identifier for the customer. - nullable: true - type: string - phone_number: - description: The customer's phone number. - nullable: true - type: string - given_names: - description: The customer's given names or first names. - nullable: true - type: string - surname: - description: The customer's surname or last name. - nullable: true - type: string - email: - description: The customer's email address. - nullable: true - type: string - mobile_number: - description: The customer's mobile phone number. - nullable: true - type: string - customer_id: - description: An additional identifier for the customer. - nullable: true - type: string - addresses: - description: An array of addresses associated with the customer. - items: - $ref: '#/components/schemas/AddressObject' - nullable: true - type: array - type: object - NotificationPreference: - description: An object representing notification preferences for different invoice - events. - example: - invoice_expired: - - null - - null - invoice_paid: - - null - - null - invoice_reminder: - - null - - null - invoice_created: - - null - - null - properties: - invoice_created: - description: Notification channels for when an invoice is created. - items: - $ref: '#/components/schemas/NotificationChannel' - type: array - invoice_reminder: - description: Notification channels for invoice reminders. - items: - $ref: '#/components/schemas/NotificationChannel' - type: array - invoice_expired: - description: Notification channels for expired invoices. - items: - $ref: '#/components/schemas/NotificationChannel' - type: array - invoice_paid: - description: Notification channels for when an invoice is paid. - items: - $ref: '#/components/schemas/NotificationChannel' - type: array - type: object - AlternativeDisplayItem: - description: An object representing alternative display of a VA. - example: - type: type - value: value - properties: - type: - description: Represent type of alternative display. - type: string - value: - description: Represent value of alternative display value. - type: string - type: object - Bank: - description: An object representing bank details for invoices. - example: - bank_code: null - bank_branch: bank_branch - bank_account_number: bank_account_number - transfer_amount: 6.027456183070403 - account_holder_name: account_holder_name - alternative_displays: - - type: type - value: value - - type: type - value: value - collection_type: collection_type - properties: - bank_code: - $ref: '#/components/schemas/BankCode' - collection_type: - description: The collection type for the bank details. - type: string - bank_branch: - description: The branch of the bank. - type: string - bank_account_number: - description: The bank account number. - type: string - account_holder_name: - description: The name of the account holder. - type: string - transfer_amount: - description: The transfer amount. - type: number - alternative_displays: - items: - $ref: '#/components/schemas/AlternativeDisplayItem' - type: array - required: - - account_holder_name - - bank_code - - collection_type - type: object - RetailOutlet: - description: An object representing retail outlet details for invoices. - example: - retail_outlet_name: null - transfer_amount: 1.4658129805029452 - merchant_name: merchant_name - payment_code: payment_code - properties: - retail_outlet_name: - $ref: '#/components/schemas/RetailOutletName' - payment_code: - description: The payment code. - type: string - transfer_amount: - description: The transfer amount. - type: number - merchant_name: - description: The name of the merchant. - type: string - required: - - retail_outlet_name - type: object - Ewallet: - description: An object representing e-wallet details for invoices. - example: - ewallet_type: null - properties: - ewallet_type: - $ref: '#/components/schemas/EwalletType' - required: - - ewallet_type - type: object - QrCode: - description: An object representing QR code details for invoices. - example: - qr_code_type: null - properties: - qr_code_type: - $ref: '#/components/schemas/QrCodeType' - required: - - qr_code_type - type: object - DirectDebit: - description: An object representing direct debit details for invoices. - example: - direct_debit_type: null - properties: - direct_debit_type: - $ref: '#/components/schemas/DirectDebitType' - required: - - direct_debit_type - type: object - Paylater: - description: An object representing paylater details for invoices. - example: - paylater_type: null - should_exclude: true - properties: - paylater_type: - $ref: '#/components/schemas/PaylaterType' - should_exclude: - description: Indicates whether this paylater option should be excluded. - type: boolean - required: - - paylater_type - type: object - InvoiceItem: - description: An object representing an item within an invoice. - example: - quantity: 0.5637376656633328 - reference_id: reference_id - price: 5.962133916683182 - name: name - category: category - url: url - properties: - name: - description: The name of the item. - type: string - price: - description: The price of the item. - type: number - quantity: - description: The quantity of the item. Must be greater than or equal to - 0. - exclusiveMinimum: true - minimum: 0 - type: number - reference_id: - description: The reference ID of the item. - type: string - url: - description: The URL associated with the item. - type: string - category: - description: The category of the item. - type: string - required: - - name - - price - - quantity - type: object - InvoiceFee: - description: An object representing internal details for a fee associated with - an invoice. - example: - type: type - value: 2.3021358869347655 - properties: - type: - description: The type of fee. - type: string - value: - description: The value or amount of the fee. - type: number - required: - - type - - value - type: object - Invoice: - description: An object representing details for an invoice. - example: - available_paylaters: - - paylater_type: null - should_exclude: true - - paylater_type: null - should_exclude: true - fees: - - type: type - value: 2.3021358869347655 - - type: type - value: 2.3021358869347655 - payer_email: payer_email - reminder_date: 2016-08-29T09:12:33.001Z - description: description - external_id: external_id - locale: locale - should_send_email: true - customer_notification_preference: - invoice_expired: - - null - - null - invoice_paid: - - null - - null - invoice_reminder: - - null - - null - invoice_created: - - null - - null - currency: null - id: id - failure_redirect_url: failure_redirect_url - payment_method: null - amount: 0.8008281904610115 - available_banks: - - bank_code: null - bank_branch: bank_branch - bank_account_number: bank_account_number - transfer_amount: 6.027456183070403 - account_holder_name: account_holder_name - alternative_displays: - - type: type - value: value - - type: type - value: value - collection_type: collection_type - - bank_code: null - bank_branch: bank_branch - bank_account_number: bank_account_number - transfer_amount: 6.027456183070403 - account_holder_name: account_holder_name - alternative_displays: - - type: type - value: value - - type: type - value: value - collection_type: collection_type - available_ewallets: - - ewallet_type: null - - ewallet_type: null - available_retail_outlets: - - retail_outlet_name: null - transfer_amount: 1.4658129805029452 - merchant_name: merchant_name - payment_code: payment_code - - retail_outlet_name: null - transfer_amount: 1.4658129805029452 - merchant_name: merchant_name - payment_code: payment_code - created: 2016-08-29T09:12:33.001Z - expiry_date: 2016-08-29T09:12:33.001Z - merchant_name: merchant_name - available_qr_codes: - - qr_code_type: null - - qr_code_type: null - available_direct_debits: - - direct_debit_type: null - - direct_debit_type: null - merchant_profile_picture_url: merchant_profile_picture_url - should_authenticate_credit_card: true - user_id: user_id - success_redirect_url: success_redirect_url - should_exclude_credit_card: true - updated: 2016-08-29T09:12:33.001Z - items: - - quantity: 0.5637376656633328 - reference_id: reference_id - price: 5.962133916683182 - name: name - category: category - url: url - - quantity: 0.5637376656633328 - reference_id: reference_id - price: 5.962133916683182 - name: name - category: category - url: url - invoice_url: invoice_url - status: null - fixed_va: true - customer: - addresses: - - country: country - province: province - city: city - street_line2: street_line2 - street_line1: street_line1 - state: state - postal_code: postal_code - - country: country - province: province - city: city - street_line2: street_line2 - street_line1: street_line1 - state: state - postal_code: postal_code - surname: surname - phone_number: phone_number - id: id - given_names: given_names - mobile_number: mobile_number - customer_id: customer_id - email: email - properties: - id: - description: The unique identifier for the invoice. - type: string - external_id: - description: The external identifier for the invoice. - type: string - user_id: - description: The user ID associated with the invoice. - type: string - payer_email: - description: The email address of the payer. - type: string - description: - description: A description of the invoice. - type: string - payment_method: - $ref: '#/components/schemas/InvoicePaymentMethod' - status: - $ref: '#/components/schemas/InvoiceStatus' - merchant_name: - description: The name of the merchant. - type: string - merchant_profile_picture_url: - description: The URL of the merchant's profile picture. - type: string - locale: - description: The locale or language used for the invoice. - type: string - amount: - description: The total amount of the invoice. - type: number - expiry_date: - description: Representing a date and time in ISO 8601 format. - example: 2016-08-29T09:12:33.001Z - format: date-time - type: string - invoice_url: - description: The URL to view the invoice. - type: string - available_banks: - description: An array of available banks for payment. - items: - $ref: '#/components/schemas/Bank' - type: array - available_retail_outlets: - description: An array of available retail outlets for payment. - items: - $ref: '#/components/schemas/RetailOutlet' - type: array - available_ewallets: - description: An array of available e-wallets for payment. - items: - $ref: '#/components/schemas/Ewallet' - type: array - available_qr_codes: - description: An array of available QR codes for payment. - items: - $ref: '#/components/schemas/QrCode' - type: array - available_direct_debits: - description: An array of available direct debit options for payment. - items: - $ref: '#/components/schemas/DirectDebit' - type: array - available_paylaters: - description: An array of available pay-later options for payment. - items: - $ref: '#/components/schemas/Paylater' - type: array - should_exclude_credit_card: - description: Indicates whether credit card payments should be excluded. - type: boolean - should_send_email: - description: Indicates whether email notifications should be sent. - type: boolean - created: - description: Representing a date and time in ISO 8601 format. - example: 2016-08-29T09:12:33.001Z - format: date-time - type: string - updated: - description: Representing a date and time in ISO 8601 format. - example: 2016-08-29T09:12:33.001Z - format: date-time - type: string - success_redirect_url: - description: The URL to redirect to on successful payment. - type: string - failure_redirect_url: - description: The URL to redirect to on payment failure. - type: string - should_authenticate_credit_card: - description: Indicates whether credit card authentication is required. - type: boolean - currency: - $ref: '#/components/schemas/InvoiceCurrency' - items: - description: An array of items included in the invoice. - items: - $ref: '#/components/schemas/InvoiceItem' - type: array - fixed_va: - description: Indicates whether the virtual account is fixed. - type: boolean - reminder_date: - description: Representing a date and time in ISO 8601 format. - example: 2016-08-29T09:12:33.001Z - format: date-time - type: string - customer: - $ref: '#/components/schemas/CustomerObject' - customer_notification_preference: - $ref: '#/components/schemas/NotificationPreference' - fees: - description: An array of fees associated with the invoice. - items: - $ref: '#/components/schemas/InvoiceFee' - type: array - required: - - amount - - available_banks - - available_direct_debits - - available_ewallets - - available_paylaters - - available_qr_codes - - available_retail_outlets - - created - - expiry_date - - external_id - - invoice_url - - merchant_name - - merchant_profile_picture_url - - should_send_email - - status - - status_updated - - updated - - user_id - type: object - CreateInvoiceRequest: - description: An object representing for an invoice creation request. - example: - external_id: invoice-external-id-1 - amount: 10000 - description: Payment for PSN subscription - properties: - external_id: - description: The external ID of the invoice. - type: string - amount: - description: The invoice amount. - type: number - payer_email: - description: The email address of the payer. - type: string - description: - description: A description of the payment. - type: string - invoice_duration: - description: The duration of the invoice. - type: string - callback_virtual_account_id: - description: The ID of the callback virtual account. - type: string - should_send_email: - description: Indicates whether email notifications should be sent. - type: boolean - customer: - $ref: '#/components/schemas/CustomerObject' - customer_notification_preference: - $ref: '#/components/schemas/NotificationPreference' - success_redirect_url: - description: The URL to redirect to on successful payment. - type: string - failure_redirect_url: - description: The URL to redirect to on payment failure. - type: string - payment_methods: - description: An array of available payment methods. - items: - type: string - type: array - mid_label: - description: The middle label. - type: string - should_authenticate_credit_card: - description: Indicates whether credit card authentication is required. - type: boolean - currency: - description: The currency of the invoice. - type: string - reminder_time: - description: The reminder time. - type: number - local: - description: The local. - type: string - reminder_time_unit: - description: The unit of the reminder time. - type: string - items: - description: An array of items included in the invoice. - items: - $ref: '#/components/schemas/InvoiceItem' - type: array - fees: - description: An array of fees associated with the invoice. - items: - $ref: '#/components/schemas/InvoiceFee' - type: array - required: - - amount - - external_id - type: object - BadRequestError: - description: Response definition for a 400 Bad Request error when creating an - invoice. - properties: - error_code: - description: The error code indicating the type of error that occurred. - enum: - - MAXIMUM_TRANSFER_AMOUNT_ERROR - - NO_COLLECTION_METHODS_ERROR - - EMAIL_FORMAT_ERROR - - UNAVAILABLE_PAYMENT_METHOD_ERROR - - UNSUPPORTED_CURRENCY - - MISMATCH_CURRENCY_ERROR - - INVALID_REMINDER_TIME - type: string - message: - description: A human-readable error message that provides additional information - about the error. - type: string - required: - - error_code - - message - type: object - InvoiceNotFoundError: - description: Response definition for a 404 Not Found error when creating an - invoice. - properties: - error_code: - description: The error code indicating the type of error that occurred. - enum: - - CALLBACK_VIRTUAL_ACCOUNT_NOT_FOUND_ERROR - - UNIQUE_ACCOUNT_NUMBER_UNAVAILABLE_ERROR - - PAYMENT_CODE_NOT_AVAILABLE_ERROR - type: string - message: - description: A human-readable error message that provides additional information - about the error. - type: string - required: - - error_code - - message - type: object - ServerError: - properties: - error_code: - enum: - - SERVER_ERROR - type: string - message: - type: string - required: - - error_code - - message - type: object - securitySchemes: - ApiKeyAuth: - in: header - name: x-api-key - type: apiKey diff --git a/docs/Invoice/AddressObject.md b/docs/Invoice/AddressObject.md index 8df8529..c08ebca 100644 --- a/docs/Invoice/AddressObject.md +++ b/docs/Invoice/AddressObject.md @@ -1,20 +1,21 @@ # # AddressObject - +An object representing an address with various properties. ```php use Xendit\Invoice\AddressObject; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **country** | **string** | The country where the address is located. | null | [optional] | -| **street_line1** | **string** | The first line of the street address. | null | [optional] | -| **street_line2** | **string** | The second line of the street address. | null | [optional] | -| **city** | **string** | The city or locality within the address. | null | [optional] | -| **province** | **string** | The province or region within the country. | null | [optional] | -| **state** | **string** | The state or administrative division within the country. | null | [optional] | -| **postal_code** | **string** | The postal code or ZIP code for the address. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **country** | **string** | | The country where the address is located. | null | +| **street_line1** | **string** | | The first line of the street address. | null | +| **street_line2** | **string** | | The second line of the street address. | null | +| **city** | **string** | | The city or locality within the address. | null | +| **province** | **string** | | The province or region within the country. | null | +| **state** | **string** | | The state or administrative division within the country. | null | +| **postal_code** | **string** | | The postal code or ZIP code for the address. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/AlternativeDisplayItem.md b/docs/Invoice/AlternativeDisplayItem.md index 3c170da..31cd531 100644 --- a/docs/Invoice/AlternativeDisplayItem.md +++ b/docs/Invoice/AlternativeDisplayItem.md @@ -1,15 +1,16 @@ # # AlternativeDisplayItem - +An object representing alternative display of a VA. ```php use Xendit\Invoice\AlternativeDisplayItem; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **type** | **string** | Represent type of alternative display. | null | [optional] | -| **value** | **string** | Represent value of alternative display value. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | **string** | | Represent type of alternative display. | null | +| **value** | **string** | | Represent value of alternative display value. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/BadRequestError.md b/docs/Invoice/BadRequestError.md index e963e23..1296171 100644 --- a/docs/Invoice/BadRequestError.md +++ b/docs/Invoice/BadRequestError.md @@ -1,15 +1,16 @@ # # BadRequestError - +Response definition for a 400 Bad Request error when creating an invoice. ```php use Xendit\Invoice\BadRequestError; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | The error code indicating the type of error that occurred. | null | | -| **message** | **string** | A human-readable error message that provides additional information about the error. | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | ☑️ | The error code indicating the type of error that occurred. | null | +| **message** | **string** | ☑️ | A human-readable error message that provides additional information about the error. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/Bank.md b/docs/Invoice/Bank.md index 306867b..47c1646 100644 --- a/docs/Invoice/Bank.md +++ b/docs/Invoice/Bank.md @@ -1,20 +1,21 @@ # # Bank - +An object representing bank details for invoices. ```php use Xendit\Invoice\Bank; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **bank_code** | [**BankCode**](BankCode.md) | | null | | -| **collection_type** | **string** | The collection type for the bank details. | null | | -| **bank_branch** | **string** | The branch of the bank. | null | [optional] | -| **bank_account_number** | **string** | The bank account number. | null | [optional] | -| **account_holder_name** | **string** | The name of the account holder. | null | | -| **transfer_amount** | **float** | The transfer amount. | null | [optional] | -| **alternative_displays** | [**array**](AlternativeDisplayItem.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **bank_code** | [**BankCode**](BankCode.md) | ☑️ | | null | +| **collection_type** | **string** | ☑️ | The collection type for the bank details. | null | +| **bank_branch** | **string** | | The branch of the bank. | null | +| **bank_account_number** | **string** | | The bank account number. | null | +| **account_holder_name** | **string** | ☑️ | The name of the account holder. | null | +| **transfer_amount** | **float** | | The transfer amount. | null | +| **alternative_displays** | [**array**](AlternativeDisplayItem.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/BankCode.md b/docs/Invoice/BankCode.md index 3487392..7c27312 100644 --- a/docs/Invoice/BankCode.md +++ b/docs/Invoice/BankCode.md @@ -1,10 +1,11 @@ # # BankCode - +Representing the available bank channels used for invoice-related transactions. ```php use Xendit\Invoice\BankCode; ``` + ## Enum @@ -30,6 +31,6 @@ use Xendit\Invoice\BankCode; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/CreateInvoiceRequest.md b/docs/Invoice/CreateInvoiceRequest.md index 86f3f20..27d68f3 100644 --- a/docs/Invoice/CreateInvoiceRequest.md +++ b/docs/Invoice/CreateInvoiceRequest.md @@ -1,33 +1,34 @@ # # CreateInvoiceRequest - +An object representing for an invoice creation request. ```php use Xendit\Invoice\CreateInvoiceRequest; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **external_id** | **string** | The external ID of the invoice. | null | | -| **amount** | **float** | The invoice amount. | null | | -| **payer_email** | **string** | The email address of the payer. | null | [optional] | -| **description** | **string** | A description of the payment. | null | [optional] | -| **invoice_duration** | **string** | The duration of the invoice. | null | [optional] | -| **callback_virtual_account_id** | **string** | The ID of the callback virtual account. | null | [optional] | -| **should_send_email** | **bool** | Indicates whether email notifications should be sent. | null | [optional] | -| **customer** | [**CustomerObject**](CustomerObject.md) | | null | [optional] | -| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | null | [optional] | -| **success_redirect_url** | **string** | The URL to redirect to on successful payment. | null | [optional] | -| **failure_redirect_url** | **string** | The URL to redirect to on payment failure. | null | [optional] | -| **payment_methods** | **string[]** | An array of available payment methods. | null | [optional] | -| **mid_label** | **string** | The middle label. | null | [optional] | -| **should_authenticate_credit_card** | **bool** | Indicates whether credit card authentication is required. | null | [optional] | -| **currency** | **string** | The currency of the invoice. | null | [optional] | -| **reminder_time** | **float** | The reminder time. | null | [optional] | -| **local** | **string** | The local. | null | [optional] | -| **reminder_time_unit** | **string** | The unit of the reminder time. | null | [optional] | -| **items** | [**array**](InvoiceItem.md) | An array of items included in the invoice. | null | [optional] | -| **fees** | [**array**](InvoiceFee.md) | An array of fees associated with the invoice. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **external_id** | **string** | ☑️ | The external ID of the invoice. | null | +| **amount** | **float** | ☑️ | The invoice amount. | null | +| **payer_email** | **string** | | The email address of the payer. | null | +| **description** | **string** | | A description of the payment. | null | +| **invoice_duration** | **string** | | The duration of the invoice. | null | +| **callback_virtual_account_id** | **string** | | The ID of the callback virtual account. | null | +| **should_send_email** | **bool** | | Indicates whether email notifications should be sent. | null | +| **customer** | [**CustomerObject**](CustomerObject.md) | | | null | +| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | null | +| **success_redirect_url** | **string** | | The URL to redirect to on successful payment. | null | +| **failure_redirect_url** | **string** | | The URL to redirect to on payment failure. | null | +| **payment_methods** | **string[]** | | An array of available payment methods. | null | +| **mid_label** | **string** | | The middle label. | null | +| **should_authenticate_credit_card** | **bool** | | Indicates whether credit card authentication is required. | null | +| **currency** | **string** | | The currency of the invoice. | null | +| **reminder_time** | **float** | | The reminder time. | null | +| **local** | **string** | | The local. | null | +| **reminder_time_unit** | **string** | | The unit of the reminder time. | null | +| **items** | [**array**](InvoiceItem.md) | | An array of items included in the invoice. | null | +| **fees** | [**array**](InvoiceFee.md) | | An array of fees associated with the invoice. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/CustomerObject.md b/docs/Invoice/CustomerObject.md index e234046..f8b7419 100644 --- a/docs/Invoice/CustomerObject.md +++ b/docs/Invoice/CustomerObject.md @@ -1,21 +1,22 @@ # # CustomerObject - +An object representing a customer with various properties, including addresses. ```php use Xendit\Invoice\CustomerObject; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **id** | **string** | The unique identifier for the customer. | null | [optional] | -| **phone_number** | **string** | The customer's phone number. | null | [optional] | -| **given_names** | **string** | The customer's given names or first names. | null | [optional] | -| **surname** | **string** | The customer's surname or last name. | null | [optional] | -| **email** | **string** | The customer's email address. | null | [optional] | -| **mobile_number** | **string** | The customer's mobile phone number. | null | [optional] | -| **customer_id** | **string** | An additional identifier for the customer. | null | [optional] | -| **addresses** | [**array**](AddressObject.md) | An array of addresses associated with the customer. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | | The unique identifier for the customer. | null | +| **phone_number** | **string** | | The customer's phone number. | null | +| **given_names** | **string** | | The customer's given names or first names. | null | +| **surname** | **string** | | The customer's surname or last name. | null | +| **email** | **string** | | The customer's email address. | null | +| **mobile_number** | **string** | | The customer's mobile phone number. | null | +| **customer_id** | **string** | | An additional identifier for the customer. | null | +| **addresses** | [**array**](AddressObject.md) | | An array of addresses associated with the customer. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/DirectDebit.md b/docs/Invoice/DirectDebit.md index c10a65e..c43a85f 100644 --- a/docs/Invoice/DirectDebit.md +++ b/docs/Invoice/DirectDebit.md @@ -1,14 +1,15 @@ # # DirectDebit - +An object representing direct debit details for invoices. ```php use Xendit\Invoice\DirectDebit; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **direct_debit_type** | [**DirectDebitType**](DirectDebitType.md) | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **direct_debit_type** | [**DirectDebitType**](DirectDebitType.md) | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/DirectDebitType.md b/docs/Invoice/DirectDebitType.md index f1b5aa2..cedfb5a 100644 --- a/docs/Invoice/DirectDebitType.md +++ b/docs/Invoice/DirectDebitType.md @@ -1,10 +1,11 @@ # # DirectDebitType - +Representing the available Direct Debit channels used for invoice-related transactions. ```php use Xendit\Invoice\DirectDebitType; ``` + ## Enum @@ -48,6 +49,6 @@ use Xendit\Invoice\DirectDebitType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/Ewallet.md b/docs/Invoice/Ewallet.md index 8b5d617..8c86e66 100644 --- a/docs/Invoice/Ewallet.md +++ b/docs/Invoice/Ewallet.md @@ -1,14 +1,15 @@ # # Ewallet - +An object representing e-wallet details for invoices. ```php use Xendit\Invoice\Ewallet; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **ewallet_type** | [**EwalletType**](EwalletType.md) | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **ewallet_type** | [**EwalletType**](EwalletType.md) | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/EwalletType.md b/docs/Invoice/EwalletType.md index 30b363d..a7ce4ee 100644 --- a/docs/Invoice/EwalletType.md +++ b/docs/Invoice/EwalletType.md @@ -1,10 +1,11 @@ # # EwalletType - +Representing the available eWallet channels used for invoice-related transactions. ```php use Xendit\Invoice\EwalletType; ``` + ## Enum @@ -30,6 +31,6 @@ use Xendit\Invoice\EwalletType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/ForbiddenError.md b/docs/Invoice/ForbiddenError.md index e0dea09..6867c4d 100644 --- a/docs/Invoice/ForbiddenError.md +++ b/docs/Invoice/ForbiddenError.md @@ -1,15 +1,16 @@ # # ForbiddenError - +An error object used to indicate a 403 Forbidden response related to invoice operations. ```php use Xendit\Invoice\ForbiddenError; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | The specific error code indicating that access to the invoice operation is suspended. | null | | -| **message** | **string** | A human-readable error message providing additional context about the 403 Forbidden response. | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | ☑️ | The specific error code indicating that access to the invoice operation is suspended. | null | +| **message** | **string** | ☑️ | A human-readable error message providing additional context about the 403 Forbidden response. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/Invoice.md b/docs/Invoice/Invoice.md index 33515c6..161e918 100644 --- a/docs/Invoice/Invoice.md +++ b/docs/Invoice/Invoice.md @@ -1,46 +1,47 @@ # # Invoice - +An object representing details for an invoice. ```php use Xendit\Invoice\Invoice; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **id** | **string** | The unique identifier for the invoice. | null | [optional] | -| **external_id** | **string** | The external identifier for the invoice. | null | | -| **user_id** | **string** | The user ID associated with the invoice. | null | | -| **payer_email** | **string** | The email address of the payer. | null | [optional] | -| **description** | **string** | A description of the invoice. | null | [optional] | -| **payment_method** | [**InvoicePaymentMethod**](InvoicePaymentMethod.md) | | null | [optional] | -| **status** | [**InvoiceStatus**](InvoiceStatus.md) | | null | | -| **merchant_name** | **string** | The name of the merchant. | null | | -| **merchant_profile_picture_url** | **string** | The URL of the merchant's profile picture. | null | | -| **locale** | **string** | The locale or language used for the invoice. | null | [optional] | -| **amount** | **float** | The total amount of the invoice. | null | | -| **expiry_date** | **\DateTime** | Representing a date and time in ISO 8601 format. | 2016-08-29T09:12:33.001Z | | -| **invoice_url** | **string** | The URL to view the invoice. | null | | -| **available_banks** | [**array**](Bank.md) | An array of available banks for payment. | null | | -| **available_retail_outlets** | [**array**](RetailOutlet.md) | An array of available retail outlets for payment. | null | | -| **available_ewallets** | [**array**](Ewallet.md) | An array of available e-wallets for payment. | null | | -| **available_qr_codes** | [**array**](QrCode.md) | An array of available QR codes for payment. | null | | -| **available_direct_debits** | [**array**](DirectDebit.md) | An array of available direct debit options for payment. | null | | -| **available_paylaters** | [**array**](Paylater.md) | An array of available pay-later options for payment. | null | | -| **should_exclude_credit_card** | **bool** | Indicates whether credit card payments should be excluded. | null | [optional] | -| **should_send_email** | **bool** | Indicates whether email notifications should be sent. | null | | -| **created** | **\DateTime** | Representing a date and time in ISO 8601 format. | 2016-08-29T09:12:33.001Z | | -| **updated** | **\DateTime** | Representing a date and time in ISO 8601 format. | 2016-08-29T09:12:33.001Z | | -| **success_redirect_url** | **string** | The URL to redirect to on successful payment. | null | [optional] | -| **failure_redirect_url** | **string** | The URL to redirect to on payment failure. | null | [optional] | -| **should_authenticate_credit_card** | **bool** | Indicates whether credit card authentication is required. | null | [optional] | -| **currency** | [**InvoiceCurrency**](InvoiceCurrency.md) | | null | [optional] | -| **items** | [**array**](InvoiceItem.md) | An array of items included in the invoice. | null | [optional] | -| **fixed_va** | **bool** | Indicates whether the virtual account is fixed. | null | [optional] | -| **reminder_date** | **\DateTime** | Representing a date and time in ISO 8601 format. | 2016-08-29T09:12:33.001Z | [optional] | -| **customer** | [**CustomerObject**](CustomerObject.md) | | null | [optional] | -| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | null | [optional] | -| **fees** | [**array**](InvoiceFee.md) | An array of fees associated with the invoice. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | | The unique identifier for the invoice. | null | +| **external_id** | **string** | ☑️ | The external identifier for the invoice. | null | +| **user_id** | **string** | ☑️ | The user ID associated with the invoice. | null | +| **payer_email** | **string** | | The email address of the payer. | null | +| **description** | **string** | | A description of the invoice. | null | +| **payment_method** | [**InvoicePaymentMethod**](InvoicePaymentMethod.md) | | | null | +| **status** | [**InvoiceStatus**](InvoiceStatus.md) | ☑️ | | null | +| **merchant_name** | **string** | ☑️ | The name of the merchant. | null | +| **merchant_profile_picture_url** | **string** | ☑️ | The URL of the merchant's profile picture. | null | +| **locale** | **string** | | The locale or language used for the invoice. | null | +| **amount** | **float** | ☑️ | The total amount of the invoice. | null | +| **expiry_date** | **\DateTime** | ☑️ | Representing a date and time in ISO 8601 format. | 2016-08-29T09:12:33.001Z | +| **invoice_url** | **string** | ☑️ | The URL to view the invoice. | null | +| **available_banks** | [**array**](Bank.md) | ☑️ | An array of available banks for payment. | null | +| **available_retail_outlets** | [**array**](RetailOutlet.md) | ☑️ | An array of available retail outlets for payment. | null | +| **available_ewallets** | [**array**](Ewallet.md) | ☑️ | An array of available e-wallets for payment. | null | +| **available_qr_codes** | [**array**](QrCode.md) | ☑️ | An array of available QR codes for payment. | null | +| **available_direct_debits** | [**array**](DirectDebit.md) | ☑️ | An array of available direct debit options for payment. | null | +| **available_paylaters** | [**array**](Paylater.md) | ☑️ | An array of available pay-later options for payment. | null | +| **should_exclude_credit_card** | **bool** | | Indicates whether credit card payments should be excluded. | null | +| **should_send_email** | **bool** | ☑️ | Indicates whether email notifications should be sent. | null | +| **created** | **\DateTime** | ☑️ | Representing a date and time in ISO 8601 format. | 2016-08-29T09:12:33.001Z | +| **updated** | **\DateTime** | ☑️ | Representing a date and time in ISO 8601 format. | 2016-08-29T09:12:33.001Z | +| **success_redirect_url** | **string** | | The URL to redirect to on successful payment. | null | +| **failure_redirect_url** | **string** | | The URL to redirect to on payment failure. | null | +| **should_authenticate_credit_card** | **bool** | | Indicates whether credit card authentication is required. | null | +| **currency** | [**InvoiceCurrency**](InvoiceCurrency.md) | | | null | +| **items** | [**array**](InvoiceItem.md) | | An array of items included in the invoice. | null | +| **fixed_va** | **bool** | | Indicates whether the virtual account is fixed. | null | +| **reminder_date** | **\DateTime** | | Representing a date and time in ISO 8601 format. | 2016-08-29T09:12:33.001Z | +| **customer** | [**CustomerObject**](CustomerObject.md) | | | null | +| **customer_notification_preference** | [**NotificationPreference**](NotificationPreference.md) | | | null | +| **fees** | [**array**](InvoiceFee.md) | | An array of fees associated with the invoice. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoiceClientType.md b/docs/Invoice/InvoiceClientType.md index c903993..86668c9 100644 --- a/docs/Invoice/InvoiceClientType.md +++ b/docs/Invoice/InvoiceClientType.md @@ -1,10 +1,11 @@ # # InvoiceClientType - +Representing the client type or source of an invoice. ```php use Xendit\Invoice\InvoiceClientType; ``` + ## Enum @@ -22,6 +23,6 @@ use Xendit\Invoice\InvoiceClientType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoiceCurrency.md b/docs/Invoice/InvoiceCurrency.md index 08395cd..52da644 100644 --- a/docs/Invoice/InvoiceCurrency.md +++ b/docs/Invoice/InvoiceCurrency.md @@ -1,10 +1,11 @@ # # InvoiceCurrency - +Representing the currency used for an invoice. ```php use Xendit\Invoice\InvoiceCurrency; ``` + ## Enum @@ -20,6 +21,6 @@ use Xendit\Invoice\InvoiceCurrency; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoiceError404ResponseDefinition.md b/docs/Invoice/InvoiceError404ResponseDefinition.md index fa1f702..66e076e 100644 --- a/docs/Invoice/InvoiceError404ResponseDefinition.md +++ b/docs/Invoice/InvoiceError404ResponseDefinition.md @@ -1,15 +1,16 @@ # # InvoiceError404ResponseDefinition - +An error object used to indicate that the requested resource, in this case, an invoice, was not found. ```php use Xendit\Invoice\InvoiceError404ResponseDefinition; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | The specific error code indicating that the requested invoice was not found. | null | | -| **message** | **string** | A human-readable error message providing additional context about the resource not being found. | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | ☑️ | The specific error code indicating that the requested invoice was not found. | null | +| **message** | **string** | ☑️ | A human-readable error message providing additional context about the resource not being found. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoiceFee.md b/docs/Invoice/InvoiceFee.md index 171198a..ce96d1b 100644 --- a/docs/Invoice/InvoiceFee.md +++ b/docs/Invoice/InvoiceFee.md @@ -1,15 +1,16 @@ # # InvoiceFee - +An object representing internal details for a fee associated with an invoice. ```php use Xendit\Invoice\InvoiceFee; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **type** | **string** | The type of fee. | null | | -| **value** | **float** | The value or amount of the fee. | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | **string** | ☑️ | The type of fee. | null | +| **value** | **float** | ☑️ | The value or amount of the fee. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoiceItem.md b/docs/Invoice/InvoiceItem.md index ba36958..6c1e43b 100644 --- a/docs/Invoice/InvoiceItem.md +++ b/docs/Invoice/InvoiceItem.md @@ -1,19 +1,20 @@ # # InvoiceItem - +An object representing an item within an invoice. ```php use Xendit\Invoice\InvoiceItem; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **name** | **string** | The name of the item. | null | | -| **price** | **float** | The price of the item. | null | | -| **quantity** | **float** | The quantity of the item. Must be greater than or equal to 0. | null | | -| **reference_id** | **string** | The reference ID of the item. | null | [optional] | -| **url** | **string** | The URL associated with the item. | null | [optional] | -| **category** | **string** | The category of the item. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **name** | **string** | ☑️ | The name of the item. | null | +| **price** | **float** | ☑️ | The price of the item. | null | +| **quantity** | **float** | ☑️ | The quantity of the item. Must be greater than or equal to 0. | null | +| **reference_id** | **string** | | The reference ID of the item. | null | +| **url** | **string** | | The URL associated with the item. | null | +| **category** | **string** | | The category of the item. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoiceNotFoundError.md b/docs/Invoice/InvoiceNotFoundError.md index 8256311..09007e8 100644 --- a/docs/Invoice/InvoiceNotFoundError.md +++ b/docs/Invoice/InvoiceNotFoundError.md @@ -1,15 +1,16 @@ # # InvoiceNotFoundError - +Response definition for a 404 Not Found error when creating an invoice. ```php use Xendit\Invoice\InvoiceNotFoundError; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | The error code indicating the type of error that occurred. | null | | -| **message** | **string** | A human-readable error message that provides additional information about the error. | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | ☑️ | The error code indicating the type of error that occurred. | null | +| **message** | **string** | ☑️ | A human-readable error message that provides additional information about the error. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoicePaymentMethod.md b/docs/Invoice/InvoicePaymentMethod.md index 7630086..0752b54 100644 --- a/docs/Invoice/InvoicePaymentMethod.md +++ b/docs/Invoice/InvoicePaymentMethod.md @@ -1,10 +1,11 @@ # # InvoicePaymentMethod - +Representing the payment method used for an invoice. ```php use Xendit\Invoice\InvoicePaymentMethod; ``` + ## Enum @@ -30,6 +31,6 @@ use Xendit\Invoice\InvoicePaymentMethod; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoiceStatus.md b/docs/Invoice/InvoiceStatus.md index 6c37d97..5d93920 100644 --- a/docs/Invoice/InvoiceStatus.md +++ b/docs/Invoice/InvoiceStatus.md @@ -1,10 +1,11 @@ # # InvoiceStatus - +Representing the status of an invoice. ```php use Xendit\Invoice\InvoiceStatus; ``` + ## Enum @@ -18,6 +19,6 @@ use Xendit\Invoice\InvoiceStatus; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/NotificationChannel.md b/docs/Invoice/NotificationChannel.md index c48e2d7..1e1e93d 100644 --- a/docs/Invoice/NotificationChannel.md +++ b/docs/Invoice/NotificationChannel.md @@ -1,10 +1,11 @@ # # NotificationChannel - +Representing a notification channel for sending messages. ```php use Xendit\Invoice\NotificationChannel; ``` + ## Enum @@ -18,6 +19,6 @@ use Xendit\Invoice\NotificationChannel; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/NotificationPreference.md b/docs/Invoice/NotificationPreference.md index d4977ac..c6bf5b3 100644 --- a/docs/Invoice/NotificationPreference.md +++ b/docs/Invoice/NotificationPreference.md @@ -1,17 +1,18 @@ # # NotificationPreference - +An object representing notification preferences for different invoice events. ```php use Xendit\Invoice\NotificationPreference; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **invoice_created** | [**array**](NotificationChannel.md) | Notification channels for when an invoice is created. | null | [optional] | -| **invoice_reminder** | [**array**](NotificationChannel.md) | Notification channels for invoice reminders. | null | [optional] | -| **invoice_expired** | [**array**](NotificationChannel.md) | Notification channels for expired invoices. | null | [optional] | -| **invoice_paid** | [**array**](NotificationChannel.md) | Notification channels for when an invoice is paid. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **invoice_created** | [**array**](NotificationChannel.md) | | Notification channels for when an invoice is created. | null | +| **invoice_reminder** | [**array**](NotificationChannel.md) | | Notification channels for invoice reminders. | null | +| **invoice_expired** | [**array**](NotificationChannel.md) | | Notification channels for expired invoices. | null | +| **invoice_paid** | [**array**](NotificationChannel.md) | | Notification channels for when an invoice is paid. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/Paylater.md b/docs/Invoice/Paylater.md index ea001de..7203cea 100644 --- a/docs/Invoice/Paylater.md +++ b/docs/Invoice/Paylater.md @@ -1,15 +1,16 @@ # # Paylater - +An object representing paylater details for invoices. ```php use Xendit\Invoice\Paylater; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **paylater_type** | [**PaylaterType**](PaylaterType.md) | | null | | -| **should_exclude** | **bool** | Indicates whether this paylater option should be excluded. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **paylater_type** | [**PaylaterType**](PaylaterType.md) | ☑️ | | null | +| **should_exclude** | **bool** | | Indicates whether this paylater option should be excluded. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/PaylaterType.md b/docs/Invoice/PaylaterType.md index 2ccc698..9a46997 100644 --- a/docs/Invoice/PaylaterType.md +++ b/docs/Invoice/PaylaterType.md @@ -1,10 +1,11 @@ # # PaylaterType - +Representing the available paylater channels used for invoice-related transactions. ```php use Xendit\Invoice\PaylaterType; ``` + ## Enum @@ -22,6 +23,6 @@ use Xendit\Invoice\PaylaterType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/QrCode.md b/docs/Invoice/QrCode.md index 353e867..aea9131 100644 --- a/docs/Invoice/QrCode.md +++ b/docs/Invoice/QrCode.md @@ -1,14 +1,15 @@ # # QrCode - +An object representing QR code details for invoices. ```php use Xendit\Invoice\QrCode; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **qr_code_type** | [**QrCodeType**](QrCodeType.md) | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **qr_code_type** | [**QrCodeType**](QrCodeType.md) | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/QrCodeType.md b/docs/Invoice/QrCodeType.md index aba9061..1316c48 100644 --- a/docs/Invoice/QrCodeType.md +++ b/docs/Invoice/QrCodeType.md @@ -1,10 +1,11 @@ # # QrCodeType - +Representing the available QR Code channels used for invoice-related transactions. ```php use Xendit\Invoice\QrCodeType; ``` + ## Enum @@ -14,6 +15,6 @@ use Xendit\Invoice\QrCodeType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/RetailOutlet.md b/docs/Invoice/RetailOutlet.md index ae62b6b..edf3e12 100644 --- a/docs/Invoice/RetailOutlet.md +++ b/docs/Invoice/RetailOutlet.md @@ -1,17 +1,18 @@ # # RetailOutlet - +An object representing retail outlet details for invoices. ```php use Xendit\Invoice\RetailOutlet; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **retail_outlet_name** | [**RetailOutletName**](RetailOutletName.md) | | null | | -| **payment_code** | **string** | The payment code. | null | [optional] | -| **transfer_amount** | **float** | The transfer amount. | null | [optional] | -| **merchant_name** | **string** | The name of the merchant. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **retail_outlet_name** | [**RetailOutletName**](RetailOutletName.md) | ☑️ | | null | +| **payment_code** | **string** | | The payment code. | null | +| **transfer_amount** | **float** | | The transfer amount. | null | +| **merchant_name** | **string** | | The name of the merchant. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/RetailOutletName.md b/docs/Invoice/RetailOutletName.md index 8bd81e3..8667858 100644 --- a/docs/Invoice/RetailOutletName.md +++ b/docs/Invoice/RetailOutletName.md @@ -1,10 +1,11 @@ # # RetailOutletName - +Representing the available retail outlet channels used for invoice-related transactions. ```php use Xendit\Invoice\RetailOutletName; ``` + ## Enum @@ -28,6 +29,6 @@ use Xendit\Invoice\RetailOutletName; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Invoice/ServerError.md b/docs/Invoice/ServerError.md index 89e9573..01bf016 100644 --- a/docs/Invoice/ServerError.md +++ b/docs/Invoice/ServerError.md @@ -4,12 +4,13 @@ ```php use Xendit\Invoice\ServerError; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | | null | | -| **message** | **string** | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | ☑️ | | null | +| **message** | **string** | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/UnauthorizedError.md b/docs/Invoice/UnauthorizedError.md index 5ceee81..ebd9fe9 100644 --- a/docs/Invoice/UnauthorizedError.md +++ b/docs/Invoice/UnauthorizedError.md @@ -1,15 +1,16 @@ # # UnauthorizedError - +An error object used to indicate unauthorized access to an invoice-related resource. ```php use Xendit\Invoice\UnauthorizedError; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | The specific error code associated with the unauthorized access. | null | | -| **message** | **string** | A human-readable error message providing additional context about the unauthorized access. | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | ☑️ | The specific error code associated with the unauthorized access. | null | +| **message** | **string** | ☑️ | A human-readable error message providing additional context about the unauthorized access. | null | [[Back to README]](../../README.md) diff --git a/docs/Invoice/InvoiceApi.md b/docs/InvoiceApi.md similarity index 51% rename from docs/Invoice/InvoiceApi.md rename to docs/InvoiceApi.md index 4bef9f0..b97142e 100644 --- a/docs/Invoice/InvoiceApi.md +++ b/docs/InvoiceApi.md @@ -1,16 +1,32 @@ -# Xendit\InvoiceApi +# InvoiceApi + + +You can use the APIs below to interface with Xendit's `InvoiceApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```php + 'test1234', + 'description' => 'Test Invoice', + 'amount' => 10000, + 'invoice_duration' => 172800, + 'currency' => 'IDR', + 'reminder_time' => 1 +]); // \Xendit\Invoice\CreateInvoiceRequest $for_user_id = "62efe4c33e45694d63f585f8"; // string | Business ID of the sub-account merchant (XP feature) try { $result = $apiInstance->createInvoice($create_invoice_request, $for_user_id); - print_r($result); + print_r($result); } catch (\Xendit\XenditSdkException $e) { echo 'Exception when calling InvoiceApi->createInvoice: ', $e->getMessage(), PHP_EOL; echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; } ``` -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **create_invoice_request** | [**CreateInvoiceRequest**](CreateInvoiceRequest.md)| | | -| **for_user_id** | **string**| Business ID of the sub-account merchant (XP feature) | [optional] | - -### Return type - -[**\Xendit\Invoice\Invoice**](Invoice.md) -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `getInvoiceById()` +## `getInvoiceById()` Function ```php getInvoiceById($invoice_id, $for_user_id): \Invoice\Invoice @@ -72,8 +88,20 @@ getInvoiceById($invoice_id, $for_user_id): \Invoice\Invoice Get invoice by invoice id -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `getInvoiceById` | +| Request Parameters | [GetInvoiceByIdRequestParams](#request-parameters--GetInvoiceByIdRequestParams) | +| Return Type | [**\Xendit\Invoice\Invoice**](Invoice/Invoice.md) | + +### Request Parameters - GetInvoiceByIdRequestParams +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **invoice_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | + +### Usage Example ```php createPaymentMethod($for_user_id, $payment_method_parameters); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentMethodApi->createPaymentMethod: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **for_user_id** | **string**| | [optional] | -| **payment_method_parameters** | [**PaymentMethodParameters**](PaymentMethodParameters.md)| | [optional] | - -### Return type - -[**\Xendit\PaymentMethod\PaymentMethod**](PaymentMethod.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `getPaymentMethodByID()` - -```php -getPaymentMethodByID($payment_method_id, $for_user_id): \PaymentMethod\PaymentMethod -``` - -Get payment method by ID - -Get payment method by ID - -### Example - -```php -getPaymentMethodByID($payment_method_id, $for_user_id); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentMethodApi->getPaymentMethodByID: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_method_id** | **string**| | | -| **for_user_id** | **string**| | [optional] | - -### Return type - -[**\Xendit\PaymentMethod\PaymentMethod**](PaymentMethod.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `getPaymentsByPaymentMethodId()` - -```php -getPaymentsByPaymentMethodId($payment_method_id, $for_user_id, $payment_request_id, $payment_method_id2, $reference_id, $payment_method_type, $channel_code, $status, $currency, $created_gte, $created_lte, $updated_gte, $updated_lte, $limit): object -``` - -Returns payments with matching PaymentMethodID. - -Returns payments with matching PaymentMethodID. - -### Example - -```php -getPaymentsByPaymentMethodId($payment_method_id, $for_user_id, $payment_request_id, $payment_method_id2, $reference_id, $payment_method_type, $channel_code, $status, $currency, $created_gte, $created_lte, $updated_gte, $updated_lte, $limit); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentMethodApi->getPaymentsByPaymentMethodId: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_method_id** | **string**| | | -| **for_user_id** | **string**| | [optional] | -| **payment_request_id** | **string[]**| | [optional] | -| **payment_method_id2** | **string[]**| | [optional] | -| **reference_id** | **string[]**| | [optional] | -| **payment_method_type** | [**PaymentMethodType**](PaymentMethodType.md)| | [optional] | -| **channel_code** | **string[]**| | [optional] | -| **status** | **string[]**| | [optional] | -| **currency** | **string[]**| | [optional] | -| **created_gte** | **\DateTime**| | [optional] | -| **created_lte** | **\DateTime**| | [optional] | -| **updated_gte** | **\DateTime**| | [optional] | -| **updated_lte** | **\DateTime**| | [optional] | -| **limit** | **int**| | [optional] | - -### Return type - -**object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `patchPaymentMethod()` - -```php -patchPaymentMethod($payment_method_id, $for_user_id, $payment_method_update_parameters): \PaymentMethod\PaymentMethod -``` - -Patch payment methods - -This endpoint is used to toggle the ```status``` of an e-Wallet or a Direct Debit payment method to ```ACTIVE``` or ```INACTIVE```. This is also used to update the details of an Over-the-Counter or a Virtual Account payment method. - -### Example - -```php -patchPaymentMethod($payment_method_id, $for_user_id, $payment_method_update_parameters); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentMethodApi->patchPaymentMethod: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_method_id** | **string**| | | -| **for_user_id** | **string**| | [optional] | -| **payment_method_update_parameters** | [**PaymentMethodUpdateParameters**](PaymentMethodUpdateParameters.md)| | [optional] | - -### Return type - -[**\Xendit\PaymentMethod\PaymentMethod**](PaymentMethod.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `getAllPaymentMethods()` - -```php -getAllPaymentMethods($for_user_id, $id, $type, $status, $reusability, $customer_id, $reference_id, $after_id, $before_id, $limit): \PaymentMethod\PaymentMethodList -``` - -Get all payment methods by filters - -Get all payment methods by filters - -### Example - -```php -getAllPaymentMethods($for_user_id, $id, $type, $status, $reusability, $customer_id, $reference_id, $after_id, $before_id, $limit); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentMethodApi->getAllPaymentMethods: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **for_user_id** | **string**| | [optional] | -| **id** | **string[]**| | [optional] | -| **type** | **string[]**| | [optional] | -| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md)| | [optional] | -| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md)| | [optional] | -| **customer_id** | **string**| | [optional] | -| **reference_id** | **string**| | [optional] | -| **after_id** | **string**| | [optional] | -| **before_id** | **string**| | [optional] | -| **limit** | **int**| | [optional] | - -### Return type - -[**\Xendit\PaymentMethod\PaymentMethodList**](PaymentMethodList.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `expirePaymentMethod()` - -```php -expirePaymentMethod($payment_method_id, $for_user_id, $payment_method_expire_parameters): \PaymentMethod\PaymentMethod -``` - -Expires a payment method - -This endpoint expires a payment method and performs unlinking if necessary - -### Example - -```php -expirePaymentMethod($payment_method_id, $for_user_id, $payment_method_expire_parameters); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentMethodApi->expirePaymentMethod: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_method_id** | **string**| | | -| **for_user_id** | **string**| | [optional] | -| **payment_method_expire_parameters** | [**PaymentMethodExpireParameters**](PaymentMethodExpireParameters.md)| | [optional] | - -### Return type - -[**\Xendit\PaymentMethod\PaymentMethod**](PaymentMethod.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `authPaymentMethod()` - -```php -authPaymentMethod($payment_method_id, $for_user_id, $payment_method_auth_parameters): \PaymentMethod\PaymentMethod -``` - -Validate a payment method's linking OTP - -This endpoint validates a payment method linking OTP - -### Example - -```php -authPaymentMethod($payment_method_id, $for_user_id, $payment_method_auth_parameters); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentMethodApi->authPaymentMethod: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_method_id** | **string**| | | -| **for_user_id** | **string**| | [optional] | -| **payment_method_auth_parameters** | [**PaymentMethodAuthParameters**](PaymentMethodAuthParameters.md)| | [optional] | - -### Return type - -[**\Xendit\PaymentMethod\PaymentMethod**](PaymentMethod.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `simulatePayment()` - -```php -simulatePayment($payment_method_id, $simulate_payment_request) -``` - -Makes payment with matching PaymentMethodID. - -Makes payment with matching PaymentMethodID. - -### Example - -```php -simulatePayment($payment_method_id, $simulate_payment_request); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentMethodApi->simulatePayment: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_method_id** | **string**| | | -| **simulate_payment_request** | [**SimulatePaymentRequest**](SimulatePaymentRequest.md)| | [optional] | - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/PaymentMethodAuthParameters.md b/docs/PaymentMethod/PaymentMethodAuthParameters.md index 890cdf8..66cf189 100644 --- a/docs/PaymentMethod/PaymentMethodAuthParameters.md +++ b/docs/PaymentMethod/PaymentMethodAuthParameters.md @@ -4,11 +4,12 @@ ```php use Xendit\PaymentMethod\PaymentMethodAuthParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **auth_code** | **string** | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **auth_code** | **string** | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/PaymentMethodCountry.md b/docs/PaymentMethod/PaymentMethodCountry.md index 41fd9df..ea406f4 100644 --- a/docs/PaymentMethod/PaymentMethodCountry.md +++ b/docs/PaymentMethod/PaymentMethodCountry.md @@ -5,6 +5,7 @@ use Xendit\PaymentMethod\PaymentMethodCountry; ``` + ## Enum @@ -18,8 +19,10 @@ use Xendit\PaymentMethod\PaymentMethodCountry; * `MY` (value: `'MY'`) + * `US` (value: `'US'`) + * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/PaymentMethodExpireParameters.md b/docs/PaymentMethod/PaymentMethodExpireParameters.md index 2ca4b5d..c09b618 100644 --- a/docs/PaymentMethod/PaymentMethodExpireParameters.md +++ b/docs/PaymentMethod/PaymentMethodExpireParameters.md @@ -4,12 +4,13 @@ ```php use Xendit\PaymentMethod\PaymentMethodExpireParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **success_return_url** | **string** | URL where the end customer is redirected if the unlinking authorization is successful. | null | [optional] | -| **failure_return_url** | **string** | URL where the end customer is redirected if the unlinking authorization is failed. | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **string** | | URL where the end customer is redirected if the unlinking authorization is successful. | null | +| **failure_return_url** | **string** | | URL where the end customer is redirected if the unlinking authorization is failed. | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/PaymentMethodList.md b/docs/PaymentMethod/PaymentMethodList.md index 80ee689..65fc7d4 100644 --- a/docs/PaymentMethod/PaymentMethodList.md +++ b/docs/PaymentMethod/PaymentMethodList.md @@ -4,12 +4,13 @@ ```php use Xendit\PaymentMethod\PaymentMethodList; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **data** | [**array**](PaymentMethod.md) | | null | | -| **has_more** | **bool** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **data** | [**array**](PaymentMethod.md) | ☑️ | | null | +| **has_more** | **bool** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/PaymentMethodParameters.md b/docs/PaymentMethod/PaymentMethodParameters.md index d96f67f..60faf1c 100644 --- a/docs/PaymentMethod/PaymentMethodParameters.md +++ b/docs/PaymentMethod/PaymentMethodParameters.md @@ -4,24 +4,25 @@ ```php use Xendit\PaymentMethod\PaymentMethodParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **type** | [**PaymentMethodType**](PaymentMethodType.md) | | null | | -| **country** | **string** | | null | [optional] | -| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | null | | -| **customer_id** | **string** | | null | [optional] | -| **reference_id** | **string** | | null | [optional] | -| **description** | **string** | | null | [optional] | -| **card** | [**CardParameters**](CardParameters.md) | | null | [optional] | -| **direct_debit** | [**DirectDebitParameters**](DirectDebitParameters.md) | | null | [optional] | -| **ewallet** | [**EWalletParameters**](EWalletParameters.md) | | null | [optional] | -| **over_the_counter** | [**OverTheCounterParameters**](OverTheCounterParameters.md) | | null | [optional] | -| **virtual_account** | [**VirtualAccountParameters**](VirtualAccountParameters.md) | | null | [optional] | -| **qr_code** | [**QRCodeParameters**](QRCodeParameters.md) | | null | [optional] | -| **metadata** | **object** | | null | [optional] | -| **billing_information** | [**BillingInformation**](BillingInformation.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | [**PaymentMethodType**](PaymentMethodType.md) | ☑️ | | null | +| **country** | **string** | | | null | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | ☑️ | | null | +| **customer_id** | **string** | | | null | +| **reference_id** | **string** | | | null | +| **description** | **string** | | | null | +| **card** | [**CardParameters**](CardParameters.md) | | | null | +| **direct_debit** | [**DirectDebitParameters**](DirectDebitParameters.md) | | | null | +| **ewallet** | [**EWalletParameters**](EWalletParameters.md) | | | null | +| **over_the_counter** | [**OverTheCounterParameters**](OverTheCounterParameters.md) | | | null | +| **virtual_account** | [**VirtualAccountParameters**](VirtualAccountParameters.md) | | | null | +| **qr_code** | [**QRCodeParameters**](QRCodeParameters.md) | | | null | +| **metadata** | **object** | | | null | +| **billing_information** | [**BillingInformation**](BillingInformation.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/PaymentMethodReusability.md b/docs/PaymentMethod/PaymentMethodReusability.md index bd37a7d..4fb8b0a 100644 --- a/docs/PaymentMethod/PaymentMethodReusability.md +++ b/docs/PaymentMethod/PaymentMethodReusability.md @@ -5,6 +5,7 @@ use Xendit\PaymentMethod\PaymentMethodReusability; ``` + ## Enum @@ -14,6 +15,6 @@ use Xendit\PaymentMethod\PaymentMethodReusability; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/PaymentMethodStatus.md b/docs/PaymentMethod/PaymentMethodStatus.md index 6ccf7de..6573a27 100644 --- a/docs/PaymentMethod/PaymentMethodStatus.md +++ b/docs/PaymentMethod/PaymentMethodStatus.md @@ -5,6 +5,7 @@ use Xendit\PaymentMethod\PaymentMethodStatus; ``` + ## Enum @@ -22,6 +23,6 @@ use Xendit\PaymentMethod\PaymentMethodStatus; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/PaymentMethodType.md b/docs/PaymentMethod/PaymentMethodType.md index 4b0c9e6..2f19cdc 100644 --- a/docs/PaymentMethod/PaymentMethodType.md +++ b/docs/PaymentMethod/PaymentMethodType.md @@ -5,6 +5,7 @@ use Xendit\PaymentMethod\PaymentMethodType; ``` + ## Enum @@ -26,6 +27,6 @@ use Xendit\PaymentMethod\PaymentMethodType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/PaymentMethodUpdateParameters.md b/docs/PaymentMethod/PaymentMethodUpdateParameters.md index 6a0ae08..38191c2 100644 --- a/docs/PaymentMethod/PaymentMethodUpdateParameters.md +++ b/docs/PaymentMethod/PaymentMethodUpdateParameters.md @@ -4,16 +4,17 @@ ```php use Xendit\PaymentMethod\PaymentMethodUpdateParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **description** | **string** | | null | [optional] | -| **reference_id** | **string** | | null | [optional] | -| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | null | [optional] | -| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | null | [optional] | -| **over_the_counter** | [**OverTheCounterUpdateParameters**](OverTheCounterUpdateParameters.md) | | null | [optional] | -| **virtual_account** | [**VirtualAccountUpdateParameters**](VirtualAccountUpdateParameters.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **description** | **string** | | | null | +| **reference_id** | **string** | | | null | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | | null | +| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | | null | +| **over_the_counter** | [**OverTheCounterUpdateParameters**](OverTheCounterUpdateParameters.md) | | | null | +| **virtual_account** | [**VirtualAccountUpdateParameters**](VirtualAccountUpdateParameters.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/QRCode.md b/docs/PaymentMethod/QRCode.md index 5796198..7c9e5ce 100644 --- a/docs/PaymentMethod/QRCode.md +++ b/docs/PaymentMethod/QRCode.md @@ -1,17 +1,18 @@ # # QRCode - +QR Code Payment Method Details ```php use Xendit\PaymentMethod\QRCode; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **amount** | **float** | | null | [optional] | -| **currency** | **string** | | null | [optional] | -| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | null | [optional] | -| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float** | | | null | +| **currency** | **string** | | | null | +| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | | null | +| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/QRCodeChannelCode.md b/docs/PaymentMethod/QRCodeChannelCode.md index 92b381d..52a0453 100644 --- a/docs/PaymentMethod/QRCodeChannelCode.md +++ b/docs/PaymentMethod/QRCodeChannelCode.md @@ -1,10 +1,11 @@ # # QRCodeChannelCode - +QR Code Channel Code ```php use Xendit\PaymentMethod\QRCodeChannelCode; ``` + ## Enum @@ -20,6 +21,6 @@ use Xendit\PaymentMethod\QRCodeChannelCode; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/QRCodeChannelProperties.md b/docs/PaymentMethod/QRCodeChannelProperties.md index ddcc279..b10c2e5 100644 --- a/docs/PaymentMethod/QRCodeChannelProperties.md +++ b/docs/PaymentMethod/QRCodeChannelProperties.md @@ -1,15 +1,16 @@ # # QRCodeChannelProperties - +QR Code Channel Properties ```php use Xendit\PaymentMethod\QRCodeChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **qr_string** | **string** | QR string to be rendered for display to end users. QR string to image rendering are commonly available in software libraries (e.g Nodejs, PHP, Java) | 0002010102##########CO.XENDIT.WWW011893600#######14220002152#####414220010303TTT####015CO.XENDIT.WWW02180000000000000000000TTT52 045######ID5911XenditQRIS6007Jakarta6105121606##########3k1mOnF73h11111111#3k1mOnF73h6v53033605401163040BDB | [optional] | -| **expires_at** | **\DateTime** | | 2022-01-01T00:00Z | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **qr_string** | **string** | | QR string to be rendered for display to end users. QR string to image rendering are commonly available in software libraries (e.g Nodejs, PHP, Java) | 0002010102##########CO.XENDIT.WWW011893600#######14220002152#####414220010303TTT####015CO.XENDIT.WWW02180000000000000000000TTT52 045######ID5911XenditQRIS6007Jakarta6105121606##########3k1mOnF73h11111111#3k1mOnF73h6v53033605401163040BDB | +| **expires_at** | **\DateTime** | | | 2022-01-01T00:00Z | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/QRCodeParameters.md b/docs/PaymentMethod/QRCodeParameters.md index cc4a840..007f6ba 100644 --- a/docs/PaymentMethod/QRCodeParameters.md +++ b/docs/PaymentMethod/QRCodeParameters.md @@ -4,14 +4,15 @@ ```php use Xendit\PaymentMethod\QRCodeParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **amount** | **float** | | null | [optional] | -| **currency** | **string** | | null | [optional] | -| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | null | [optional] | -| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float** | | | null | +| **currency** | **string** | | | null | +| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | | null | +| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/SimulatePaymentRequest.md b/docs/PaymentMethod/SimulatePaymentRequest.md index 2c68651..f95dfc5 100644 --- a/docs/PaymentMethod/SimulatePaymentRequest.md +++ b/docs/PaymentMethod/SimulatePaymentRequest.md @@ -4,11 +4,12 @@ ```php use Xendit\PaymentMethod\SimulatePaymentRequest; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **amount** | **float** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/TokenizedCardInformation.md b/docs/PaymentMethod/TokenizedCardInformation.md index af025d8..a581958 100644 --- a/docs/PaymentMethod/TokenizedCardInformation.md +++ b/docs/PaymentMethod/TokenizedCardInformation.md @@ -1,23 +1,24 @@ # # TokenizedCardInformation - +Tokenized Card Information ```php use Xendit\PaymentMethod\TokenizedCardInformation; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **token_id** | **string** | | null | | -| **masked_card_number** | **string** | 1st 6 and last 4 digits of the card | null | | -| **cardholder_name** | **string** | Cardholder name is optional but recommended for 3DS 2 / AVS verification | null | [optional] | -| **expiry_month** | **string** | Card expiry month in MM format | null | | -| **expiry_year** | **string** | Card expiry month in YY format | null | | -| **fingerprint** | **string** | Xendit-generated identifier for the unique card number. Multiple payment method objects can be created for the same account - e.g. if the user first creates a one-time payment request, and then later on creates a multiple-use payment method using the same account. The fingerprint helps to identify the unique account being used. | null | | -| **type** | **string** | Whether the card is a credit or debit card | null | | -| **network** | **string** | Card network - VISA, MASTERCARD, JCB, AMEX, DISCOVER, BCA | null | | -| **country** | **string** | Country where the card was issued ISO 3166-1 Alpha-2 | null | | -| **issuer** | **string** | Issuer of the card, most often an issuing bank For example, “BCA”, “MANDIRI” | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **token_id** | **string** | ☑️ | | null | +| **masked_card_number** | **string** | ☑️ | 1st 6 and last 4 digits of the card | null | +| **cardholder_name** | **string** | | Cardholder name is optional but recommended for 3DS 2 / AVS verification | null | +| **expiry_month** | **string** | ☑️ | Card expiry month in MM format | null | +| **expiry_year** | **string** | ☑️ | Card expiry month in YY format | null | +| **fingerprint** | **string** | ☑️ | Xendit-generated identifier for the unique card number. Multiple payment method objects can be created for the same account - e.g. if the user first creates a one-time payment request, and then later on creates a multiple-use payment method using the same account. The fingerprint helps to identify the unique account being used. | null | +| **type** | **string** | ☑️ | Whether the card is a credit or debit card | null | +| **network** | **string** | ☑️ | Card network - VISA, MASTERCARD, JCB, AMEX, DISCOVER, BCA | null | +| **country** | **string** | ☑️ | Country where the card was issued ISO 3166-1 Alpha-2 | null | +| **issuer** | **string** | ☑️ | Issuer of the card, most often an issuing bank For example, “BCA”, “MANDIRI” | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/VirtualAccount.md b/docs/PaymentMethod/VirtualAccount.md index abc4346..7c50430 100644 --- a/docs/PaymentMethod/VirtualAccount.md +++ b/docs/PaymentMethod/VirtualAccount.md @@ -1,21 +1,22 @@ # # VirtualAccount - +Virtual Account Payment Method Details ```php use Xendit\PaymentMethod\VirtualAccount; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **amount** | **float** | | null | [optional] | -| **min_amount** | **float** | | null | [optional] | -| **max_amount** | **float** | | null | [optional] | -| **currency** | **string** | | null | [optional] | -| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | null | | -| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | null | | -| **alternative_display_types** | **string[]** | For payments in Vietnam only, alternative display requested for the virtual account | null | [optional] | -| **alternative_displays** | [**array**](VirtualAccountAlternativeDisplay.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float** | | | null | +| **min_amount** | **float** | | | null | +| **max_amount** | **float** | | | null | +| **currency** | **string** | | | null | +| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | ☑️ | | null | +| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | ☑️ | | null | +| **alternative_display_types** | **string[]** | | For payments in Vietnam only, alternative display requested for the virtual account | null | +| **alternative_displays** | [**array**](VirtualAccountAlternativeDisplay.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/VirtualAccountAllOf.md b/docs/PaymentMethod/VirtualAccountAllOf.md index 5afb3b6..1852f88 100644 --- a/docs/PaymentMethod/VirtualAccountAllOf.md +++ b/docs/PaymentMethod/VirtualAccountAllOf.md @@ -4,11 +4,12 @@ ```php use Xendit\PaymentMethod\VirtualAccountAllOf; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **alternative_displays** | [**array**](VirtualAccountAlternativeDisplay.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **alternative_displays** | [**array**](VirtualAccountAlternativeDisplay.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/VirtualAccountAlternativeDisplay.md b/docs/PaymentMethod/VirtualAccountAlternativeDisplay.md index a1cbbce..7173641 100644 --- a/docs/PaymentMethod/VirtualAccountAlternativeDisplay.md +++ b/docs/PaymentMethod/VirtualAccountAlternativeDisplay.md @@ -1,15 +1,16 @@ # # VirtualAccountAlternativeDisplay - +Alternative Display Object ```php use Xendit\PaymentMethod\VirtualAccountAlternativeDisplay; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **type** | **string** | Type of the alternative display | null | [optional] [readonly] | -| **data** | **string** | Data payload of the given alternative display | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | **string** | | Type of the alternative display | null | +| **data** | **string** | | Data payload of the given alternative display | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/VirtualAccountChannelCode.md b/docs/PaymentMethod/VirtualAccountChannelCode.md index 1b6941e..520530f 100644 --- a/docs/PaymentMethod/VirtualAccountChannelCode.md +++ b/docs/PaymentMethod/VirtualAccountChannelCode.md @@ -1,10 +1,11 @@ # # VirtualAccountChannelCode - +Virtual Account Channel Code ```php use Xendit\PaymentMethod\VirtualAccountChannelCode; ``` + ## Enum @@ -38,8 +39,10 @@ use Xendit\PaymentMethod\VirtualAccountChannelCode; * `STANDARD_CHARTERED` (value: `'STANDARD_CHARTERED'`) + * `AMBANK` (value: `'AMBANK'`) + * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/VirtualAccountChannelProperties.md b/docs/PaymentMethod/VirtualAccountChannelProperties.md index bc1d6b2..793152b 100644 --- a/docs/PaymentMethod/VirtualAccountChannelProperties.md +++ b/docs/PaymentMethod/VirtualAccountChannelProperties.md @@ -1,17 +1,18 @@ # # VirtualAccountChannelProperties - +Virtual Account Channel Properties ```php use Xendit\PaymentMethod\VirtualAccountChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **customer_name** | **string** | Name of customer. | Rika Sutanto | [optional] | -| **virtual_account_number** | **string** | You can assign specific Virtual Account number using this parameter. If you do not send one, one will be picked at random. Make sure the number you specify is within your Virtual Account range. | 262159999999999 | [optional] | -| **expires_at** | **\DateTime** | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | 2022-01-01T00:00Z | [optional] | -| **suggested_amount** | **float** | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | 100000 | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **customer_name** | **string** | | Name of customer. | Rika Sutanto | +| **virtual_account_number** | **string** | | You can assign specific Virtual Account number using this parameter. If you do not send one, one will be picked at random. Make sure the number you specify is within your Virtual Account range. | 262159999999999 | +| **expires_at** | **\DateTime** | | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | 2022-01-01T00:00Z | +| **suggested_amount** | **float** | | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | 100000 | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/VirtualAccountChannelPropertiesPatch.md b/docs/PaymentMethod/VirtualAccountChannelPropertiesPatch.md index 40d3426..5f528d2 100644 --- a/docs/PaymentMethod/VirtualAccountChannelPropertiesPatch.md +++ b/docs/PaymentMethod/VirtualAccountChannelPropertiesPatch.md @@ -1,15 +1,16 @@ # # VirtualAccountChannelPropertiesPatch - +Virtual Account Channel Properties ```php use Xendit\PaymentMethod\VirtualAccountChannelPropertiesPatch; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **expires_at** | **\DateTime** | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | 2022-01-01T00:00Z | [optional] | -| **suggested_amount** | **float** | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | 100000 | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **expires_at** | **\DateTime** | | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | 2022-01-01T00:00Z | +| **suggested_amount** | **float** | | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | 100000 | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/VirtualAccountParameters.md b/docs/PaymentMethod/VirtualAccountParameters.md index 573c19c..7ec06b2 100644 --- a/docs/PaymentMethod/VirtualAccountParameters.md +++ b/docs/PaymentMethod/VirtualAccountParameters.md @@ -4,17 +4,18 @@ ```php use Xendit\PaymentMethod\VirtualAccountParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **amount** | **float** | | null | [optional] | -| **min_amount** | **float** | | null | [optional] | -| **max_amount** | **float** | | null | [optional] | -| **currency** | **string** | | null | [optional] | -| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | null | | -| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | null | | -| **alternative_display_types** | **string[]** | For payments in Vietnam only, alternative display requested for the virtual account | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float** | | | null | +| **min_amount** | **float** | | | null | +| **max_amount** | **float** | | | null | +| **currency** | **string** | | | null | +| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | ☑️ | | null | +| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | ☑️ | | null | +| **alternative_display_types** | **string[]** | | For payments in Vietnam only, alternative display requested for the virtual account | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethod/VirtualAccountUpdateParameters.md b/docs/PaymentMethod/VirtualAccountUpdateParameters.md index aa924a6..a667587 100644 --- a/docs/PaymentMethod/VirtualAccountUpdateParameters.md +++ b/docs/PaymentMethod/VirtualAccountUpdateParameters.md @@ -4,15 +4,16 @@ ```php use Xendit\PaymentMethod\VirtualAccountUpdateParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **amount** | **float** | | null | [optional] | -| **min_amount** | **float** | | null | [optional] | -| **max_amount** | **float** | | null | [optional] | -| **channel_properties** | [**VirtualAccountChannelPropertiesPatch**](VirtualAccountChannelPropertiesPatch.md) | | null | [optional] | -| **alternative_display_types** | **string[]** | For payments in Vietnam only, alternative display requested for the virtual account | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float** | | | null | +| **min_amount** | **float** | | | null | +| **max_amount** | **float** | | | null | +| **channel_properties** | [**VirtualAccountChannelPropertiesPatch**](VirtualAccountChannelPropertiesPatch.md) | | | null | +| **alternative_display_types** | **string[]** | | For payments in Vietnam only, alternative display requested for the virtual account | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentMethodApi.md b/docs/PaymentMethodApi.md new file mode 100644 index 0000000..03e3ffa --- /dev/null +++ b/docs/PaymentMethodApi.md @@ -0,0 +1,513 @@ +# PaymentMethodApi + + +You can use the APIs below to interface with Xendit's `PaymentMethodApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```php + 'EWALLET', + 'reusability' => 'MULTIPLE_USE', + 'customer' => [ + 'reference_id' => 'customer-123', + 'type' => 'INDIVIDUAL', + 'individual_detail' => [ + 'given_names' => 'John', + 'surname' => 'Doe' + ] + ], + 'ewallet' => [ + 'channel_code' => 'OVO', + 'channel_properties' => [ + 'success_return_url' => 'https://redirect.me/success', + 'failure_return_url' => 'https://redirect.me/failure', + 'cancel_return_url' => 'https://redirect.me/cancel' + ] + ], + 'metadata' => [ + 'sku' => 'example-1234' + ] +]); // \Xendit\PaymentMethod\PaymentMethodParameters + +try { + $result = $apiInstance->createPaymentMethod($for_user_id, $payment_method_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentMethodApi->createPaymentMethod: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` +#### Account linking for PH Direct Debit + +```php + 'DIRECT_DEBIT', + 'direct_debit' => [ + 'channel_code' => 'BPI', + 'channel_properties' => [ + 'success_return_url' => 'https://redirect.me/success', + 'failure_return_url' => 'https://redirect.me/failure' + ] + ], + 'reusability' => 'MULTIPLE_USE', + 'customer' => [ + 'reference_id' => 'customer-123', + 'type' => 'INDIVIDUAL', + 'individual_detail' => [ + 'given_names' => 'John', + 'surname' => 'Doe' + ] + ], + 'email' => 'testemail@email.com', + 'mobile_number' => 628774494404 +]); // \Xendit\PaymentMethod\PaymentMethodParameters + +try { + $result = $apiInstance->createPaymentMethod($for_user_id, $payment_method_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentMethodApi->createPaymentMethod: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `getPaymentMethodByID()` Function + +```php +getPaymentMethodByID($payment_method_id, $for_user_id): \PaymentMethod\PaymentMethod +``` + +Get payment method by ID + Get payment method by ID + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `getPaymentMethodByID` | +| Request Parameters | [GetPaymentMethodByIDRequestParams](#request-parameters--GetPaymentMethodByIDRequestParams) | +| Return Type | [**\Xendit\PaymentMethod\PaymentMethod**](PaymentMethod/PaymentMethod.md) | + +### Request Parameters - GetPaymentMethodByIDRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | + +### Usage Example +```php +getPaymentMethodByID($payment_method_id, $for_user_id); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentMethodApi->getPaymentMethodByID: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `getPaymentsByPaymentMethodId()` Function + +```php +getPaymentsByPaymentMethodId($payment_method_id, $for_user_id, $payment_request_id, $payment_method_id2, $reference_id, $payment_method_type, $channel_code, $status, $currency, $created_gte, $created_lte, $updated_gte, $updated_lte, $limit): object +``` + +Returns payments with matching PaymentMethodID. + Returns payments with matching PaymentMethodID. + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `getPaymentsByPaymentMethodId` | +| Request Parameters | [GetPaymentsByPaymentMethodIdRequestParams](#request-parameters--GetPaymentsByPaymentMethodIdRequestParams) | +| Return Type | **object** | + +### Request Parameters - GetPaymentsByPaymentMethodIdRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | +| **payment_request_id** | **string[]** | | | +| **payment_method_id2** | **string[]** | | | +| **reference_id** | **string[]** | | | +| **payment_method_type** | [**PaymentMethodType**](PaymentMethod/PaymentMethodType.md) | | | +| **channel_code** | **string[]** | | | +| **status** | **string[]** | | | +| **currency** | **string[]** | | | +| **created_gte** | **\DateTime** | | | +| **created_lte** | **\DateTime** | | | +| **updated_gte** | **\DateTime** | | | +| **updated_lte** | **\DateTime** | | | +| **limit** | **int** | | | + +### Usage Example +```php +getPaymentsByPaymentMethodId($payment_method_id, $for_user_id, $payment_request_id, $payment_method_id2, $reference_id, $payment_method_type, $channel_code, $status, $currency, $created_gte, $created_lte, $updated_gte, $updated_lte, $limit); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentMethodApi->getPaymentsByPaymentMethodId: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `patchPaymentMethod()` Function + +```php +patchPaymentMethod($payment_method_id, $for_user_id, $payment_method_update_parameters): \PaymentMethod\PaymentMethod +``` + +Patch payment methods + This endpoint is used to toggle the ```status``` of an e-Wallet or a Direct Debit payment method to ```ACTIVE``` or ```INACTIVE```. This is also used to update the details of an Over-the-Counter or a Virtual Account payment method. + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `patchPaymentMethod` | +| Request Parameters | [PatchPaymentMethodRequestParams](#request-parameters--PatchPaymentMethodRequestParams) | +| Return Type | [**\Xendit\PaymentMethod\PaymentMethod**](PaymentMethod/PaymentMethod.md) | + +### Request Parameters - PatchPaymentMethodRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | +| **payment_method_update_parameters** | [**PaymentMethodUpdateParameters**](PaymentMethod/PaymentMethodUpdateParameters.md) | | | + +### Usage Example +```php +patchPaymentMethod($payment_method_id, $for_user_id, $payment_method_update_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentMethodApi->patchPaymentMethod: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `getAllPaymentMethods()` Function + +```php +getAllPaymentMethods($for_user_id, $id, $type, $status, $reusability, $customer_id, $reference_id, $after_id, $before_id, $limit): \PaymentMethod\PaymentMethodList +``` + +Get all payment methods by filters + Get all payment methods by filters + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `getAllPaymentMethods` | +| Request Parameters | [GetAllPaymentMethodsRequestParams](#request-parameters--GetAllPaymentMethodsRequestParams) | +| Return Type | [**\Xendit\PaymentMethod\PaymentMethodList**](PaymentMethod/PaymentMethodList.md) | + +### Request Parameters - GetAllPaymentMethodsRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **for_user_id** | **string** | | | +| **id** | **string[]** | | | +| **type** | **string[]** | | | +| **status** | [**PaymentMethodStatus**](PaymentMethod/PaymentMethodStatus.md) | | | +| **reusability** | [**PaymentMethodReusability**](PaymentMethod/PaymentMethodReusability.md) | | | +| **customer_id** | **string** | | | +| **reference_id** | **string** | | | +| **after_id** | **string** | | | +| **before_id** | **string** | | | +| **limit** | **int** | | | + +### Usage Example +```php +getAllPaymentMethods($for_user_id, $id, $type, $status, $reusability, $customer_id, $reference_id, $after_id, $before_id, $limit); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentMethodApi->getAllPaymentMethods: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `expirePaymentMethod()` Function + +```php +expirePaymentMethod($payment_method_id, $for_user_id, $payment_method_expire_parameters): \PaymentMethod\PaymentMethod +``` + +Expires a payment method + This endpoint expires a payment method and performs unlinking if necessary + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `expirePaymentMethod` | +| Request Parameters | [ExpirePaymentMethodRequestParams](#request-parameters--ExpirePaymentMethodRequestParams) | +| Return Type | [**\Xendit\PaymentMethod\PaymentMethod**](PaymentMethod/PaymentMethod.md) | + +### Request Parameters - ExpirePaymentMethodRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | +| **payment_method_expire_parameters** | [**PaymentMethodExpireParameters**](PaymentMethod/PaymentMethodExpireParameters.md) | | | + +### Usage Example +```php +expirePaymentMethod($payment_method_id, $for_user_id, $payment_method_expire_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentMethodApi->expirePaymentMethod: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `authPaymentMethod()` Function + +```php +authPaymentMethod($payment_method_id, $for_user_id, $payment_method_auth_parameters): \PaymentMethod\PaymentMethod +``` + +Validate a payment method's linking OTP + This endpoint validates a payment method linking OTP + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `authPaymentMethod` | +| Request Parameters | [AuthPaymentMethodRequestParams](#request-parameters--AuthPaymentMethodRequestParams) | +| Return Type | [**\Xendit\PaymentMethod\PaymentMethod**](PaymentMethod/PaymentMethod.md) | + +### Request Parameters - AuthPaymentMethodRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | +| **payment_method_auth_parameters** | [**PaymentMethodAuthParameters**](PaymentMethod/PaymentMethodAuthParameters.md) | | | + +### Usage Example +```php +authPaymentMethod($payment_method_id, $for_user_id, $payment_method_auth_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentMethodApi->authPaymentMethod: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `simulatePayment()` Function + +```php +simulatePayment($payment_method_id, $simulate_payment_request) +``` + +Makes payment with matching PaymentMethodID. + Makes payment with matching PaymentMethodID. + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `simulatePayment` | +| Request Parameters | [SimulatePaymentRequestParams](#request-parameters--SimulatePaymentRequestParams) | +| Return Type | void (empty response body) | + +### Request Parameters - SimulatePaymentRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_method_id** | **string** | ☑️ | | +| **simulate_payment_request** | [**SimulatePaymentRequest**](PaymentMethod/SimulatePaymentRequest.md) | | | + +### Usage Example +```php +simulatePayment($payment_method_id, $simulate_payment_request); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentMethodApi->simulatePayment: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +[[Back to README]](../README.md) diff --git a/docs/PaymentRequest.yaml b/docs/PaymentRequest.yaml deleted file mode 100644 index f247ce2..0000000 --- a/docs/PaymentRequest.yaml +++ /dev/null @@ -1,2617 +0,0 @@ -openapi: 3.0.0 -info: - description: This API is used for Payment Requests - title: Payment Requests - version: 1.44.1 -servers: -- description: Xendit API Server - url: https://api.xendit.co -paths: - /payment_requests: - get: - description: Get all payment requests by filter - operationId: getAllPaymentRequests - parameters: - - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - - explode: true - in: query - name: reference_id - required: false - schema: - items: - type: string - type: array - style: form - - explode: true - in: query - name: id - required: false - schema: - items: - type: string - type: array - style: form - - explode: true - in: query - name: customer_id - required: false - schema: - items: - type: string - type: array - style: form - - explode: true - in: query - name: limit - required: false - schema: - type: integer - style: form - - explode: true - in: query - name: before_id - required: false - schema: - type: string - style: form - - explode: true - in: query - name: after_id - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRequestListResponse' - description: Request successful - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: Get all payment requests by filter - tags: - - payment_request - post: - description: Create Payment Request - operationId: createPaymentRequest - parameters: - - explode: false - in: header - name: idempotency-key - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - requestBody: - content: - application/json: - examples: - E-Wallet One Time Payment via Redirect URL: - value: - reference_id: example-ref-1234 - amount: 15000 - currency: IDR - country: ID - payment_method: - type: EWALLET - ewallet: - channel_code: SHOPEEPAY - channel_properties: - success_return_url: https://redirect.me/success - reusability: ONE_TIME_USE - Fixed amount dynamic QR: - value: - reference_id: example-ref-1234 - amount: 15000 - currency: IDR - payment_method: - type: QR_CODE - reusability: ONE_TIME_USE - qr_code: - channel_code: “QRIS” - metadata: - sku: example-sku-1234 - Fixed amount single use Virtual Account: - value: - reference_id: example-ref-1234 - currency: IDR - amount: 15000 - country: ID - payment_method: - type: VIRTUAL_ACCOUNT - reusability: ONE_TIME_USE - reference_id: example-1234 - virtual_account: - channel_code: BNI - channel_properties: - customer_name: Ahmad Gunawan - expires_at: 2023-01-03T17:00:00Z - metadata: - sku: example-sku-1234 - Subsequent PH Direct Debit payments after account linking: - value: - reference_id: example-ref-1234 - amount: 1500 - currency: PHP - payment_method_id: pm-9685a196-81e9-4c73-8d62-97df5aab2762 - metadata: - sku: example-sku-1234 - Subsequent tokenized E-Wallet payments after account linking: - value: - reference_id: example-ref-1234 - amount: 15000 - currency: IDR - payment_method_id: pm-2b2c6092-2100-4843-a7fc-f5c7edac7efd - metadata: - sku: example-sku-1234 - schema: - $ref: '#/components/schemas/PaymentRequestParameters' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRequest' - description: Request successful - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRequest' - description: Request successful - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: Create Payment Request - tags: - - payment_request - /payment_requests/{paymentRequestId}: - get: - description: Get payment request by ID - operationId: getPaymentRequestByID - parameters: - - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - - explode: false - in: path - name: paymentRequestId - required: true - schema: - example: pr-1fdaf346-dd2e-4b6c-b938-124c7167a822 - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRequest' - description: Request successful - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: Get payment request by ID - tags: - - payment_request - /payment_requests/{paymentRequestId}/auth: - post: - description: Payment Request Authorize - operationId: authorizePaymentRequest - parameters: - - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - - explode: false - in: path - name: paymentRequestId - required: true - schema: - example: pr-1fdaf346-dd2e-4b6c-b938-124c7167a822 - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRequestAuthParameters' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRequest' - description: Request successful - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: Payment Request Authorize - tags: - - payment_request - /payment_requests/{paymentRequestId}/auth/resend: - post: - description: Payment Request Resend Auth - operationId: resendPaymentRequestAuth - parameters: - - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - - explode: false - in: path - name: paymentRequestId - required: true - schema: - example: pr-1fdaf346-dd2e-4b6c-b938-124c7167a822 - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRequest' - description: Request successful - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: Payment Request Resend Auth - tags: - - payment_request - /payment_requests/{paymentRequestId}/captures: - get: - description: Get Payment Request Capture - operationId: getPaymentRequestCaptures - parameters: - - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - - explode: false - in: path - name: paymentRequestId - required: true - schema: - example: pr-1fdaf346-dd2e-4b6c-b938-124c7167a822 - type: string - style: simple - - explode: true - in: query - name: limit - required: false - schema: - type: integer - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/CaptureListResponse' - description: Request successful - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: Get Payment Request Capture - tags: - - payment_request - post: - description: Payment Request Capture - operationId: capturePaymentRequest - parameters: - - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - - explode: false - in: path - name: paymentRequestId - required: true - schema: - example: pr-1fdaf346-dd2e-4b6c-b938-124c7167a822 - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CaptureParameters' - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/Capture' - description: Capture created - "400": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: Payment Request Capture - tags: - - payment_request -components: - parameters: - ForUserId: - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - IdempotencyKey: - explode: false - in: header - name: idempotency-key - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - PaymentRequestID: - explode: false - in: path - name: paymentRequestId - required: true - schema: - example: pr-1fdaf346-dd2e-4b6c-b938-124c7167a822 - type: string - style: simple - responses: - UnexpectedError: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - schemas: - Error: - properties: - error_code: - enum: - - ACCOUNT_ACCESS_BLOCKED - - ADDRESS_VALIDATION_FAILED - - AMOUNT_MISMATCHED - - API_VALIDATION_ERROR - - AUTHENTICATION_FAILED - - AUTHENTICATION_REQUIRED - - CARD_DECLINED - - CHANNEL_CODE_NOT_SUPPORTED_ERROR - - CHANNEL_NOT_ACTIVATED - - CHANNEL_UNAVAILABLE - - COF_COMBINATION_NOT_ALLOWED_ERROR - - CURRENCY_MISMATCHED - - CUSTOMER_NOT_FOUND_ERROR - - CUSTOMER_PAYMENT_METHOD_MISMATCHED - - DATA_NOT_FOUND - - DATA_NOT_FOUND_ERROR - - DECLINED_BY_ISSUER - - DECLINED_BY_PROCESSOR - - DENIED_PERSON_LIST_MATCHED - - DUPLICATE_ERROR - - DUPLICATE_REFERENCE - - EXCEEDS_CAPTURABLE_AMOUNT - - EXPIRED_CARD - - EXPIRED_OTP_ERROR - - FEATURE_NOT_ACTIVATED - - IDEMPOTENCY_ERROR - - INACTIVE_OR_UNAUTHORIZED_CARD - - INSUFFICIENT_BALANCE - - INVALID_ACCOUNT_DETAILS - - INVALID_CVV - - INVALID_OTP_ERROR - - INVALID_PAYMENT_METHOD - - ISSUER_UNAVAILABLE - - MANUAL_CAPTURE_NOT_SUPPORTED - - MAX_ACCOUNT_LINKING - - MAX_AMOUNT_LIMIT_ERROR - - MAX_OTP_ATTEMPTS_ERROR - - OPERATION_NOT_ALLOWED - - OTP_DELIVERY_ERROR - - PAYMENT_METHOD_NOT_FOUND_ERROR - - PAYMENT_REQUEST_ALREADY_COMPLETED - - PAYMENT_REQUEST_ALREADY_FAILED - - PAYMENT_REQUEST_ALREADY_FULLY_CAPTURED - - PAYMENT_STATUS_FAILED - - PROCESSOR_CONFIGURATION_ERROR - - PROCESSOR_ERROR - - PROCESSOR_TEMPORARILY_UNAVAILABLE - - PROCESSOR_TIMEOUT - - REJECTED_BY_ACQUIRER - - SERVER_ERROR - - STOLEN_CARD - - STRONG_CUSTOMER_AUTHENTICATION_REQUIRED - - SUSPECTED_FRAUDULENT - - UNAUTHORIZED - - DUPLICATED_FIXED_PAYMENT_INSTRUMENT - nullable: true - type: string - message: - example: An internal server error occurred - nullable: true - type: string - type: object - PaymentRequestCountry: - enum: - - ID - - PH - - VN - - TH - - MY - type: string - PaymentRequestCurrency: - enum: - - IDR - - PHP - - VND - - THB - - MYR - type: string - PaymentMethodType: - enum: - - CARD - - DIRECT_DEBIT - - EWALLET - - OVER_THE_COUNTER - - QR_CODE - - VIRTUAL_ACCOUNT - type: string - CardChannelProperties: - description: Card Channel Properties - example: - cardonfile_type: UNSCHEDULED - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - nullable: false - properties: - skip_three_d_secure: - description: To indicate whether to perform 3DS during the linking phase - example: false - nullable: true - type: boolean - success_return_url: - description: URL where the end-customer is redirected if the authorization - is successful - example: https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 - nullable: true - pattern: "^\\S{1,255}:\\/\\/\\S{0,1000}$" - type: string - failure_return_url: - description: URL where the end-customer is redirected if the authorization - failed - example: https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 - nullable: true - pattern: "^\\S{1,255}:\\/\\/\\S{0,1000}$" - type: string - cardonfile_type: - description: Type of “credential-on-file” / “card-on-file” payment being - made. Indicate that this payment uses a previously linked Payment Method - for charging. - example: RECURRING - nullable: true - type: string - merchant_id_tag: - description: Tag for a Merchant ID that you want to associate this payment - with. For merchants using their own MIDs to specify which MID they want - to use - type: string - type: object - CardInformation: - description: Card Information - example: - expiry_month: expiry_month - country: country - token_id: token_id - fingerprint: fingerprint - masked_card_number: masked_card_number - cardholder_name: cardholder_name - type: type - expiry_year: expiry_year - issuer: issuer - network: VISA - nullable: false - properties: - token_id: - type: string - masked_card_number: - description: 1st 6 and last 4 digits of the card - type: string - expiry_month: - description: Card expiry month in MM format - type: string - expiry_year: - description: Card expiry month in YY format - type: string - cardholder_name: - description: Cardholder name - nullable: true - type: string - fingerprint: - type: string - type: - type: string - network: - enum: - - VISA - - MASTERCARD - - JCB - - AMEX - - DISCOVER - type: string - country: - type: string - issuer: - type: string - required: - - expiry_month - - expiry_year - - masked_card_number - - token_id - type: object - CardVerificationResultsThreeDSecure: - example: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: CHALLENGE - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - properties: - three_d_secure_flow: - enum: - - CHALLENGE - - FRICTIONLESS - nullable: true - type: string - eci_code: - nullable: true - type: string - three_d_secure_result: - nullable: true - type: string - three_d_secure_result_reason: - nullable: true - type: string - three_d_secure_version: - nullable: true - type: string - type: object - CardVerificationResults: - example: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: CHALLENGE - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - nullable: true - properties: - three_d_secure: - $ref: '#/components/schemas/CardVerificationResultsThreeDSecure' - cvv_result: - nullable: true - type: string - address_verification_result: - nullable: true - type: string - type: object - Card: - example: - currency: null - channel_properties: - cardonfile_type: UNSCHEDULED - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - card_information: - expiry_month: expiry_month - country: country - token_id: token_id - fingerprint: fingerprint - masked_card_number: masked_card_number - cardholder_name: cardholder_name - type: type - expiry_year: expiry_year - issuer: issuer - network: VISA - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: CHALLENGE - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - nullable: true - properties: - currency: - $ref: '#/components/schemas/PaymentRequestCurrency' - channel_properties: - $ref: '#/components/schemas/CardChannelProperties' - card_information: - $ref: '#/components/schemas/CardInformation' - card_verification_results: - $ref: '#/components/schemas/CardVerificationResults' - required: - - card_information - - channel_properties - - currency - type: object - DirectDebitChannelCode: - description: Direct Debit Channel Code - enum: - - BCA_KLIKPAY - - BCA_ONEKLIK - - BRI - - BNI - - MANDIRI - - BPI - - BDO - - CIMBNIAGA - - MTB - - RCBC - - UBP - - AUTODEBIT_UBP - - CHINABANK - - BAY - - KTB - - BBL - - SCB - - KBANK_MB - - BAY_MB - - KTB_MB - - BBL_MB - - SCB_MB - - BDO_EPAY - - AFFIN_FPX - - AGRO_FPX - - ALLIANCE_FPX - - AMBANK_FPX - - ISLAM_FPX - - MUAMALAT_FPX - - BOC_FPX - - RAKYAT_FPX - - BSN_FPX - - CIMB_FPX - - HLB_FPX - - HSBC_FPX - - KFH_FPX - - MAYB2E_FPX - - MAYB2U_FPX - - OCBC_FPX - - PUBLIC_FPX - - RHB_FPX - - SCH_FPX - - UOB_FPX - - AFFIN_FPX_BUSINESS - - AGRO_FPX_BUSINESS - - ALLIANCE_FPX_BUSINESS - - AMBANK_FPX_BUSINESS - - ISLAM_FPX_BUSINESS - - MUAMALAT_FPX_BUSINESS - - BNP_FPX_BUSINESS - - CIMB_FPX_BUSINESS - - CITIBANK_FPX_BUSINESS - - DEUTSCHE_FPX_BUSINESS - - HLB_FPX_BUSINESS - - HSBC_FPX_BUSINESS - - RAKYAT_FPX_BUSINESS - - KFH_FPX_BUSINESS - - MAYB2E_FPX_BUSINESS - - OCBC_FPX_BUSINESS - - PUBLIC_FPX_BUSINESS - - RHB_FPX_BUSINESS - - SCH_FPX_BUSINESS - - UOB_FPX_BUSINESS - example: BRI - type: string - DirectDebitChannelPropertiesBankRedirect: - description: Direct Debit Bank Account Channel Properties - example: - mobile_number: "0812345678" - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - properties: - mobile_number: - description: Mobile number of the customer that is registered to channel - type: string - success_return_url: - format: uri - type: string - failure_return_url: - format: uri - type: string - type: object - DirectDebitChannelPropertiesBankAccount: - description: Direct Debit Bank Account Channel Properties - example: - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - properties: - success_return_url: - format: uri - type: string - failure_return_url: - format: uri - type: string - mobile_number: - type: string - identity_document_number: - type: string - type: object - DirectDebitChannelPropertiesDebitCard: - description: Direct Debit Debit Card Channel Properties - example: - mobile_number: +62818555988 - card_last_four: "8888" - card_expiry: 06/24 - email: test.email@xendit.co - properties: - mobile_number: - description: Mobile number of the customer registered to the partner channel - example: +62818555988 - type: string - account_number: - example: "1234567890" - type: string - card_last_four: - description: Last four digits of the debit card - example: "8888" - type: string - card_expiry: - description: Expiry month and year of the debit card (in MM/YY format) - example: 06/24 - type: string - email: - description: Email address of the customer that is registered to the partner - channel - example: test.email@xendit.co - type: string - type: object - DirectDebitChannelProperties: - anyOf: - - $ref: '#/components/schemas/DirectDebitChannelPropertiesBankRedirect' - - $ref: '#/components/schemas/DirectDebitChannelPropertiesBankAccount' - - $ref: '#/components/schemas/DirectDebitChannelPropertiesDebitCard' - nullable: true - DirectDebitType: - enum: - - DEBIT_CARD - - BANK_ACCOUNT - - BANK_REDIRECT - type: string - DirectDebitParameters: - example: - channel_properties: null - channel_code: BRI - type: null - nullable: true - properties: - channel_code: - $ref: '#/components/schemas/DirectDebitChannelCode' - channel_properties: - $ref: '#/components/schemas/DirectDebitChannelProperties' - type: - $ref: '#/components/schemas/DirectDebitType' - required: - - channel_code - - channel_properties - type: object - DirectDebitBankAccount: - nullable: true - properties: - masked_bank_account_number: - example: 233eca40ff303ba15bf39052ca3102c6 - nullable: true - type: string - bank_account_hash: - example: 233eca40ff303ba15bf39052ca3102c6 - nullable: true - type: string - type: object - DirectDebitDebitCard: - nullable: true - properties: - mobile_number: - description: Mobile number of the customer registered to the partner channel - example: +62818555988 - nullable: true - type: string - account_number: - example: "1234567890" - type: string - card_last_four: - description: Last four digits of the debit card - example: "8888" - nullable: true - type: string - card_expiry: - description: Expiry month and year of the debit card (in MM/YY format) - example: 06/24 - nullable: true - type: string - email: - description: Email address of the customer that is registered to the partner - channel - example: test.email@xendit.co - format: email - nullable: true - type: string - type: object - DirectDebit: - allOf: - - $ref: '#/components/schemas/DirectDebitParameters' - - $ref: '#/components/schemas/DirectDebit_allOf' - description: Direct Debit Payment Method Details - nullable: true - type: object - EWalletChannelCode: - description: Ewallet Channel Code - enum: - - GCASH - - GRABPAY - - PAYMAYA - - DANA - - OVO - - LINKAJA - - SHOPEEPAY - - NEXCASH - - ASTRAPAY - - JENIUSPAY - - APPOTA - - MOMO - - VNPTWALLET - - VIETTELPAY - - ZALOPAY - - WECHATPAY - - LINEPAY - - TRUEMONEY - - ALIPAY - example: PAYMAYA - type: string - EWalletChannelProperties: - description: Ewallet Channel Properties - example: - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - cancel_return_url: https://redirect.me/cancel - nullable: false - properties: - success_return_url: - description: URL where the end-customer is redirected if the authorization - is successful - example: https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 - pattern: "^\\S{1,255}:\\/\\/\\S{0,1000}$" - type: string - failure_return_url: - description: URL where the end-customer is redirected if the authorization - failed - example: https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 - pattern: "^\\S{1,255}:\\/\\/\\S{0,1000}$" - type: string - cancel_return_url: - description: URL where the end-customer is redirected if the authorization - cancelled - example: https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 - pattern: "^\\S{1,255}:\\/\\/\\S{0,1000}$" - type: string - redeem_points: - description: "REDEEM_NONE will not use any point, REDEEM_ALL will use all\ - \ available points before cash balance is used. For OVO and ShopeePay\ - \ tokenized payment use only." - example: REDEEM_NONE - type: string - mobile_number: - type: string - cashtag: - type: string - type: object - EWalletParameters: - example: - channel_properties: - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - cancel_return_url: https://redirect.me/cancel - channel_code: PAYMAYA - nullable: true - properties: - channel_code: - $ref: '#/components/schemas/EWalletChannelCode' - channel_properties: - $ref: '#/components/schemas/EWalletChannelProperties' - type: object - EWalletAccount: - description: EWallet Account Properties - example: - name: John Peter Doe - account_details: +63(2)123456XXXX - balance: null - point_balance: null - nullable: false - properties: - name: - description: Name of the eWallet account holder. The value is null if unavailableName - of the eWallet account holder. The value is null if unavailable - nullable: true - type: string - account_details: - description: Identifier from eWallet provider e.g. phone number. The value - is null if unavailable - nullable: true - type: string - balance: - description: The main balance amount on eWallet account provided from eWallet - provider. The value is null if unavailable - format: double - nullable: true - type: number - point_balance: - description: The point balance amount on eWallet account. Applicable only - on some eWallet provider that has point system. The value is null if unavailabl - format: double - nullable: true - type: number - type: object - EWallet: - allOf: - - $ref: '#/components/schemas/EWalletParameters' - - $ref: '#/components/schemas/EWallet_allOf' - description: Ewallet Payment Method Details - nullable: true - type: object - OverTheCounterChannelCode: - description: Over The Counter Channel Code - enum: - - 7ELEVEN - - 7ELEVEN_CLIQQ - - CEBUANA - - ECPAY - - PALAWAN - - MLHUILLIER - - ECPAY_DRAGONLOAN - - LBC - - ECPAY_SCHOOL - - RD_PAWNSHOP - - CVM - - USSC - - SM_BILLS - - ROBINSONS_BILLS - - ALFAMART - - INDOMARET - example: 7ELEVEN_CLIQQ - type: string - OverTheCounterChannelProperties: - description: Over The Counter Channel Properties - example: - payment_code: "12345" - customer_name: Rika Sutanto - expires_at: 2022-01-01T00:00:00Z - properties: - payment_code: - description: "The payment code that you want to assign, e.g 12345. If you\ - \ do not send one, one will be picked at random." - example: "12345" - type: string - customer_name: - description: Name of customer. - example: Rika Sutanto - type: string - expires_at: - description: The time when the payment code will be expired. The minimum - is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date - will be 2 days from payment code generated. - example: 2022-01-01T00:00:00Z - format: date-time - type: string - required: - - customer_name - type: object - OverTheCounterParameters: - example: - amount: 6.027456183070403 - currency: null - channel_properties: - payment_code: "12345" - customer_name: Rika Sutanto - expires_at: 2022-01-01T00:00:00Z - channel_code: 7ELEVEN_CLIQQ - nullable: true - properties: - amount: - format: double - nullable: true - type: number - currency: - $ref: '#/components/schemas/PaymentRequestCurrency' - channel_code: - $ref: '#/components/schemas/OverTheCounterChannelCode' - channel_properties: - $ref: '#/components/schemas/OverTheCounterChannelProperties' - required: - - channel_code - - channel_properties - type: object - OverTheCounter: - allOf: - - $ref: '#/components/schemas/OverTheCounterParameters' - description: Over the Counter Payment Method Details - nullable: true - type: object - VirtualAccountChannelCode: - description: Virtual Account Channel Code - enum: - - BCA - - BJB - - BNI - - BRI - - MANDIRI - - PERMATA - - BSI - - CIMB - - SAHABAT_SAMPOERNA - - ARTAJASA - - PV - - VIETCAPITAL - - WOORI - - MSB - - STANDARD_CHARTERED - example: BCA - type: string - VirtualAccountChannelProperties: - description: Virtual Account Channel Properties - example: - customer_name: Rika Sutanto - description: Payment for SSS - expires_at: 2022-01-01T00:00:00Z - properties: - customer_name: - description: Name of customer. - example: Rika Sutanto - type: string - virtual_account_number: - description: "You can assign specific Virtual Account number using this\ - \ parameter. If you do not send one, one will be picked at random. Make\ - \ sure the number you specify is within your Virtual Account range." - example: "262159999999999" - type: string - expires_at: - description: "The date and time in ISO 8601 UTC+0 when the virtual account\ - \ number will be expired. Default: The default expiration date will be\ - \ 31 years from creation date." - example: 2022-01-01T00:00:00Z - format: date-time - type: string - suggested_amount: - description: "The suggested amount you want to assign. Note: Suggested amounts\ - \ is the amounts that can see as a suggestion, but user can still put\ - \ any numbers (only supported for Mandiri and BRI)" - example: 100000 - format: double - type: number - required: - - customer_name - type: object - VirtualAccountParameters: - example: - amount: 5.637376656633329 - min_amount: 1.4658129805029452 - alternative_display_types: - - QR_STRING - - QR_STRING - max_amount: 5.962133916683182 - currency: null - channel_properties: - customer_name: Rika Sutanto - description: Payment for SSS - expires_at: 2022-01-01T00:00:00Z - channel_code: BCA - nullable: true - properties: - min_amount: - format: double - nullable: true - type: number - max_amount: - format: double - nullable: true - type: number - amount: - format: double - nullable: true - type: number - currency: - $ref: '#/components/schemas/PaymentRequestCurrency' - channel_code: - $ref: '#/components/schemas/VirtualAccountChannelCode' - channel_properties: - $ref: '#/components/schemas/VirtualAccountChannelProperties' - alternative_display_types: - description: Alternative display requested for the virtual account - items: - enum: - - QR_STRING - type: string - type: array - required: - - channel_code - - channel_properties - type: object - VirtualAccountAlternativeDisplay: - description: Alternative Display Object - properties: - type: - description: Type of the alternative display - enum: - - QR_STRING - readOnly: true - type: string - data: - description: Data payload of the given alternative display - type: string - type: object - VirtualAccount: - allOf: - - $ref: '#/components/schemas/VirtualAccountParameters' - - $ref: '#/components/schemas/VirtualAccount_allOf' - description: Virtual Account Payment Method Details - nullable: true - type: object - QRCodeChannelCode: - description: QR Code Channel Code - enum: - - DANA - - RCBC - - LINKAJA - - PROMPTPAY - example: RCBC - nullable: true - type: string - QRCodeChannelProperties: - description: QR Code Channel Properties - example: - qr_string: 0002010102##########CO.XENDIT.WWW011893600#######14220002152#####414220010303TTT####015CO.XENDIT.WWW02180000000000000000000TTT52045######ID5911XenditQRIS6007Jakarta6105121606##########3k1mOnF73h11111111#3k1mOnF73h6v53033605401163040BDB - expires_at: 2022-01-01T00:00:00Z - nullable: false - properties: - qr_string: - type: string - expires_at: - example: 2022-01-01T00:00:00Z - format: date-time - type: string - type: object - QRCodeParameters: - example: - channel_properties: - qr_string: 0002010102##########CO.XENDIT.WWW011893600#######14220002152#####414220010303TTT####015CO.XENDIT.WWW02180000000000000000000TTT52045######ID5911XenditQRIS6007Jakarta6105121606##########3k1mOnF73h11111111#3k1mOnF73h6v53033605401163040BDB - expires_at: 2022-01-01T00:00:00Z - channel_code: RCBC - nullable: true - properties: - channel_code: - $ref: '#/components/schemas/QRCodeChannelCode' - channel_properties: - $ref: '#/components/schemas/QRCodeChannelProperties' - type: object - QRCode: - allOf: - - $ref: '#/components/schemas/QRCodeParameters' - description: QRCode Payment Method Details - nullable: true - type: object - PaymentMethodReusability: - enum: - - MULTIPLE_USE - - ONE_TIME_USE - type: string - PaymentMethodStatus: - enum: - - ACTIVE - - INACTIVE - - PENDING - - EXPIRED - - FAILED - type: string - Object: - nullable: true - type: object - PaymentMethod: - example: - metadata: "{}" - reference_id: reference_id - created: created - over_the_counter: null - description: description - reusability: null - type: null - direct_debit: null - ewallet: null - virtual_account: null - qr_code: null - id: id - updated: updated - card: - currency: null - channel_properties: - cardonfile_type: UNSCHEDULED - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - card_information: - expiry_month: expiry_month - country: country - token_id: token_id - fingerprint: fingerprint - masked_card_number: masked_card_number - cardholder_name: cardholder_name - type: type - expiry_year: expiry_year - issuer: issuer - network: VISA - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: CHALLENGE - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - status: null - nullable: false - properties: - id: - type: string - type: - $ref: '#/components/schemas/PaymentMethodType' - created: - type: string - updated: - type: string - description: - nullable: true - type: string - reference_id: - type: string - card: - $ref: '#/components/schemas/Card' - direct_debit: - $ref: '#/components/schemas/DirectDebit' - ewallet: - $ref: '#/components/schemas/EWallet' - over_the_counter: - $ref: '#/components/schemas/OverTheCounter' - virtual_account: - $ref: '#/components/schemas/VirtualAccount' - qr_code: - $ref: '#/components/schemas/QRCode' - reusability: - $ref: '#/components/schemas/PaymentMethodReusability' - status: - $ref: '#/components/schemas/PaymentMethodStatus' - metadata: - nullable: true - type: object - required: - - id - - reusability - - status - - type - type: object - PaymentRequestCaptureMethod: - enum: - - AUTOMATIC - - MANUAL - nullable: true - type: string - PaymentRequestInitiator: - enum: - - CUSTOMER - - MERCHANT - nullable: true - type: string - PaymentRequestCardVerificationResultsThreeDeeSecure: - example: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: three_d_secure_flow - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - nullable: true - properties: - three_d_secure_flow: - type: string - eci_code: - type: string - three_d_secure_result: - type: string - three_d_secure_result_reason: - nullable: true - type: string - three_d_secure_version: - type: string - type: object - PaymentRequestCardVerificationResults: - example: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: three_d_secure_flow - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - nullable: true - properties: - three_d_secure: - $ref: '#/components/schemas/PaymentRequestCardVerificationResultsThreeDeeSecure' - cvv_result: - nullable: true - type: string - address_verification_result: - nullable: true - type: string - required: - - three_d_secure - type: object - PaymentRequestStatus: - enum: - - PENDING - - REQUIRES_ACTION - - CANCELED - - SUCCEEDED - - FAILED - - VOIDED - - UNKNOWN - - AWAITING_CAPTURE - type: string - PaymentRequestAction: - example: - method: method - url_type: API - action: AUTH - qr_code: qr_code - url: url - properties: - action: - enum: - - AUTH - - RESEND_AUTH - - CAPTURE - - CANCEL - - PRESENT_TO_CUSTOMER - type: string - url_type: - enum: - - API - - WEB - - MOBILE - - DEEPLINK - type: string - method: - nullable: true - type: string - url: - nullable: true - type: string - qr_code: - nullable: true - type: string - required: - - action - - method - - qr_code - - url - - url_type - type: object - PaymentRequestShippingInformation: - example: - country: country - city: city - province_state: province_state - street_line2: street_line2 - street_line1: street_line1 - postal_code: postal_code - nullable: true - properties: - country: - type: string - street_line1: - type: string - street_line2: - type: string - city: - type: string - province_state: - type: string - postal_code: - type: string - required: - - country - type: object - PaymentRequestBasketItem: - example: - metadata: "{}" - quantity: 5.962133916683182 - reference_id: reference_id - sub_category: sub_category - description: description - type: type - url: url - price: 5.637376656633329 - name: name - payer_charged_price: 2.3021358869347655 - currency: currency - payer_charged_currency: payer_charged_currency - category: category - nullable: true - properties: - reference_id: - type: string - name: - type: string - description: - type: string - type: - type: string - category: - type: string - sub_category: - type: string - currency: - type: string - quantity: - format: double - type: number - price: - format: double - type: number - payer_charged_currency: - type: string - payer_charged_price: - format: double - type: number - url: - type: string - metadata: - type: object - required: - - category - - currency - - name - - price - - quantity - type: object - PaymentRequestBasket: - items: - $ref: '#/components/schemas/PaymentRequestBasketItem' - nullable: true - type: array - PaymentRequest: - example: - capture_method: null - country: null - amount: 0.8008281904610115 - failure_code: failure_code - metadata: "{}" - reference_id: reference_id - created: created - min_amount: 6.027456183070403 - initiator: null - description: description - shipping_information: - country: country - city: city - province_state: province_state - street_line2: street_line2 - street_line1: street_line1 - postal_code: postal_code - max_amount: 1.4658129805029452 - currency: null - id: id - customer_id: customer_id - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: three_d_secure_flow - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - updated: updated - business_id: business_id - actions: - - method: method - url_type: API - action: AUTH - qr_code: qr_code - url: url - - method: method - url_type: API - action: AUTH - qr_code: qr_code - url: url - items: - - metadata: "{}" - quantity: 5.962133916683182 - reference_id: reference_id - sub_category: sub_category - description: description - type: type - url: url - price: 5.637376656633329 - name: name - payer_charged_price: 2.3021358869347655 - currency: currency - payer_charged_currency: payer_charged_currency - category: category - - metadata: "{}" - quantity: 5.962133916683182 - reference_id: reference_id - sub_category: sub_category - description: description - type: type - url: url - price: 5.637376656633329 - name: name - payer_charged_price: 2.3021358869347655 - currency: currency - payer_charged_currency: payer_charged_currency - category: category - payment_method: - metadata: "{}" - reference_id: reference_id - created: created - over_the_counter: null - description: description - reusability: null - type: null - direct_debit: null - ewallet: null - virtual_account: null - qr_code: null - id: id - updated: updated - card: - currency: null - channel_properties: - cardonfile_type: UNSCHEDULED - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - card_information: - expiry_month: expiry_month - country: country - token_id: token_id - fingerprint: fingerprint - masked_card_number: masked_card_number - cardholder_name: cardholder_name - type: type - expiry_year: expiry_year - issuer: issuer - network: VISA - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: CHALLENGE - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - status: null - customer: "{}" - status: null - nullable: false - properties: - id: - type: string - created: - type: string - updated: - type: string - reference_id: - type: string - business_id: - type: string - customer_id: - nullable: true - type: string - customer: - nullable: true - type: object - amount: - format: double - type: number - min_amount: - format: double - nullable: true - type: number - max_amount: - format: double - nullable: true - type: number - country: - $ref: '#/components/schemas/PaymentRequestCountry' - currency: - $ref: '#/components/schemas/PaymentRequestCurrency' - payment_method: - $ref: '#/components/schemas/PaymentMethod' - description: - nullable: true - type: string - failure_code: - nullable: true - type: string - capture_method: - $ref: '#/components/schemas/PaymentRequestCaptureMethod' - initiator: - $ref: '#/components/schemas/PaymentRequestInitiator' - card_verification_results: - $ref: '#/components/schemas/PaymentRequestCardVerificationResults' - status: - $ref: '#/components/schemas/PaymentRequestStatus' - actions: - items: - $ref: '#/components/schemas/PaymentRequestAction' - type: array - metadata: - nullable: true - type: object - shipping_information: - $ref: '#/components/schemas/PaymentRequestShippingInformation' - items: - items: - $ref: '#/components/schemas/PaymentRequestBasketItem' - nullable: true - type: array - required: - - business_id - - created - - currency - - id - - payment_method - - reference_id - - status - - updated - type: object - PaymentRequestListResponse: - example: - data: - - capture_method: null - country: null - amount: 0.8008281904610115 - failure_code: failure_code - metadata: "{}" - reference_id: reference_id - created: created - min_amount: 6.027456183070403 - initiator: null - description: description - shipping_information: - country: country - city: city - province_state: province_state - street_line2: street_line2 - street_line1: street_line1 - postal_code: postal_code - max_amount: 1.4658129805029452 - currency: null - id: id - customer_id: customer_id - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: three_d_secure_flow - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - updated: updated - business_id: business_id - actions: - - method: method - url_type: API - action: AUTH - qr_code: qr_code - url: url - - method: method - url_type: API - action: AUTH - qr_code: qr_code - url: url - items: - - metadata: "{}" - quantity: 5.962133916683182 - reference_id: reference_id - sub_category: sub_category - description: description - type: type - url: url - price: 5.637376656633329 - name: name - payer_charged_price: 2.3021358869347655 - currency: currency - payer_charged_currency: payer_charged_currency - category: category - - metadata: "{}" - quantity: 5.962133916683182 - reference_id: reference_id - sub_category: sub_category - description: description - type: type - url: url - price: 5.637376656633329 - name: name - payer_charged_price: 2.3021358869347655 - currency: currency - payer_charged_currency: payer_charged_currency - category: category - payment_method: - metadata: "{}" - reference_id: reference_id - created: created - over_the_counter: null - description: description - reusability: null - type: null - direct_debit: null - ewallet: null - virtual_account: null - qr_code: null - id: id - updated: updated - card: - currency: null - channel_properties: - cardonfile_type: UNSCHEDULED - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - card_information: - expiry_month: expiry_month - country: country - token_id: token_id - fingerprint: fingerprint - masked_card_number: masked_card_number - cardholder_name: cardholder_name - type: type - expiry_year: expiry_year - issuer: issuer - network: VISA - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: CHALLENGE - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - status: null - customer: "{}" - status: null - - capture_method: null - country: null - amount: 0.8008281904610115 - failure_code: failure_code - metadata: "{}" - reference_id: reference_id - created: created - min_amount: 6.027456183070403 - initiator: null - description: description - shipping_information: - country: country - city: city - province_state: province_state - street_line2: street_line2 - street_line1: street_line1 - postal_code: postal_code - max_amount: 1.4658129805029452 - currency: null - id: id - customer_id: customer_id - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: three_d_secure_flow - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - updated: updated - business_id: business_id - actions: - - method: method - url_type: API - action: AUTH - qr_code: qr_code - url: url - - method: method - url_type: API - action: AUTH - qr_code: qr_code - url: url - items: - - metadata: "{}" - quantity: 5.962133916683182 - reference_id: reference_id - sub_category: sub_category - description: description - type: type - url: url - price: 5.637376656633329 - name: name - payer_charged_price: 2.3021358869347655 - currency: currency - payer_charged_currency: payer_charged_currency - category: category - - metadata: "{}" - quantity: 5.962133916683182 - reference_id: reference_id - sub_category: sub_category - description: description - type: type - url: url - price: 5.637376656633329 - name: name - payer_charged_price: 2.3021358869347655 - currency: currency - payer_charged_currency: payer_charged_currency - category: category - payment_method: - metadata: "{}" - reference_id: reference_id - created: created - over_the_counter: null - description: description - reusability: null - type: null - direct_debit: null - ewallet: null - virtual_account: null - qr_code: null - id: id - updated: updated - card: - currency: null - channel_properties: - cardonfile_type: UNSCHEDULED - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - card_information: - expiry_month: expiry_month - country: country - token_id: token_id - fingerprint: fingerprint - masked_card_number: masked_card_number - cardholder_name: cardholder_name - type: type - expiry_year: expiry_year - issuer: issuer - network: VISA - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: CHALLENGE - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - status: null - customer: "{}" - status: null - has_more: true - properties: - data: - items: - $ref: '#/components/schemas/PaymentRequest' - nullable: false - type: array - has_more: - type: boolean - required: - - data - - has_more - type: object - PaymentMethodParameters: - example: - ewallet: - channel_properties: - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - cancel_return_url: https://redirect.me/cancel - channel_code: PAYMAYA - reference_id: reference_id - over_the_counter: - amount: 6.027456183070403 - currency: null - channel_properties: - payment_code: "12345" - customer_name: Rika Sutanto - expires_at: 2022-01-01T00:00:00Z - channel_code: 7ELEVEN_CLIQQ - virtual_account: - amount: 5.637376656633329 - min_amount: 1.4658129805029452 - alternative_display_types: - - QR_STRING - - QR_STRING - max_amount: 5.962133916683182 - currency: null - channel_properties: - customer_name: Rika Sutanto - description: Payment for SSS - expires_at: 2022-01-01T00:00:00Z - channel_code: BCA - reusability: null - description: description - qr_code: - channel_properties: - qr_string: 0002010102##########CO.XENDIT.WWW011893600#######14220002152#####414220010303TTT####015CO.XENDIT.WWW02180000000000000000000TTT52045######ID5911XenditQRIS6007Jakarta6105121606##########3k1mOnF73h11111111#3k1mOnF73h6v53033605401163040BDB - expires_at: 2022-01-01T00:00:00Z - channel_code: RCBC - type: null - direct_debit: - channel_properties: null - channel_code: BRI - type: null - nullable: false - properties: - type: - $ref: '#/components/schemas/PaymentMethodType' - reusability: - $ref: '#/components/schemas/PaymentMethodReusability' - description: - nullable: true - type: string - reference_id: - type: string - direct_debit: - $ref: '#/components/schemas/DirectDebitParameters' - ewallet: - $ref: '#/components/schemas/EWalletParameters' - over_the_counter: - $ref: '#/components/schemas/OverTheCounterParameters' - virtual_account: - $ref: '#/components/schemas/VirtualAccountParameters' - qr_code: - $ref: '#/components/schemas/QRCodeParameters' - required: - - reusability - - type - type: object - PaymentRequestChannelProperties: - nullable: true - properties: - success_return_url: - description: URL where the end-customer is redirected if the authorization - is successful - example: https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 - pattern: "^\\S{1,255}:\\/\\/\\S{0,1000}$" - type: string - failure_return_url: - description: URL where the end-customer is redirected if the authorization - failed - example: https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 - pattern: "^\\S{1,255}:\\/\\/\\S{0,1000}$" - type: string - cancel_return_url: - description: URL where the end-customer is redirected if the authorization - cancelled - example: https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 - pattern: "^\\S{1,255}:\\/\\/\\S{0,1000}$" - type: string - redeem_points: - description: "REDEEM_NONE will not use any point, REDEEM_ALL will use all\ - \ available points before cash balance is used. For OVO and ShopeePay\ - \ tokenized payment use only." - example: REDEEM_NONE - type: string - require_auth: - description: "Toggle used to require end-customer to input undergo OTP validation\ - \ before completing a payment. OTP will always be required for transactions\ - \ greater than 1,000,000 IDR. For BRI tokenized payment use only." - example: false - type: boolean - merchant_id_tag: - description: 'Tag for a Merchant ID that you want to associate this payment - with. For merchants using their own MIDs to specify which MID they want - to use ' - type: string - cardonfile_type: - description: Type of “credential-on-file” / “card-on-file” payment being - made. Indicate that this payment uses a previously linked Payment Method - for charging. - example: RECURRING - nullable: true - type: string - type: object - PaymentRequestParameters: - example: - capture_method: null - amount: 0.8008281904610115 - metadata: "{}" - reference_id: reference_id - initiator: null - description: description - payment_method_id: payment_method_id - shipping_information: - country: country - city: city - province_state: province_state - street_line2: street_line2 - street_line1: street_line1 - postal_code: postal_code - currency: null - channel_properties: null - customer_id: customer_id - items: - - metadata: "{}" - quantity: 5.962133916683182 - reference_id: reference_id - sub_category: sub_category - description: description - type: type - url: url - price: 5.637376656633329 - name: name - payer_charged_price: 2.3021358869347655 - currency: currency - payer_charged_currency: payer_charged_currency - category: category - - metadata: "{}" - quantity: 5.962133916683182 - reference_id: reference_id - sub_category: sub_category - description: description - type: type - url: url - price: 5.637376656633329 - name: name - payer_charged_price: 2.3021358869347655 - currency: currency - payer_charged_currency: payer_charged_currency - category: category - payment_method: - ewallet: - channel_properties: - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - cancel_return_url: https://redirect.me/cancel - channel_code: PAYMAYA - reference_id: reference_id - over_the_counter: - amount: 6.027456183070403 - currency: null - channel_properties: - payment_code: "12345" - customer_name: Rika Sutanto - expires_at: 2022-01-01T00:00:00Z - channel_code: 7ELEVEN_CLIQQ - virtual_account: - amount: 5.637376656633329 - min_amount: 1.4658129805029452 - alternative_display_types: - - QR_STRING - - QR_STRING - max_amount: 5.962133916683182 - currency: null - channel_properties: - customer_name: Rika Sutanto - description: Payment for SSS - expires_at: 2022-01-01T00:00:00Z - channel_code: BCA - reusability: null - description: description - qr_code: - channel_properties: - qr_string: 0002010102##########CO.XENDIT.WWW011893600#######14220002152#####414220010303TTT####015CO.XENDIT.WWW02180000000000000000000TTT52045######ID5911XenditQRIS6007Jakarta6105121606##########3k1mOnF73h11111111#3k1mOnF73h6v53033605401163040BDB - expires_at: 2022-01-01T00:00:00Z - channel_code: RCBC - type: null - direct_debit: - channel_properties: null - channel_code: BRI - type: null - customer: "{}" - nullable: false - properties: - reference_id: - type: string - amount: - format: double - type: number - currency: - $ref: '#/components/schemas/PaymentRequestCurrency' - payment_method: - $ref: '#/components/schemas/PaymentMethodParameters' - description: - nullable: true - type: string - capture_method: - $ref: '#/components/schemas/PaymentRequestCaptureMethod' - initiator: - $ref: '#/components/schemas/PaymentRequestInitiator' - payment_method_id: - type: string - channel_properties: - $ref: '#/components/schemas/PaymentRequestParameters_channel_properties' - shipping_information: - $ref: '#/components/schemas/PaymentRequestShippingInformation' - items: - items: - $ref: '#/components/schemas/PaymentRequestBasketItem' - nullable: true - type: array - customer_id: - nullable: true - type: string - customer: - nullable: true - type: object - metadata: - nullable: true - type: object - required: - - currency - type: object - PaymentRequestAuthParameters: - example: - auth_code: auth_code - nullable: false - properties: - auth_code: - type: string - required: - - auth_code - type: object - Capture: - example: - failure_code: failure_code - metadata: "{}" - reference_id: reference_id - created: created - payment_request_id: payment_request_id - payment_id: payment_id - captured_amount: 6.027456183070403 - authorized_amount: 0.8008281904610115 - currency: currency - channel_properties: "{}" - id: id - customer_id: customer_id - updated: updated - payment_method: - metadata: "{}" - reference_id: reference_id - created: created - over_the_counter: null - description: description - reusability: null - type: null - direct_debit: null - ewallet: null - virtual_account: null - qr_code: null - id: id - updated: updated - card: - currency: null - channel_properties: - cardonfile_type: UNSCHEDULED - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - card_information: - expiry_month: expiry_month - country: country - token_id: token_id - fingerprint: fingerprint - masked_card_number: masked_card_number - cardholder_name: cardholder_name - type: type - expiry_year: expiry_year - issuer: issuer - network: VISA - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: CHALLENGE - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - status: null - status: SUCCEEDED - nullable: false - properties: - id: - type: string - payment_request_id: - type: string - payment_id: - type: string - reference_id: - type: string - currency: - type: string - authorized_amount: - format: double - type: number - captured_amount: - format: double - type: number - status: - enum: - - SUCCEEDED - - FAILED - type: string - payment_method: - $ref: '#/components/schemas/PaymentMethod' - failure_code: - nullable: true - type: string - customer_id: - nullable: true - type: string - metadata: - nullable: true - type: object - channel_properties: - nullable: true - type: object - created: - type: string - updated: - type: string - required: - - authorized_amount - - captured_amount - - channel_properties - - created - - currency - - customer_id - - failure_code - - id - - metadata - - payment_id - - payment_method - - payment_request_id - - reference_id - - status - - updated - type: object - CaptureList: - items: - $ref: '#/components/schemas/Capture' - nullable: false - type: array - CaptureListResponse: - example: - data: - - failure_code: failure_code - metadata: "{}" - reference_id: reference_id - created: created - payment_request_id: payment_request_id - payment_id: payment_id - captured_amount: 6.027456183070403 - authorized_amount: 0.8008281904610115 - currency: currency - channel_properties: "{}" - id: id - customer_id: customer_id - updated: updated - payment_method: - metadata: "{}" - reference_id: reference_id - created: created - over_the_counter: null - description: description - reusability: null - type: null - direct_debit: null - ewallet: null - virtual_account: null - qr_code: null - id: id - updated: updated - card: - currency: null - channel_properties: - cardonfile_type: UNSCHEDULED - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - card_information: - expiry_month: expiry_month - country: country - token_id: token_id - fingerprint: fingerprint - masked_card_number: masked_card_number - cardholder_name: cardholder_name - type: type - expiry_year: expiry_year - issuer: issuer - network: VISA - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: CHALLENGE - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - status: null - status: SUCCEEDED - - failure_code: failure_code - metadata: "{}" - reference_id: reference_id - created: created - payment_request_id: payment_request_id - payment_id: payment_id - captured_amount: 6.027456183070403 - authorized_amount: 0.8008281904610115 - currency: currency - channel_properties: "{}" - id: id - customer_id: customer_id - updated: updated - payment_method: - metadata: "{}" - reference_id: reference_id - created: created - over_the_counter: null - description: description - reusability: null - type: null - direct_debit: null - ewallet: null - virtual_account: null - qr_code: null - id: id - updated: updated - card: - currency: null - channel_properties: - cardonfile_type: UNSCHEDULED - success_return_url: https://redirect.me/good - failure_return_url: https://redirect.me/bad - card_information: - expiry_month: expiry_month - country: country - token_id: token_id - fingerprint: fingerprint - masked_card_number: masked_card_number - cardholder_name: cardholder_name - type: type - expiry_year: expiry_year - issuer: issuer - network: VISA - card_verification_results: - cvv_result: cvv_result - address_verification_result: address_verification_result - three_d_secure: - eci_code: eci_code - three_d_secure_version: three_d_secure_version - three_d_secure_flow: CHALLENGE - three_d_secure_result: three_d_secure_result - three_d_secure_result_reason: three_d_secure_result_reason - status: null - status: SUCCEEDED - has_more: true - properties: - data: - items: - $ref: '#/components/schemas/Capture' - nullable: false - type: array - has_more: - type: boolean - required: - - data - - has_more - type: object - CaptureParameters: - example: - reference_id: reference_id - capture_amount: 0.8008281904610115 - nullable: false - properties: - reference_id: - nullable: true - type: string - capture_amount: - format: double - type: number - required: - - capture_amount - type: object - DirectDebit_allOf: - properties: - type: - $ref: '#/components/schemas/DirectDebitType' - bank_account: - $ref: '#/components/schemas/DirectDebitBankAccount' - debit_card: - $ref: '#/components/schemas/DirectDebitDebitCard' - required: - - type - type: object - example: null - EWallet_allOf: - properties: - account: - $ref: '#/components/schemas/EWalletAccount' - type: object - example: null - VirtualAccount_allOf: - properties: - alternative_displays: - items: - $ref: '#/components/schemas/VirtualAccountAlternativeDisplay' - type: array - type: object - example: null - PaymentRequestParameters_channel_properties_allOf: - properties: - cvv: - description: Three digit code written on the back of the card (usually called - CVV/CVN). - example: "123" - type: string - type: object - PaymentRequestParameters_channel_properties: - allOf: - - $ref: '#/components/schemas/PaymentRequestChannelProperties' - - $ref: '#/components/schemas/PaymentRequestParameters_channel_properties_allOf' diff --git a/docs/PaymentRequest/Capture.md b/docs/PaymentRequest/Capture.md index 4bb2434..e0905f2 100644 --- a/docs/PaymentRequest/Capture.md +++ b/docs/PaymentRequest/Capture.md @@ -4,25 +4,26 @@ ```php use Xendit\PaymentRequest\Capture; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **id** | **string** | | null | | -| **payment_request_id** | **string** | | null | | -| **payment_id** | **string** | | null | | -| **reference_id** | **string** | | null | | -| **currency** | **string** | | null | | -| **authorized_amount** | **float** | | null | | -| **captured_amount** | **float** | | null | | -| **status** | **string** | | null | | -| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | | null | | -| **failure_code** | **string** | | null | | -| **customer_id** | **string** | | null | | -| **metadata** | **object** | | null | | -| **channel_properties** | **object** | | null | | -| **created** | **string** | | null | | -| **updated** | **string** | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | ☑️ | | null | +| **payment_request_id** | **string** | ☑️ | | null | +| **payment_id** | **string** | ☑️ | | null | +| **reference_id** | **string** | ☑️ | | null | +| **currency** | **string** | ☑️ | | null | +| **authorized_amount** | **float** | ☑️ | | null | +| **captured_amount** | **float** | ☑️ | | null | +| **status** | **string** | ☑️ | | null | +| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | ☑️ | | null | +| **failure_code** | **string** | ☑️ | | null | +| **customer_id** | **string** | ☑️ | | null | +| **metadata** | **object** | ☑️ | | null | +| **channel_properties** | **object** | ☑️ | | null | +| **created** | **string** | ☑️ | | null | +| **updated** | **string** | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/CaptureListResponse.md b/docs/PaymentRequest/CaptureListResponse.md index bd5449b..292c5ec 100644 --- a/docs/PaymentRequest/CaptureListResponse.md +++ b/docs/PaymentRequest/CaptureListResponse.md @@ -4,12 +4,13 @@ ```php use Xendit\PaymentRequest\CaptureListResponse; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **data** | [**array**](Capture.md) | | null | | -| **has_more** | **bool** | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **data** | [**array**](Capture.md) | ☑️ | | null | +| **has_more** | **bool** | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/CaptureParameters.md b/docs/PaymentRequest/CaptureParameters.md index 3de9c1f..baaccb4 100644 --- a/docs/PaymentRequest/CaptureParameters.md +++ b/docs/PaymentRequest/CaptureParameters.md @@ -4,12 +4,13 @@ ```php use Xendit\PaymentRequest\CaptureParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **reference_id** | **string** | | null | [optional] | -| **capture_amount** | **float** | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **reference_id** | **string** | | | null | +| **capture_amount** | **float** | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/Card.md b/docs/PaymentRequest/Card.md index dfeecdb..d080325 100644 --- a/docs/PaymentRequest/Card.md +++ b/docs/PaymentRequest/Card.md @@ -4,14 +4,15 @@ ```php use Xendit\PaymentRequest\Card; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | null | | -| **channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | | null | | -| **card_information** | [**CardInformation**](CardInformation.md) | | null | | -| **card_verification_results** | [**CardVerificationResults**](CardVerificationResults.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | ☑️ | | null | +| **channel_properties** | [**CardChannelProperties**](CardChannelProperties.md) | ☑️ | | null | +| **card_information** | [**CardInformation**](CardInformation.md) | ☑️ | | null | +| **card_verification_results** | [**CardVerificationResults**](CardVerificationResults.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/CardChannelProperties.md b/docs/PaymentRequest/CardChannelProperties.md index 59a9ea2..79225aa 100644 --- a/docs/PaymentRequest/CardChannelProperties.md +++ b/docs/PaymentRequest/CardChannelProperties.md @@ -1,18 +1,19 @@ # # CardChannelProperties - +Card Channel Properties ```php use Xendit\PaymentRequest\CardChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **skip_three_d_secure** | **bool** | To indicate whether to perform 3DS during the linking phase | false | [optional] | -| **success_return_url** | **string** | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **failure_return_url** | **string** | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **cardonfile_type** | **string** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | RECURRING | [optional] | -| **merchant_id_tag** | **string** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **skip_three_d_secure** | **bool** | | To indicate whether to perform 3DS during the linking phase | false | +| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **cardonfile_type** | **string** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | RECURRING | +| **merchant_id_tag** | **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/CardInformation.md b/docs/PaymentRequest/CardInformation.md index 7a27c73..c4ee8ee 100644 --- a/docs/PaymentRequest/CardInformation.md +++ b/docs/PaymentRequest/CardInformation.md @@ -1,23 +1,24 @@ # # CardInformation - +Card Information ```php use Xendit\PaymentRequest\CardInformation; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **token_id** | **string** | | null | | -| **masked_card_number** | **string** | 1st 6 and last 4 digits of the card | null | | -| **expiry_month** | **string** | Card expiry month in MM format | null | | -| **expiry_year** | **string** | Card expiry month in YY format | null | | -| **cardholder_name** | **string** | Cardholder name | null | [optional] | -| **fingerprint** | **string** | | null | [optional] | -| **type** | **string** | | null | [optional] | -| **network** | **string** | | null | [optional] | -| **country** | **string** | | null | [optional] | -| **issuer** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **token_id** | **string** | ☑️ | | null | +| **masked_card_number** | **string** | ☑️ | 1st 6 and last 4 digits of the card | null | +| **expiry_month** | **string** | ☑️ | Card expiry month in MM format | null | +| **expiry_year** | **string** | ☑️ | Card expiry month in YY format | null | +| **cardholder_name** | **string** | | Cardholder name | null | +| **fingerprint** | **string** | | | null | +| **type** | **string** | | | null | +| **network** | **string** | | | null | +| **country** | **string** | | | null | +| **issuer** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/CardVerificationResults.md b/docs/PaymentRequest/CardVerificationResults.md index cf65823..257dce6 100644 --- a/docs/PaymentRequest/CardVerificationResults.md +++ b/docs/PaymentRequest/CardVerificationResults.md @@ -4,13 +4,14 @@ ```php use Xendit\PaymentRequest\CardVerificationResults; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **three_d_secure** | [**CardVerificationResultsThreeDSecure**](CardVerificationResultsThreeDSecure.md) | | null | [optional] | -| **cvv_result** | **string** | | null | [optional] | -| **address_verification_result** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **three_d_secure** | [**CardVerificationResultsThreeDSecure**](CardVerificationResultsThreeDSecure.md) | | | null | +| **cvv_result** | **string** | | | null | +| **address_verification_result** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/CardVerificationResultsThreeDSecure.md b/docs/PaymentRequest/CardVerificationResultsThreeDSecure.md index ea58533..95c4aec 100644 --- a/docs/PaymentRequest/CardVerificationResultsThreeDSecure.md +++ b/docs/PaymentRequest/CardVerificationResultsThreeDSecure.md @@ -4,15 +4,16 @@ ```php use Xendit\PaymentRequest\CardVerificationResultsThreeDSecure; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **three_d_secure_flow** | **string** | | null | [optional] | -| **eci_code** | **string** | | null | [optional] | -| **three_d_secure_result** | **string** | | null | [optional] | -| **three_d_secure_result_reason** | **string** | | null | [optional] | -| **three_d_secure_version** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **three_d_secure_flow** | **string** | | | null | +| **eci_code** | **string** | | | null | +| **three_d_secure_result** | **string** | | | null | +| **three_d_secure_result_reason** | **string** | | | null | +| **three_d_secure_version** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebit.md b/docs/PaymentRequest/DirectDebit.md index 5e4b337..1c85a5b 100644 --- a/docs/PaymentRequest/DirectDebit.md +++ b/docs/PaymentRequest/DirectDebit.md @@ -1,18 +1,19 @@ # # DirectDebit - +Direct Debit Payment Method Details ```php use Xendit\PaymentRequest\DirectDebit; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | | null | | -| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | | null | | -| **type** | [**DirectDebitType**](DirectDebitType.md) | | null | | -| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | null | [optional] | -| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | ☑️ | | null | +| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | ☑️ | | null | +| **type** | [**DirectDebitType**](DirectDebitType.md) | ☑️ | | null | +| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | | null | +| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebitAllOf.md b/docs/PaymentRequest/DirectDebitAllOf.md index e74d4d9..07534e9 100644 --- a/docs/PaymentRequest/DirectDebitAllOf.md +++ b/docs/PaymentRequest/DirectDebitAllOf.md @@ -4,13 +4,14 @@ ```php use Xendit\PaymentRequest\DirectDebitAllOf; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **type** | [**DirectDebitType**](DirectDebitType.md) | | null | | -| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | null | [optional] | -| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | [**DirectDebitType**](DirectDebitType.md) | ☑️ | | null | +| **bank_account** | [**DirectDebitBankAccount**](DirectDebitBankAccount.md) | | | null | +| **debit_card** | [**DirectDebitDebitCard**](DirectDebitDebitCard.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebitBankAccount.md b/docs/PaymentRequest/DirectDebitBankAccount.md index 51cebaa..0e2cec7 100644 --- a/docs/PaymentRequest/DirectDebitBankAccount.md +++ b/docs/PaymentRequest/DirectDebitBankAccount.md @@ -4,12 +4,13 @@ ```php use Xendit\PaymentRequest\DirectDebitBankAccount; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **masked_bank_account_number** | **string** | | 233eca40ff303ba15bf39052ca3102c6 | [optional] | -| **bank_account_hash** | **string** | | 233eca40ff303ba15bf39052ca3102c6 | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **masked_bank_account_number** | **string** | | | 233eca40ff303ba15bf39052ca3102c6 | +| **bank_account_hash** | **string** | | | 233eca40ff303ba15bf39052ca3102c6 | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebitChannelCode.md b/docs/PaymentRequest/DirectDebitChannelCode.md index 603a8cb..1585a08 100644 --- a/docs/PaymentRequest/DirectDebitChannelCode.md +++ b/docs/PaymentRequest/DirectDebitChannelCode.md @@ -1,10 +1,11 @@ # # DirectDebitChannelCode - +Direct Debit Channel Code ```php use Xendit\PaymentRequest\DirectDebitChannelCode; ``` + ## Enum @@ -136,6 +137,6 @@ use Xendit\PaymentRequest\DirectDebitChannelCode; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebitChannelProperties.md b/docs/PaymentRequest/DirectDebitChannelProperties.md index 70cbb73..962246b 100644 --- a/docs/PaymentRequest/DirectDebitChannelProperties.md +++ b/docs/PaymentRequest/DirectDebitChannelProperties.md @@ -4,18 +4,19 @@ ```php use Xendit\PaymentRequest\DirectDebitChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **mobile_number** | **string** | Mobile number of the customer registered to the partner channel | +62818555988 | [optional] | -| **success_return_url** | **string** | | null | [optional] | -| **failure_return_url** | **string** | | null | [optional] | -| **identity_document_number** | **string** | | null | [optional] | -| **account_number** | **string** | | 1234567890 | [optional] | -| **card_last_four** | **string** | Last four digits of the debit card | 8888 | [optional] | -| **card_expiry** | **string** | Expiry month and year of the debit card (in MM/YY format) | 06/24 | [optional] | -| **email** | **string** | Email address of the customer that is registered to the partner channel | test.email@xendit.co | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **mobile_number** | **string** | | Mobile number of the customer registered to the partner channel | +62818555988 | +| **success_return_url** | **string** | | | null | +| **failure_return_url** | **string** | | | null | +| **identity_document_number** | **string** | | | null | +| **account_number** | **string** | | | 1234567890 | +| **card_last_four** | **string** | | Last four digits of the debit card | 8888 | +| **card_expiry** | **string** | | Expiry month and year of the debit card (in MM/YY format) | 06/24 | +| **email** | **string** | | Email address of the customer that is registered to the partner channel | test.email@xendit.co | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebitChannelPropertiesBankAccount.md b/docs/PaymentRequest/DirectDebitChannelPropertiesBankAccount.md index 3e9f3d7..3535bf9 100644 --- a/docs/PaymentRequest/DirectDebitChannelPropertiesBankAccount.md +++ b/docs/PaymentRequest/DirectDebitChannelPropertiesBankAccount.md @@ -1,17 +1,18 @@ # # DirectDebitChannelPropertiesBankAccount - +Direct Debit Bank Account Channel Properties ```php use Xendit\PaymentRequest\DirectDebitChannelPropertiesBankAccount; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **success_return_url** | **string** | | null | [optional] | -| **failure_return_url** | **string** | | null | [optional] | -| **mobile_number** | **string** | | null | [optional] | -| **identity_document_number** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **string** | | | null | +| **failure_return_url** | **string** | | | null | +| **mobile_number** | **string** | | | null | +| **identity_document_number** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.md b/docs/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.md index 084e268..ab4aee6 100644 --- a/docs/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.md +++ b/docs/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.md @@ -1,16 +1,17 @@ # # DirectDebitChannelPropertiesBankRedirect - +Direct Debit Bank Account Channel Properties ```php use Xendit\PaymentRequest\DirectDebitChannelPropertiesBankRedirect; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **mobile_number** | **string** | Mobile number of the customer that is registered to channel | null | [optional] | -| **success_return_url** | **string** | | null | [optional] | -| **failure_return_url** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **mobile_number** | **string** | | Mobile number of the customer that is registered to channel | null | +| **success_return_url** | **string** | | | null | +| **failure_return_url** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebitChannelPropertiesDebitCard.md b/docs/PaymentRequest/DirectDebitChannelPropertiesDebitCard.md index ae586d6..1423e7f 100644 --- a/docs/PaymentRequest/DirectDebitChannelPropertiesDebitCard.md +++ b/docs/PaymentRequest/DirectDebitChannelPropertiesDebitCard.md @@ -1,18 +1,19 @@ # # DirectDebitChannelPropertiesDebitCard - +Direct Debit Debit Card Channel Properties ```php use Xendit\PaymentRequest\DirectDebitChannelPropertiesDebitCard; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **mobile_number** | **string** | Mobile number of the customer registered to the partner channel | +62818555988 | [optional] | -| **account_number** | **string** | | 1234567890 | [optional] | -| **card_last_four** | **string** | Last four digits of the debit card | 8888 | [optional] | -| **card_expiry** | **string** | Expiry month and year of the debit card (in MM/YY format) | 06/24 | [optional] | -| **email** | **string** | Email address of the customer that is registered to the partner channel | test.email@xendit.co | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **mobile_number** | **string** | | Mobile number of the customer registered to the partner channel | +62818555988 | +| **account_number** | **string** | | | 1234567890 | +| **card_last_four** | **string** | | Last four digits of the debit card | 8888 | +| **card_expiry** | **string** | | Expiry month and year of the debit card (in MM/YY format) | 06/24 | +| **email** | **string** | | Email address of the customer that is registered to the partner channel | test.email@xendit.co | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebitDebitCard.md b/docs/PaymentRequest/DirectDebitDebitCard.md index b49fa1a..4d6a957 100644 --- a/docs/PaymentRequest/DirectDebitDebitCard.md +++ b/docs/PaymentRequest/DirectDebitDebitCard.md @@ -4,15 +4,16 @@ ```php use Xendit\PaymentRequest\DirectDebitDebitCard; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **mobile_number** | **string** | Mobile number of the customer registered to the partner channel | +62818555988 | [optional] | -| **account_number** | **string** | | 1234567890 | [optional] | -| **card_last_four** | **string** | Last four digits of the debit card | 8888 | [optional] | -| **card_expiry** | **string** | Expiry month and year of the debit card (in MM/YY format) | 06/24 | [optional] | -| **email** | **string** | Email address of the customer that is registered to the partner channel | test.email@xendit.co | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **mobile_number** | **string** | | Mobile number of the customer registered to the partner channel | +62818555988 | +| **account_number** | **string** | | | 1234567890 | +| **card_last_four** | **string** | | Last four digits of the debit card | 8888 | +| **card_expiry** | **string** | | Expiry month and year of the debit card (in MM/YY format) | 06/24 | +| **email** | **string** | | Email address of the customer that is registered to the partner channel | test.email@xendit.co | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebitParameters.md b/docs/PaymentRequest/DirectDebitParameters.md index 4031376..3a6b7d0 100644 --- a/docs/PaymentRequest/DirectDebitParameters.md +++ b/docs/PaymentRequest/DirectDebitParameters.md @@ -4,13 +4,14 @@ ```php use Xendit\PaymentRequest\DirectDebitParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | | null | | -| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | | null | | -| **type** | [**DirectDebitType**](DirectDebitType.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**DirectDebitChannelCode**](DirectDebitChannelCode.md) | ☑️ | | null | +| **channel_properties** | [**DirectDebitChannelProperties**](DirectDebitChannelProperties.md) | ☑️ | | null | +| **type** | [**DirectDebitType**](DirectDebitType.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/DirectDebitType.md b/docs/PaymentRequest/DirectDebitType.md index 8bb6348..4f0703f 100644 --- a/docs/PaymentRequest/DirectDebitType.md +++ b/docs/PaymentRequest/DirectDebitType.md @@ -5,6 +5,7 @@ use Xendit\PaymentRequest\DirectDebitType; ``` + ## Enum @@ -16,6 +17,6 @@ use Xendit\PaymentRequest\DirectDebitType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/EWallet.md b/docs/PaymentRequest/EWallet.md index 7d49f6e..6b6c25c 100644 --- a/docs/PaymentRequest/EWallet.md +++ b/docs/PaymentRequest/EWallet.md @@ -1,16 +1,17 @@ # # EWallet - +Ewallet Payment Method Details ```php use Xendit\PaymentRequest\EWallet; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | null | [optional] | -| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | null | [optional] | -| **account** | [**EWalletAccount**](EWalletAccount.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | | null | +| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | | null | +| **account** | [**EWalletAccount**](EWalletAccount.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/EWalletAccount.md b/docs/PaymentRequest/EWalletAccount.md index 00bc58a..d600f16 100644 --- a/docs/PaymentRequest/EWalletAccount.md +++ b/docs/PaymentRequest/EWalletAccount.md @@ -1,17 +1,18 @@ # # EWalletAccount - +EWallet Account Properties ```php use Xendit\PaymentRequest\EWalletAccount; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **name** | **string** | Name of the eWallet account holder. The value is null if unavailableName of the eWallet account holder. The value is null if unavailable | null | [optional] | -| **account_details** | **string** | Identifier from eWallet provider e.g. phone number. The value is null if unavailable | null | [optional] | -| **balance** | **float** | The main balance amount on eWallet account provided from eWallet provider. The value is null if unavailable | null | [optional] | -| **point_balance** | **float** | The point balance amount on eWallet account. Applicable only on some eWallet provider that has point system. The value is null if unavailabl | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **name** | **string** | | Name of the eWallet account holder. The value is null if unavailableName of the eWallet account holder. The value is null if unavailable | null | +| **account_details** | **string** | | Identifier from eWallet provider e.g. phone number. The value is null if unavailable | null | +| **balance** | **float** | | The main balance amount on eWallet account provided from eWallet provider. The value is null if unavailable | null | +| **point_balance** | **float** | | The point balance amount on eWallet account. Applicable only on some eWallet provider that has point system. The value is null if unavailabl | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/EWalletAllOf.md b/docs/PaymentRequest/EWalletAllOf.md index aa12066..dc62d47 100644 --- a/docs/PaymentRequest/EWalletAllOf.md +++ b/docs/PaymentRequest/EWalletAllOf.md @@ -4,11 +4,12 @@ ```php use Xendit\PaymentRequest\EWalletAllOf; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **account** | [**EWalletAccount**](EWalletAccount.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account** | [**EWalletAccount**](EWalletAccount.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/EWalletChannelCode.md b/docs/PaymentRequest/EWalletChannelCode.md index b2f0455..5c7b0db 100644 --- a/docs/PaymentRequest/EWalletChannelCode.md +++ b/docs/PaymentRequest/EWalletChannelCode.md @@ -1,10 +1,11 @@ # # EWalletChannelCode - +Ewallet Channel Code ```php use Xendit\PaymentRequest\EWalletChannelCode; ``` + ## Enum @@ -46,8 +47,10 @@ use Xendit\PaymentRequest\EWalletChannelCode; * `ALIPAY` (value: `'ALIPAY'`) + * `TOUCHANDGO` (value: `'TOUCHANDGO'`) + * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/EWalletChannelProperties.md b/docs/PaymentRequest/EWalletChannelProperties.md index f503caa..2d53f17 100644 --- a/docs/PaymentRequest/EWalletChannelProperties.md +++ b/docs/PaymentRequest/EWalletChannelProperties.md @@ -1,19 +1,20 @@ # # EWalletChannelProperties - +Ewallet Channel Properties ```php use Xendit\PaymentRequest\EWalletChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **success_return_url** | **string** | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **failure_return_url** | **string** | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **cancel_return_url** | **string** | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **redeem_points** | **string** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | REDEEM_NONE | [optional] | -| **mobile_number** | **string** | | null | [optional] | -| **cashtag** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **redeem_points** | **string** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | REDEEM_NONE | +| **mobile_number** | **string** | | | null | +| **cashtag** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/EWalletParameters.md b/docs/PaymentRequest/EWalletParameters.md index 2af5baf..712a3e7 100644 --- a/docs/PaymentRequest/EWalletParameters.md +++ b/docs/PaymentRequest/EWalletParameters.md @@ -4,12 +4,13 @@ ```php use Xendit\PaymentRequest\EWalletParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | null | [optional] | -| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**EWalletChannelCode**](EWalletChannelCode.md) | | | null | +| **channel_properties** | [**EWalletChannelProperties**](EWalletChannelProperties.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/Error.md b/docs/PaymentRequest/Error.md index 7812072..9a95534 100644 --- a/docs/PaymentRequest/Error.md +++ b/docs/PaymentRequest/Error.md @@ -4,12 +4,13 @@ ```php use Xendit\PaymentRequest\Error; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | | null | [optional] | -| **message** | **string** | | An internal server error occurred | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | | | null | +| **message** | **string** | | | An internal server error occurred | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/OverTheCounter.md b/docs/PaymentRequest/OverTheCounter.md index 34cc785..96cd6f6 100644 --- a/docs/PaymentRequest/OverTheCounter.md +++ b/docs/PaymentRequest/OverTheCounter.md @@ -1,17 +1,18 @@ # # OverTheCounter - +Over the Counter Payment Method Details ```php use Xendit\PaymentRequest\OverTheCounter; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **amount** | **float** | | null | [optional] | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | null | [optional] | -| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | | null | | -| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float** | | | null | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | null | +| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | ☑️ | | null | +| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/OverTheCounterChannelCode.md b/docs/PaymentRequest/OverTheCounterChannelCode.md index 117564a..e5cfaff 100644 --- a/docs/PaymentRequest/OverTheCounterChannelCode.md +++ b/docs/PaymentRequest/OverTheCounterChannelCode.md @@ -1,10 +1,11 @@ # # OverTheCounterChannelCode - +Over The Counter Channel Code ```php use Xendit\PaymentRequest\OverTheCounterChannelCode; ``` + ## Enum @@ -42,6 +43,6 @@ use Xendit\PaymentRequest\OverTheCounterChannelCode; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/OverTheCounterChannelProperties.md b/docs/PaymentRequest/OverTheCounterChannelProperties.md index cd09cfb..a5adda5 100644 --- a/docs/PaymentRequest/OverTheCounterChannelProperties.md +++ b/docs/PaymentRequest/OverTheCounterChannelProperties.md @@ -1,16 +1,17 @@ # # OverTheCounterChannelProperties - +Over The Counter Channel Properties ```php use Xendit\PaymentRequest\OverTheCounterChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **payment_code** | **string** | The payment code that you want to assign, e.g 12345. If you do not send one, one will be picked at random. | 12345 | [optional] | -| **customer_name** | **string** | Name of customer. | Rika Sutanto | | -| **expires_at** | **\DateTime** | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | 2022-01-01T00:00Z | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **payment_code** | **string** | | The payment code that you want to assign, e.g 12345. If you do not send one, one will be picked at random. | 12345 | +| **customer_name** | **string** | ☑️ | Name of customer. | Rika Sutanto | +| **expires_at** | **\DateTime** | | The time when the payment code will be expired. The minimum is 2 hours and the maximum is 9 days for 7ELEVEN. Default expired date will be 2 days from payment code generated. | 2022-01-01T00:00Z | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/OverTheCounterParameters.md b/docs/PaymentRequest/OverTheCounterParameters.md index d143857..b1dc3f7 100644 --- a/docs/PaymentRequest/OverTheCounterParameters.md +++ b/docs/PaymentRequest/OverTheCounterParameters.md @@ -4,14 +4,15 @@ ```php use Xendit\PaymentRequest\OverTheCounterParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **amount** | **float** | | null | [optional] | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | null | [optional] | -| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | | null | | -| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **amount** | **float** | | | null | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | null | +| **channel_code** | [**OverTheCounterChannelCode**](OverTheCounterChannelCode.md) | ☑️ | | null | +| **channel_properties** | [**OverTheCounterChannelProperties**](OverTheCounterChannelProperties.md) | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentMethod.md b/docs/PaymentRequest/PaymentMethod.md index 0fbc3dc..cbbce68 100644 --- a/docs/PaymentRequest/PaymentMethod.md +++ b/docs/PaymentRequest/PaymentMethod.md @@ -4,25 +4,26 @@ ```php use Xendit\PaymentRequest\PaymentMethod; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **id** | **string** | | null | | -| **type** | [**PaymentMethodType**](PaymentMethodType.md) | | null | | -| **created** | **string** | | null | [optional] | -| **updated** | **string** | | null | [optional] | -| **description** | **string** | | null | [optional] | -| **reference_id** | **string** | | null | [optional] | -| **card** | [**Card**](Card.md) | | null | [optional] | -| **direct_debit** | [**DirectDebit**](DirectDebit.md) | | null | [optional] | -| **ewallet** | [**EWallet**](EWallet.md) | | null | [optional] | -| **over_the_counter** | [**OverTheCounter**](OverTheCounter.md) | | null | [optional] | -| **virtual_account** | [**VirtualAccount**](VirtualAccount.md) | | null | [optional] | -| **qr_code** | [**QRCode**](QRCode.md) | | null | [optional] | -| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | null | | -| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | | null | | -| **metadata** | **object** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | ☑️ | | null | +| **type** | [**PaymentMethodType**](PaymentMethodType.md) | ☑️ | | null | +| **created** | **string** | | | null | +| **updated** | **string** | | | null | +| **description** | **string** | | | null | +| **reference_id** | **string** | | | null | +| **card** | [**Card**](Card.md) | | | null | +| **direct_debit** | [**DirectDebit**](DirectDebit.md) | | | null | +| **ewallet** | [**EWallet**](EWallet.md) | | | null | +| **over_the_counter** | [**OverTheCounter**](OverTheCounter.md) | | | null | +| **virtual_account** | [**VirtualAccount**](VirtualAccount.md) | | | null | +| **qr_code** | [**QRCode**](QRCode.md) | | | null | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | ☑️ | | null | +| **status** | [**PaymentMethodStatus**](PaymentMethodStatus.md) | ☑️ | | null | +| **metadata** | **object** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentMethodParameters.md b/docs/PaymentRequest/PaymentMethodParameters.md index da4af1d..193a189 100644 --- a/docs/PaymentRequest/PaymentMethodParameters.md +++ b/docs/PaymentRequest/PaymentMethodParameters.md @@ -4,19 +4,20 @@ ```php use Xendit\PaymentRequest\PaymentMethodParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **type** | [**PaymentMethodType**](PaymentMethodType.md) | | null | | -| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | | null | | -| **description** | **string** | | null | [optional] | -| **reference_id** | **string** | | null | [optional] | -| **direct_debit** | [**DirectDebitParameters**](DirectDebitParameters.md) | | null | [optional] | -| **ewallet** | [**EWalletParameters**](EWalletParameters.md) | | null | [optional] | -| **over_the_counter** | [**OverTheCounterParameters**](OverTheCounterParameters.md) | | null | [optional] | -| **virtual_account** | [**VirtualAccountParameters**](VirtualAccountParameters.md) | | null | [optional] | -| **qr_code** | [**QRCodeParameters**](QRCodeParameters.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | [**PaymentMethodType**](PaymentMethodType.md) | ☑️ | | null | +| **reusability** | [**PaymentMethodReusability**](PaymentMethodReusability.md) | ☑️ | | null | +| **description** | **string** | | | null | +| **reference_id** | **string** | | | null | +| **direct_debit** | [**DirectDebitParameters**](DirectDebitParameters.md) | | | null | +| **ewallet** | [**EWalletParameters**](EWalletParameters.md) | | | null | +| **over_the_counter** | [**OverTheCounterParameters**](OverTheCounterParameters.md) | | | null | +| **virtual_account** | [**VirtualAccountParameters**](VirtualAccountParameters.md) | | | null | +| **qr_code** | [**QRCodeParameters**](QRCodeParameters.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentMethodReusability.md b/docs/PaymentRequest/PaymentMethodReusability.md index 5e1ebc8..efa002a 100644 --- a/docs/PaymentRequest/PaymentMethodReusability.md +++ b/docs/PaymentRequest/PaymentMethodReusability.md @@ -5,6 +5,7 @@ use Xendit\PaymentRequest\PaymentMethodReusability; ``` + ## Enum @@ -14,6 +15,6 @@ use Xendit\PaymentRequest\PaymentMethodReusability; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentMethodStatus.md b/docs/PaymentRequest/PaymentMethodStatus.md index 0a5ec6a..7adaf65 100644 --- a/docs/PaymentRequest/PaymentMethodStatus.md +++ b/docs/PaymentRequest/PaymentMethodStatus.md @@ -5,6 +5,7 @@ use Xendit\PaymentRequest\PaymentMethodStatus; ``` + ## Enum @@ -20,6 +21,6 @@ use Xendit\PaymentRequest\PaymentMethodStatus; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentMethodType.md b/docs/PaymentRequest/PaymentMethodType.md index fae4ad7..646276c 100644 --- a/docs/PaymentRequest/PaymentMethodType.md +++ b/docs/PaymentRequest/PaymentMethodType.md @@ -5,6 +5,7 @@ use Xendit\PaymentRequest\PaymentMethodType; ``` + ## Enum @@ -22,6 +23,6 @@ use Xendit\PaymentRequest\PaymentMethodType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequest.md b/docs/PaymentRequest/PaymentRequest.md index affad72..5e6d67d 100644 --- a/docs/PaymentRequest/PaymentRequest.md +++ b/docs/PaymentRequest/PaymentRequest.md @@ -4,33 +4,34 @@ ```php use Xendit\PaymentRequest\PaymentRequest; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **id** | **string** | | null | | -| **created** | **string** | | null | | -| **updated** | **string** | | null | | -| **reference_id** | **string** | | null | | -| **business_id** | **string** | | null | | -| **customer_id** | **string** | | null | [optional] | -| **customer** | **object** | | null | [optional] | -| **amount** | **float** | | null | [optional] | -| **min_amount** | **float** | | null | [optional] | -| **max_amount** | **float** | | null | [optional] | -| **country** | [**PaymentRequestCountry**](PaymentRequestCountry.md) | | null | [optional] | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | null | | -| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | | null | | -| **description** | **string** | | null | [optional] | -| **failure_code** | **string** | | null | [optional] | -| **capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | null | [optional] | -| **initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | null | [optional] | -| **card_verification_results** | [**PaymentRequestCardVerificationResults**](PaymentRequestCardVerificationResults.md) | | null | [optional] | -| **status** | [**PaymentRequestStatus**](PaymentRequestStatus.md) | | null | | -| **actions** | [**array**](PaymentRequestAction.md) | | null | [optional] | -| **metadata** | **object** | | null | [optional] | -| **shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | null | [optional] | -| **items** | [**array**](PaymentRequestBasketItem.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | ☑️ | | null | +| **created** | **string** | ☑️ | | null | +| **updated** | **string** | ☑️ | | null | +| **reference_id** | **string** | ☑️ | | null | +| **business_id** | **string** | ☑️ | | null | +| **customer_id** | **string** | | | null | +| **customer** | **object** | | | null | +| **amount** | **float** | | | null | +| **min_amount** | **float** | | | null | +| **max_amount** | **float** | | | null | +| **country** | [**PaymentRequestCountry**](PaymentRequestCountry.md) | | | null | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | ☑️ | | null | +| **payment_method** | [**PaymentMethod**](PaymentMethod.md) | ☑️ | | null | +| **description** | **string** | | | null | +| **failure_code** | **string** | | | null | +| **capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | | null | +| **initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | | null | +| **card_verification_results** | [**PaymentRequestCardVerificationResults**](PaymentRequestCardVerificationResults.md) | | | null | +| **status** | [**PaymentRequestStatus**](PaymentRequestStatus.md) | ☑️ | | null | +| **actions** | [**array**](PaymentRequestAction.md) | | | null | +| **metadata** | **object** | | | null | +| **shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | | null | +| **items** | [**array**](PaymentRequestBasketItem.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestAction.md b/docs/PaymentRequest/PaymentRequestAction.md index 8d8af9e..10e2cf1 100644 --- a/docs/PaymentRequest/PaymentRequestAction.md +++ b/docs/PaymentRequest/PaymentRequestAction.md @@ -4,15 +4,16 @@ ```php use Xendit\PaymentRequest\PaymentRequestAction; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **action** | **string** | | null | | -| **url_type** | **string** | | null | | -| **method** | **string** | | null | | -| **url** | **string** | | null | | -| **qr_code** | **string** | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **action** | **string** | ☑️ | | null | +| **url_type** | **string** | ☑️ | | null | +| **method** | **string** | ☑️ | | null | +| **url** | **string** | ☑️ | | null | +| **qr_code** | **string** | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestApi.md b/docs/PaymentRequest/PaymentRequestApi.md deleted file mode 100644 index 25cf4fd..0000000 --- a/docs/PaymentRequest/PaymentRequestApi.md +++ /dev/null @@ -1,424 +0,0 @@ -# Xendit\PaymentRequestApi - -All URIs are relative to https://api.xendit.co, except if the operation defines another base path. - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**createPaymentRequest()**](PaymentRequestApi.md#createPaymentRequest) | **POST** /payment_requests | Create Payment Request | -| [**getPaymentRequestByID()**](PaymentRequestApi.md#getPaymentRequestByID) | **GET** /payment_requests/{paymentRequestId} | Get payment request by ID | -| [**getPaymentRequestCaptures()**](PaymentRequestApi.md#getPaymentRequestCaptures) | **GET** /payment_requests/{paymentRequestId}/captures | Get Payment Request Capture | -| [**getAllPaymentRequests()**](PaymentRequestApi.md#getAllPaymentRequests) | **GET** /payment_requests | Get all payment requests by filter | -| [**capturePaymentRequest()**](PaymentRequestApi.md#capturePaymentRequest) | **POST** /payment_requests/{paymentRequestId}/captures | Payment Request Capture | -| [**authorizePaymentRequest()**](PaymentRequestApi.md#authorizePaymentRequest) | **POST** /payment_requests/{paymentRequestId}/auth | Payment Request Authorize | -| [**resendPaymentRequestAuth()**](PaymentRequestApi.md#resendPaymentRequestAuth) | **POST** /payment_requests/{paymentRequestId}/auth/resend | Payment Request Resend Auth | - - -## `createPaymentRequest()` - -```php -createPaymentRequest($idempotency_key, $for_user_id, $payment_request_parameters): \PaymentRequest\PaymentRequest -``` - -Create Payment Request - -Create Payment Request - -### Example - -```php -createPaymentRequest($idempotency_key, $for_user_id, $payment_request_parameters); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentRequestApi->createPaymentRequest: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **idempotency_key** | **string**| | [optional] | -| **for_user_id** | **string**| | [optional] | -| **payment_request_parameters** | [**PaymentRequestParameters**](PaymentRequestParameters.md)| | [optional] | - -### Return type - -[**\Xendit\PaymentRequest\PaymentRequest**](PaymentRequest.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `getPaymentRequestByID()` - -```php -getPaymentRequestByID($payment_request_id, $for_user_id): \PaymentRequest\PaymentRequest -``` - -Get payment request by ID - -Get payment request by ID - -### Example - -```php -getPaymentRequestByID($payment_request_id, $for_user_id); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentRequestApi->getPaymentRequestByID: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_request_id** | **string**| | | -| **for_user_id** | **string**| | [optional] | - -### Return type - -[**\Xendit\PaymentRequest\PaymentRequest**](PaymentRequest.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `getPaymentRequestCaptures()` - -```php -getPaymentRequestCaptures($payment_request_id, $for_user_id, $limit): \PaymentRequest\CaptureListResponse -``` - -Get Payment Request Capture - -Get Payment Request Capture - -### Example - -```php -getPaymentRequestCaptures($payment_request_id, $for_user_id, $limit); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentRequestApi->getPaymentRequestCaptures: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_request_id** | **string**| | | -| **for_user_id** | **string**| | [optional] | -| **limit** | **int**| | [optional] | - -### Return type - -[**\Xendit\PaymentRequest\CaptureListResponse**](CaptureListResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `getAllPaymentRequests()` - -```php -getAllPaymentRequests($for_user_id, $reference_id, $id, $customer_id, $limit, $before_id, $after_id): \PaymentRequest\PaymentRequestListResponse -``` - -Get all payment requests by filter - -Get all payment requests by filter - -### Example - -```php -getAllPaymentRequests($for_user_id, $reference_id, $id, $customer_id, $limit, $before_id, $after_id); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentRequestApi->getAllPaymentRequests: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **for_user_id** | **string**| | [optional] | -| **reference_id** | **string[]**| | [optional] | -| **id** | **string[]**| | [optional] | -| **customer_id** | **string[]**| | [optional] | -| **limit** | **int**| | [optional] | -| **before_id** | **string**| | [optional] | -| **after_id** | **string**| | [optional] | - -### Return type - -[**\Xendit\PaymentRequest\PaymentRequestListResponse**](PaymentRequestListResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `capturePaymentRequest()` - -```php -capturePaymentRequest($payment_request_id, $for_user_id, $capture_parameters): \PaymentRequest\Capture -``` - -Payment Request Capture - -Payment Request Capture - -### Example - -```php -capturePaymentRequest($payment_request_id, $for_user_id, $capture_parameters); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentRequestApi->capturePaymentRequest: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_request_id** | **string**| | | -| **for_user_id** | **string**| | [optional] | -| **capture_parameters** | [**CaptureParameters**](CaptureParameters.md)| | [optional] | - -### Return type - -[**\Xendit\PaymentRequest\Capture**](Capture.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `authorizePaymentRequest()` - -```php -authorizePaymentRequest($payment_request_id, $for_user_id, $payment_request_auth_parameters): \PaymentRequest\PaymentRequest -``` - -Payment Request Authorize - -Payment Request Authorize - -### Example - -```php -authorizePaymentRequest($payment_request_id, $for_user_id, $payment_request_auth_parameters); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentRequestApi->authorizePaymentRequest: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_request_id** | **string**| | | -| **for_user_id** | **string**| | [optional] | -| **payment_request_auth_parameters** | [**PaymentRequestAuthParameters**](PaymentRequestAuthParameters.md)| | [optional] | - -### Return type - -[**\Xendit\PaymentRequest\PaymentRequest**](PaymentRequest.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` - -[[Back to README]](../../README.md) - -## `resendPaymentRequestAuth()` - -```php -resendPaymentRequestAuth($payment_request_id, $for_user_id): \PaymentRequest\PaymentRequest -``` - -Payment Request Resend Auth - -Payment Request Resend Auth - -### Example - -```php -resendPaymentRequestAuth($payment_request_id, $for_user_id); - print_r($result); -} catch (\Xendit\XenditSdkException $e) { - echo 'Exception when calling PaymentRequestApi->resendPaymentRequestAuth: ', $e->getMessage(), PHP_EOL; - echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; -} -``` - -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **payment_request_id** | **string**| | | -| **for_user_id** | **string**| | [optional] | - -### Return type - -[**\Xendit\PaymentRequest\PaymentRequest**](PaymentRequest.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: `application/json` - -[[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestAuthParameters.md b/docs/PaymentRequest/PaymentRequestAuthParameters.md index 3c41926..deb7409 100644 --- a/docs/PaymentRequest/PaymentRequestAuthParameters.md +++ b/docs/PaymentRequest/PaymentRequestAuthParameters.md @@ -4,11 +4,12 @@ ```php use Xendit\PaymentRequest\PaymentRequestAuthParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **auth_code** | **string** | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **auth_code** | **string** | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestBasketItem.md b/docs/PaymentRequest/PaymentRequestBasketItem.md index b9bce21..5ce66f2 100644 --- a/docs/PaymentRequest/PaymentRequestBasketItem.md +++ b/docs/PaymentRequest/PaymentRequestBasketItem.md @@ -4,23 +4,24 @@ ```php use Xendit\PaymentRequest\PaymentRequestBasketItem; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **reference_id** | **string** | | null | [optional] | -| **name** | **string** | | null | | -| **description** | **string** | | null | [optional] | -| **type** | **string** | | null | [optional] | -| **category** | **string** | | null | | -| **sub_category** | **string** | | null | [optional] | -| **currency** | **string** | | null | | -| **quantity** | **float** | | null | | -| **price** | **float** | | null | | -| **payer_charged_currency** | **string** | | null | [optional] | -| **payer_charged_price** | **float** | | null | [optional] | -| **url** | **string** | | null | [optional] | -| **metadata** | **object** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **reference_id** | **string** | | | null | +| **name** | **string** | ☑️ | | null | +| **description** | **string** | | | null | +| **type** | **string** | | | null | +| **category** | **string** | ☑️ | | null | +| **sub_category** | **string** | | | null | +| **currency** | **string** | ☑️ | | null | +| **quantity** | **float** | ☑️ | | null | +| **price** | **float** | ☑️ | | null | +| **payer_charged_currency** | **string** | | | null | +| **payer_charged_price** | **float** | | | null | +| **url** | **string** | | | null | +| **metadata** | **object** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestCaptureMethod.md b/docs/PaymentRequest/PaymentRequestCaptureMethod.md index e3a92d1..a3f3349 100644 --- a/docs/PaymentRequest/PaymentRequestCaptureMethod.md +++ b/docs/PaymentRequest/PaymentRequestCaptureMethod.md @@ -5,6 +5,7 @@ use Xendit\PaymentRequest\PaymentRequestCaptureMethod; ``` + ## Enum @@ -14,6 +15,6 @@ use Xendit\PaymentRequest\PaymentRequestCaptureMethod; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestCardVerificationResults.md b/docs/PaymentRequest/PaymentRequestCardVerificationResults.md index 94eb1f0..fac8fb4 100644 --- a/docs/PaymentRequest/PaymentRequestCardVerificationResults.md +++ b/docs/PaymentRequest/PaymentRequestCardVerificationResults.md @@ -4,13 +4,14 @@ ```php use Xendit\PaymentRequest\PaymentRequestCardVerificationResults; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **three_d_secure** | [**PaymentRequestCardVerificationResultsThreeDeeSecure**](PaymentRequestCardVerificationResultsThreeDeeSecure.md) | | null | | -| **cvv_result** | **string** | | null | [optional] | -| **address_verification_result** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **three_d_secure** | [**PaymentRequestCardVerificationResultsThreeDeeSecure**](PaymentRequestCardVerificationResultsThreeDeeSecure.md) | ☑️ | | null | +| **cvv_result** | **string** | | | null | +| **address_verification_result** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.md b/docs/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.md index f3bbbbf..fbdca6a 100644 --- a/docs/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.md +++ b/docs/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.md @@ -4,15 +4,16 @@ ```php use Xendit\PaymentRequest\PaymentRequestCardVerificationResultsThreeDeeSecure; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **three_d_secure_flow** | **string** | | null | [optional] | -| **eci_code** | **string** | | null | [optional] | -| **three_d_secure_result** | **string** | | null | [optional] | -| **three_d_secure_result_reason** | **string** | | null | [optional] | -| **three_d_secure_version** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **three_d_secure_flow** | **string** | | | null | +| **eci_code** | **string** | | | null | +| **three_d_secure_result** | **string** | | | null | +| **three_d_secure_result_reason** | **string** | | | null | +| **three_d_secure_version** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestChannelProperties.md b/docs/PaymentRequest/PaymentRequestChannelProperties.md index 0c8ed67..a75cd81 100644 --- a/docs/PaymentRequest/PaymentRequestChannelProperties.md +++ b/docs/PaymentRequest/PaymentRequestChannelProperties.md @@ -4,17 +4,18 @@ ```php use Xendit\PaymentRequest\PaymentRequestChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **success_return_url** | **string** | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **failure_return_url** | **string** | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **cancel_return_url** | **string** | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **redeem_points** | **string** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | REDEEM_NONE | [optional] | -| **require_auth** | **bool** | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | false | [optional] | -| **merchant_id_tag** | **string** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | null | [optional] | -| **cardonfile_type** | **string** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | RECURRING | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **redeem_points** | **string** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | REDEEM_NONE | +| **require_auth** | **bool** | | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | false | +| **merchant_id_tag** | **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | null | +| **cardonfile_type** | **string** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | RECURRING | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestCountry.md b/docs/PaymentRequest/PaymentRequestCountry.md index c9d726f..1897d27 100644 --- a/docs/PaymentRequest/PaymentRequestCountry.md +++ b/docs/PaymentRequest/PaymentRequestCountry.md @@ -5,6 +5,7 @@ use Xendit\PaymentRequest\PaymentRequestCountry; ``` + ## Enum @@ -20,6 +21,6 @@ use Xendit\PaymentRequest\PaymentRequestCountry; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestCurrency.md b/docs/PaymentRequest/PaymentRequestCurrency.md index f425c49..56ea7df 100644 --- a/docs/PaymentRequest/PaymentRequestCurrency.md +++ b/docs/PaymentRequest/PaymentRequestCurrency.md @@ -5,6 +5,7 @@ use Xendit\PaymentRequest\PaymentRequestCurrency; ``` + ## Enum @@ -18,8 +19,10 @@ use Xendit\PaymentRequest\PaymentRequestCurrency; * `MYR` (value: `'MYR'`) + * `USD` (value: `'USD'`) + * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestInitiator.md b/docs/PaymentRequest/PaymentRequestInitiator.md index 55e1d04..e831a91 100644 --- a/docs/PaymentRequest/PaymentRequestInitiator.md +++ b/docs/PaymentRequest/PaymentRequestInitiator.md @@ -5,6 +5,7 @@ use Xendit\PaymentRequest\PaymentRequestInitiator; ``` + ## Enum @@ -14,6 +15,6 @@ use Xendit\PaymentRequest\PaymentRequestInitiator; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestListResponse.md b/docs/PaymentRequest/PaymentRequestListResponse.md index 51c055c..c29e033 100644 --- a/docs/PaymentRequest/PaymentRequestListResponse.md +++ b/docs/PaymentRequest/PaymentRequestListResponse.md @@ -4,12 +4,13 @@ ```php use Xendit\PaymentRequest\PaymentRequestListResponse; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **data** | [**array**](PaymentRequest.md) | | null | | -| **has_more** | **bool** | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **data** | [**array**](PaymentRequest.md) | ☑️ | | null | +| **has_more** | **bool** | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestParameters.md b/docs/PaymentRequest/PaymentRequestParameters.md index 1666d16..39d9bb1 100644 --- a/docs/PaymentRequest/PaymentRequestParameters.md +++ b/docs/PaymentRequest/PaymentRequestParameters.md @@ -4,24 +4,25 @@ ```php use Xendit\PaymentRequest\PaymentRequestParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **reference_id** | **string** | | null | [optional] | -| **amount** | **float** | | null | [optional] | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | null | | -| **payment_method** | [**PaymentMethodParameters**](PaymentMethodParameters.md) | | null | [optional] | -| **description** | **string** | | null | [optional] | -| **capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | null | [optional] | -| **initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | null | [optional] | -| **payment_method_id** | **string** | | null | [optional] | -| **channel_properties** | [**PaymentRequestParametersChannelProperties**](PaymentRequestParametersChannelProperties.md) | | null | [optional] | -| **shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | null | [optional] | -| **items** | [**array**](PaymentRequestBasketItem.md) | | null | [optional] | -| **customer_id** | **string** | | null | [optional] | -| **customer** | **object** | | null | [optional] | -| **metadata** | **object** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **reference_id** | **string** | | | null | +| **amount** | **float** | | | null | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | ☑️ | | null | +| **payment_method** | [**PaymentMethodParameters**](PaymentMethodParameters.md) | | | null | +| **description** | **string** | | | null | +| **capture_method** | [**PaymentRequestCaptureMethod**](PaymentRequestCaptureMethod.md) | | | null | +| **initiator** | [**PaymentRequestInitiator**](PaymentRequestInitiator.md) | | | null | +| **payment_method_id** | **string** | | | null | +| **channel_properties** | [**PaymentRequestParametersChannelProperties**](PaymentRequestParametersChannelProperties.md) | | | null | +| **shipping_information** | [**PaymentRequestShippingInformation**](PaymentRequestShippingInformation.md) | | | null | +| **items** | [**array**](PaymentRequestBasketItem.md) | | | null | +| **customer_id** | **string** | | | null | +| **customer** | **object** | | | null | +| **metadata** | **object** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestParametersChannelProperties.md b/docs/PaymentRequest/PaymentRequestParametersChannelProperties.md index 19eaab6..b11a2b0 100644 --- a/docs/PaymentRequest/PaymentRequestParametersChannelProperties.md +++ b/docs/PaymentRequest/PaymentRequestParametersChannelProperties.md @@ -4,18 +4,19 @@ ```php use Xendit\PaymentRequest\PaymentRequestParametersChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **success_return_url** | **string** | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **failure_return_url** | **string** | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **cancel_return_url** | **string** | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | [optional] | -| **redeem_points** | **string** | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | REDEEM_NONE | [optional] | -| **require_auth** | **bool** | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | false | [optional] | -| **merchant_id_tag** | **string** | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | null | [optional] | -| **cardonfile_type** | **string** | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | RECURRING | [optional] | -| **cvv** | **string** | Three digit code written on the back of the card (usually called CVV/CVN). | 123 | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **success_return_url** | **string** | | URL where the end-customer is redirected if the authorization is successful | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **failure_return_url** | **string** | | URL where the end-customer is redirected if the authorization failed | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **cancel_return_url** | **string** | | URL where the end-customer is redirected if the authorization cancelled | https://webhook.site/f4b755f5-4770-4a11-8c72-cc0b3cc6b882 | +| **redeem_points** | **string** | | REDEEM_NONE will not use any point, REDEEM_ALL will use all available points before cash balance is used. For OVO and ShopeePay tokenized payment use only. | REDEEM_NONE | +| **require_auth** | **bool** | | Toggle used to require end-customer to input undergo OTP validation before completing a payment. OTP will always be required for transactions greater than 1,000,000 IDR. For BRI tokenized payment use only. | false | +| **merchant_id_tag** | **string** | | Tag for a Merchant ID that you want to associate this payment with. For merchants using their own MIDs to specify which MID they want to use | null | +| **cardonfile_type** | **string** | | Type of “credential-on-file” / “card-on-file” payment being made. Indicate that this payment uses a previously linked Payment Method for charging. | RECURRING | +| **cvv** | **string** | | Three digit code written on the back of the card (usually called CVV/CVN). | 123 | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.md b/docs/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.md index 3f17ae5..bd8cc89 100644 --- a/docs/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.md +++ b/docs/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.md @@ -4,11 +4,12 @@ ```php use Xendit\PaymentRequest\PaymentRequestParametersChannelPropertiesAllOf; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **cvv** | **string** | Three digit code written on the back of the card (usually called CVV/CVN). | 123 | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **cvv** | **string** | | Three digit code written on the back of the card (usually called CVV/CVN). | 123 | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestShippingInformation.md b/docs/PaymentRequest/PaymentRequestShippingInformation.md index 6bb14ca..2f64981 100644 --- a/docs/PaymentRequest/PaymentRequestShippingInformation.md +++ b/docs/PaymentRequest/PaymentRequestShippingInformation.md @@ -4,16 +4,17 @@ ```php use Xendit\PaymentRequest\PaymentRequestShippingInformation; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **country** | **string** | | null | | -| **street_line1** | **string** | | null | [optional] | -| **street_line2** | **string** | | null | [optional] | -| **city** | **string** | | null | [optional] | -| **province_state** | **string** | | null | [optional] | -| **postal_code** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **country** | **string** | ☑️ | | null | +| **street_line1** | **string** | | | null | +| **street_line2** | **string** | | | null | +| **city** | **string** | | | null | +| **province_state** | **string** | | | null | +| **postal_code** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/PaymentRequestStatus.md b/docs/PaymentRequest/PaymentRequestStatus.md index 82ef420..ad8b7fd 100644 --- a/docs/PaymentRequest/PaymentRequestStatus.md +++ b/docs/PaymentRequest/PaymentRequestStatus.md @@ -5,6 +5,7 @@ use Xendit\PaymentRequest\PaymentRequestStatus; ``` + ## Enum @@ -26,6 +27,6 @@ use Xendit\PaymentRequest\PaymentRequestStatus; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/QRCode.md b/docs/PaymentRequest/QRCode.md index 001c232..795e0f3 100644 --- a/docs/PaymentRequest/QRCode.md +++ b/docs/PaymentRequest/QRCode.md @@ -1,15 +1,16 @@ # # QRCode - +QRCode Payment Method Details ```php use Xendit\PaymentRequest\QRCode; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | null | [optional] | -| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | | null | +| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/QRCodeChannelCode.md b/docs/PaymentRequest/QRCodeChannelCode.md index 0942828..4fc9d94 100644 --- a/docs/PaymentRequest/QRCodeChannelCode.md +++ b/docs/PaymentRequest/QRCodeChannelCode.md @@ -1,10 +1,11 @@ # # QRCodeChannelCode - +QR Code Channel Code ```php use Xendit\PaymentRequest\QRCodeChannelCode; ``` + ## Enum @@ -18,6 +19,6 @@ use Xendit\PaymentRequest\QRCodeChannelCode; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/QRCodeChannelProperties.md b/docs/PaymentRequest/QRCodeChannelProperties.md index a77d93d..2f03d02 100644 --- a/docs/PaymentRequest/QRCodeChannelProperties.md +++ b/docs/PaymentRequest/QRCodeChannelProperties.md @@ -1,15 +1,16 @@ # # QRCodeChannelProperties - +QR Code Channel Properties ```php use Xendit\PaymentRequest\QRCodeChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **qr_string** | **string** | | null | [optional] | -| **expires_at** | **\DateTime** | | 2022-01-01T00:00Z | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **qr_string** | **string** | | | null | +| **expires_at** | **\DateTime** | | | 2022-01-01T00:00Z | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/QRCodeParameters.md b/docs/PaymentRequest/QRCodeParameters.md index dce7dc6..233d49a 100644 --- a/docs/PaymentRequest/QRCodeParameters.md +++ b/docs/PaymentRequest/QRCodeParameters.md @@ -4,12 +4,13 @@ ```php use Xendit\PaymentRequest\QRCodeParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | null | [optional] | -| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | [**QRCodeChannelCode**](QRCodeChannelCode.md) | | | null | +| **channel_properties** | [**QRCodeChannelProperties**](QRCodeChannelProperties.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/VirtualAccount.md b/docs/PaymentRequest/VirtualAccount.md index f4802a8..d0b7bc6 100644 --- a/docs/PaymentRequest/VirtualAccount.md +++ b/docs/PaymentRequest/VirtualAccount.md @@ -1,21 +1,22 @@ # # VirtualAccount - +Virtual Account Payment Method Details ```php use Xendit\PaymentRequest\VirtualAccount; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **min_amount** | **float** | | null | [optional] | -| **max_amount** | **float** | | null | [optional] | -| **amount** | **float** | | null | [optional] | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | null | [optional] | -| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | null | | -| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | null | | -| **alternative_display_types** | **string[]** | Alternative display requested for the virtual account | null | [optional] | -| **alternative_displays** | [**array**](VirtualAccountAlternativeDisplay.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **min_amount** | **float** | | | null | +| **max_amount** | **float** | | | null | +| **amount** | **float** | | | null | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | null | +| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | ☑️ | | null | +| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | ☑️ | | null | +| **alternative_display_types** | **string[]** | | Alternative display requested for the virtual account | null | +| **alternative_displays** | [**array**](VirtualAccountAlternativeDisplay.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/VirtualAccountAllOf.md b/docs/PaymentRequest/VirtualAccountAllOf.md index 315f082..7c9906b 100644 --- a/docs/PaymentRequest/VirtualAccountAllOf.md +++ b/docs/PaymentRequest/VirtualAccountAllOf.md @@ -4,11 +4,12 @@ ```php use Xendit\PaymentRequest\VirtualAccountAllOf; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **alternative_displays** | [**array**](VirtualAccountAlternativeDisplay.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **alternative_displays** | [**array**](VirtualAccountAlternativeDisplay.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/VirtualAccountAlternativeDisplay.md b/docs/PaymentRequest/VirtualAccountAlternativeDisplay.md index d921c27..fe44d01 100644 --- a/docs/PaymentRequest/VirtualAccountAlternativeDisplay.md +++ b/docs/PaymentRequest/VirtualAccountAlternativeDisplay.md @@ -1,15 +1,16 @@ # # VirtualAccountAlternativeDisplay - +Alternative Display Object ```php use Xendit\PaymentRequest\VirtualAccountAlternativeDisplay; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **type** | **string** | Type of the alternative display | null | [optional] [readonly] | -| **data** | **string** | Data payload of the given alternative display | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **type** | **string** | | Type of the alternative display | null | +| **data** | **string** | | Data payload of the given alternative display | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/VirtualAccountChannelCode.md b/docs/PaymentRequest/VirtualAccountChannelCode.md index f169120..ff1ed65 100644 --- a/docs/PaymentRequest/VirtualAccountChannelCode.md +++ b/docs/PaymentRequest/VirtualAccountChannelCode.md @@ -1,10 +1,11 @@ # # VirtualAccountChannelCode - +Virtual Account Channel Code ```php use Xendit\PaymentRequest\VirtualAccountChannelCode; ``` + ## Enum @@ -38,8 +39,10 @@ use Xendit\PaymentRequest\VirtualAccountChannelCode; * `STANDARD_CHARTERED` (value: `'STANDARD_CHARTERED'`) + * `AMBANK` (value: `'AMBANK'`) + * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/VirtualAccountChannelProperties.md b/docs/PaymentRequest/VirtualAccountChannelProperties.md index 8590556..3b42f70 100644 --- a/docs/PaymentRequest/VirtualAccountChannelProperties.md +++ b/docs/PaymentRequest/VirtualAccountChannelProperties.md @@ -1,17 +1,18 @@ # # VirtualAccountChannelProperties - +Virtual Account Channel Properties ```php use Xendit\PaymentRequest\VirtualAccountChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **customer_name** | **string** | Name of customer. | Rika Sutanto | | -| **virtual_account_number** | **string** | You can assign specific Virtual Account number using this parameter. If you do not send one, one will be picked at random. Make sure the number you specify is within your Virtual Account range. | 262159999999999 | [optional] | -| **expires_at** | **\DateTime** | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | 2022-01-01T00:00Z | [optional] | -| **suggested_amount** | **float** | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | 100000 | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **customer_name** | **string** | ☑️ | Name of customer. | Rika Sutanto | +| **virtual_account_number** | **string** | | You can assign specific Virtual Account number using this parameter. If you do not send one, one will be picked at random. Make sure the number you specify is within your Virtual Account range. | 262159999999999 | +| **expires_at** | **\DateTime** | | The date and time in ISO 8601 UTC+0 when the virtual account number will be expired. Default: The default expiration date will be 31 years from creation date. | 2022-01-01T00:00Z | +| **suggested_amount** | **float** | | The suggested amount you want to assign. Note: Suggested amounts is the amounts that can see as a suggestion, but user can still put any numbers (only supported for Mandiri and BRI) | 100000 | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequest/VirtualAccountParameters.md b/docs/PaymentRequest/VirtualAccountParameters.md index 41d944f..339fe18 100644 --- a/docs/PaymentRequest/VirtualAccountParameters.md +++ b/docs/PaymentRequest/VirtualAccountParameters.md @@ -4,17 +4,18 @@ ```php use Xendit\PaymentRequest\VirtualAccountParameters; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **min_amount** | **float** | | null | [optional] | -| **max_amount** | **float** | | null | [optional] | -| **amount** | **float** | | null | [optional] | -| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | null | [optional] | -| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | | null | | -| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | | null | | -| **alternative_display_types** | **string[]** | Alternative display requested for the virtual account | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **min_amount** | **float** | | | null | +| **max_amount** | **float** | | | null | +| **amount** | **float** | | | null | +| **currency** | [**PaymentRequestCurrency**](PaymentRequestCurrency.md) | | | null | +| **channel_code** | [**VirtualAccountChannelCode**](VirtualAccountChannelCode.md) | ☑️ | | null | +| **channel_properties** | [**VirtualAccountChannelProperties**](VirtualAccountChannelProperties.md) | ☑️ | | null | +| **alternative_display_types** | **string[]** | | Alternative display requested for the virtual account | null | [[Back to README]](../../README.md) diff --git a/docs/PaymentRequestApi.md b/docs/PaymentRequestApi.md new file mode 100644 index 0000000..5e045df --- /dev/null +++ b/docs/PaymentRequestApi.md @@ -0,0 +1,535 @@ +# PaymentRequestApi + + +You can use the APIs below to interface with Xendit's `PaymentRequestApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```php + 'example-ref-1234', + 'amount' => 15000, + 'currency' => 'IDR', + 'country' => 'ID', + 'payment_method' => [ + 'type' => 'EWALLET', + 'ewallet' => [ + 'channel_code' => 'SHOPEEPAY', + 'channel_properties' => [ + 'success_return_url' => 'https://redirect.me/success' + ] + ], + 'reusability' => 'ONE_TIME_USE' + ] +]); // \Xendit\PaymentRequest\PaymentRequestParameters + +try { + $result = $apiInstance->createPaymentRequest($idempotency_key, $for_user_id, $payment_request_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->createPaymentRequest: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` +#### Fixed amount dynamic QR + +```php + 'example-ref-1234', + 'amount' => 15000, + 'currency' => 'IDR', + 'payment_method' => [ + 'type' => 'QR_CODE', + 'reusability' => 'ONE_TIME_USE', + 'qr_code' => [ + 'channel_code' => '“QRIS”' + ] + ], + 'metadata' => [ + 'sku' => 'example-sku-1234' + ] +]); // \Xendit\PaymentRequest\PaymentRequestParameters + +try { + $result = $apiInstance->createPaymentRequest($idempotency_key, $for_user_id, $payment_request_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->createPaymentRequest: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` +#### Fixed amount single use Virtual Account + +```php + 'example-ref-1234', + 'currency' => 'IDR', + 'amount' => 15000, + 'country' => 'ID', + 'payment_method' => [ + 'type' => 'VIRTUAL_ACCOUNT', + 'reusability' => 'ONE_TIME_USE', + 'reference_id' => 'example-1234', + 'virtual_account' => [ + 'channel_code' => 'BNI', + 'channel_properties' => [ + 'customer_name' => 'Ahmad Gunawan', + 'expires_at' => '2023-01-03T17=>00=>00Z' + ] + ] + ], + 'metadata' => [ + 'sku' => 'example-sku-1234' + ] +]); // \Xendit\PaymentRequest\PaymentRequestParameters + +try { + $result = $apiInstance->createPaymentRequest($idempotency_key, $for_user_id, $payment_request_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->createPaymentRequest: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` +#### Subsequent PH Direct Debit payments after account linking + +```php + 'example-ref-1234', + 'amount' => 1500, + 'currency' => 'PHP', + 'payment_method_id' => 'pm-9685a196-81e9-4c73-8d62-97df5aab2762', + 'metadata' => [ + 'sku' => 'example-sku-1234' + ] +]); // \Xendit\PaymentRequest\PaymentRequestParameters + +try { + $result = $apiInstance->createPaymentRequest($idempotency_key, $for_user_id, $payment_request_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->createPaymentRequest: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` +#### Subsequent tokenized E-Wallet payments after account linking + +```php + 'example-ref-1234', + 'amount' => 15000, + 'currency' => 'IDR', + 'payment_method_id' => 'pm-2b2c6092-2100-4843-a7fc-f5c7edac7efd', + 'metadata' => [ + 'sku' => 'example-sku-1234' + ] +]); // \Xendit\PaymentRequest\PaymentRequestParameters + +try { + $result = $apiInstance->createPaymentRequest($idempotency_key, $for_user_id, $payment_request_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->createPaymentRequest: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `getPaymentRequestByID()` Function + +```php +getPaymentRequestByID($payment_request_id, $for_user_id): \PaymentRequest\PaymentRequest +``` + +Get payment request by ID + Get payment request by ID + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `getPaymentRequestByID` | +| Request Parameters | [GetPaymentRequestByIDRequestParams](#request-parameters--GetPaymentRequestByIDRequestParams) | +| Return Type | [**\Xendit\PaymentRequest\PaymentRequest**](PaymentRequest/PaymentRequest.md) | + +### Request Parameters - GetPaymentRequestByIDRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_request_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | + +### Usage Example +```php +getPaymentRequestByID($payment_request_id, $for_user_id); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->getPaymentRequestByID: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `getPaymentRequestCaptures()` Function + +```php +getPaymentRequestCaptures($payment_request_id, $for_user_id, $limit): \PaymentRequest\CaptureListResponse +``` + +Get Payment Request Capture + Get Payment Request Capture + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `getPaymentRequestCaptures` | +| Request Parameters | [GetPaymentRequestCapturesRequestParams](#request-parameters--GetPaymentRequestCapturesRequestParams) | +| Return Type | [**\Xendit\PaymentRequest\CaptureListResponse**](PaymentRequest/CaptureListResponse.md) | + +### Request Parameters - GetPaymentRequestCapturesRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_request_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | +| **limit** | **int** | | | + +### Usage Example +```php +getPaymentRequestCaptures($payment_request_id, $for_user_id, $limit); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->getPaymentRequestCaptures: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `getAllPaymentRequests()` Function + +```php +getAllPaymentRequests($for_user_id, $reference_id, $id, $customer_id, $limit, $before_id, $after_id): \PaymentRequest\PaymentRequestListResponse +``` + +Get all payment requests by filter + Get all payment requests by filter + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `getAllPaymentRequests` | +| Request Parameters | [GetAllPaymentRequestsRequestParams](#request-parameters--GetAllPaymentRequestsRequestParams) | +| Return Type | [**\Xendit\PaymentRequest\PaymentRequestListResponse**](PaymentRequest/PaymentRequestListResponse.md) | + +### Request Parameters - GetAllPaymentRequestsRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **for_user_id** | **string** | | | +| **reference_id** | **string[]** | | | +| **id** | **string[]** | | | +| **customer_id** | **string[]** | | | +| **limit** | **int** | | | +| **before_id** | **string** | | | +| **after_id** | **string** | | | + +### Usage Example +```php +getAllPaymentRequests($for_user_id, $reference_id, $id, $customer_id, $limit, $before_id, $after_id); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->getAllPaymentRequests: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `capturePaymentRequest()` Function + +```php +capturePaymentRequest($payment_request_id, $for_user_id, $capture_parameters): \PaymentRequest\Capture +``` + +Payment Request Capture + Payment Request Capture + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `capturePaymentRequest` | +| Request Parameters | [CapturePaymentRequestRequestParams](#request-parameters--CapturePaymentRequestRequestParams) | +| Return Type | [**\Xendit\PaymentRequest\Capture**](PaymentRequest/Capture.md) | + +### Request Parameters - CapturePaymentRequestRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_request_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | +| **capture_parameters** | [**CaptureParameters**](PaymentRequest/CaptureParameters.md) | | | + +### Usage Example +```php +capturePaymentRequest($payment_request_id, $for_user_id, $capture_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->capturePaymentRequest: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `authorizePaymentRequest()` Function + +```php +authorizePaymentRequest($payment_request_id, $for_user_id, $payment_request_auth_parameters): \PaymentRequest\PaymentRequest +``` + +Payment Request Authorize + Payment Request Authorize + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `authorizePaymentRequest` | +| Request Parameters | [AuthorizePaymentRequestRequestParams](#request-parameters--AuthorizePaymentRequestRequestParams) | +| Return Type | [**\Xendit\PaymentRequest\PaymentRequest**](PaymentRequest/PaymentRequest.md) | + +### Request Parameters - AuthorizePaymentRequestRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_request_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | +| **payment_request_auth_parameters** | [**PaymentRequestAuthParameters**](PaymentRequest/PaymentRequestAuthParameters.md) | | | + +### Usage Example +```php +authorizePaymentRequest($payment_request_id, $for_user_id, $payment_request_auth_parameters); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->authorizePaymentRequest: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +## `resendPaymentRequestAuth()` Function + +```php +resendPaymentRequestAuth($payment_request_id, $for_user_id): \PaymentRequest\PaymentRequest +``` + +Payment Request Resend Auth + Payment Request Resend Auth + +| Name | Value | +|--------------------|:-------------:| +| Function Name | `resendPaymentRequestAuth` | +| Request Parameters | [ResendPaymentRequestAuthRequestParams](#request-parameters--ResendPaymentRequestAuthRequestParams) | +| Return Type | [**\Xendit\PaymentRequest\PaymentRequest**](PaymentRequest/PaymentRequest.md) | + +### Request Parameters - ResendPaymentRequestAuthRequestParams + +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **payment_request_id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | + +### Usage Example +```php +resendPaymentRequestAuth($payment_request_id, $for_user_id); + print_r($result); +} catch (\Xendit\XenditSdkException $e) { + echo 'Exception when calling PaymentRequestApi->resendPaymentRequestAuth: ', $e->getMessage(), PHP_EOL; + echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; +} +``` + + +[[Back to README]](../README.md) diff --git a/docs/Payout.yaml b/docs/Payout.yaml deleted file mode 100644 index 1263c1b..0000000 --- a/docs/Payout.yaml +++ /dev/null @@ -1,894 +0,0 @@ -openapi: 3.0.0 -info: - contact: - email: help@xendit.co - description: "This API allows Xendit to send money from an account to a channel\ - \ (banks, eWallets, retail outlets) from across regions" - license: - name: UNLICENSED - url: https://xendit.co/en/terms-and-conditions/ - termsOfService: https://xendit.co/en/terms-and-conditions/ - title: Payout Service - version: 1.0.0 -externalDocs: - description: Find out more - url: https://developers.xendit.co/api-reference/#payouts -servers: -- description: Xendit API Server - url: https://api.xendit.co -paths: - /v2/payouts: - get: - operationId: getPayouts - parameters: - - description: Reference_id provided when creating the payout - explode: true - in: query - name: reference_id - required: true - schema: - example: DISB-123 - type: string - style: form - - description: Number of records to fetch per API call - explode: true - in: query - name: limit - required: false - schema: - example: 10 - type: number - style: form - - description: Used to fetch record after this payout unique id - explode: true - in: query - name: after_id - required: false - schema: - example: disb-7baa7335-a0b2-4678-bb8c-318c0167f332 - type: string - style: form - - description: Used to fetch record before this payout unique id - explode: true - in: query - name: before_id - required: false - schema: - example: disb-7baa7335-a0b2-4678-bb8c-318c0167f332 - type: string - style: form - - description: The sub-account user-id that you want to make this transaction - for. This header is only used if you have access to xenPlatform. See xenPlatform - for more information. - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - responses: - "200": - content: - application/json: - examples: - With matching payouts: - value: - data: - - id: disb-5594002a-d0a0-4cd9-b3f7-f5992abc8e48 - reference_id: DISB-001 - channel_code: PH_BDO - channel_properties: - account_holder_name: John Doe - account_number: "000000" - description: FX1234 - currency: PHP - amount: 15000.05 - receipt_notification: - email_to: - - user_to@example.com - - user_to2@example.com - - user_to3@example.com - email_cc: - - user_cc@example.com - - user_cc2@example.com - email_bcc: - - user_bcc@example.com - metadata: - external_party: xendit - created: 2019-11-01T12:34:56.007Z - updated: 2019-11-01T12:34:56.007Z - business_id: 5dbf20d7c8eb0c0896f811b6 - status: ACCEPTED - estimated_arrival_time: 2019-11-01T12:34:56.007Z - has_more: false - schema: - $ref: '#/components/schemas/getPayouts_200_response' - description: An array of Payout objects sorted by created time in desc order. - "data" will be an empty array and "has_more' will be equal to false when - there are no matching data. - "403": - content: - application/json: - example: - error_code: REQUEST_FORBIDDEN_ERROR - message: The API key is forbidden to perform this request. - schema: - $ref: '#/components/schemas/Error' - description: API key in use does not have necessary permissions to perform - the request. Please assign proper permissions for the key. - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: API to retrieve all matching payouts with reference ID - tags: - - payout - post: - operationId: createPayout - parameters: - - description: A unique key to prevent duplicate requests from pushing through - our system. No expiration. - explode: false - in: header - name: idempotency-key - required: true - schema: - example: DISB-1234 - type: string - style: simple - - description: The sub-account user-id that you want to make this transaction - for. This header is only used if you have access to xenPlatform. See xenPlatform - for more information. - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - requestBody: - content: - application/json: - examples: - Bank or EWallet Payout: - value: - reference_id: DISB-001 - currency: PHP - channel_code: PH_BDO - channel_properties: - account_holder_name: John Doe - account_number: "000000" - amount: 90000 - description: Test Bank Payout - type: DIRECT_DISBURSEMENT - schema: - $ref: '#/components/schemas/CreatePayoutRequest' - responses: - "200": - content: - application/json: - examples: - Successfully created payout: - value: - id: disb-5594002a-d0a0-4cd9-b3f7-f5992abc8e48 - reference_id: DISB-001 - channel_code: PH_BDO - channel_properties: - account_holder_name: John Doe - account_number: "000000" - description: FX1234 - currency: PHP - amount: 15000.05 - receipt_notification: - email_to: - - user_to@example.com - - user_to2@example.com - - user_to3@example.com - email_cc: - - user_cc@example.com - - user_cc2@example.com - email_bcc: - - user_bcc@example.com - metadata: - external_party: xendit - created: 2019-11-01T12:34:56.007Z - updated: 2019-11-01T12:34:56.007Z - business_id: 5dbf20d7c8eb0c0896f811b6 - status: ACCEPTED - estimated_arrival_time: 2019-11-01T12:34:56.007Z - schema: - $ref: '#/components/schemas/getPayouts_200_response_data_inner' - description: Created payout - "400": - content: - application/json: - examples: - Missing parameters or invalid headers: - value: - error_code: API_VALIDATION_ERROR - message: Should have required property "xxx" - Amount has more than 2 decimal places: - value: - error_code: API_VALIDATION_ERROR - message: '"amount" should have 2 decimal places or less' - Channel code not supported yet: - value: - error_code: CHANNEL_CODE_NOT_SUPPORTED - message: “channel_code” is not supported. See list of supported - channel codes at /payouts_channels. - Minimum transfer limit error per channel: - value: - error_code: MINIMUM_TRANSFER_LIMIT_ERROR - message: “amount” is under the minimum amount supported for the - channel. See amount limitations at the URL below. - Maximum transfer limit error per channel: - value: - error_code: MAXIMUM_TRANSFER_LIMIT_ERROR - message: “amount” is more than the maximum amount supported for - the channel. See amount limitations at the URL below. - Amount Increment Not Supported: - value: - error_code: AMOUNT_INCREMENT_NOT_SUPPORTED - message: amount” needs to be a multiple of the minimum increment - supported by the channel. - schema: - $ref: '#/components/schemas/Error' - description: "Error when creating payout, see error_code for more details" - "401": - content: - application/json: - example: - error_code: INVALID_API_KEY - message: API key format is invalid. - schema: - $ref: '#/components/schemas/Error' - description: Invalid API key - "403": - content: - application/json: - example: - error_code: REQUEST_FORBIDDEN_ERROR - message: The API key is forbidden to perform this request. - schema: - $ref: '#/components/schemas/Error' - description: API key in use does not have necessary permissions to perform - the request. Please assign proper permissions for the key. - "409": - content: - application/json: - example: - error_code: DUPLICATE_ERROR - message: "A payout with this idempotency key already exists. If you\ - \ meant to execute a different request, please use another idempotency\ - \ key." - schema: - $ref: '#/components/schemas/Error' - description: "Duplicate Error, payout already exists" - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: API to send money at scale to bank accounts & eWallets - tags: - - payout - /v2/payouts/{id}: - get: - operationId: getPayoutById - parameters: - - description: Payout id returned from the response of /v2/payouts - explode: false - in: path - name: id - required: true - schema: - example: disb-7baa7335-a0b2-4678-bb8c-318c0167f332 - type: string - style: simple - - description: The sub-account user-id that you want to make this transaction - for. This header is only used if you have access to xenPlatform. See xenPlatform - for more information. - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - responses: - "200": - content: - application/json: - examples: - With matching payout: - value: - id: disb-7baa7335-a0b2-4678-bb8c-318c0167f332 - reference_id: DISB-001 - channel_code: PH_BDO - channel_properties: - account_holder_name: John Doe - account_number: "000000" - description: FX1234 - currency: PHP - amount: 15000.05 - receipt_notification: - email_to: - - user_to@example.com - - user_to2@example.com - - user_to3@example.com - email_cc: - - user_cc@example.com - - user_cc2@example.com - email_bcc: - - user_bcc@example.com - metadata: - external_party: xendit - created: 2019-11-01T12:34:56.007Z - updated: 2019-11-01T12:34:56.007Z - business_id: 5dbf20d7c8eb0c0896f811b6 - status: ACCEPTED - estimated_arrival_time: 2019-11-01T12:34:56.007Z - schema: - $ref: '#/components/schemas/getPayouts_200_response_data_inner' - description: The Payout object - "401": - content: - application/json: - example: - error_code: INVALID_API_KEY - message: API key format is invalid. - schema: - $ref: '#/components/schemas/Error' - description: Invalid API key - "403": - content: - application/json: - example: - error_code: REQUEST_FORBIDDEN_ERROR - message: The API key is forbidden to perform this request. - schema: - $ref: '#/components/schemas/Error' - description: API key in use does not have necessary permissions to perform - the request. Please assign proper permissions for the key. - "404": - content: - application/json: - example: - error_code: DATA_NOT_FOUND - message: Could not find payout with the corresponding ID. Please try - again with a valid ID. - schema: - $ref: '#/components/schemas/Error' - description: Payout Not Found - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: "API to fetch the current status, or details of the payout" - tags: - - payout - /payouts_channels: - get: - operationId: getPayoutChannels - parameters: - - description: Filter channels by currency from ISO-4217 values - explode: true - in: query - name: currency - required: false - schema: - example: "IDR, PHP" - type: string - style: form - - allowReserved: true - description: Filter channels by category - explode: false - in: query - name: channel_category - required: false - schema: - items: - $ref: '#/components/schemas/ChannelCategory' - type: array - style: form - - description: "Filter channels by channel code, prefixed by ISO-3166 country\ - \ code" - explode: true - in: query - name: channel_code - required: false - schema: - example: "ID_MANDIRI, PH_GCASH" - type: string - style: form - - description: The sub-account user-id that you want to make this transaction - for. This header is only used if you have access to xenPlatform. See xenPlatform - for more information. - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - example: - - channel_code: ID_MANDIRI - channel_category: BANK - currency: IDR - name: Bank Mandiri - amount_limits: - minimum: "1," - maximum: "5000000," - minimum_increment: 1 - - channel_code: PH_GCASH - channel_category: BANK - currency: PHP - name: GCASH - amount_limits: - minimum: "1," - maximum: "50000," - minimum_increment: 0.01 - items: - $ref: '#/components/schemas/Channel' - type: array - description: Current list of banks and e-wallets supported for payouts for - all regions - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: API providing the current list of banks and e-wallets we support for - payouts for both regions - tags: - - payout - /v2/payouts/{id}/cancel: - post: - operationId: cancelPayout - parameters: - - description: Payout id returned from the response of /v2/payouts - explode: false - in: path - name: id - required: true - schema: - example: disb-7baa7335-a0b2-4678-bb8c-318c0167f332 - type: string - style: simple - - description: The sub-account user-id that you want to make this transaction - for. This header is only used if you have access to xenPlatform. See xenPlatform - for more information. - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - responses: - "200": - content: - application/json: - examples: - For API Gateway: - value: - id: disb-7baa7335-a0b2-4678-bb8c-318c0167f332 - reference_id: DISB-001 - channel_code: PH_BDO - channel_properties: - account_holder_name: John Doe - account_number: "000000" - description: FX1234 - currency: PHP - amount: 15000.05 - receipt_notification: - email_to: - - user_to@example.com - - user_to2@example.com - - user_to3@example.com - email_cc: - - user_cc@example.com - - user_cc2@example.com - email_bcc: - - user_bcc@example.com - metadata: - external_party: xendit - created: 2019-11-01T12:34:56.007Z - updated: 2019-11-01T12:34:56.007Z - business_id: 5dbf20d7c8eb0c0896f811b6 - status: CANCELLED - schema: - $ref: '#/components/schemas/getPayouts_200_response_data_inner' - description: Cancelled Successfully - "400": - content: - application/json: - example: - error_code: CANCELLATION_NOT_ALLOWED - message: Payout cannot be canceled because it has already been processed - by Xendit. - schema: - $ref: '#/components/schemas/Error' - description: Unable to Cancel - "404": - content: - application/json: - example: - error_code: DATA_NOT_FOUND - message: Could not find payout with the corresponding ID. Please try - again with a valid ID - schema: - $ref: '#/components/schemas/Error' - description: Invalid Payout ID - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Errors - summary: API to cancel requested payouts that have not yet been sent to partner - banks and e-wallets. Cancellation is possible if the payout has not been sent - out via our partner and when payout status is ACCEPTED. - tags: - - payout -components: - parameters: - ForUserIdHeader: - description: The sub-account user-id that you want to make this transaction - for. This header is only used if you have access to xenPlatform. See xenPlatform - for more information. - explode: false - in: header - name: for-user-id - required: false - schema: - example: 5f9a3fbd571a1c4068aa40ce - type: string - style: simple - schemas: - ReceiptNotification: - description: Additional notification for completed payout - example: - email_to: - - user_to@example.com - - user_to2@example.com - - user_to3@example.com - email_bcc: - - user_bcc@example.com - email_cc: - - user_cc@example.com - - user_cc2@example.com - properties: - email_to: - description: Valid email address to send the payout receipt - example: - - user_to@example.com - - user_to2@example.com - - user_to3@example.com - items: - format: email - maxItems: 3 - type: string - nullable: true - type: array - email_cc: - description: Valid email address to cc the payout receipt - example: - - user_cc@example.com - - user_cc2@example.com - items: - format: email - maxItems: 3 - type: string - nullable: true - type: array - email_bcc: - description: Valid email address to bcc the payout receipt - example: - - user_bcc@example.com - items: - format: email - maxItems: 3 - type: string - nullable: true - type: array - type: object - Error: - properties: - error_code: - description: "Specific error encountered when processing the request, can\ - \ refer to the API documentation on proper handling of each available\ - \ error code https://developers.xendit.co/api-reference/#payouts" - example: SERVER_ERROR - type: string - message: - description: Human readable error message - type: string - errors: - items: - $ref: '#/components/schemas/Error_errors_inner' - type: array - required: - - error_code - - message - type: object - ChannelAccountType: - description: Available account types (applicable for MY_DUITNOW) - enum: - - NATIONAL_ID - - MOBILE_NO - - PASSPORT - - BUSINESS_REGISTRATION - - BANK_ACCOUNT - type: string - ChannelCategory: - description: "Category of channel code, as some channels might require more\ - \ fields during processing" - enum: - - BANK - - EWALLET - - OTC - example: BANK - type: string - Channel: - description: Channel information where you can send the money to - properties: - channel_code: - description: "Destination channel to send the money to, prefixed by ISO-3166\ - \ country code" - example: ID_MANDIRI - type: string - channel_category: - $ref: '#/components/schemas/ChannelCategory' - currency: - description: Currency of the destination channel using ISO-4217 currency - code - example: IDR - type: string - channel_name: - description: Name of the destination channel - example: Bank Mandiri - type: string - amount_limits: - $ref: '#/components/schemas/Channel_amount_limits' - required: - - amount_limits - - channel_category - - channel_code - - channel_name - - currency - type: object - DigitalPayoutChannelProperties: - description: "Channel information for digital destinations (banks, e-wallets)" - example: - account_number: "9999999999" - account_type: null - account_holder_name: Adam Gilcrist - properties: - account_holder_name: - description: Registered account name - example: Adam Gilcrist - nullable: true - type: string - account_number: - description: Registered account number - example: "9999999999" - type: string - account_type: - $ref: '#/components/schemas/ChannelAccountType' - required: - - account_number - type: object - CreatePayoutRequest: - description: Information needed by Xendit to send money to the destination channel - provided - example: - amount: 15000.05 - metadata: - external_party: xendit - reference_id: DISB-001 - receipt_notification: - email_to: - - user_to@example.com - - user_to2@example.com - - user_to3@example.com - email_bcc: - - user_bcc@example.com - email_cc: - - user_cc@example.com - - user_cc2@example.com - description: Cashback 2020 - channel_properties: - account_number: "9999999999" - account_type: null - account_holder_name: Adam Gilcrist - currency: PHP - channel_code: PH_BDO - properties: - reference_id: - description: A client defined payout identifier - example: DISB-001 - minLength: 1 - type: string - channel_code: - description: Channel code of selected destination bank or e-wallet - example: PH_BDO - type: string - channel_properties: - $ref: '#/components/schemas/DigitalPayoutChannelProperties' - amount: - description: Amount to be sent to the destination account and should be - a multiple of the minimum increment for the selected channel - example: 15000.05 - type: number - description: - description: "Description to send with the payout, the recipient may see\ - \ this e.g., in their bank statement (if supported) or in email receipts\ - \ we send on your behalf" - example: Cashback 2020 - type: string - currency: - description: Currency of the destination channel using ISO-4217 currency - code - example: PHP - type: string - receipt_notification: - $ref: '#/components/schemas/ReceiptNotification' - metadata: - description: Object of additional information you may use - example: - external_party: xendit - type: object - required: - - amount - - channel_code - - channel_properties - - currency - - reference_id - type: object - Payout: - allOf: - - $ref: '#/components/schemas/CreatePayoutRequest' - - $ref: '#/components/schemas/Payout_allOf' - getPayouts_200_response_data_inner: - anyOf: - - $ref: '#/components/schemas/Payout' - getPayouts_200_response_links: - example: - method: method - rel: rel - href: href - properties: - href: - type: string - rel: - type: string - method: - type: string - type: object - getPayouts_200_response: - example: - data: - - null - - null - links: - method: method - rel: rel - href: href - has_more: true - properties: - data: - items: - $ref: '#/components/schemas/getPayouts_200_response_data_inner' - type: array - has_more: - type: boolean - links: - $ref: '#/components/schemas/getPayouts_200_response_links' - type: object - Error_errors_inner: - properties: - path: - description: Precise location of the error - type: string - message: - description: Specific description of the error - type: string - required: - - message - - path - type: object - Channel_amount_limits: - description: Supported amount ranges for payouts to this channel - properties: - minimum: - description: Lowest amount supported for a payout to this channel - example: 1 - type: number - maximum: - description: Highest amount supported for a payout to this channel - example: 50000000 - type: number - minimum_increment: - description: Supported increments - example: 1 - type: number - required: - - maximum - - minimum - - minimum_increment - type: object - Payout_allOf: - properties: - id: - description: Xendit-generated unique identifier for each payout - example: disb_4203234e-48f5-11eb-b378-0242ac130002 - type: string - created: - description: "The time payout was created on Xendit's system, in ISO 8601\ - \ format" - example: 2019-11-01T12:34:56.007Z - format: date-time - type: string - updated: - description: "The time payout was last updated on Xendit's system, in ISO\ - \ 8601 format" - example: 2019-11-01T12:34:56.007Z - format: date-time - type: string - business_id: - description: Xendit Business ID - example: 4203234e-48f5-11eb-b378-0242ac130002 - type: string - status: - description: Status of payout - enum: - - SUCCEEDED - - FAILED - - ACCEPTED - - REQUESTED - - LOCKED - - CANCELLED - - REVERSED - example: ACCEPTED - type: string - failure_code: - description: "If the Payout failed, we include a failure code for more details\ - \ on the failure." - enum: - - INSUFFICIENT_BALANCE - - REJECTED_BY_CHANNEL - - TEMPORARY_TRANSFER_ERROR - - INVALID_DESTINATION - - TRANSFER_ERROR - type: string - estimated_arrival_time: - description: Our estimated time on to when your payout is reflected to the - destination account - format: date-time - type: string - required: - - business_id - - created - - id - - status - - updated - type: object - example: null diff --git a/docs/Payout/Channel.md b/docs/Payout/Channel.md index ba7ee75..36abac4 100644 --- a/docs/Payout/Channel.md +++ b/docs/Payout/Channel.md @@ -1,18 +1,19 @@ # # Channel - +Channel information where you can send the money to ```php use Xendit\Payout\Channel; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **channel_code** | **string** | Destination channel to send the money to, prefixed by ISO-3166 country code | ID_MANDIRI | | -| **channel_category** | [**ChannelCategory**](ChannelCategory.md) | | null | | -| **currency** | **string** | Currency of the destination channel using ISO-4217 currency code | IDR | | -| **channel_name** | **string** | Name of the destination channel | Bank Mandiri | | -| **amount_limits** | [**ChannelAmountLimits**](ChannelAmountLimits.md) | | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **channel_code** | **string** | ☑️ | Destination channel to send the money to, prefixed by ISO-3166 country code | ID_MANDIRI | +| **channel_category** | [**ChannelCategory**](ChannelCategory.md) | ☑️ | | null | +| **currency** | **string** | ☑️ | Currency of the destination channel using ISO-4217 currency code | IDR | +| **channel_name** | **string** | ☑️ | Name of the destination channel | Bank Mandiri | +| **amount_limits** | [**ChannelAmountLimits**](ChannelAmountLimits.md) | ☑️ | | null | [[Back to README]](../../README.md) diff --git a/docs/Payout/ChannelAccountType.md b/docs/Payout/ChannelAccountType.md index 0e45de5..3163fdd 100644 --- a/docs/Payout/ChannelAccountType.md +++ b/docs/Payout/ChannelAccountType.md @@ -1,10 +1,11 @@ # # ChannelAccountType - +Available account types (applicable for MY_DUITNOW) ```php use Xendit\Payout\ChannelAccountType; ``` + ## Enum @@ -20,6 +21,6 @@ use Xendit\Payout\ChannelAccountType; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Payout/ChannelAmountLimits.md b/docs/Payout/ChannelAmountLimits.md index 3ada3e2..4b03aa4 100644 --- a/docs/Payout/ChannelAmountLimits.md +++ b/docs/Payout/ChannelAmountLimits.md @@ -1,16 +1,17 @@ # # ChannelAmountLimits - +Supported amount ranges for payouts to this channel ```php use Xendit\Payout\ChannelAmountLimits; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **minimum** | **float** | Lowest amount supported for a payout to this channel | 1 | | -| **maximum** | **float** | Highest amount supported for a payout to this channel | 50000000 | | -| **minimum_increment** | **float** | Supported increments | 1 | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **minimum** | **float** | ☑️ | Lowest amount supported for a payout to this channel | 1 | +| **maximum** | **float** | ☑️ | Highest amount supported for a payout to this channel | 50000000 | +| **minimum_increment** | **float** | ☑️ | Supported increments | 1 | [[Back to README]](../../README.md) diff --git a/docs/Payout/ChannelCategory.md b/docs/Payout/ChannelCategory.md index 830f429..b5b6bdd 100644 --- a/docs/Payout/ChannelCategory.md +++ b/docs/Payout/ChannelCategory.md @@ -1,10 +1,11 @@ # # ChannelCategory - +Category of channel code, as some channels might require more fields during processing ```php use Xendit\Payout\ChannelCategory; ``` + ## Enum @@ -16,6 +17,6 @@ use Xendit\Payout\ChannelCategory; * `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`) - If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. +If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM. [[Back to README]](../../README.md) diff --git a/docs/Payout/CreatePayoutRequest.md b/docs/Payout/CreatePayoutRequest.md index f2c11f7..31b6d82 100644 --- a/docs/Payout/CreatePayoutRequest.md +++ b/docs/Payout/CreatePayoutRequest.md @@ -1,21 +1,22 @@ # # CreatePayoutRequest - +Information needed by Xendit to send money to the destination channel provided ```php use Xendit\Payout\CreatePayoutRequest; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **reference_id** | **string** | A client defined payout identifier | DISB-001 | | -| **channel_code** | **string** | Channel code of selected destination bank or e-wallet | PH_BDO | | -| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | null | | -| **amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | 15000.05 | | -| **description** | **string** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | Cashback 2020 | [optional] | -| **currency** | **string** | Currency of the destination channel using ISO-4217 currency code | PHP | | -| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | null | [optional] | -| **metadata** | **object** | Object of additional information you may use | {"external_party":"xendit"} | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **reference_id** | **string** | ☑️ | A client defined payout identifier | DISB-001 | +| **channel_code** | **string** | ☑️ | Channel code of selected destination bank or e-wallet | PH_BDO | +| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | ☑️ | | null | +| **amount** | **float** | ☑️ | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | 15000.05 | +| **description** | **string** | | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | Cashback 2020 | +| **currency** | **string** | ☑️ | Currency of the destination channel using ISO-4217 currency code | PHP | +| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | | null | +| **metadata** | **object** | | Object of additional information you may use | {"external_party":"xendit"} | [[Back to README]](../../README.md) diff --git a/docs/Payout/DigitalPayoutChannelProperties.md b/docs/Payout/DigitalPayoutChannelProperties.md index 72ec232..1e4f17e 100644 --- a/docs/Payout/DigitalPayoutChannelProperties.md +++ b/docs/Payout/DigitalPayoutChannelProperties.md @@ -1,16 +1,17 @@ # # DigitalPayoutChannelProperties - +Channel information for digital destinations (banks, e-wallets) ```php use Xendit\Payout\DigitalPayoutChannelProperties; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **account_holder_name** | **string** | Registered account name | Adam Gilcrist | [optional] | -| **account_number** | **string** | Registered account number | 9999999999 | | -| **account_type** | [**ChannelAccountType**](ChannelAccountType.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **account_holder_name** | **string** | | Registered account name | Adam Gilcrist | +| **account_number** | **string** | ☑️ | Registered account number | 9999999999 | +| **account_type** | [**ChannelAccountType**](ChannelAccountType.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/Payout/Error.md b/docs/Payout/Error.md index 9400486..6ba8b33 100644 --- a/docs/Payout/Error.md +++ b/docs/Payout/Error.md @@ -4,13 +4,14 @@ ```php use Xendit\Payout\Error; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **error_code** | **string** | Specific error encountered when processing the request, can refer to the API documentation on proper handling of each available error code https://developers.xendit.co/api-reference/#payouts | SERVER_ERROR | | -| **message** | **string** | Human readable error message | null | | -| **errors** | [**array**](ErrorErrorsInner.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **error_code** | **string** | ☑️ | Specific error encountered when processing the request, can refer to the API documentation on proper handling of each available error code https://developers.xendit.co/api-reference/#payouts | SERVER_ERROR | +| **message** | **string** | ☑️ | Human readable error message | null | +| **errors** | [**array**](ErrorErrorsInner.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/Payout/ErrorErrorsInner.md b/docs/Payout/ErrorErrorsInner.md index e0e81e3..c64f72e 100644 --- a/docs/Payout/ErrorErrorsInner.md +++ b/docs/Payout/ErrorErrorsInner.md @@ -4,12 +4,13 @@ ```php use Xendit\Payout\ErrorErrorsInner; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **path** | **string** | Precise location of the error | null | | -| **message** | **string** | Specific description of the error | null | | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **path** | **string** | ☑️ | Precise location of the error | null | +| **message** | **string** | ☑️ | Specific description of the error | null | [[Back to README]](../../README.md) diff --git a/docs/Payout/GetPayouts200Response.md b/docs/Payout/GetPayouts200Response.md index ca239ce..55fe532 100644 --- a/docs/Payout/GetPayouts200Response.md +++ b/docs/Payout/GetPayouts200Response.md @@ -4,13 +4,14 @@ ```php use Xendit\Payout\GetPayouts200Response; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **data** | [**array**](GetPayouts200ResponseDataInner.md) | | null | [optional] | -| **has_more** | **bool** | | null | [optional] | -| **links** | [**GetPayouts200ResponseLinks**](GetPayouts200ResponseLinks.md) | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **data** | [**array**](GetPayouts200ResponseDataInner.md) | | | null | +| **has_more** | **bool** | | | null | +| **links** | [**GetPayouts200ResponseLinks**](GetPayouts200ResponseLinks.md) | | | null | [[Back to README]](../../README.md) diff --git a/docs/Payout/GetPayouts200ResponseDataInner.md b/docs/Payout/GetPayouts200ResponseDataInner.md index a1f24a3..b804ace 100644 --- a/docs/Payout/GetPayouts200ResponseDataInner.md +++ b/docs/Payout/GetPayouts200ResponseDataInner.md @@ -4,25 +4,26 @@ ```php use Xendit\Payout\GetPayouts200ResponseDataInner; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **reference_id** | **string** | A client defined payout identifier | DISB-001 | | -| **channel_code** | **string** | Channel code of selected destination bank or e-wallet | PH_BDO | | -| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | null | | -| **amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | 15000.05 | | -| **description** | **string** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | Cashback 2020 | [optional] | -| **currency** | **string** | Currency of the destination channel using ISO-4217 currency code | PHP | | -| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | null | [optional] | -| **metadata** | **object** | Object of additional information you may use | {"external_party":"xendit"} | [optional] | -| **id** | **string** | Xendit-generated unique identifier for each payout | disb_4203234e-48f5-11eb-b378-0242ac130002 | | -| **created** | **\DateTime** | The time payout was created on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | | -| **updated** | **\DateTime** | The time payout was last updated on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | | -| **business_id** | **string** | Xendit Business ID | 4203234e-48f5-11eb-b378-0242ac130002 | | -| **status** | **string** | Status of payout | ACCEPTED | | -| **failure_code** | **string** | If the Payout failed, we include a failure code for more details on the failure. | null | [optional] | -| **estimated_arrival_time** | **\DateTime** | Our estimated time on to when your payout is reflected to the destination account | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **reference_id** | **string** | ☑️ | A client defined payout identifier | DISB-001 | +| **channel_code** | **string** | ☑️ | Channel code of selected destination bank or e-wallet | PH_BDO | +| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | ☑️ | | null | +| **amount** | **float** | ☑️ | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | 15000.05 | +| **description** | **string** | | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | Cashback 2020 | +| **currency** | **string** | ☑️ | Currency of the destination channel using ISO-4217 currency code | PHP | +| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | | null | +| **metadata** | **object** | | Object of additional information you may use | {"external_party":"xendit"} | +| **id** | **string** | ☑️ | Xendit-generated unique identifier for each payout | disb_4203234e-48f5-11eb-b378-0242ac130002 | +| **created** | **\DateTime** | ☑️ | The time payout was created on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | +| **updated** | **\DateTime** | ☑️ | The time payout was last updated on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | +| **business_id** | **string** | ☑️ | Xendit Business ID | 4203234e-48f5-11eb-b378-0242ac130002 | +| **status** | **string** | ☑️ | Status of payout | ACCEPTED | +| **failure_code** | **string** | | If the Payout failed, we include a failure code for more details on the failure. | null | +| **estimated_arrival_time** | **\DateTime** | | Our estimated time on to when your payout is reflected to the destination account | null | [[Back to README]](../../README.md) diff --git a/docs/Payout/GetPayouts200ResponseLinks.md b/docs/Payout/GetPayouts200ResponseLinks.md index 0b18385..c5c11e1 100644 --- a/docs/Payout/GetPayouts200ResponseLinks.md +++ b/docs/Payout/GetPayouts200ResponseLinks.md @@ -4,13 +4,14 @@ ```php use Xendit\Payout\GetPayouts200ResponseLinks; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **href** | **string** | | null | [optional] | -| **rel** | **string** | | null | [optional] | -| **method** | **string** | | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **href** | **string** | | | null | +| **rel** | **string** | | | null | +| **method** | **string** | | | null | [[Back to README]](../../README.md) diff --git a/docs/Payout/Payout.md b/docs/Payout/Payout.md index 5bf5266..a9003ee 100644 --- a/docs/Payout/Payout.md +++ b/docs/Payout/Payout.md @@ -4,25 +4,26 @@ ```php use Xendit\Payout\Payout; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **reference_id** | **string** | A client defined payout identifier | DISB-001 | | -| **channel_code** | **string** | Channel code of selected destination bank or e-wallet | PH_BDO | | -| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | | null | | -| **amount** | **float** | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | 15000.05 | | -| **description** | **string** | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | Cashback 2020 | [optional] | -| **currency** | **string** | Currency of the destination channel using ISO-4217 currency code | PHP | | -| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | null | [optional] | -| **metadata** | **object** | Object of additional information you may use | {"external_party":"xendit"} | [optional] | -| **id** | **string** | Xendit-generated unique identifier for each payout | disb_4203234e-48f5-11eb-b378-0242ac130002 | | -| **created** | **\DateTime** | The time payout was created on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | | -| **updated** | **\DateTime** | The time payout was last updated on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | | -| **business_id** | **string** | Xendit Business ID | 4203234e-48f5-11eb-b378-0242ac130002 | | -| **status** | **string** | Status of payout | ACCEPTED | | -| **failure_code** | **string** | If the Payout failed, we include a failure code for more details on the failure. | null | [optional] | -| **estimated_arrival_time** | **\DateTime** | Our estimated time on to when your payout is reflected to the destination account | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **reference_id** | **string** | ☑️ | A client defined payout identifier | DISB-001 | +| **channel_code** | **string** | ☑️ | Channel code of selected destination bank or e-wallet | PH_BDO | +| **channel_properties** | [**DigitalPayoutChannelProperties**](DigitalPayoutChannelProperties.md) | ☑️ | | null | +| **amount** | **float** | ☑️ | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | 15000.05 | +| **description** | **string** | | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | Cashback 2020 | +| **currency** | **string** | ☑️ | Currency of the destination channel using ISO-4217 currency code | PHP | +| **receipt_notification** | [**ReceiptNotification**](ReceiptNotification.md) | | | null | +| **metadata** | **object** | | Object of additional information you may use | {"external_party":"xendit"} | +| **id** | **string** | ☑️ | Xendit-generated unique identifier for each payout | disb_4203234e-48f5-11eb-b378-0242ac130002 | +| **created** | **\DateTime** | ☑️ | The time payout was created on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | +| **updated** | **\DateTime** | ☑️ | The time payout was last updated on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | +| **business_id** | **string** | ☑️ | Xendit Business ID | 4203234e-48f5-11eb-b378-0242ac130002 | +| **status** | **string** | ☑️ | Status of payout | ACCEPTED | +| **failure_code** | **string** | | If the Payout failed, we include a failure code for more details on the failure. | null | +| **estimated_arrival_time** | **\DateTime** | | Our estimated time on to when your payout is reflected to the destination account | null | [[Back to README]](../../README.md) diff --git a/docs/Payout/PayoutAllOf.md b/docs/Payout/PayoutAllOf.md index e0ecd9c..7f90652 100644 --- a/docs/Payout/PayoutAllOf.md +++ b/docs/Payout/PayoutAllOf.md @@ -4,17 +4,18 @@ ```php use Xendit\Payout\PayoutAllOf; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **id** | **string** | Xendit-generated unique identifier for each payout | disb_4203234e-48f5-11eb-b378-0242ac130002 | | -| **created** | **\DateTime** | The time payout was created on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | | -| **updated** | **\DateTime** | The time payout was last updated on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | | -| **business_id** | **string** | Xendit Business ID | 4203234e-48f5-11eb-b378-0242ac130002 | | -| **status** | **string** | Status of payout | ACCEPTED | | -| **failure_code** | **string** | If the Payout failed, we include a failure code for more details on the failure. | null | [optional] | -| **estimated_arrival_time** | **\DateTime** | Our estimated time on to when your payout is reflected to the destination account | null | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **id** | **string** | ☑️ | Xendit-generated unique identifier for each payout | disb_4203234e-48f5-11eb-b378-0242ac130002 | +| **created** | **\DateTime** | ☑️ | The time payout was created on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | +| **updated** | **\DateTime** | ☑️ | The time payout was last updated on Xendit's system, in ISO 8601 format | 2019-11-01T12:34:56.007Z | +| **business_id** | **string** | ☑️ | Xendit Business ID | 4203234e-48f5-11eb-b378-0242ac130002 | +| **status** | **string** | ☑️ | Status of payout | ACCEPTED | +| **failure_code** | **string** | | If the Payout failed, we include a failure code for more details on the failure. | null | +| **estimated_arrival_time** | **\DateTime** | | Our estimated time on to when your payout is reflected to the destination account | null | [[Back to README]](../../README.md) diff --git a/docs/Payout/ReceiptNotification.md b/docs/Payout/ReceiptNotification.md index f0b4cbc..d65b110 100644 --- a/docs/Payout/ReceiptNotification.md +++ b/docs/Payout/ReceiptNotification.md @@ -1,16 +1,17 @@ # # ReceiptNotification - +Additional notification for completed payout ```php use Xendit\Payout\ReceiptNotification; ``` + ## Properties -| Name | Type | Description | Examples | Notes | -| ------------ | ------------- | ------------- | ------------- | -------------| -| **email_to** | **string[]** | Valid email address to send the payout receipt | ["user_to@example.com","user_to2@example.com","user_to3@example.com"] | [optional] | -| **email_cc** | **string[]** | Valid email address to cc the payout receipt | ["user_cc@example.com","user_cc2@example.com"] | [optional] | -| **email_bcc** | **string[]** | Valid email address to bcc the payout receipt | ["user_bcc@example.com"] | [optional] | +| Name | Type | Required | Description | Examples | +|------------|:-------------:|:-------------:|-------------|:-------------:| +| **email_to** | **string[]** | | Valid email address to send the payout receipt | ["user_to@example.com","user_to2@example.com","user_to3@example.com"] | +| **email_cc** | **string[]** | | Valid email address to cc the payout receipt | ["user_cc@example.com","user_cc2@example.com"] | +| **email_bcc** | **string[]** | | Valid email address to bcc the payout receipt | ["user_bcc@example.com"] | [[Back to README]](../../README.md) diff --git a/docs/Payout/PayoutApi.md b/docs/PayoutApi.md similarity index 52% rename from docs/Payout/PayoutApi.md rename to docs/PayoutApi.md index 0c2150d..a4e4296 100644 --- a/docs/Payout/PayoutApi.md +++ b/docs/PayoutApi.md @@ -1,17 +1,33 @@ -# Xendit\PayoutApi +# PayoutApi + + +You can use the APIs below to interface with Xendit's `PayoutApi`. +To start using the API, you need to configure the secret key and initiate the client instance. + +```php + 'DISB-001', + 'currency' => 'PHP', + 'channel_code' => 'PH_BDO', + 'channel_properties' => [ + 'account_holder_name' => 'John Doe', + 'account_number' => '000000' + ], + 'amount' => 90000, + 'description' => 'Test Bank Payout', + 'type' => 'DIRECT_DISBURSEMENT' +]); // \Xendit\Payout\CreatePayoutRequest try { $result = $apiInstance->createPayout($idempotency_key, $for_user_id, $create_payout_request); - print_r($result); + print_r($result); } catch (\Xendit\XenditSdkException $e) { echo 'Exception when calling PayoutApi->createPayout: ', $e->getMessage(), PHP_EOL; echo 'Full Error: ', json_encode($e->getFullError()), PHP_EOL; } ``` -### Parameters - -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **idempotency_key** | **string**| A unique key to prevent duplicate requests from pushing through our system. No expiration. | | -| **for_user_id** | **string**| The sub-account user-id that you want to make this transaction for. This header is only used if you have access to xenPlatform. See xenPlatform for more information. | [optional] | -| **create_payout_request** | [**CreatePayoutRequest**](CreatePayoutRequest.md)| | [optional] | - -### Return type - -[**\Xendit\Payout\GetPayouts200ResponseDataInner**](GetPayouts200ResponseDataInner.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: `application/json` -- **Accept**: `application/json` -[[Back to README]](../../README.md) - -## `getPayoutById()` +## `getPayoutById()` Function ```php getPayoutById($id, $for_user_id): \Payout\GetPayouts200ResponseDataInner @@ -75,8 +95,20 @@ getPayoutById($id, $for_user_id): \Payout\GetPayouts200ResponseDataInner API to fetch the current status, or details of the payout -### Example +| Name | Value | +|--------------------|:-------------:| +| Function Name | `getPayoutById` | +| Request Parameters | [GetPayoutByIdRequestParams](#request-parameters--GetPayoutByIdRequestParams) | +| Return Type | [**\Xendit\Payout\GetPayouts200ResponseDataInner**](Payout/GetPayouts200ResponseDataInner.md) | + +### Request Parameters - GetPayoutByIdRequestParams +|Name | Type | Required |Default | +|-------------|:-------------:|:-------------:|-------------| +| **id** | **string** | ☑️ | | +| **for_user_id** | **string** | | | + +### Usage Example ```php config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/BalanceAndTransaction/ChannelsCategories.php b/lib/BalanceAndTransaction/ChannelsCategories.php index 3cd9088..9bba4e2 100644 --- a/lib/BalanceAndTransaction/ChannelsCategories.php +++ b/lib/BalanceAndTransaction/ChannelsCategories.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/Currency.php b/lib/BalanceAndTransaction/Currency.php index 31ab88a..870bf16 100644 --- a/lib/BalanceAndTransaction/Currency.php +++ b/lib/BalanceAndTransaction/Currency.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/DateRangeFilter.php b/lib/BalanceAndTransaction/DateRangeFilter.php index 1012cc2..fa2334d 100644 --- a/lib/BalanceAndTransaction/DateRangeFilter.php +++ b/lib/BalanceAndTransaction/DateRangeFilter.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/FeeResponse.php b/lib/BalanceAndTransaction/FeeResponse.php index 933279a..3fb716c 100644 --- a/lib/BalanceAndTransaction/FeeResponse.php +++ b/lib/BalanceAndTransaction/FeeResponse.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/LinkItem.php b/lib/BalanceAndTransaction/LinkItem.php index ddc1b40..544c252 100644 --- a/lib/BalanceAndTransaction/LinkItem.php +++ b/lib/BalanceAndTransaction/LinkItem.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/ServerError.php b/lib/BalanceAndTransaction/ServerError.php index 3febb49..212f3c9 100644 --- a/lib/BalanceAndTransaction/ServerError.php +++ b/lib/BalanceAndTransaction/ServerError.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/TransactionApi.php b/lib/BalanceAndTransaction/TransactionApi.php index d4d9395..800f237 100644 --- a/lib/BalanceAndTransaction/TransactionApi.php +++ b/lib/BalanceAndTransaction/TransactionApi.php @@ -10,7 +10,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -363,7 +363,7 @@ public function getTransactionByIDRequest($id, $for_user_id = null, string $cont // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -806,7 +806,7 @@ public function getAllTransactionsRequest($for_user_id = null, $types = null, $s // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/BalanceAndTransaction/TransactionResponse.php b/lib/BalanceAndTransaction/TransactionResponse.php index b219a7d..16466d4 100644 --- a/lib/BalanceAndTransaction/TransactionResponse.php +++ b/lib/BalanceAndTransaction/TransactionResponse.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/TransactionResponseType.php b/lib/BalanceAndTransaction/TransactionResponseType.php index 431c9d0..affce4c 100644 --- a/lib/BalanceAndTransaction/TransactionResponseType.php +++ b/lib/BalanceAndTransaction/TransactionResponseType.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/TransactionStatuses.php b/lib/BalanceAndTransaction/TransactionStatuses.php index 7fd676d..7c9b6f7 100644 --- a/lib/BalanceAndTransaction/TransactionStatuses.php +++ b/lib/BalanceAndTransaction/TransactionStatuses.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/TransactionTypes.php b/lib/BalanceAndTransaction/TransactionTypes.php index 1760279..ec29889 100644 --- a/lib/BalanceAndTransaction/TransactionTypes.php +++ b/lib/BalanceAndTransaction/TransactionTypes.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/TransactionsResponse.php b/lib/BalanceAndTransaction/TransactionsResponse.php index 4338f5b..261fed6 100644 --- a/lib/BalanceAndTransaction/TransactionsResponse.php +++ b/lib/BalanceAndTransaction/TransactionsResponse.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/BalanceAndTransaction/ValidationError.php b/lib/BalanceAndTransaction/ValidationError.php index 6d6e9e6..1e6fd5a 100644 --- a/lib/BalanceAndTransaction/ValidationError.php +++ b/lib/BalanceAndTransaction/ValidationError.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** diff --git a/lib/Configuration.php b/lib/Configuration.php index 84fcbeb..02bb491 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -10,7 +10,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -64,7 +64,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/3.4.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/3.6.0/PHP'; /** * Debug switch (default set to false) @@ -304,8 +304,8 @@ public static function toDebugReport() $report = 'PHP SDK (Xendit) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' The version of the OpenAPI document: 1.44.1' . PHP_EOL; - $report .= ' SDK Package Version: 3.4.0' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 1.45.1' . PHP_EOL; + $report .= ' SDK Package Version: 3.6.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Customer/CustomerApi.php b/lib/Customer/CustomerApi.php index 02ffa94..141086e 100644 --- a/lib/Customer/CustomerApi.php +++ b/lib/Customer/CustomerApi.php @@ -369,7 +369,7 @@ public function createCustomerRequest($idempotency_key = null, $for_user_id = nu // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -628,7 +628,7 @@ public function getCustomerRequest($id, $for_user_id = null, string $contentType // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -891,7 +891,7 @@ public function getCustomerByReferenceIDRequest($reference_id, $for_user_id = nu // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1163,7 +1163,7 @@ public function updateCustomerRequest($id, $for_user_id = null, $patch_customer // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index 923d5de..92c1c0b 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -10,7 +10,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/Invoice/InvoiceApi.php b/lib/Invoice/InvoiceApi.php index 0f628a8..2bed5b9 100644 --- a/lib/Invoice/InvoiceApi.php +++ b/lib/Invoice/InvoiceApi.php @@ -365,7 +365,7 @@ public function createInvoiceRequest($create_invoice_request, $for_user_id = nul // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -624,7 +624,7 @@ public function getInvoiceByIdRequest($invoice_id, $for_user_id = null, string $ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1073,7 +1073,7 @@ public function getInvoicesRequest($for_user_id = null, $external_id = null, $st // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1332,7 +1332,7 @@ public function expireInvoiceRequest($invoice_id, $for_user_id = null, string $c // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php index dd3a263..3b1692f 100644 --- a/lib/Model/ModelInterface.php +++ b/lib/Model/ModelInterface.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index a267381..82e7c8e 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -13,7 +13,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentMethod/BillingInformation.php b/lib/PaymentMethod/BillingInformation.php index 955f727..e54ebc6 100644 --- a/lib/PaymentMethod/BillingInformation.php +++ b/lib/PaymentMethod/BillingInformation.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/Card.php b/lib/PaymentMethod/Card.php index b92d702..d7e0250 100644 --- a/lib/PaymentMethod/Card.php +++ b/lib/PaymentMethod/Card.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/CardChannelProperties.php b/lib/PaymentMethod/CardChannelProperties.php index 381ebc9..1df2749 100644 --- a/lib/PaymentMethod/CardChannelProperties.php +++ b/lib/PaymentMethod/CardChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/CardParameters.php b/lib/PaymentMethod/CardParameters.php index f0a021b..e908b31 100644 --- a/lib/PaymentMethod/CardParameters.php +++ b/lib/PaymentMethod/CardParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/CardParametersCardInformation.php b/lib/PaymentMethod/CardParametersCardInformation.php index aa8c28e..1aa1231 100644 --- a/lib/PaymentMethod/CardParametersCardInformation.php +++ b/lib/PaymentMethod/CardParametersCardInformation.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/CardVerificationResults.php b/lib/PaymentMethod/CardVerificationResults.php index 225214a..46135fc 100644 --- a/lib/PaymentMethod/CardVerificationResults.php +++ b/lib/PaymentMethod/CardVerificationResults.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/CardVerificationResultsThreeDSecure.php b/lib/PaymentMethod/CardVerificationResultsThreeDSecure.php index 28b477e..de576af 100644 --- a/lib/PaymentMethod/CardVerificationResultsThreeDSecure.php +++ b/lib/PaymentMethod/CardVerificationResultsThreeDSecure.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/CreatePaymentMethod409Response.php b/lib/PaymentMethod/CreatePaymentMethod409Response.php index 11e04ae..a0f9c7a 100644 --- a/lib/PaymentMethod/CreatePaymentMethod409Response.php +++ b/lib/PaymentMethod/CreatePaymentMethod409Response.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/CreatePaymentMethod503Response.php b/lib/PaymentMethod/CreatePaymentMethod503Response.php index 317a7b4..af39312 100644 --- a/lib/PaymentMethod/CreatePaymentMethod503Response.php +++ b/lib/PaymentMethod/CreatePaymentMethod503Response.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/DirectDebit.php b/lib/PaymentMethod/DirectDebit.php index 24176b6..eb865bb 100644 --- a/lib/PaymentMethod/DirectDebit.php +++ b/lib/PaymentMethod/DirectDebit.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/DirectDebitAllOf.php b/lib/PaymentMethod/DirectDebitAllOf.php index f4d8475..0daa1d1 100644 --- a/lib/PaymentMethod/DirectDebitAllOf.php +++ b/lib/PaymentMethod/DirectDebitAllOf.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/DirectDebitBankAccount.php b/lib/PaymentMethod/DirectDebitBankAccount.php index 5f82ab7..7702af3 100644 --- a/lib/PaymentMethod/DirectDebitBankAccount.php +++ b/lib/PaymentMethod/DirectDebitBankAccount.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/DirectDebitChannelCode.php b/lib/PaymentMethod/DirectDebitChannelCode.php index 826c38a..db81c7f 100644 --- a/lib/PaymentMethod/DirectDebitChannelCode.php +++ b/lib/PaymentMethod/DirectDebitChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/DirectDebitChannelProperties.php b/lib/PaymentMethod/DirectDebitChannelProperties.php index 4c75bca..5b35fcf 100644 --- a/lib/PaymentMethod/DirectDebitChannelProperties.php +++ b/lib/PaymentMethod/DirectDebitChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -58,7 +58,8 @@ class DirectDebitChannelProperties implements ModelInterface, ArrayAccess, \Json 'card_expiry' => 'string', 'email' => 'string', 'identity_document_number' => 'string', - 'require_auth' => 'bool' + 'require_auth' => 'bool', + 'account_number' => 'string' ]; /** @@ -76,7 +77,8 @@ class DirectDebitChannelProperties implements ModelInterface, ArrayAccess, \Json 'card_expiry' => null, 'email' => null, 'identity_document_number' => null, - 'require_auth' => null + 'require_auth' => null, + 'account_number' => null ]; /** @@ -92,7 +94,8 @@ class DirectDebitChannelProperties implements ModelInterface, ArrayAccess, \Json 'card_expiry' => true, 'email' => true, 'identity_document_number' => true, - 'require_auth' => true + 'require_auth' => true, + 'account_number' => true ]; /** @@ -188,7 +191,8 @@ public function isNullableSetToNull(string $property): bool 'card_expiry' => 'card_expiry', 'email' => 'email', 'identity_document_number' => 'identity_document_number', - 'require_auth' => 'require_auth' + 'require_auth' => 'require_auth', + 'account_number' => 'account_number' ]; /** @@ -204,7 +208,8 @@ public function isNullableSetToNull(string $property): bool 'card_expiry' => 'setCardExpiry', 'email' => 'setEmail', 'identity_document_number' => 'setIdentityDocumentNumber', - 'require_auth' => 'setRequireAuth' + 'require_auth' => 'setRequireAuth', + 'account_number' => 'setAccountNumber' ]; /** @@ -220,7 +225,8 @@ public function isNullableSetToNull(string $property): bool 'card_expiry' => 'getCardExpiry', 'email' => 'getEmail', 'identity_document_number' => 'getIdentityDocumentNumber', - 'require_auth' => 'getRequireAuth' + 'require_auth' => 'getRequireAuth', + 'account_number' => 'getAccountNumber' ]; /** @@ -288,6 +294,7 @@ public function __construct(array $data = null) $this->setIfExists('email', $data ?? [], null); $this->setIfExists('identity_document_number', $data ?? [], null); $this->setIfExists('require_auth', $data ?? [], null); + $this->setIfExists('account_number', $data ?? [], null); } /** @@ -596,6 +603,40 @@ public function setRequireAuth($require_auth) return $this; } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account number of the customer + * + * @return self + */ + public function setAccountNumber($account_number) + { + if (is_null($account_number)) { + array_push($this->openAPINullablesSetToNull, 'account_number'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('account_number', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['account_number'] = $account_number; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/PaymentMethod/DirectDebitDebitCard.php b/lib/PaymentMethod/DirectDebitDebitCard.php index bc2be0a..97c834b 100644 --- a/lib/PaymentMethod/DirectDebitDebitCard.php +++ b/lib/PaymentMethod/DirectDebitDebitCard.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -53,7 +53,8 @@ class DirectDebitDebitCard implements ModelInterface, ArrayAccess, \JsonSerializ 'mobile_number' => 'string', 'card_last_four' => 'string', 'card_expiry' => 'string', - 'email' => 'string' + 'email' => 'string', + 'account_number' => 'string' ]; /** @@ -67,7 +68,8 @@ class DirectDebitDebitCard implements ModelInterface, ArrayAccess, \JsonSerializ 'mobile_number' => null, 'card_last_four' => null, 'card_expiry' => null, - 'email' => null + 'email' => null, + 'account_number' => null ]; /** @@ -79,7 +81,8 @@ class DirectDebitDebitCard implements ModelInterface, ArrayAccess, \JsonSerializ 'mobile_number' => true, 'card_last_four' => true, 'card_expiry' => true, - 'email' => true + 'email' => true, + 'account_number' => true ]; /** @@ -171,7 +174,8 @@ public function isNullableSetToNull(string $property): bool 'mobile_number' => 'mobile_number', 'card_last_four' => 'card_last_four', 'card_expiry' => 'card_expiry', - 'email' => 'email' + 'email' => 'email', + 'account_number' => 'account_number' ]; /** @@ -183,7 +187,8 @@ public function isNullableSetToNull(string $property): bool 'mobile_number' => 'setMobileNumber', 'card_last_four' => 'setCardLastFour', 'card_expiry' => 'setCardExpiry', - 'email' => 'setEmail' + 'email' => 'setEmail', + 'account_number' => 'setAccountNumber' ]; /** @@ -195,7 +200,8 @@ public function isNullableSetToNull(string $property): bool 'mobile_number' => 'getMobileNumber', 'card_last_four' => 'getCardLastFour', 'card_expiry' => 'getCardExpiry', - 'email' => 'getEmail' + 'email' => 'getEmail', + 'account_number' => 'getAccountNumber' ]; /** @@ -259,6 +265,7 @@ public function __construct(array $data = null) $this->setIfExists('card_last_four', $data ?? [], null); $this->setIfExists('card_expiry', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); + $this->setIfExists('account_number', $data ?? [], null); } /** @@ -438,6 +445,40 @@ public function setEmail($email) return $this; } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account number of the customer + * + * @return self + */ + public function setAccountNumber($account_number) + { + if (is_null($account_number)) { + array_push($this->openAPINullablesSetToNull, 'account_number'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('account_number', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['account_number'] = $account_number; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/PaymentMethod/DirectDebitParameters.php b/lib/PaymentMethod/DirectDebitParameters.php index 7b4e1ce..35bbf54 100644 --- a/lib/PaymentMethod/DirectDebitParameters.php +++ b/lib/PaymentMethod/DirectDebitParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/DirectDebitType.php b/lib/PaymentMethod/DirectDebitType.php index 8496425..eae2c3a 100644 --- a/lib/PaymentMethod/DirectDebitType.php +++ b/lib/PaymentMethod/DirectDebitType.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/EWallet.php b/lib/PaymentMethod/EWallet.php index 2800bce..c7864c9 100644 --- a/lib/PaymentMethod/EWallet.php +++ b/lib/PaymentMethod/EWallet.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/EWalletAccount.php b/lib/PaymentMethod/EWalletAccount.php index a6c00fa..ad95b2f 100644 --- a/lib/PaymentMethod/EWalletAccount.php +++ b/lib/PaymentMethod/EWalletAccount.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/EWalletChannelCode.php b/lib/PaymentMethod/EWalletChannelCode.php index 5d02d8c..91e041f 100644 --- a/lib/PaymentMethod/EWalletChannelCode.php +++ b/lib/PaymentMethod/EWalletChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -77,6 +77,8 @@ class EWalletChannelCode public const ALIPAY = 'ALIPAY'; + public const TOUCHANDGO = 'TOUCHANDGO'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -127,6 +129,7 @@ public static function getAllowableEnumValues() self::LINEPAY, self::TRUEMONEY, self::ALIPAY, + self::TOUCHANDGO, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/PaymentMethod/EWalletChannelProperties.php b/lib/PaymentMethod/EWalletChannelProperties.php index 78bec25..0815a53 100644 --- a/lib/PaymentMethod/EWalletChannelProperties.php +++ b/lib/PaymentMethod/EWalletChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/EWalletParameters.php b/lib/PaymentMethod/EWalletParameters.php index 99bf13b..170ed80 100644 --- a/lib/PaymentMethod/EWalletParameters.php +++ b/lib/PaymentMethod/EWalletParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/GetAllPaymentMethods400Response.php b/lib/PaymentMethod/GetAllPaymentMethods400Response.php index 399e59c..75f130b 100644 --- a/lib/PaymentMethod/GetAllPaymentMethods400Response.php +++ b/lib/PaymentMethod/GetAllPaymentMethods400Response.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/GetAllPaymentMethods403Response.php b/lib/PaymentMethod/GetAllPaymentMethods403Response.php index 8eaf981..3797b3f 100644 --- a/lib/PaymentMethod/GetAllPaymentMethods403Response.php +++ b/lib/PaymentMethod/GetAllPaymentMethods403Response.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/GetAllPaymentMethods404Response.php b/lib/PaymentMethod/GetAllPaymentMethods404Response.php index 7fec79d..32817d3 100644 --- a/lib/PaymentMethod/GetAllPaymentMethods404Response.php +++ b/lib/PaymentMethod/GetAllPaymentMethods404Response.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/GetAllPaymentMethodsDefaultResponse.php b/lib/PaymentMethod/GetAllPaymentMethodsDefaultResponse.php index 38cde78..d351ae8 100644 --- a/lib/PaymentMethod/GetAllPaymentMethodsDefaultResponse.php +++ b/lib/PaymentMethod/GetAllPaymentMethodsDefaultResponse.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/OverTheCounter.php b/lib/PaymentMethod/OverTheCounter.php index 87cbd7a..bd62866 100644 --- a/lib/PaymentMethod/OverTheCounter.php +++ b/lib/PaymentMethod/OverTheCounter.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/OverTheCounterChannelCode.php b/lib/PaymentMethod/OverTheCounterChannelCode.php index 8e63ad5..6450f1c 100644 --- a/lib/PaymentMethod/OverTheCounterChannelCode.php +++ b/lib/PaymentMethod/OverTheCounterChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/OverTheCounterChannelProperties.php b/lib/PaymentMethod/OverTheCounterChannelProperties.php index ce27b5e..0906f00 100644 --- a/lib/PaymentMethod/OverTheCounterChannelProperties.php +++ b/lib/PaymentMethod/OverTheCounterChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/OverTheCounterChannelPropertiesUpdate.php b/lib/PaymentMethod/OverTheCounterChannelPropertiesUpdate.php index 4668df0..a9e6d35 100644 --- a/lib/PaymentMethod/OverTheCounterChannelPropertiesUpdate.php +++ b/lib/PaymentMethod/OverTheCounterChannelPropertiesUpdate.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/OverTheCounterParameters.php b/lib/PaymentMethod/OverTheCounterParameters.php index d335c4f..fe3c01e 100644 --- a/lib/PaymentMethod/OverTheCounterParameters.php +++ b/lib/PaymentMethod/OverTheCounterParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/OverTheCounterUpdateParameters.php b/lib/PaymentMethod/OverTheCounterUpdateParameters.php index 3871ad7..e8eac82 100644 --- a/lib/PaymentMethod/OverTheCounterUpdateParameters.php +++ b/lib/PaymentMethod/OverTheCounterUpdateParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethod.php b/lib/PaymentMethod/PaymentMethod.php index 494c51c..a822a19 100644 --- a/lib/PaymentMethod/PaymentMethod.php +++ b/lib/PaymentMethod/PaymentMethod.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethodAction.php b/lib/PaymentMethod/PaymentMethodAction.php index c47c209..3b4de9a 100644 --- a/lib/PaymentMethod/PaymentMethodAction.php +++ b/lib/PaymentMethod/PaymentMethodAction.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethodApi.php b/lib/PaymentMethod/PaymentMethodApi.php index 6583b56..2bed28d 100644 --- a/lib/PaymentMethod/PaymentMethodApi.php +++ b/lib/PaymentMethod/PaymentMethodApi.php @@ -10,7 +10,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -371,7 +371,7 @@ public function createPaymentMethodRequest($for_user_id = null, $payment_method_ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -630,7 +630,7 @@ public function getPaymentMethodByIDRequest($payment_method_id, $for_user_id = n // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1069,7 +1069,7 @@ public function getPaymentsByPaymentMethodIdRequest($payment_method_id, $for_use // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1341,7 +1341,7 @@ public function patchPaymentMethodRequest($payment_method_id, $for_user_id = nul // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1718,7 +1718,7 @@ public function getAllPaymentMethodsRequest($for_user_id = null, $id = null, $ty // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1990,7 +1990,7 @@ public function expirePaymentMethodRequest($payment_method_id, $for_user_id = nu // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -2262,7 +2262,7 @@ public function authPaymentMethodRequest($payment_method_id, $for_user_id = null // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -2497,7 +2497,7 @@ public function simulatePaymentRequest($payment_method_id, $simulate_payment_req // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/PaymentMethod/PaymentMethodAuthParameters.php b/lib/PaymentMethod/PaymentMethodAuthParameters.php index 8900dd4..17899f8 100644 --- a/lib/PaymentMethod/PaymentMethodAuthParameters.php +++ b/lib/PaymentMethod/PaymentMethodAuthParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethodCountry.php b/lib/PaymentMethod/PaymentMethodCountry.php index 1dba154..18c37ed 100644 --- a/lib/PaymentMethod/PaymentMethodCountry.php +++ b/lib/PaymentMethod/PaymentMethodCountry.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -46,6 +46,8 @@ class PaymentMethodCountry public const MY = 'MY'; + public const US = 'US'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -81,6 +83,7 @@ public static function getAllowableEnumValues() self::VN, self::TH, self::MY, + self::US, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/PaymentMethod/PaymentMethodExpireParameters.php b/lib/PaymentMethod/PaymentMethodExpireParameters.php index bcb0ded..caedfd0 100644 --- a/lib/PaymentMethod/PaymentMethodExpireParameters.php +++ b/lib/PaymentMethod/PaymentMethodExpireParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethodList.php b/lib/PaymentMethod/PaymentMethodList.php index 65e44d8..63f6a9f 100644 --- a/lib/PaymentMethod/PaymentMethodList.php +++ b/lib/PaymentMethod/PaymentMethodList.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethodParameters.php b/lib/PaymentMethod/PaymentMethodParameters.php index 55259bb..1a8f5fd 100644 --- a/lib/PaymentMethod/PaymentMethodParameters.php +++ b/lib/PaymentMethod/PaymentMethodParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethodReusability.php b/lib/PaymentMethod/PaymentMethodReusability.php index 992c3c6..10db202 100644 --- a/lib/PaymentMethod/PaymentMethodReusability.php +++ b/lib/PaymentMethod/PaymentMethodReusability.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethodStatus.php b/lib/PaymentMethod/PaymentMethodStatus.php index 0651368..cbb7747 100644 --- a/lib/PaymentMethod/PaymentMethodStatus.php +++ b/lib/PaymentMethod/PaymentMethodStatus.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethodType.php b/lib/PaymentMethod/PaymentMethodType.php index 7818e8a..a2e5c09 100644 --- a/lib/PaymentMethod/PaymentMethodType.php +++ b/lib/PaymentMethod/PaymentMethodType.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/PaymentMethodUpdateParameters.php b/lib/PaymentMethod/PaymentMethodUpdateParameters.php index ced740e..a3ec3d4 100644 --- a/lib/PaymentMethod/PaymentMethodUpdateParameters.php +++ b/lib/PaymentMethod/PaymentMethodUpdateParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/QRCode.php b/lib/PaymentMethod/QRCode.php index 09bfa5a..794d71c 100644 --- a/lib/PaymentMethod/QRCode.php +++ b/lib/PaymentMethod/QRCode.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/QRCodeChannelCode.php b/lib/PaymentMethod/QRCodeChannelCode.php index aae5e25..74d7668 100644 --- a/lib/PaymentMethod/QRCodeChannelCode.php +++ b/lib/PaymentMethod/QRCodeChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/QRCodeChannelProperties.php b/lib/PaymentMethod/QRCodeChannelProperties.php index 88a7490..c067227 100644 --- a/lib/PaymentMethod/QRCodeChannelProperties.php +++ b/lib/PaymentMethod/QRCodeChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/QRCodeParameters.php b/lib/PaymentMethod/QRCodeParameters.php index dfa49c4..6a2e397 100644 --- a/lib/PaymentMethod/QRCodeParameters.php +++ b/lib/PaymentMethod/QRCodeParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/SimulatePaymentRequest.php b/lib/PaymentMethod/SimulatePaymentRequest.php index 4275ed7..930a3cb 100644 --- a/lib/PaymentMethod/SimulatePaymentRequest.php +++ b/lib/PaymentMethod/SimulatePaymentRequest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/TokenizedCardInformation.php b/lib/PaymentMethod/TokenizedCardInformation.php index 909415b..5e09fa0 100644 --- a/lib/PaymentMethod/TokenizedCardInformation.php +++ b/lib/PaymentMethod/TokenizedCardInformation.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/VirtualAccount.php b/lib/PaymentMethod/VirtualAccount.php index 2f59ef2..325a7b4 100644 --- a/lib/PaymentMethod/VirtualAccount.php +++ b/lib/PaymentMethod/VirtualAccount.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/VirtualAccountAllOf.php b/lib/PaymentMethod/VirtualAccountAllOf.php index 3b68f26..c5fa258 100644 --- a/lib/PaymentMethod/VirtualAccountAllOf.php +++ b/lib/PaymentMethod/VirtualAccountAllOf.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/VirtualAccountAlternativeDisplay.php b/lib/PaymentMethod/VirtualAccountAlternativeDisplay.php index 92f6845..d53a07b 100644 --- a/lib/PaymentMethod/VirtualAccountAlternativeDisplay.php +++ b/lib/PaymentMethod/VirtualAccountAlternativeDisplay.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/VirtualAccountChannelCode.php b/lib/PaymentMethod/VirtualAccountChannelCode.php index c8441b1..2eeb2f6 100644 --- a/lib/PaymentMethod/VirtualAccountChannelCode.php +++ b/lib/PaymentMethod/VirtualAccountChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -67,6 +67,8 @@ class VirtualAccountChannelCode public const STANDARD_CHARTERED = 'STANDARD_CHARTERED'; + public const AMBANK = 'AMBANK'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -112,6 +114,7 @@ public static function getAllowableEnumValues() self::WOORI, self::MSB, self::STANDARD_CHARTERED, + self::AMBANK, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/PaymentMethod/VirtualAccountChannelProperties.php b/lib/PaymentMethod/VirtualAccountChannelProperties.php index d4bb0aa..c52cf7e 100644 --- a/lib/PaymentMethod/VirtualAccountChannelProperties.php +++ b/lib/PaymentMethod/VirtualAccountChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/VirtualAccountChannelPropertiesPatch.php b/lib/PaymentMethod/VirtualAccountChannelPropertiesPatch.php index 17cc75c..f48a507 100644 --- a/lib/PaymentMethod/VirtualAccountChannelPropertiesPatch.php +++ b/lib/PaymentMethod/VirtualAccountChannelPropertiesPatch.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/VirtualAccountParameters.php b/lib/PaymentMethod/VirtualAccountParameters.php index 1f3fef5..f665974 100644 --- a/lib/PaymentMethod/VirtualAccountParameters.php +++ b/lib/PaymentMethod/VirtualAccountParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentMethod/VirtualAccountUpdateParameters.php b/lib/PaymentMethod/VirtualAccountUpdateParameters.php index 22ede5e..725a3aa 100644 --- a/lib/PaymentMethod/VirtualAccountUpdateParameters.php +++ b/lib/PaymentMethod/VirtualAccountUpdateParameters.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** diff --git a/lib/PaymentRequest/Capture.php b/lib/PaymentRequest/Capture.php index 88fe05e..0f09db3 100644 --- a/lib/PaymentRequest/Capture.php +++ b/lib/PaymentRequest/Capture.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/CaptureListResponse.php b/lib/PaymentRequest/CaptureListResponse.php index 2406816..1104207 100644 --- a/lib/PaymentRequest/CaptureListResponse.php +++ b/lib/PaymentRequest/CaptureListResponse.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/CaptureParameters.php b/lib/PaymentRequest/CaptureParameters.php index 62d3061..dd3e962 100644 --- a/lib/PaymentRequest/CaptureParameters.php +++ b/lib/PaymentRequest/CaptureParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/Card.php b/lib/PaymentRequest/Card.php index 322cd58..bfb6702 100644 --- a/lib/PaymentRequest/Card.php +++ b/lib/PaymentRequest/Card.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/CardChannelProperties.php b/lib/PaymentRequest/CardChannelProperties.php index 516538d..736c78d 100644 --- a/lib/PaymentRequest/CardChannelProperties.php +++ b/lib/PaymentRequest/CardChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/CardInformation.php b/lib/PaymentRequest/CardInformation.php index 45dc2a1..7009f6e 100644 --- a/lib/PaymentRequest/CardInformation.php +++ b/lib/PaymentRequest/CardInformation.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/CardVerificationResults.php b/lib/PaymentRequest/CardVerificationResults.php index 999dfdb..8a1f4e7 100644 --- a/lib/PaymentRequest/CardVerificationResults.php +++ b/lib/PaymentRequest/CardVerificationResults.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/CardVerificationResultsThreeDSecure.php b/lib/PaymentRequest/CardVerificationResultsThreeDSecure.php index 5a12cbb..970078c 100644 --- a/lib/PaymentRequest/CardVerificationResultsThreeDSecure.php +++ b/lib/PaymentRequest/CardVerificationResultsThreeDSecure.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebit.php b/lib/PaymentRequest/DirectDebit.php index 19a762e..9189aac 100644 --- a/lib/PaymentRequest/DirectDebit.php +++ b/lib/PaymentRequest/DirectDebit.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebitAllOf.php b/lib/PaymentRequest/DirectDebitAllOf.php index 5b2415b..7103a0a 100644 --- a/lib/PaymentRequest/DirectDebitAllOf.php +++ b/lib/PaymentRequest/DirectDebitAllOf.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebitBankAccount.php b/lib/PaymentRequest/DirectDebitBankAccount.php index f795ce8..a5a2b94 100644 --- a/lib/PaymentRequest/DirectDebitBankAccount.php +++ b/lib/PaymentRequest/DirectDebitBankAccount.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebitChannelCode.php b/lib/PaymentRequest/DirectDebitChannelCode.php index b2a1510..f9d631a 100644 --- a/lib/PaymentRequest/DirectDebitChannelCode.php +++ b/lib/PaymentRequest/DirectDebitChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebitChannelProperties.php b/lib/PaymentRequest/DirectDebitChannelProperties.php index 5ef096d..ee32e50 100644 --- a/lib/PaymentRequest/DirectDebitChannelProperties.php +++ b/lib/PaymentRequest/DirectDebitChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebitChannelPropertiesBankAccount.php b/lib/PaymentRequest/DirectDebitChannelPropertiesBankAccount.php index 3d62912..1750ac7 100644 --- a/lib/PaymentRequest/DirectDebitChannelPropertiesBankAccount.php +++ b/lib/PaymentRequest/DirectDebitChannelPropertiesBankAccount.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.php b/lib/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.php index 065b688..b658a78 100644 --- a/lib/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.php +++ b/lib/PaymentRequest/DirectDebitChannelPropertiesBankRedirect.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebitChannelPropertiesDebitCard.php b/lib/PaymentRequest/DirectDebitChannelPropertiesDebitCard.php index ba149ec..30ea04c 100644 --- a/lib/PaymentRequest/DirectDebitChannelPropertiesDebitCard.php +++ b/lib/PaymentRequest/DirectDebitChannelPropertiesDebitCard.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebitDebitCard.php b/lib/PaymentRequest/DirectDebitDebitCard.php index 917bf88..7fad928 100644 --- a/lib/PaymentRequest/DirectDebitDebitCard.php +++ b/lib/PaymentRequest/DirectDebitDebitCard.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebitParameters.php b/lib/PaymentRequest/DirectDebitParameters.php index 5346e53..5854383 100644 --- a/lib/PaymentRequest/DirectDebitParameters.php +++ b/lib/PaymentRequest/DirectDebitParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/DirectDebitType.php b/lib/PaymentRequest/DirectDebitType.php index c5000dc..fde69f0 100644 --- a/lib/PaymentRequest/DirectDebitType.php +++ b/lib/PaymentRequest/DirectDebitType.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/EWallet.php b/lib/PaymentRequest/EWallet.php index 7818e46..d7fcc18 100644 --- a/lib/PaymentRequest/EWallet.php +++ b/lib/PaymentRequest/EWallet.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/EWalletAccount.php b/lib/PaymentRequest/EWalletAccount.php index 05ddb01..6ca64d8 100644 --- a/lib/PaymentRequest/EWalletAccount.php +++ b/lib/PaymentRequest/EWalletAccount.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/EWalletAllOf.php b/lib/PaymentRequest/EWalletAllOf.php index d25e6f4..894a3c7 100644 --- a/lib/PaymentRequest/EWalletAllOf.php +++ b/lib/PaymentRequest/EWalletAllOf.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/EWalletChannelCode.php b/lib/PaymentRequest/EWalletChannelCode.php index ecbef54..0b4c0fd 100644 --- a/lib/PaymentRequest/EWalletChannelCode.php +++ b/lib/PaymentRequest/EWalletChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -75,6 +75,8 @@ class EWalletChannelCode public const ALIPAY = 'ALIPAY'; + public const TOUCHANDGO = 'TOUCHANDGO'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -124,6 +126,7 @@ public static function getAllowableEnumValues() self::LINEPAY, self::TRUEMONEY, self::ALIPAY, + self::TOUCHANDGO, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/PaymentRequest/EWalletChannelProperties.php b/lib/PaymentRequest/EWalletChannelProperties.php index d2e6735..5513c9d 100644 --- a/lib/PaymentRequest/EWalletChannelProperties.php +++ b/lib/PaymentRequest/EWalletChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/EWalletParameters.php b/lib/PaymentRequest/EWalletParameters.php index 3a8ee54..92e4752 100644 --- a/lib/PaymentRequest/EWalletParameters.php +++ b/lib/PaymentRequest/EWalletParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/Error.php b/lib/PaymentRequest/Error.php index 03ee1d3..5cbd631 100644 --- a/lib/PaymentRequest/Error.php +++ b/lib/PaymentRequest/Error.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/OverTheCounter.php b/lib/PaymentRequest/OverTheCounter.php index 1e8c66d..70b8018 100644 --- a/lib/PaymentRequest/OverTheCounter.php +++ b/lib/PaymentRequest/OverTheCounter.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/OverTheCounterChannelCode.php b/lib/PaymentRequest/OverTheCounterChannelCode.php index d01e36a..587d13d 100644 --- a/lib/PaymentRequest/OverTheCounterChannelCode.php +++ b/lib/PaymentRequest/OverTheCounterChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/OverTheCounterChannelProperties.php b/lib/PaymentRequest/OverTheCounterChannelProperties.php index 709a0c4..3d670df 100644 --- a/lib/PaymentRequest/OverTheCounterChannelProperties.php +++ b/lib/PaymentRequest/OverTheCounterChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/OverTheCounterParameters.php b/lib/PaymentRequest/OverTheCounterParameters.php index fb914cd..febf018 100644 --- a/lib/PaymentRequest/OverTheCounterParameters.php +++ b/lib/PaymentRequest/OverTheCounterParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentMethod.php b/lib/PaymentRequest/PaymentMethod.php index 3d0d2ba..716cc6e 100644 --- a/lib/PaymentRequest/PaymentMethod.php +++ b/lib/PaymentRequest/PaymentMethod.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentMethodParameters.php b/lib/PaymentRequest/PaymentMethodParameters.php index 6052e3f..15e5660 100644 --- a/lib/PaymentRequest/PaymentMethodParameters.php +++ b/lib/PaymentRequest/PaymentMethodParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentMethodReusability.php b/lib/PaymentRequest/PaymentMethodReusability.php index 1e50ae0..ce90fca 100644 --- a/lib/PaymentRequest/PaymentMethodReusability.php +++ b/lib/PaymentRequest/PaymentMethodReusability.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentMethodStatus.php b/lib/PaymentRequest/PaymentMethodStatus.php index 01c0b88..ca919b6 100644 --- a/lib/PaymentRequest/PaymentMethodStatus.php +++ b/lib/PaymentRequest/PaymentMethodStatus.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentMethodType.php b/lib/PaymentRequest/PaymentMethodType.php index 0ed9f10..9acbffd 100644 --- a/lib/PaymentRequest/PaymentMethodType.php +++ b/lib/PaymentRequest/PaymentMethodType.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequest.php b/lib/PaymentRequest/PaymentRequest.php index 2272d13..2cbfa46 100644 --- a/lib/PaymentRequest/PaymentRequest.php +++ b/lib/PaymentRequest/PaymentRequest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestAction.php b/lib/PaymentRequest/PaymentRequestAction.php index f2edbe8..e0351cf 100644 --- a/lib/PaymentRequest/PaymentRequestAction.php +++ b/lib/PaymentRequest/PaymentRequestAction.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestApi.php b/lib/PaymentRequest/PaymentRequestApi.php index 195571d..8a57b5c 100644 --- a/lib/PaymentRequest/PaymentRequestApi.php +++ b/lib/PaymentRequest/PaymentRequestApi.php @@ -10,7 +10,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -378,7 +378,7 @@ public function createPaymentRequestRequest($idempotency_key = null, $for_user_i // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -637,7 +637,7 @@ public function getPaymentRequestByIDRequest($payment_request_id, $for_user_id = // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -911,7 +911,7 @@ public function getPaymentRequestCapturesRequest($payment_request_id, $for_user_ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1240,7 +1240,7 @@ public function getAllPaymentRequestsRequest($for_user_id = null, $reference_id // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1512,7 +1512,7 @@ public function capturePaymentRequestRequest($payment_request_id, $for_user_id = // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1784,7 +1784,7 @@ public function authorizePaymentRequestRequest($payment_request_id, $for_user_id // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -2043,7 +2043,7 @@ public function resendPaymentRequestAuthRequest($payment_request_id, $for_user_i // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/PaymentRequest/PaymentRequestAuthParameters.php b/lib/PaymentRequest/PaymentRequestAuthParameters.php index 6020778..d2aecef 100644 --- a/lib/PaymentRequest/PaymentRequestAuthParameters.php +++ b/lib/PaymentRequest/PaymentRequestAuthParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestBasketItem.php b/lib/PaymentRequest/PaymentRequestBasketItem.php index aee3d9b..5720bf1 100644 --- a/lib/PaymentRequest/PaymentRequestBasketItem.php +++ b/lib/PaymentRequest/PaymentRequestBasketItem.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestCaptureMethod.php b/lib/PaymentRequest/PaymentRequestCaptureMethod.php index c8b65c6..282f86e 100644 --- a/lib/PaymentRequest/PaymentRequestCaptureMethod.php +++ b/lib/PaymentRequest/PaymentRequestCaptureMethod.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestCardVerificationResults.php b/lib/PaymentRequest/PaymentRequestCardVerificationResults.php index 0d3a84b..9ffdc94 100644 --- a/lib/PaymentRequest/PaymentRequestCardVerificationResults.php +++ b/lib/PaymentRequest/PaymentRequestCardVerificationResults.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.php b/lib/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.php index 7dc0e3b..59d9e46 100644 --- a/lib/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.php +++ b/lib/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecure.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestChannelProperties.php b/lib/PaymentRequest/PaymentRequestChannelProperties.php index 7d9835d..aaa4434 100644 --- a/lib/PaymentRequest/PaymentRequestChannelProperties.php +++ b/lib/PaymentRequest/PaymentRequestChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestCountry.php b/lib/PaymentRequest/PaymentRequestCountry.php index 0e146e5..f2dcc7b 100644 --- a/lib/PaymentRequest/PaymentRequestCountry.php +++ b/lib/PaymentRequest/PaymentRequestCountry.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestCurrency.php b/lib/PaymentRequest/PaymentRequestCurrency.php index 4687c2d..2a6675c 100644 --- a/lib/PaymentRequest/PaymentRequestCurrency.php +++ b/lib/PaymentRequest/PaymentRequestCurrency.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -46,6 +46,8 @@ class PaymentRequestCurrency public const MYR = 'MYR'; + public const USD = 'USD'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -81,6 +83,7 @@ public static function getAllowableEnumValues() self::VND, self::THB, self::MYR, + self::USD, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/PaymentRequest/PaymentRequestInitiator.php b/lib/PaymentRequest/PaymentRequestInitiator.php index 0a913b9..d60cc95 100644 --- a/lib/PaymentRequest/PaymentRequestInitiator.php +++ b/lib/PaymentRequest/PaymentRequestInitiator.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestListResponse.php b/lib/PaymentRequest/PaymentRequestListResponse.php index 3bf2188..f94e114 100644 --- a/lib/PaymentRequest/PaymentRequestListResponse.php +++ b/lib/PaymentRequest/PaymentRequestListResponse.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestParameters.php b/lib/PaymentRequest/PaymentRequestParameters.php index 2b1f59b..df67e36 100644 --- a/lib/PaymentRequest/PaymentRequestParameters.php +++ b/lib/PaymentRequest/PaymentRequestParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestParametersChannelProperties.php b/lib/PaymentRequest/PaymentRequestParametersChannelProperties.php index 22939ea..cbab172 100644 --- a/lib/PaymentRequest/PaymentRequestParametersChannelProperties.php +++ b/lib/PaymentRequest/PaymentRequestParametersChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.php b/lib/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.php index 4c01d06..a1fbc99 100644 --- a/lib/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.php +++ b/lib/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOf.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestShippingInformation.php b/lib/PaymentRequest/PaymentRequestShippingInformation.php index 04ebdd4..ac57803 100644 --- a/lib/PaymentRequest/PaymentRequestShippingInformation.php +++ b/lib/PaymentRequest/PaymentRequestShippingInformation.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/PaymentRequestStatus.php b/lib/PaymentRequest/PaymentRequestStatus.php index ee6e544..247a7d0 100644 --- a/lib/PaymentRequest/PaymentRequestStatus.php +++ b/lib/PaymentRequest/PaymentRequestStatus.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/QRCode.php b/lib/PaymentRequest/QRCode.php index 688db08..c3d8191 100644 --- a/lib/PaymentRequest/QRCode.php +++ b/lib/PaymentRequest/QRCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/QRCodeChannelCode.php b/lib/PaymentRequest/QRCodeChannelCode.php index 72aa4a9..5d5ccce 100644 --- a/lib/PaymentRequest/QRCodeChannelCode.php +++ b/lib/PaymentRequest/QRCodeChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/QRCodeChannelProperties.php b/lib/PaymentRequest/QRCodeChannelProperties.php index a83f273..9e468d7 100644 --- a/lib/PaymentRequest/QRCodeChannelProperties.php +++ b/lib/PaymentRequest/QRCodeChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/QRCodeParameters.php b/lib/PaymentRequest/QRCodeParameters.php index b1045eb..6e3206e 100644 --- a/lib/PaymentRequest/QRCodeParameters.php +++ b/lib/PaymentRequest/QRCodeParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/VirtualAccount.php b/lib/PaymentRequest/VirtualAccount.php index 3e5e031..dc41836 100644 --- a/lib/PaymentRequest/VirtualAccount.php +++ b/lib/PaymentRequest/VirtualAccount.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/VirtualAccountAllOf.php b/lib/PaymentRequest/VirtualAccountAllOf.php index c1e0cd4..9919ca3 100644 --- a/lib/PaymentRequest/VirtualAccountAllOf.php +++ b/lib/PaymentRequest/VirtualAccountAllOf.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/VirtualAccountAlternativeDisplay.php b/lib/PaymentRequest/VirtualAccountAlternativeDisplay.php index 453c748..463d063 100644 --- a/lib/PaymentRequest/VirtualAccountAlternativeDisplay.php +++ b/lib/PaymentRequest/VirtualAccountAlternativeDisplay.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/VirtualAccountChannelCode.php b/lib/PaymentRequest/VirtualAccountChannelCode.php index 80c760e..689745c 100644 --- a/lib/PaymentRequest/VirtualAccountChannelCode.php +++ b/lib/PaymentRequest/VirtualAccountChannelCode.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -67,6 +67,8 @@ class VirtualAccountChannelCode public const STANDARD_CHARTERED = 'STANDARD_CHARTERED'; + public const AMBANK = 'AMBANK'; + public const XENDIT_ENUM_DEFAULT_FALLBACK = 'UNKNOWN_ENUM_VALUE'; private $value; @@ -112,6 +114,7 @@ public static function getAllowableEnumValues() self::WOORI, self::MSB, self::STANDARD_CHARTERED, + self::AMBANK, self::XENDIT_ENUM_DEFAULT_FALLBACK ]; } diff --git a/lib/PaymentRequest/VirtualAccountChannelProperties.php b/lib/PaymentRequest/VirtualAccountChannelProperties.php index 0934558..20003b6 100644 --- a/lib/PaymentRequest/VirtualAccountChannelProperties.php +++ b/lib/PaymentRequest/VirtualAccountChannelProperties.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/PaymentRequest/VirtualAccountParameters.php b/lib/PaymentRequest/VirtualAccountParameters.php index 779f9f6..bc220b6 100644 --- a/lib/PaymentRequest/VirtualAccountParameters.php +++ b/lib/PaymentRequest/VirtualAccountParameters.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/lib/Payout/PayoutApi.php b/lib/Payout/PayoutApi.php index 57ce90c..bc7e9dc 100644 --- a/lib/Payout/PayoutApi.php +++ b/lib/Payout/PayoutApi.php @@ -378,7 +378,7 @@ public function createPayoutRequest($idempotency_key, $for_user_id = null, $crea // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -637,7 +637,7 @@ public function getPayoutByIdRequest($id, $for_user_id = null, string $contentTy // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -921,7 +921,7 @@ public function getPayoutChannelsRequest($currency = null, $channel_category = n // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1226,7 +1226,7 @@ public function getPayoutsRequest($reference_id, $limit = null, $after_id = null // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1485,7 +1485,7 @@ public function cancelPayoutRequest($id, $for_user_id = null, string $contentTyp // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/Refund/RefundApi.php b/lib/Refund/RefundApi.php index 6eda4b1..30e5c9e 100644 --- a/lib/Refund/RefundApi.php +++ b/lib/Refund/RefundApi.php @@ -361,7 +361,7 @@ public function createRefundRequest($idempotency_key = null, $for_user_id = null // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -622,7 +622,7 @@ public function getRefundRequest($refund_id, $idempotency_key = null, $for_user_ // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -958,7 +958,7 @@ public function getAllRefundsRequest($for_user_id = null, $payment_request_id = // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); @@ -1219,7 +1219,7 @@ public function cancelRefundRequest($refund_id, $idempotency_key = null, $for_us // Xendit's custom headers $defaultHeaders['xendit-lib'] = 'php'; - $defaultHeaders['xendit-lib-ver'] = '3.4.0'; + $defaultHeaders['xendit-lib-ver'] = '3.6.0'; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); diff --git a/lib/XenditSdkException.php b/lib/XenditSdkException.php index ee7c70d..530b5c6 100644 --- a/lib/XenditSdkException.php +++ b/lib/XenditSdkException.php @@ -10,7 +10,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** diff --git a/test/Api/BalanceApiTest.php b/test/Api/BalanceApiTest.php index 4be2ec9..74280ca 100644 --- a/test/Api/BalanceApiTest.php +++ b/test/Api/BalanceApiTest.php @@ -10,7 +10,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ diff --git a/test/Api/PaymentMethodApiTest.php b/test/Api/PaymentMethodApiTest.php index 517ec75..3ac89ca 100644 --- a/test/Api/PaymentMethodApiTest.php +++ b/test/Api/PaymentMethodApiTest.php @@ -10,7 +10,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ diff --git a/test/Api/PaymentRequestApiTest.php b/test/Api/PaymentRequestApiTest.php index 3ceda4d..9e9f0de 100644 --- a/test/Api/PaymentRequestApiTest.php +++ b/test/Api/PaymentRequestApiTest.php @@ -10,7 +10,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ diff --git a/test/Api/TransactionApiTest.php b/test/Api/TransactionApiTest.php index 23c2af5..06e9a61 100644 --- a/test/Api/TransactionApiTest.php +++ b/test/Api/TransactionApiTest.php @@ -10,7 +10,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ diff --git a/test/Model/BalanceTest.php b/test/Model/BalanceAndTransaction/BalanceTest.php similarity index 93% rename from test/Model/BalanceTest.php rename to test/Model/BalanceAndTransaction/BalanceTest.php index 8d94966..39eee13 100644 --- a/test/Model/BalanceTest.php +++ b/test/Model/BalanceAndTransaction/BalanceTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ChannelsCategoriesTest.php b/test/Model/BalanceAndTransaction/ChannelsCategoriesTest.php similarity index 92% rename from test/Model/ChannelsCategoriesTest.php rename to test/Model/BalanceAndTransaction/ChannelsCategoriesTest.php index 0b5e8eb..2b34c0d 100644 --- a/test/Model/ChannelsCategoriesTest.php +++ b/test/Model/BalanceAndTransaction/ChannelsCategoriesTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CurrencyTest.php b/test/Model/BalanceAndTransaction/CurrencyTest.php similarity index 92% rename from test/Model/CurrencyTest.php rename to test/Model/BalanceAndTransaction/CurrencyTest.php index 082df6f..cf5e4ac 100644 --- a/test/Model/CurrencyTest.php +++ b/test/Model/BalanceAndTransaction/CurrencyTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/DateRangeFilterTest.php b/test/Model/BalanceAndTransaction/DateRangeFilterTest.php similarity index 94% rename from test/Model/DateRangeFilterTest.php rename to test/Model/BalanceAndTransaction/DateRangeFilterTest.php index f461598..895f2c3 100644 --- a/test/Model/DateRangeFilterTest.php +++ b/test/Model/BalanceAndTransaction/DateRangeFilterTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/FeeResponseTest.php b/test/Model/BalanceAndTransaction/FeeResponseTest.php similarity index 95% rename from test/Model/FeeResponseTest.php rename to test/Model/BalanceAndTransaction/FeeResponseTest.php index 67d1681..2ba9143 100644 --- a/test/Model/FeeResponseTest.php +++ b/test/Model/BalanceAndTransaction/FeeResponseTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/LinkItemTest.php b/test/Model/BalanceAndTransaction/LinkItemTest.php similarity index 94% rename from test/Model/LinkItemTest.php rename to test/Model/BalanceAndTransaction/LinkItemTest.php index 3c78e48..ca9c988 100644 --- a/test/Model/LinkItemTest.php +++ b/test/Model/BalanceAndTransaction/LinkItemTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ServerErrorTest.php b/test/Model/BalanceAndTransaction/ServerErrorTest.php similarity index 94% rename from test/Model/ServerErrorTest.php rename to test/Model/BalanceAndTransaction/ServerErrorTest.php index 5c1e9e9..b2460f0 100644 --- a/test/Model/ServerErrorTest.php +++ b/test/Model/BalanceAndTransaction/ServerErrorTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/TransactionResponseTest.php b/test/Model/BalanceAndTransaction/TransactionResponseTest.php similarity index 97% rename from test/Model/TransactionResponseTest.php rename to test/Model/BalanceAndTransaction/TransactionResponseTest.php index c27d365..8a838d2 100644 --- a/test/Model/TransactionResponseTest.php +++ b/test/Model/BalanceAndTransaction/TransactionResponseTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/TransactionResponseTypeTest.php b/test/Model/BalanceAndTransaction/TransactionResponseTypeTest.php similarity index 92% rename from test/Model/TransactionResponseTypeTest.php rename to test/Model/BalanceAndTransaction/TransactionResponseTypeTest.php index c5a5571..d0c1505 100644 --- a/test/Model/TransactionResponseTypeTest.php +++ b/test/Model/BalanceAndTransaction/TransactionResponseTypeTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/TransactionStatusesTest.php b/test/Model/BalanceAndTransaction/TransactionStatusesTest.php similarity index 92% rename from test/Model/TransactionStatusesTest.php rename to test/Model/BalanceAndTransaction/TransactionStatusesTest.php index 49e9540..8326aab 100644 --- a/test/Model/TransactionStatusesTest.php +++ b/test/Model/BalanceAndTransaction/TransactionStatusesTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/TransactionTypesTest.php b/test/Model/BalanceAndTransaction/TransactionTypesTest.php similarity index 92% rename from test/Model/TransactionTypesTest.php rename to test/Model/BalanceAndTransaction/TransactionTypesTest.php index 9f02b5a..1446cc0 100644 --- a/test/Model/TransactionTypesTest.php +++ b/test/Model/BalanceAndTransaction/TransactionTypesTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/TransactionsResponseTest.php b/test/Model/BalanceAndTransaction/TransactionsResponseTest.php similarity index 94% rename from test/Model/TransactionsResponseTest.php rename to test/Model/BalanceAndTransaction/TransactionsResponseTest.php index 5ffa102..90305d1 100644 --- a/test/Model/TransactionsResponseTest.php +++ b/test/Model/BalanceAndTransaction/TransactionsResponseTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ValidationErrorTest.php b/test/Model/BalanceAndTransaction/ValidationErrorTest.php similarity index 95% rename from test/Model/ValidationErrorTest.php rename to test/Model/BalanceAndTransaction/ValidationErrorTest.php index 09eea39..feb4058 100644 --- a/test/Model/ValidationErrorTest.php +++ b/test/Model/BalanceAndTransaction/ValidationErrorTest.php @@ -11,7 +11,7 @@ /** * Transaction Service V4 API * - * The version of the OpenAPI document: 3.4.3 + * The version of the OpenAPI document: 3.5.0 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\BalanceAndTransaction; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AccountBankTest.php b/test/Model/Customer/AccountBankTest.php similarity index 98% rename from test/Model/AccountBankTest.php rename to test/Model/Customer/AccountBankTest.php index d69dea7..6e68c76 100644 --- a/test/Model/AccountBankTest.php +++ b/test/Model/Customer/AccountBankTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AccountCardTest.php b/test/Model/Customer/AccountCardTest.php similarity index 97% rename from test/Model/AccountCardTest.php rename to test/Model/Customer/AccountCardTest.php index 8dc37ee..8a9aa8f 100644 --- a/test/Model/AccountCardTest.php +++ b/test/Model/Customer/AccountCardTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AccountEwalletTest.php b/test/Model/Customer/AccountEwalletTest.php similarity index 97% rename from test/Model/AccountEwalletTest.php rename to test/Model/Customer/AccountEwalletTest.php index 7e34b8c..fed1e34 100644 --- a/test/Model/AccountEwalletTest.php +++ b/test/Model/Customer/AccountEwalletTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AccountOTCTest.php b/test/Model/Customer/AccountOTCTest.php similarity index 97% rename from test/Model/AccountOTCTest.php rename to test/Model/Customer/AccountOTCTest.php index efe7687..72def6b 100644 --- a/test/Model/AccountOTCTest.php +++ b/test/Model/Customer/AccountOTCTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AccountPayLaterTest.php b/test/Model/Customer/AccountPayLaterTest.php similarity index 97% rename from test/Model/AccountPayLaterTest.php rename to test/Model/Customer/AccountPayLaterTest.php index 74d302a..7a00b8f 100644 --- a/test/Model/AccountPayLaterTest.php +++ b/test/Model/Customer/AccountPayLaterTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AccountQRCodeTest.php b/test/Model/Customer/AccountQRCodeTest.php similarity index 97% rename from test/Model/AccountQRCodeTest.php rename to test/Model/Customer/AccountQRCodeTest.php index 66b8708..debb88c 100644 --- a/test/Model/AccountQRCodeTest.php +++ b/test/Model/Customer/AccountQRCodeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AddressRequestTest.php b/test/Model/Customer/AddressRequestTest.php similarity index 98% rename from test/Model/AddressRequestTest.php rename to test/Model/Customer/AddressRequestTest.php index 94d85b0..3b4eea1 100644 --- a/test/Model/AddressRequestTest.php +++ b/test/Model/Customer/AddressRequestTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AddressStatusTest.php b/test/Model/Customer/AddressStatusTest.php similarity index 96% rename from test/Model/AddressStatusTest.php rename to test/Model/Customer/AddressStatusTest.php index f4dc1ae..ab403d4 100644 --- a/test/Model/AddressStatusTest.php +++ b/test/Model/Customer/AddressStatusTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AddressTest.php b/test/Model/Customer/AddressTest.php similarity index 98% rename from test/Model/AddressTest.php rename to test/Model/Customer/AddressTest.php index d4d7493..6588795 100644 --- a/test/Model/AddressTest.php +++ b/test/Model/Customer/AddressTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/BusinessDetailTest.php b/test/Model/Customer/BusinessDetailTest.php similarity index 98% rename from test/Model/BusinessDetailTest.php rename to test/Model/Customer/BusinessDetailTest.php index e320832..3808e61 100644 --- a/test/Model/BusinessDetailTest.php +++ b/test/Model/Customer/BusinessDetailTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreateCustomer400ResponseAllOfTest.php b/test/Model/Customer/CreateCustomer400ResponseAllOfTest.php similarity index 97% rename from test/Model/CreateCustomer400ResponseAllOfTest.php rename to test/Model/Customer/CreateCustomer400ResponseAllOfTest.php index 480be23..340f2da 100644 --- a/test/Model/CreateCustomer400ResponseAllOfTest.php +++ b/test/Model/Customer/CreateCustomer400ResponseAllOfTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreateCustomer400ResponseTest.php b/test/Model/Customer/CreateCustomer400ResponseTest.php similarity index 97% rename from test/Model/CreateCustomer400ResponseTest.php rename to test/Model/Customer/CreateCustomer400ResponseTest.php index 72e8de1..163e21a 100644 --- a/test/Model/CreateCustomer400ResponseTest.php +++ b/test/Model/Customer/CreateCustomer400ResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CustomerRequestTest.php b/test/Model/Customer/CustomerRequestTest.php similarity index 98% rename from test/Model/CustomerRequestTest.php rename to test/Model/Customer/CustomerRequestTest.php index e893af9..bcb97f3 100644 --- a/test/Model/CustomerRequestTest.php +++ b/test/Model/Customer/CustomerRequestTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CustomerTest.php b/test/Model/Customer/CustomerTest.php similarity index 99% rename from test/Model/CustomerTest.php rename to test/Model/Customer/CustomerTest.php index 50ab0ef..08917dc 100644 --- a/test/Model/CustomerTest.php +++ b/test/Model/Customer/CustomerTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/EmploymentDetailTest.php b/test/Model/Customer/EmploymentDetailTest.php similarity index 97% rename from test/Model/EmploymentDetailTest.php rename to test/Model/Customer/EmploymentDetailTest.php index 9bd8fcc..3fc9bf7 100644 --- a/test/Model/EmploymentDetailTest.php +++ b/test/Model/Customer/EmploymentDetailTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/EndCustomerStatusTest.php b/test/Model/Customer/EndCustomerStatusTest.php similarity index 97% rename from test/Model/EndCustomerStatusTest.php rename to test/Model/Customer/EndCustomerStatusTest.php index 77fd814..94b5b29 100644 --- a/test/Model/EndCustomerStatusTest.php +++ b/test/Model/Customer/EndCustomerStatusTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ErrorTest.php b/test/Model/Customer/ErrorTest.php similarity index 97% rename from test/Model/ErrorTest.php rename to test/Model/Customer/ErrorTest.php index 424676e..37c682e 100644 --- a/test/Model/ErrorTest.php +++ b/test/Model/Customer/ErrorTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/GetCustomerByReferenceID200ResponseTest.php b/test/Model/Customer/GetCustomerByReferenceID200ResponseTest.php similarity index 97% rename from test/Model/GetCustomerByReferenceID200ResponseTest.php rename to test/Model/Customer/GetCustomerByReferenceID200ResponseTest.php index 1d7db3b..66817d4 100644 --- a/test/Model/GetCustomerByReferenceID200ResponseTest.php +++ b/test/Model/Customer/GetCustomerByReferenceID200ResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/GetCustomerByReferenceID400ResponseAllOfTest.php b/test/Model/Customer/GetCustomerByReferenceID400ResponseAllOfTest.php similarity index 97% rename from test/Model/GetCustomerByReferenceID400ResponseAllOfTest.php rename to test/Model/Customer/GetCustomerByReferenceID400ResponseAllOfTest.php index e437ec7..a601430 100644 --- a/test/Model/GetCustomerByReferenceID400ResponseAllOfTest.php +++ b/test/Model/Customer/GetCustomerByReferenceID400ResponseAllOfTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/GetCustomerByReferenceID400ResponseTest.php b/test/Model/Customer/GetCustomerByReferenceID400ResponseTest.php similarity index 98% rename from test/Model/GetCustomerByReferenceID400ResponseTest.php rename to test/Model/Customer/GetCustomerByReferenceID400ResponseTest.php index 186c279..5a8c07e 100644 --- a/test/Model/GetCustomerByReferenceID400ResponseTest.php +++ b/test/Model/Customer/GetCustomerByReferenceID400ResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/IdentityAccountRequestPropertiesTest.php b/test/Model/Customer/IdentityAccountRequestPropertiesTest.php similarity index 98% rename from test/Model/IdentityAccountRequestPropertiesTest.php rename to test/Model/Customer/IdentityAccountRequestPropertiesTest.php index c2afe85..8aaad67 100644 --- a/test/Model/IdentityAccountRequestPropertiesTest.php +++ b/test/Model/Customer/IdentityAccountRequestPropertiesTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/IdentityAccountRequestTest.php b/test/Model/Customer/IdentityAccountRequestTest.php similarity index 98% rename from test/Model/IdentityAccountRequestTest.php rename to test/Model/Customer/IdentityAccountRequestTest.php index 62c0708..9e5d8fb 100644 --- a/test/Model/IdentityAccountRequestTest.php +++ b/test/Model/Customer/IdentityAccountRequestTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/IdentityAccountResponsePropertiesTest.php b/test/Model/Customer/IdentityAccountResponsePropertiesTest.php similarity index 98% rename from test/Model/IdentityAccountResponsePropertiesTest.php rename to test/Model/Customer/IdentityAccountResponsePropertiesTest.php index 2b54dcf..1b2f886 100644 --- a/test/Model/IdentityAccountResponsePropertiesTest.php +++ b/test/Model/Customer/IdentityAccountResponsePropertiesTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/IdentityAccountResponseTest.php b/test/Model/Customer/IdentityAccountResponseTest.php similarity index 98% rename from test/Model/IdentityAccountResponseTest.php rename to test/Model/Customer/IdentityAccountResponseTest.php index 7daf5d3..301c56e 100644 --- a/test/Model/IdentityAccountResponseTest.php +++ b/test/Model/Customer/IdentityAccountResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/IdentityAccountTypeTest.php b/test/Model/Customer/IdentityAccountTypeTest.php similarity index 97% rename from test/Model/IdentityAccountTypeTest.php rename to test/Model/Customer/IdentityAccountTypeTest.php index 4917443..5df5dd4 100644 --- a/test/Model/IdentityAccountTypeTest.php +++ b/test/Model/Customer/IdentityAccountTypeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/IndividualDetailTest.php b/test/Model/Customer/IndividualDetailTest.php similarity index 98% rename from test/Model/IndividualDetailTest.php rename to test/Model/Customer/IndividualDetailTest.php index 7881c24..1f1f7aa 100644 --- a/test/Model/IndividualDetailTest.php +++ b/test/Model/Customer/IndividualDetailTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/KYCDocumentRequestTest.php b/test/Model/Customer/KYCDocumentRequestTest.php similarity index 98% rename from test/Model/KYCDocumentRequestTest.php rename to test/Model/Customer/KYCDocumentRequestTest.php index ea4b122..0e43345 100644 --- a/test/Model/KYCDocumentRequestTest.php +++ b/test/Model/Customer/KYCDocumentRequestTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/KYCDocumentResponseTest.php b/test/Model/Customer/KYCDocumentResponseTest.php similarity index 98% rename from test/Model/KYCDocumentResponseTest.php rename to test/Model/Customer/KYCDocumentResponseTest.php index d9e0106..4e95037 100644 --- a/test/Model/KYCDocumentResponseTest.php +++ b/test/Model/Customer/KYCDocumentResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/KYCDocumentSubTypeTest.php b/test/Model/Customer/KYCDocumentSubTypeTest.php similarity index 97% rename from test/Model/KYCDocumentSubTypeTest.php rename to test/Model/Customer/KYCDocumentSubTypeTest.php index cf9e80a..070e4a5 100644 --- a/test/Model/KYCDocumentSubTypeTest.php +++ b/test/Model/Customer/KYCDocumentSubTypeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/KYCDocumentTypeTest.php b/test/Model/Customer/KYCDocumentTypeTest.php similarity index 97% rename from test/Model/KYCDocumentTypeTest.php rename to test/Model/Customer/KYCDocumentTypeTest.php index b674f16..acc1f0d 100644 --- a/test/Model/KYCDocumentTypeTest.php +++ b/test/Model/Customer/KYCDocumentTypeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PatchCustomerTest.php b/test/Model/Customer/PatchCustomerTest.php similarity index 98% rename from test/Model/PatchCustomerTest.php rename to test/Model/Customer/PatchCustomerTest.php index 1c2d187..b351fc2 100644 --- a/test/Model/PatchCustomerTest.php +++ b/test/Model/Customer/PatchCustomerTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ResponseDataNotFoundTest.php b/test/Model/Customer/ResponseDataNotFoundTest.php similarity index 97% rename from test/Model/ResponseDataNotFoundTest.php rename to test/Model/Customer/ResponseDataNotFoundTest.php index a4d0ce3..1904d08 100644 --- a/test/Model/ResponseDataNotFoundTest.php +++ b/test/Model/Customer/ResponseDataNotFoundTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/UpdateCustomer400ResponseAllOfTest.php b/test/Model/Customer/UpdateCustomer400ResponseAllOfTest.php similarity index 97% rename from test/Model/UpdateCustomer400ResponseAllOfTest.php rename to test/Model/Customer/UpdateCustomer400ResponseAllOfTest.php index 0df4f0a..65dacc3 100644 --- a/test/Model/UpdateCustomer400ResponseAllOfTest.php +++ b/test/Model/Customer/UpdateCustomer400ResponseAllOfTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/UpdateCustomer400ResponseTest.php b/test/Model/Customer/UpdateCustomer400ResponseTest.php similarity index 97% rename from test/Model/UpdateCustomer400ResponseTest.php rename to test/Model/Customer/UpdateCustomer400ResponseTest.php index 21aaa8e..bff8b39 100644 --- a/test/Model/UpdateCustomer400ResponseTest.php +++ b/test/Model/Customer/UpdateCustomer400ResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Customer; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AddressObjectTest.php b/test/Model/Invoice/AddressObjectTest.php similarity index 98% rename from test/Model/AddressObjectTest.php rename to test/Model/Invoice/AddressObjectTest.php index f835151..7833615 100644 --- a/test/Model/AddressObjectTest.php +++ b/test/Model/Invoice/AddressObjectTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/AlternativeDisplayItemTest.php b/test/Model/Invoice/AlternativeDisplayItemTest.php similarity index 97% rename from test/Model/AlternativeDisplayItemTest.php rename to test/Model/Invoice/AlternativeDisplayItemTest.php index 87864f8..3e0c725 100644 --- a/test/Model/AlternativeDisplayItemTest.php +++ b/test/Model/Invoice/AlternativeDisplayItemTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/BadRequestErrorTest.php b/test/Model/Invoice/BadRequestErrorTest.php similarity index 97% rename from test/Model/BadRequestErrorTest.php rename to test/Model/Invoice/BadRequestErrorTest.php index a86b980..dbbe5e7 100644 --- a/test/Model/BadRequestErrorTest.php +++ b/test/Model/Invoice/BadRequestErrorTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/BankCodeTest.php b/test/Model/Invoice/BankCodeTest.php similarity index 97% rename from test/Model/BankCodeTest.php rename to test/Model/Invoice/BankCodeTest.php index 66a41bf..e535e49 100644 --- a/test/Model/BankCodeTest.php +++ b/test/Model/Invoice/BankCodeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/BankTest.php b/test/Model/Invoice/BankTest.php similarity index 98% rename from test/Model/BankTest.php rename to test/Model/Invoice/BankTest.php index 87fbb9a..fb19c18 100644 --- a/test/Model/BankTest.php +++ b/test/Model/Invoice/BankTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreateInvoiceRequestTest.php b/test/Model/Invoice/CreateInvoiceRequestTest.php similarity index 99% rename from test/Model/CreateInvoiceRequestTest.php rename to test/Model/Invoice/CreateInvoiceRequestTest.php index 449e35c..f3fa4cd 100644 --- a/test/Model/CreateInvoiceRequestTest.php +++ b/test/Model/Invoice/CreateInvoiceRequestTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CustomerObjectTest.php b/test/Model/Invoice/CustomerObjectTest.php similarity index 98% rename from test/Model/CustomerObjectTest.php rename to test/Model/Invoice/CustomerObjectTest.php index 5e9532f..82c0d99 100644 --- a/test/Model/CustomerObjectTest.php +++ b/test/Model/Invoice/CustomerObjectTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/DirectDebitTest.php b/test/Model/Invoice/DirectDebitTest.php similarity index 97% rename from test/Model/DirectDebitTest.php rename to test/Model/Invoice/DirectDebitTest.php index a359da5..921602b 100644 --- a/test/Model/DirectDebitTest.php +++ b/test/Model/Invoice/DirectDebitTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/DirectDebitTypeTest.php b/test/Model/Invoice/DirectDebitTypeTest.php similarity index 97% rename from test/Model/DirectDebitTypeTest.php rename to test/Model/Invoice/DirectDebitTypeTest.php index 1fed664..399848f 100644 --- a/test/Model/DirectDebitTypeTest.php +++ b/test/Model/Invoice/DirectDebitTypeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/EwalletTest.php b/test/Model/Invoice/EwalletTest.php similarity index 97% rename from test/Model/EwalletTest.php rename to test/Model/Invoice/EwalletTest.php index 595303f..50e0b66 100644 --- a/test/Model/EwalletTest.php +++ b/test/Model/Invoice/EwalletTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/EwalletTypeTest.php b/test/Model/Invoice/EwalletTypeTest.php similarity index 97% rename from test/Model/EwalletTypeTest.php rename to test/Model/Invoice/EwalletTypeTest.php index 3c4c176..52c5e60 100644 --- a/test/Model/EwalletTypeTest.php +++ b/test/Model/Invoice/EwalletTypeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ForbiddenErrorTest.php b/test/Model/Invoice/ForbiddenErrorTest.php similarity index 97% rename from test/Model/ForbiddenErrorTest.php rename to test/Model/Invoice/ForbiddenErrorTest.php index eff80d1..211ce20 100644 --- a/test/Model/ForbiddenErrorTest.php +++ b/test/Model/Invoice/ForbiddenErrorTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/InvoiceClientTypeTest.php b/test/Model/Invoice/InvoiceClientTypeTest.php similarity index 97% rename from test/Model/InvoiceClientTypeTest.php rename to test/Model/Invoice/InvoiceClientTypeTest.php index 31da39d..b53695d 100644 --- a/test/Model/InvoiceClientTypeTest.php +++ b/test/Model/Invoice/InvoiceClientTypeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/InvoiceCurrencyTest.php b/test/Model/Invoice/InvoiceCurrencyTest.php similarity index 97% rename from test/Model/InvoiceCurrencyTest.php rename to test/Model/Invoice/InvoiceCurrencyTest.php index 6498478..a0cb449 100644 --- a/test/Model/InvoiceCurrencyTest.php +++ b/test/Model/Invoice/InvoiceCurrencyTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/InvoiceError404ResponseDefinitionTest.php b/test/Model/Invoice/InvoiceError404ResponseDefinitionTest.php similarity index 97% rename from test/Model/InvoiceError404ResponseDefinitionTest.php rename to test/Model/Invoice/InvoiceError404ResponseDefinitionTest.php index 89f0aa6..785829e 100644 --- a/test/Model/InvoiceError404ResponseDefinitionTest.php +++ b/test/Model/Invoice/InvoiceError404ResponseDefinitionTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/InvoiceFeeTest.php b/test/Model/Invoice/InvoiceFeeTest.php similarity index 97% rename from test/Model/InvoiceFeeTest.php rename to test/Model/Invoice/InvoiceFeeTest.php index 6dd0468..5156379 100644 --- a/test/Model/InvoiceFeeTest.php +++ b/test/Model/Invoice/InvoiceFeeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/InvoiceItemTest.php b/test/Model/Invoice/InvoiceItemTest.php similarity index 98% rename from test/Model/InvoiceItemTest.php rename to test/Model/Invoice/InvoiceItemTest.php index 2c00b69..3592fa7 100644 --- a/test/Model/InvoiceItemTest.php +++ b/test/Model/Invoice/InvoiceItemTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/InvoiceNotFoundErrorTest.php b/test/Model/Invoice/InvoiceNotFoundErrorTest.php similarity index 97% rename from test/Model/InvoiceNotFoundErrorTest.php rename to test/Model/Invoice/InvoiceNotFoundErrorTest.php index b9a0f42..7b9e3d9 100644 --- a/test/Model/InvoiceNotFoundErrorTest.php +++ b/test/Model/Invoice/InvoiceNotFoundErrorTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/InvoicePaymentMethodTest.php b/test/Model/Invoice/InvoicePaymentMethodTest.php similarity index 97% rename from test/Model/InvoicePaymentMethodTest.php rename to test/Model/Invoice/InvoicePaymentMethodTest.php index 09afc13..5e01166 100644 --- a/test/Model/InvoicePaymentMethodTest.php +++ b/test/Model/Invoice/InvoicePaymentMethodTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/InvoiceStatusTest.php b/test/Model/Invoice/InvoiceStatusTest.php similarity index 97% rename from test/Model/InvoiceStatusTest.php rename to test/Model/Invoice/InvoiceStatusTest.php index 3cf7bd9..a264383 100644 --- a/test/Model/InvoiceStatusTest.php +++ b/test/Model/Invoice/InvoiceStatusTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/InvoiceTest.php b/test/Model/Invoice/InvoiceTest.php similarity index 99% rename from test/Model/InvoiceTest.php rename to test/Model/Invoice/InvoiceTest.php index fac9d60..97eb7cf 100644 --- a/test/Model/InvoiceTest.php +++ b/test/Model/Invoice/InvoiceTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/NotificationChannelTest.php b/test/Model/Invoice/NotificationChannelTest.php similarity index 97% rename from test/Model/NotificationChannelTest.php rename to test/Model/Invoice/NotificationChannelTest.php index 9fb23e3..fe865e8 100644 --- a/test/Model/NotificationChannelTest.php +++ b/test/Model/Invoice/NotificationChannelTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/NotificationPreferenceTest.php b/test/Model/Invoice/NotificationPreferenceTest.php similarity index 98% rename from test/Model/NotificationPreferenceTest.php rename to test/Model/Invoice/NotificationPreferenceTest.php index d6b01d3..9db223e 100644 --- a/test/Model/NotificationPreferenceTest.php +++ b/test/Model/Invoice/NotificationPreferenceTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaylaterTest.php b/test/Model/Invoice/PaylaterTest.php similarity index 97% rename from test/Model/PaylaterTest.php rename to test/Model/Invoice/PaylaterTest.php index 56bf6e5..3933ec0 100644 --- a/test/Model/PaylaterTest.php +++ b/test/Model/Invoice/PaylaterTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaylaterTypeTest.php b/test/Model/Invoice/PaylaterTypeTest.php similarity index 97% rename from test/Model/PaylaterTypeTest.php rename to test/Model/Invoice/PaylaterTypeTest.php index 1913022..218a459 100644 --- a/test/Model/PaylaterTypeTest.php +++ b/test/Model/Invoice/PaylaterTypeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/QrCodeTest.php b/test/Model/Invoice/QrCodeTest.php similarity index 97% rename from test/Model/QrCodeTest.php rename to test/Model/Invoice/QrCodeTest.php index 21ca33f..ac700fa 100644 --- a/test/Model/QrCodeTest.php +++ b/test/Model/Invoice/QrCodeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/QrCodeTypeTest.php b/test/Model/Invoice/QrCodeTypeTest.php similarity index 97% rename from test/Model/QrCodeTypeTest.php rename to test/Model/Invoice/QrCodeTypeTest.php index 7bdc704..b24e400 100644 --- a/test/Model/QrCodeTypeTest.php +++ b/test/Model/Invoice/QrCodeTypeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/RetailOutletNameTest.php b/test/Model/Invoice/RetailOutletNameTest.php similarity index 97% rename from test/Model/RetailOutletNameTest.php rename to test/Model/Invoice/RetailOutletNameTest.php index 696828a..907d511 100644 --- a/test/Model/RetailOutletNameTest.php +++ b/test/Model/Invoice/RetailOutletNameTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/RetailOutletTest.php b/test/Model/Invoice/RetailOutletTest.php similarity index 98% rename from test/Model/RetailOutletTest.php rename to test/Model/Invoice/RetailOutletTest.php index d7b0550..625fa1b 100644 --- a/test/Model/RetailOutletTest.php +++ b/test/Model/Invoice/RetailOutletTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/Invoice/ServerErrorTest.php b/test/Model/Invoice/ServerErrorTest.php new file mode 100644 index 0000000..6dd7a87 --- /dev/null +++ b/test/Model/Invoice/ServerErrorTest.php @@ -0,0 +1,92 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "error_code" + */ + public function testPropertyErrorCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "message" + */ + public function testPropertyMessage() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/UnauthorizedErrorTest.php b/test/Model/Invoice/UnauthorizedErrorTest.php similarity index 97% rename from test/Model/UnauthorizedErrorTest.php rename to test/Model/Invoice/UnauthorizedErrorTest.php index 5f98318..ab26c9f 100644 --- a/test/Model/UnauthorizedErrorTest.php +++ b/test/Model/Invoice/UnauthorizedErrorTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Invoice; use PHPUnit\Framework\TestCase; diff --git a/test/Model/BillingInformationTest.php b/test/Model/PaymentMethod/BillingInformationTest.php similarity index 96% rename from test/Model/BillingInformationTest.php rename to test/Model/PaymentMethod/BillingInformationTest.php index 3b1cd95..7be4bf7 100644 --- a/test/Model/BillingInformationTest.php +++ b/test/Model/PaymentMethod/BillingInformationTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CardChannelPropertiesTest.php b/test/Model/PaymentMethod/CardChannelPropertiesTest.php similarity index 95% rename from test/Model/CardChannelPropertiesTest.php rename to test/Model/PaymentMethod/CardChannelPropertiesTest.php index 70e5fb2..47e9e4f 100644 --- a/test/Model/CardChannelPropertiesTest.php +++ b/test/Model/PaymentMethod/CardChannelPropertiesTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CardParametersCardInformationTest.php b/test/Model/PaymentMethod/CardParametersCardInformationTest.php similarity index 96% rename from test/Model/CardParametersCardInformationTest.php rename to test/Model/PaymentMethod/CardParametersCardInformationTest.php index 95ea0c1..f3df392 100644 --- a/test/Model/CardParametersCardInformationTest.php +++ b/test/Model/PaymentMethod/CardParametersCardInformationTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CardParametersTest.php b/test/Model/PaymentMethod/CardParametersTest.php similarity index 95% rename from test/Model/CardParametersTest.php rename to test/Model/PaymentMethod/CardParametersTest.php index c013d85..3dd2d91 100644 --- a/test/Model/CardParametersTest.php +++ b/test/Model/PaymentMethod/CardParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CardTest.php b/test/Model/PaymentMethod/CardTest.php similarity index 95% rename from test/Model/CardTest.php rename to test/Model/PaymentMethod/CardTest.php index 344d306..ea9b826 100644 --- a/test/Model/CardTest.php +++ b/test/Model/PaymentMethod/CardTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CardVerificationResultsTest.php b/test/Model/PaymentMethod/CardVerificationResultsTest.php similarity index 95% rename from test/Model/CardVerificationResultsTest.php rename to test/Model/PaymentMethod/CardVerificationResultsTest.php index b7e17e5..4298676 100644 --- a/test/Model/CardVerificationResultsTest.php +++ b/test/Model/PaymentMethod/CardVerificationResultsTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CardVerificationResultsThreeDSecureTest.php b/test/Model/PaymentMethod/CardVerificationResultsThreeDSecureTest.php similarity index 96% rename from test/Model/CardVerificationResultsThreeDSecureTest.php rename to test/Model/PaymentMethod/CardVerificationResultsThreeDSecureTest.php index 32371ca..f0b9ba6 100644 --- a/test/Model/CardVerificationResultsThreeDSecureTest.php +++ b/test/Model/PaymentMethod/CardVerificationResultsThreeDSecureTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreatePaymentMethod409ResponseTest.php b/test/Model/PaymentMethod/CreatePaymentMethod409ResponseTest.php similarity index 94% rename from test/Model/CreatePaymentMethod409ResponseTest.php rename to test/Model/PaymentMethod/CreatePaymentMethod409ResponseTest.php index 17be6d8..47f3818 100644 --- a/test/Model/CreatePaymentMethod409ResponseTest.php +++ b/test/Model/PaymentMethod/CreatePaymentMethod409ResponseTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreatePaymentMethod503ResponseTest.php b/test/Model/PaymentMethod/CreatePaymentMethod503ResponseTest.php similarity index 94% rename from test/Model/CreatePaymentMethod503ResponseTest.php rename to test/Model/PaymentMethod/CreatePaymentMethod503ResponseTest.php index 961a704..1c34425 100644 --- a/test/Model/CreatePaymentMethod503ResponseTest.php +++ b/test/Model/PaymentMethod/CreatePaymentMethod503ResponseTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/DirectDebitAllOfTest.php b/test/Model/PaymentMethod/DirectDebitAllOfTest.php similarity index 95% rename from test/Model/DirectDebitAllOfTest.php rename to test/Model/PaymentMethod/DirectDebitAllOfTest.php index d1b2557..82bf3b0 100644 --- a/test/Model/DirectDebitAllOfTest.php +++ b/test/Model/PaymentMethod/DirectDebitAllOfTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/DirectDebitBankAccountTest.php b/test/Model/PaymentMethod/DirectDebitBankAccountTest.php similarity index 95% rename from test/Model/DirectDebitBankAccountTest.php rename to test/Model/PaymentMethod/DirectDebitBankAccountTest.php index 8baaf99..3e7305f 100644 --- a/test/Model/DirectDebitBankAccountTest.php +++ b/test/Model/PaymentMethod/DirectDebitBankAccountTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/DirectDebitChannelCodeTest.php b/test/Model/PaymentMethod/DirectDebitChannelCodeTest.php similarity index 93% rename from test/Model/DirectDebitChannelCodeTest.php rename to test/Model/PaymentMethod/DirectDebitChannelCodeTest.php index ce1a9bc..cf3ae6c 100644 --- a/test/Model/DirectDebitChannelCodeTest.php +++ b/test/Model/PaymentMethod/DirectDebitChannelCodeTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethod/DirectDebitChannelPropertiesTest.php b/test/Model/PaymentMethod/DirectDebitChannelPropertiesTest.php new file mode 100644 index 0000000..9f309ae --- /dev/null +++ b/test/Model/PaymentMethod/DirectDebitChannelPropertiesTest.php @@ -0,0 +1,155 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "success_return_url" + */ + public function testPropertySuccessReturnUrl() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "failure_return_url" + */ + public function testPropertyFailureReturnUrl() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "mobile_number" + */ + public function testPropertyMobileNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "card_last_four" + */ + public function testPropertyCardLastFour() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "card_expiry" + */ + public function testPropertyCardExpiry() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "email" + */ + public function testPropertyEmail() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "identity_document_number" + */ + public function testPropertyIdentityDocumentNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "require_auth" + */ + public function testPropertyRequireAuth() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "account_number" + */ + public function testPropertyAccountNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/DirectDebitDebitCardTest.php b/test/Model/PaymentMethod/DirectDebitDebitCardTest.php similarity index 87% rename from test/Model/DirectDebitDebitCardTest.php rename to test/Model/PaymentMethod/DirectDebitDebitCardTest.php index 324d2c9..79a17aa 100644 --- a/test/Model/DirectDebitDebitCardTest.php +++ b/test/Model/PaymentMethod/DirectDebitDebitCardTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; @@ -107,4 +107,13 @@ public function testPropertyEmail() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "account_number" + */ + public function testPropertyAccountNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/test/Model/DirectDebitParametersTest.php b/test/Model/PaymentMethod/DirectDebitParametersTest.php similarity index 94% rename from test/Model/DirectDebitParametersTest.php rename to test/Model/PaymentMethod/DirectDebitParametersTest.php index 2285a9b..c8846cd 100644 --- a/test/Model/DirectDebitParametersTest.php +++ b/test/Model/PaymentMethod/DirectDebitParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethod/DirectDebitTest.php b/test/Model/PaymentMethod/DirectDebitTest.php new file mode 100644 index 0000000..0226250 --- /dev/null +++ b/test/Model/PaymentMethod/DirectDebitTest.php @@ -0,0 +1,119 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "type" + */ + public function testPropertyType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "bank_account" + */ + public function testPropertyBankAccount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "debit_card" + */ + public function testPropertyDebitCard() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentMethod/DirectDebitTypeTest.php b/test/Model/PaymentMethod/DirectDebitTypeTest.php new file mode 100644 index 0000000..b3dc585 --- /dev/null +++ b/test/Model/PaymentMethod/DirectDebitTypeTest.php @@ -0,0 +1,74 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/EWalletAccountTest.php b/test/Model/PaymentMethod/EWalletAccountTest.php similarity index 95% rename from test/Model/EWalletAccountTest.php rename to test/Model/PaymentMethod/EWalletAccountTest.php index cf1b786..dd46ad6 100644 --- a/test/Model/EWalletAccountTest.php +++ b/test/Model/PaymentMethod/EWalletAccountTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/EWalletChannelCodeTest.php b/test/Model/PaymentMethod/EWalletChannelCodeTest.php similarity index 93% rename from test/Model/EWalletChannelCodeTest.php rename to test/Model/PaymentMethod/EWalletChannelCodeTest.php index 15b203d..b16f90c 100644 --- a/test/Model/EWalletChannelCodeTest.php +++ b/test/Model/PaymentMethod/EWalletChannelCodeTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/EWalletChannelPropertiesTest.php b/test/Model/PaymentMethod/EWalletChannelPropertiesTest.php similarity index 96% rename from test/Model/EWalletChannelPropertiesTest.php rename to test/Model/PaymentMethod/EWalletChannelPropertiesTest.php index 0ed472d..08cb098 100644 --- a/test/Model/EWalletChannelPropertiesTest.php +++ b/test/Model/PaymentMethod/EWalletChannelPropertiesTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/EWalletParametersTest.php b/test/Model/PaymentMethod/EWalletParametersTest.php similarity index 95% rename from test/Model/EWalletParametersTest.php rename to test/Model/PaymentMethod/EWalletParametersTest.php index d59fcec..7cc47a5 100644 --- a/test/Model/EWalletParametersTest.php +++ b/test/Model/PaymentMethod/EWalletParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/EWalletTest.php b/test/Model/PaymentMethod/EWalletTest.php similarity index 95% rename from test/Model/EWalletTest.php rename to test/Model/PaymentMethod/EWalletTest.php index 68f1b76..2325f3d 100644 --- a/test/Model/EWalletTest.php +++ b/test/Model/PaymentMethod/EWalletTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/GetAllPaymentMethods400ResponseTest.php b/test/Model/PaymentMethod/GetAllPaymentMethods400ResponseTest.php similarity index 94% rename from test/Model/GetAllPaymentMethods400ResponseTest.php rename to test/Model/PaymentMethod/GetAllPaymentMethods400ResponseTest.php index 0a8a82b..ea16465 100644 --- a/test/Model/GetAllPaymentMethods400ResponseTest.php +++ b/test/Model/PaymentMethod/GetAllPaymentMethods400ResponseTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/GetAllPaymentMethods403ResponseTest.php b/test/Model/PaymentMethod/GetAllPaymentMethods403ResponseTest.php similarity index 94% rename from test/Model/GetAllPaymentMethods403ResponseTest.php rename to test/Model/PaymentMethod/GetAllPaymentMethods403ResponseTest.php index be7505a..3362f92 100644 --- a/test/Model/GetAllPaymentMethods403ResponseTest.php +++ b/test/Model/PaymentMethod/GetAllPaymentMethods403ResponseTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/GetAllPaymentMethods404ResponseTest.php b/test/Model/PaymentMethod/GetAllPaymentMethods404ResponseTest.php similarity index 94% rename from test/Model/GetAllPaymentMethods404ResponseTest.php rename to test/Model/PaymentMethod/GetAllPaymentMethods404ResponseTest.php index 9e0acb1..cb8bef0 100644 --- a/test/Model/GetAllPaymentMethods404ResponseTest.php +++ b/test/Model/PaymentMethod/GetAllPaymentMethods404ResponseTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/GetAllPaymentMethodsDefaultResponseTest.php b/test/Model/PaymentMethod/GetAllPaymentMethodsDefaultResponseTest.php similarity index 94% rename from test/Model/GetAllPaymentMethodsDefaultResponseTest.php rename to test/Model/PaymentMethod/GetAllPaymentMethodsDefaultResponseTest.php index c80b458..6faecb2 100644 --- a/test/Model/GetAllPaymentMethodsDefaultResponseTest.php +++ b/test/Model/PaymentMethod/GetAllPaymentMethodsDefaultResponseTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/OverTheCounterChannelCodeTest.php b/test/Model/PaymentMethod/OverTheCounterChannelCodeTest.php similarity index 93% rename from test/Model/OverTheCounterChannelCodeTest.php rename to test/Model/PaymentMethod/OverTheCounterChannelCodeTest.php index 4315b95..e3c7c3c 100644 --- a/test/Model/OverTheCounterChannelCodeTest.php +++ b/test/Model/PaymentMethod/OverTheCounterChannelCodeTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/OverTheCounterChannelPropertiesTest.php b/test/Model/PaymentMethod/OverTheCounterChannelPropertiesTest.php similarity index 95% rename from test/Model/OverTheCounterChannelPropertiesTest.php rename to test/Model/PaymentMethod/OverTheCounterChannelPropertiesTest.php index b2e6ef4..87d2b2b 100644 --- a/test/Model/OverTheCounterChannelPropertiesTest.php +++ b/test/Model/PaymentMethod/OverTheCounterChannelPropertiesTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/OverTheCounterChannelPropertiesUpdateTest.php b/test/Model/PaymentMethod/OverTheCounterChannelPropertiesUpdateTest.php similarity index 95% rename from test/Model/OverTheCounterChannelPropertiesUpdateTest.php rename to test/Model/PaymentMethod/OverTheCounterChannelPropertiesUpdateTest.php index accdf9e..5406926 100644 --- a/test/Model/OverTheCounterChannelPropertiesUpdateTest.php +++ b/test/Model/PaymentMethod/OverTheCounterChannelPropertiesUpdateTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/OverTheCounterParametersTest.php b/test/Model/PaymentMethod/OverTheCounterParametersTest.php similarity index 95% rename from test/Model/OverTheCounterParametersTest.php rename to test/Model/PaymentMethod/OverTheCounterParametersTest.php index 39d4726..d739234 100644 --- a/test/Model/OverTheCounterParametersTest.php +++ b/test/Model/PaymentMethod/OverTheCounterParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/OverTheCounterTest.php b/test/Model/PaymentMethod/OverTheCounterTest.php similarity index 95% rename from test/Model/OverTheCounterTest.php rename to test/Model/PaymentMethod/OverTheCounterTest.php index cd3c4b1..24b5710 100644 --- a/test/Model/OverTheCounterTest.php +++ b/test/Model/PaymentMethod/OverTheCounterTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/OverTheCounterUpdateParametersTest.php b/test/Model/PaymentMethod/OverTheCounterUpdateParametersTest.php similarity index 94% rename from test/Model/OverTheCounterUpdateParametersTest.php rename to test/Model/PaymentMethod/OverTheCounterUpdateParametersTest.php index 1c48d36..b1c77cd 100644 --- a/test/Model/OverTheCounterUpdateParametersTest.php +++ b/test/Model/PaymentMethod/OverTheCounterUpdateParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodActionTest.php b/test/Model/PaymentMethod/PaymentMethodActionTest.php similarity index 95% rename from test/Model/PaymentMethodActionTest.php rename to test/Model/PaymentMethod/PaymentMethodActionTest.php index 6e7d968..ed10595 100644 --- a/test/Model/PaymentMethodActionTest.php +++ b/test/Model/PaymentMethod/PaymentMethodActionTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodAuthParametersTest.php b/test/Model/PaymentMethod/PaymentMethodAuthParametersTest.php similarity index 94% rename from test/Model/PaymentMethodAuthParametersTest.php rename to test/Model/PaymentMethod/PaymentMethodAuthParametersTest.php index 1b62048..7b6406d 100644 --- a/test/Model/PaymentMethodAuthParametersTest.php +++ b/test/Model/PaymentMethod/PaymentMethodAuthParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodCountryTest.php b/test/Model/PaymentMethod/PaymentMethodCountryTest.php similarity index 93% rename from test/Model/PaymentMethodCountryTest.php rename to test/Model/PaymentMethod/PaymentMethodCountryTest.php index 2b81312..a91b137 100644 --- a/test/Model/PaymentMethodCountryTest.php +++ b/test/Model/PaymentMethod/PaymentMethodCountryTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodExpireParametersTest.php b/test/Model/PaymentMethod/PaymentMethodExpireParametersTest.php similarity index 94% rename from test/Model/PaymentMethodExpireParametersTest.php rename to test/Model/PaymentMethod/PaymentMethodExpireParametersTest.php index ab17d60..65b06bd 100644 --- a/test/Model/PaymentMethodExpireParametersTest.php +++ b/test/Model/PaymentMethod/PaymentMethodExpireParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodListTest.php b/test/Model/PaymentMethod/PaymentMethodListTest.php similarity index 94% rename from test/Model/PaymentMethodListTest.php rename to test/Model/PaymentMethod/PaymentMethodListTest.php index 52d3b52..6a86146 100644 --- a/test/Model/PaymentMethodListTest.php +++ b/test/Model/PaymentMethod/PaymentMethodListTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodParametersTest.php b/test/Model/PaymentMethod/PaymentMethodParametersTest.php similarity index 97% rename from test/Model/PaymentMethodParametersTest.php rename to test/Model/PaymentMethod/PaymentMethodParametersTest.php index a8ec1d2..6d59a01 100644 --- a/test/Model/PaymentMethodParametersTest.php +++ b/test/Model/PaymentMethod/PaymentMethodParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodReusabilityTest.php b/test/Model/PaymentMethod/PaymentMethodReusabilityTest.php similarity index 93% rename from test/Model/PaymentMethodReusabilityTest.php rename to test/Model/PaymentMethod/PaymentMethodReusabilityTest.php index 3e3c54e..3787d74 100644 --- a/test/Model/PaymentMethodReusabilityTest.php +++ b/test/Model/PaymentMethod/PaymentMethodReusabilityTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodStatusTest.php b/test/Model/PaymentMethod/PaymentMethodStatusTest.php similarity index 93% rename from test/Model/PaymentMethodStatusTest.php rename to test/Model/PaymentMethod/PaymentMethodStatusTest.php index 07897a1..f3b0eb9 100644 --- a/test/Model/PaymentMethodStatusTest.php +++ b/test/Model/PaymentMethod/PaymentMethodStatusTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodTest.php b/test/Model/PaymentMethod/PaymentMethodTest.php similarity index 98% rename from test/Model/PaymentMethodTest.php rename to test/Model/PaymentMethod/PaymentMethodTest.php index 0097940..e086d30 100644 --- a/test/Model/PaymentMethodTest.php +++ b/test/Model/PaymentMethod/PaymentMethodTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodTypeTest.php b/test/Model/PaymentMethod/PaymentMethodTypeTest.php similarity index 93% rename from test/Model/PaymentMethodTypeTest.php rename to test/Model/PaymentMethod/PaymentMethodTypeTest.php index c20fc93..41eb895 100644 --- a/test/Model/PaymentMethodTypeTest.php +++ b/test/Model/PaymentMethod/PaymentMethodTypeTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentMethodUpdateParametersTest.php b/test/Model/PaymentMethod/PaymentMethodUpdateParametersTest.php similarity index 96% rename from test/Model/PaymentMethodUpdateParametersTest.php rename to test/Model/PaymentMethod/PaymentMethodUpdateParametersTest.php index 0df7eb9..924ace1 100644 --- a/test/Model/PaymentMethodUpdateParametersTest.php +++ b/test/Model/PaymentMethod/PaymentMethodUpdateParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/QRCodeChannelCodeTest.php b/test/Model/PaymentMethod/QRCodeChannelCodeTest.php similarity index 93% rename from test/Model/QRCodeChannelCodeTest.php rename to test/Model/PaymentMethod/QRCodeChannelCodeTest.php index b709a07..f29e74c 100644 --- a/test/Model/QRCodeChannelCodeTest.php +++ b/test/Model/PaymentMethod/QRCodeChannelCodeTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/QRCodeChannelPropertiesTest.php b/test/Model/PaymentMethod/QRCodeChannelPropertiesTest.php similarity index 94% rename from test/Model/QRCodeChannelPropertiesTest.php rename to test/Model/PaymentMethod/QRCodeChannelPropertiesTest.php index bebe1e3..81aaad7 100644 --- a/test/Model/QRCodeChannelPropertiesTest.php +++ b/test/Model/PaymentMethod/QRCodeChannelPropertiesTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/QRCodeParametersTest.php b/test/Model/PaymentMethod/QRCodeParametersTest.php similarity index 95% rename from test/Model/QRCodeParametersTest.php rename to test/Model/PaymentMethod/QRCodeParametersTest.php index 665f994..067d29e 100644 --- a/test/Model/QRCodeParametersTest.php +++ b/test/Model/PaymentMethod/QRCodeParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/QRCodeTest.php b/test/Model/PaymentMethod/QRCodeTest.php similarity index 95% rename from test/Model/QRCodeTest.php rename to test/Model/PaymentMethod/QRCodeTest.php index 2aabd67..4163601 100644 --- a/test/Model/QRCodeTest.php +++ b/test/Model/PaymentMethod/QRCodeTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/SimulatePaymentRequestTest.php b/test/Model/PaymentMethod/SimulatePaymentRequestTest.php similarity index 94% rename from test/Model/SimulatePaymentRequestTest.php rename to test/Model/PaymentMethod/SimulatePaymentRequestTest.php index 79f6173..df8dd75 100644 --- a/test/Model/SimulatePaymentRequestTest.php +++ b/test/Model/PaymentMethod/SimulatePaymentRequestTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/TokenizedCardInformationTest.php b/test/Model/PaymentMethod/TokenizedCardInformationTest.php similarity index 97% rename from test/Model/TokenizedCardInformationTest.php rename to test/Model/PaymentMethod/TokenizedCardInformationTest.php index 6f44380..4808e00 100644 --- a/test/Model/TokenizedCardInformationTest.php +++ b/test/Model/PaymentMethod/TokenizedCardInformationTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/VirtualAccountAllOfTest.php b/test/Model/PaymentMethod/VirtualAccountAllOfTest.php similarity index 94% rename from test/Model/VirtualAccountAllOfTest.php rename to test/Model/PaymentMethod/VirtualAccountAllOfTest.php index c30caa6..fb6473e 100644 --- a/test/Model/VirtualAccountAllOfTest.php +++ b/test/Model/PaymentMethod/VirtualAccountAllOfTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/VirtualAccountAlternativeDisplayTest.php b/test/Model/PaymentMethod/VirtualAccountAlternativeDisplayTest.php similarity index 94% rename from test/Model/VirtualAccountAlternativeDisplayTest.php rename to test/Model/PaymentMethod/VirtualAccountAlternativeDisplayTest.php index 97d2a0b..9c19c54 100644 --- a/test/Model/VirtualAccountAlternativeDisplayTest.php +++ b/test/Model/PaymentMethod/VirtualAccountAlternativeDisplayTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/VirtualAccountChannelCodeTest.php b/test/Model/PaymentMethod/VirtualAccountChannelCodeTest.php similarity index 93% rename from test/Model/VirtualAccountChannelCodeTest.php rename to test/Model/PaymentMethod/VirtualAccountChannelCodeTest.php index 995991b..62146ab 100644 --- a/test/Model/VirtualAccountChannelCodeTest.php +++ b/test/Model/PaymentMethod/VirtualAccountChannelCodeTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/VirtualAccountChannelPropertiesPatchTest.php b/test/Model/PaymentMethod/VirtualAccountChannelPropertiesPatchTest.php similarity index 94% rename from test/Model/VirtualAccountChannelPropertiesPatchTest.php rename to test/Model/PaymentMethod/VirtualAccountChannelPropertiesPatchTest.php index 63a17e0..f81179c 100644 --- a/test/Model/VirtualAccountChannelPropertiesPatchTest.php +++ b/test/Model/PaymentMethod/VirtualAccountChannelPropertiesPatchTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/VirtualAccountChannelPropertiesTest.php b/test/Model/PaymentMethod/VirtualAccountChannelPropertiesTest.php similarity index 95% rename from test/Model/VirtualAccountChannelPropertiesTest.php rename to test/Model/PaymentMethod/VirtualAccountChannelPropertiesTest.php index 1508536..2a6639d 100644 --- a/test/Model/VirtualAccountChannelPropertiesTest.php +++ b/test/Model/PaymentMethod/VirtualAccountChannelPropertiesTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/VirtualAccountParametersTest.php b/test/Model/PaymentMethod/VirtualAccountParametersTest.php similarity index 96% rename from test/Model/VirtualAccountParametersTest.php rename to test/Model/PaymentMethod/VirtualAccountParametersTest.php index c89a073..2e08b32 100644 --- a/test/Model/VirtualAccountParametersTest.php +++ b/test/Model/PaymentMethod/VirtualAccountParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/VirtualAccountTest.php b/test/Model/PaymentMethod/VirtualAccountTest.php similarity index 96% rename from test/Model/VirtualAccountTest.php rename to test/Model/PaymentMethod/VirtualAccountTest.php index 877e838..4dc6ef2 100644 --- a/test/Model/VirtualAccountTest.php +++ b/test/Model/PaymentMethod/VirtualAccountTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/VirtualAccountUpdateParametersTest.php b/test/Model/PaymentMethod/VirtualAccountUpdateParametersTest.php similarity index 96% rename from test/Model/VirtualAccountUpdateParametersTest.php rename to test/Model/PaymentMethod/VirtualAccountUpdateParametersTest.php index e724b8d..eba7717 100644 --- a/test/Model/VirtualAccountUpdateParametersTest.php +++ b/test/Model/PaymentMethod/VirtualAccountUpdateParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Method Service v2 * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 2.91.2 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentMethod; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CaptureListResponseTest.php b/test/Model/PaymentRequest/CaptureListResponseTest.php similarity index 94% rename from test/Model/CaptureListResponseTest.php rename to test/Model/PaymentRequest/CaptureListResponseTest.php index 08e3347..3ba13dd 100644 --- a/test/Model/CaptureListResponseTest.php +++ b/test/Model/PaymentRequest/CaptureListResponseTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CaptureParametersTest.php b/test/Model/PaymentRequest/CaptureParametersTest.php similarity index 94% rename from test/Model/CaptureParametersTest.php rename to test/Model/PaymentRequest/CaptureParametersTest.php index bd7e6dd..13b0e16 100644 --- a/test/Model/CaptureParametersTest.php +++ b/test/Model/PaymentRequest/CaptureParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CaptureTest.php b/test/Model/PaymentRequest/CaptureTest.php similarity index 97% rename from test/Model/CaptureTest.php rename to test/Model/PaymentRequest/CaptureTest.php index 95c12ae..b4f6c6a 100644 --- a/test/Model/CaptureTest.php +++ b/test/Model/PaymentRequest/CaptureTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequest/CardChannelPropertiesTest.php b/test/Model/PaymentRequest/CardChannelPropertiesTest.php new file mode 100644 index 0000000..84fbf48 --- /dev/null +++ b/test/Model/PaymentRequest/CardChannelPropertiesTest.php @@ -0,0 +1,119 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "skip_three_d_secure" + */ + public function testPropertySkipThreeDSecure() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "success_return_url" + */ + public function testPropertySuccessReturnUrl() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "failure_return_url" + */ + public function testPropertyFailureReturnUrl() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "cardonfile_type" + */ + public function testPropertyCardonfileType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "merchant_id_tag" + */ + public function testPropertyMerchantIdTag() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/CardInformationTest.php b/test/Model/PaymentRequest/CardInformationTest.php similarity index 97% rename from test/Model/CardInformationTest.php rename to test/Model/PaymentRequest/CardInformationTest.php index 7f2794c..d5aa792 100644 --- a/test/Model/CardInformationTest.php +++ b/test/Model/PaymentRequest/CardInformationTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequest/CardTest.php b/test/Model/PaymentRequest/CardTest.php new file mode 100644 index 0000000..6cd07fe --- /dev/null +++ b/test/Model/PaymentRequest/CardTest.php @@ -0,0 +1,110 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "currency" + */ + public function testPropertyCurrency() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "card_information" + */ + public function testPropertyCardInformation() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "card_verification_results" + */ + public function testPropertyCardVerificationResults() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/CardVerificationResultsTest.php b/test/Model/PaymentRequest/CardVerificationResultsTest.php new file mode 100644 index 0000000..0d5faa0 --- /dev/null +++ b/test/Model/PaymentRequest/CardVerificationResultsTest.php @@ -0,0 +1,101 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "three_d_secure" + */ + public function testPropertyThreeDSecure() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "cvv_result" + */ + public function testPropertyCvvResult() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "address_verification_result" + */ + public function testPropertyAddressVerificationResult() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/CardVerificationResultsThreeDSecureTest.php b/test/Model/PaymentRequest/CardVerificationResultsThreeDSecureTest.php new file mode 100644 index 0000000..bc68c90 --- /dev/null +++ b/test/Model/PaymentRequest/CardVerificationResultsThreeDSecureTest.php @@ -0,0 +1,119 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "three_d_secure_flow" + */ + public function testPropertyThreeDSecureFlow() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "eci_code" + */ + public function testPropertyEciCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "three_d_secure_result" + */ + public function testPropertyThreeDSecureResult() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "three_d_secure_result_reason" + */ + public function testPropertyThreeDSecureResultReason() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "three_d_secure_version" + */ + public function testPropertyThreeDSecureVersion() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/DirectDebitAllOfTest.php b/test/Model/PaymentRequest/DirectDebitAllOfTest.php new file mode 100644 index 0000000..dbbb41e --- /dev/null +++ b/test/Model/PaymentRequest/DirectDebitAllOfTest.php @@ -0,0 +1,101 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "type" + */ + public function testPropertyType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "bank_account" + */ + public function testPropertyBankAccount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "debit_card" + */ + public function testPropertyDebitCard() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/DirectDebitBankAccountTest.php b/test/Model/PaymentRequest/DirectDebitBankAccountTest.php new file mode 100644 index 0000000..bba797a --- /dev/null +++ b/test/Model/PaymentRequest/DirectDebitBankAccountTest.php @@ -0,0 +1,92 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "masked_bank_account_number" + */ + public function testPropertyMaskedBankAccountNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "bank_account_hash" + */ + public function testPropertyBankAccountHash() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/DirectDebitChannelCodeTest.php b/test/Model/PaymentRequest/DirectDebitChannelCodeTest.php new file mode 100644 index 0000000..9fc5feb --- /dev/null +++ b/test/Model/PaymentRequest/DirectDebitChannelCodeTest.php @@ -0,0 +1,74 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/DirectDebitChannelPropertiesBankAccountTest.php b/test/Model/PaymentRequest/DirectDebitChannelPropertiesBankAccountTest.php similarity index 95% rename from test/Model/DirectDebitChannelPropertiesBankAccountTest.php rename to test/Model/PaymentRequest/DirectDebitChannelPropertiesBankAccountTest.php index cf54b5e..210ceea 100644 --- a/test/Model/DirectDebitChannelPropertiesBankAccountTest.php +++ b/test/Model/PaymentRequest/DirectDebitChannelPropertiesBankAccountTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/DirectDebitChannelPropertiesBankRedirectTest.php b/test/Model/PaymentRequest/DirectDebitChannelPropertiesBankRedirectTest.php similarity index 95% rename from test/Model/DirectDebitChannelPropertiesBankRedirectTest.php rename to test/Model/PaymentRequest/DirectDebitChannelPropertiesBankRedirectTest.php index 27fdd5b..0490551 100644 --- a/test/Model/DirectDebitChannelPropertiesBankRedirectTest.php +++ b/test/Model/PaymentRequest/DirectDebitChannelPropertiesBankRedirectTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/DirectDebitChannelPropertiesDebitCardTest.php b/test/Model/PaymentRequest/DirectDebitChannelPropertiesDebitCardTest.php similarity index 96% rename from test/Model/DirectDebitChannelPropertiesDebitCardTest.php rename to test/Model/PaymentRequest/DirectDebitChannelPropertiesDebitCardTest.php index 919da2e..baead70 100644 --- a/test/Model/DirectDebitChannelPropertiesDebitCardTest.php +++ b/test/Model/PaymentRequest/DirectDebitChannelPropertiesDebitCardTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/DirectDebitChannelPropertiesTest.php b/test/Model/PaymentRequest/DirectDebitChannelPropertiesTest.php similarity index 91% rename from test/Model/DirectDebitChannelPropertiesTest.php rename to test/Model/PaymentRequest/DirectDebitChannelPropertiesTest.php index 3af2dd2..574a2e1 100644 --- a/test/Model/DirectDebitChannelPropertiesTest.php +++ b/test/Model/PaymentRequest/DirectDebitChannelPropertiesTest.php @@ -9,9 +9,9 @@ */ /** - * Payment Method Service v2 + * Payment Requests * - * The version of the OpenAPI document: 2.89.2 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; @@ -27,7 +27,7 @@ * DirectDebitChannelPropertiesTest Class Doc Comment * * @category Class - * @description Direct Debit Channel Properties + * @description DirectDebitChannelProperties * @package Xendit * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -73,72 +73,72 @@ public function testDirectDebitChannelProperties() } /** - * Test attribute "success_return_url" + * Test attribute "mobile_number" */ - public function testPropertySuccessReturnUrl() + public function testPropertyMobileNumber() { // TODO: implement $this->markTestIncomplete('Not implemented'); } /** - * Test attribute "failure_return_url" + * Test attribute "success_return_url" */ - public function testPropertyFailureReturnUrl() + public function testPropertySuccessReturnUrl() { // TODO: implement $this->markTestIncomplete('Not implemented'); } /** - * Test attribute "mobile_number" + * Test attribute "failure_return_url" */ - public function testPropertyMobileNumber() + public function testPropertyFailureReturnUrl() { // TODO: implement $this->markTestIncomplete('Not implemented'); } /** - * Test attribute "card_last_four" + * Test attribute "identity_document_number" */ - public function testPropertyCardLastFour() + public function testPropertyIdentityDocumentNumber() { // TODO: implement $this->markTestIncomplete('Not implemented'); } /** - * Test attribute "card_expiry" + * Test attribute "account_number" */ - public function testPropertyCardExpiry() + public function testPropertyAccountNumber() { // TODO: implement $this->markTestIncomplete('Not implemented'); } /** - * Test attribute "email" + * Test attribute "card_last_four" */ - public function testPropertyEmail() + public function testPropertyCardLastFour() { // TODO: implement $this->markTestIncomplete('Not implemented'); } /** - * Test attribute "identity_document_number" + * Test attribute "card_expiry" */ - public function testPropertyIdentityDocumentNumber() + public function testPropertyCardExpiry() { // TODO: implement $this->markTestIncomplete('Not implemented'); } /** - * Test attribute "require_auth" + * Test attribute "email" */ - public function testPropertyRequireAuth() + public function testPropertyEmail() { // TODO: implement $this->markTestIncomplete('Not implemented'); diff --git a/test/Model/PaymentRequest/DirectDebitDebitCardTest.php b/test/Model/PaymentRequest/DirectDebitDebitCardTest.php new file mode 100644 index 0000000..f66e258 --- /dev/null +++ b/test/Model/PaymentRequest/DirectDebitDebitCardTest.php @@ -0,0 +1,119 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "mobile_number" + */ + public function testPropertyMobileNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "account_number" + */ + public function testPropertyAccountNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "card_last_four" + */ + public function testPropertyCardLastFour() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "card_expiry" + */ + public function testPropertyCardExpiry() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "email" + */ + public function testPropertyEmail() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/DirectDebitParametersTest.php b/test/Model/PaymentRequest/DirectDebitParametersTest.php new file mode 100644 index 0000000..87a094e --- /dev/null +++ b/test/Model/PaymentRequest/DirectDebitParametersTest.php @@ -0,0 +1,101 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "type" + */ + public function testPropertyType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/DirectDebitTest.php b/test/Model/PaymentRequest/DirectDebitTest.php new file mode 100644 index 0000000..806eab5 --- /dev/null +++ b/test/Model/PaymentRequest/DirectDebitTest.php @@ -0,0 +1,119 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "type" + */ + public function testPropertyType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "bank_account" + */ + public function testPropertyBankAccount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "debit_card" + */ + public function testPropertyDebitCard() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/DirectDebitTypeTest.php b/test/Model/PaymentRequest/DirectDebitTypeTest.php new file mode 100644 index 0000000..875f2db --- /dev/null +++ b/test/Model/PaymentRequest/DirectDebitTypeTest.php @@ -0,0 +1,74 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/EWalletAccountTest.php b/test/Model/PaymentRequest/EWalletAccountTest.php new file mode 100644 index 0000000..51af3b1 --- /dev/null +++ b/test/Model/PaymentRequest/EWalletAccountTest.php @@ -0,0 +1,110 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "name" + */ + public function testPropertyName() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "account_details" + */ + public function testPropertyAccountDetails() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "balance" + */ + public function testPropertyBalance() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "point_balance" + */ + public function testPropertyPointBalance() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/EWalletAllOfTest.php b/test/Model/PaymentRequest/EWalletAllOfTest.php similarity index 93% rename from test/Model/EWalletAllOfTest.php rename to test/Model/PaymentRequest/EWalletAllOfTest.php index 25a310e..cc47a28 100644 --- a/test/Model/EWalletAllOfTest.php +++ b/test/Model/PaymentRequest/EWalletAllOfTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequest/EWalletChannelCodeTest.php b/test/Model/PaymentRequest/EWalletChannelCodeTest.php new file mode 100644 index 0000000..cd53b49 --- /dev/null +++ b/test/Model/PaymentRequest/EWalletChannelCodeTest.php @@ -0,0 +1,74 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/EWalletChannelPropertiesTest.php b/test/Model/PaymentRequest/EWalletChannelPropertiesTest.php new file mode 100644 index 0000000..65f5270 --- /dev/null +++ b/test/Model/PaymentRequest/EWalletChannelPropertiesTest.php @@ -0,0 +1,128 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "success_return_url" + */ + public function testPropertySuccessReturnUrl() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "failure_return_url" + */ + public function testPropertyFailureReturnUrl() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "cancel_return_url" + */ + public function testPropertyCancelReturnUrl() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "redeem_points" + */ + public function testPropertyRedeemPoints() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "mobile_number" + */ + public function testPropertyMobileNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "cashtag" + */ + public function testPropertyCashtag() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/EWalletParametersTest.php b/test/Model/PaymentRequest/EWalletParametersTest.php new file mode 100644 index 0000000..ad86704 --- /dev/null +++ b/test/Model/PaymentRequest/EWalletParametersTest.php @@ -0,0 +1,92 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/EWalletTest.php b/test/Model/PaymentRequest/EWalletTest.php new file mode 100644 index 0000000..42dcffa --- /dev/null +++ b/test/Model/PaymentRequest/EWalletTest.php @@ -0,0 +1,101 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "account" + */ + public function testPropertyAccount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/ErrorTest.php b/test/Model/PaymentRequest/ErrorTest.php new file mode 100644 index 0000000..64eb8d0 --- /dev/null +++ b/test/Model/PaymentRequest/ErrorTest.php @@ -0,0 +1,92 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "error_code" + */ + public function testPropertyErrorCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "message" + */ + public function testPropertyMessage() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/OverTheCounterChannelCodeTest.php b/test/Model/PaymentRequest/OverTheCounterChannelCodeTest.php new file mode 100644 index 0000000..0351add --- /dev/null +++ b/test/Model/PaymentRequest/OverTheCounterChannelCodeTest.php @@ -0,0 +1,74 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/OverTheCounterChannelPropertiesTest.php b/test/Model/PaymentRequest/OverTheCounterChannelPropertiesTest.php new file mode 100644 index 0000000..e30a907 --- /dev/null +++ b/test/Model/PaymentRequest/OverTheCounterChannelPropertiesTest.php @@ -0,0 +1,101 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "payment_code" + */ + public function testPropertyPaymentCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "customer_name" + */ + public function testPropertyCustomerName() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "expires_at" + */ + public function testPropertyExpiresAt() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/OverTheCounterParametersTest.php b/test/Model/PaymentRequest/OverTheCounterParametersTest.php new file mode 100644 index 0000000..95bb7ba --- /dev/null +++ b/test/Model/PaymentRequest/OverTheCounterParametersTest.php @@ -0,0 +1,110 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "amount" + */ + public function testPropertyAmount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "currency" + */ + public function testPropertyCurrency() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/OverTheCounterTest.php b/test/Model/PaymentRequest/OverTheCounterTest.php new file mode 100644 index 0000000..942c773 --- /dev/null +++ b/test/Model/PaymentRequest/OverTheCounterTest.php @@ -0,0 +1,110 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "amount" + */ + public function testPropertyAmount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "currency" + */ + public function testPropertyCurrency() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/PaymentMethodParametersTest.php b/test/Model/PaymentRequest/PaymentMethodParametersTest.php new file mode 100644 index 0000000..6ea327c --- /dev/null +++ b/test/Model/PaymentRequest/PaymentMethodParametersTest.php @@ -0,0 +1,155 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "type" + */ + public function testPropertyType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "reusability" + */ + public function testPropertyReusability() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "description" + */ + public function testPropertyDescription() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "reference_id" + */ + public function testPropertyReferenceId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "direct_debit" + */ + public function testPropertyDirectDebit() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "ewallet" + */ + public function testPropertyEwallet() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "over_the_counter" + */ + public function testPropertyOverTheCounter() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "virtual_account" + */ + public function testPropertyVirtualAccount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "qr_code" + */ + public function testPropertyQrCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/PaymentMethodReusabilityTest.php b/test/Model/PaymentRequest/PaymentMethodReusabilityTest.php new file mode 100644 index 0000000..4b63f0c --- /dev/null +++ b/test/Model/PaymentRequest/PaymentMethodReusabilityTest.php @@ -0,0 +1,74 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/PaymentMethodStatusTest.php b/test/Model/PaymentRequest/PaymentMethodStatusTest.php new file mode 100644 index 0000000..149dd29 --- /dev/null +++ b/test/Model/PaymentRequest/PaymentMethodStatusTest.php @@ -0,0 +1,74 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/PaymentMethodTest.php b/test/Model/PaymentRequest/PaymentMethodTest.php new file mode 100644 index 0000000..4a5203f --- /dev/null +++ b/test/Model/PaymentRequest/PaymentMethodTest.php @@ -0,0 +1,209 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "id" + */ + public function testPropertyId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "type" + */ + public function testPropertyType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "created" + */ + public function testPropertyCreated() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "updated" + */ + public function testPropertyUpdated() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "description" + */ + public function testPropertyDescription() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "reference_id" + */ + public function testPropertyReferenceId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "card" + */ + public function testPropertyCard() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "direct_debit" + */ + public function testPropertyDirectDebit() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "ewallet" + */ + public function testPropertyEwallet() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "over_the_counter" + */ + public function testPropertyOverTheCounter() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "virtual_account" + */ + public function testPropertyVirtualAccount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "qr_code" + */ + public function testPropertyQrCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "reusability" + */ + public function testPropertyReusability() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "status" + */ + public function testPropertyStatus() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "metadata" + */ + public function testPropertyMetadata() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/PaymentMethodTypeTest.php b/test/Model/PaymentRequest/PaymentMethodTypeTest.php new file mode 100644 index 0000000..e85175f --- /dev/null +++ b/test/Model/PaymentRequest/PaymentMethodTypeTest.php @@ -0,0 +1,74 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequestActionTest.php b/test/Model/PaymentRequest/PaymentRequestActionTest.php similarity index 95% rename from test/Model/PaymentRequestActionTest.php rename to test/Model/PaymentRequest/PaymentRequestActionTest.php index a2220c3..84c0ff2 100644 --- a/test/Model/PaymentRequestActionTest.php +++ b/test/Model/PaymentRequest/PaymentRequestActionTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestAuthParametersTest.php b/test/Model/PaymentRequest/PaymentRequestAuthParametersTest.php similarity index 94% rename from test/Model/PaymentRequestAuthParametersTest.php rename to test/Model/PaymentRequest/PaymentRequestAuthParametersTest.php index 3cb65e5..b8d91c8 100644 --- a/test/Model/PaymentRequestAuthParametersTest.php +++ b/test/Model/PaymentRequest/PaymentRequestAuthParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestBasketItemTest.php b/test/Model/PaymentRequest/PaymentRequestBasketItemTest.php similarity index 97% rename from test/Model/PaymentRequestBasketItemTest.php rename to test/Model/PaymentRequest/PaymentRequestBasketItemTest.php index d40df4d..4a90c67 100644 --- a/test/Model/PaymentRequestBasketItemTest.php +++ b/test/Model/PaymentRequest/PaymentRequestBasketItemTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestCaptureMethodTest.php b/test/Model/PaymentRequest/PaymentRequestCaptureMethodTest.php similarity index 93% rename from test/Model/PaymentRequestCaptureMethodTest.php rename to test/Model/PaymentRequest/PaymentRequestCaptureMethodTest.php index 61433cf..4b8b401 100644 --- a/test/Model/PaymentRequestCaptureMethodTest.php +++ b/test/Model/PaymentRequest/PaymentRequestCaptureMethodTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestCardVerificationResultsTest.php b/test/Model/PaymentRequest/PaymentRequestCardVerificationResultsTest.php similarity index 95% rename from test/Model/PaymentRequestCardVerificationResultsTest.php rename to test/Model/PaymentRequest/PaymentRequestCardVerificationResultsTest.php index 9d8bebf..bcc57ce 100644 --- a/test/Model/PaymentRequestCardVerificationResultsTest.php +++ b/test/Model/PaymentRequest/PaymentRequestCardVerificationResultsTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestCardVerificationResultsThreeDeeSecureTest.php b/test/Model/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecureTest.php similarity index 96% rename from test/Model/PaymentRequestCardVerificationResultsThreeDeeSecureTest.php rename to test/Model/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecureTest.php index 9856565..6fc8573 100644 --- a/test/Model/PaymentRequestCardVerificationResultsThreeDeeSecureTest.php +++ b/test/Model/PaymentRequest/PaymentRequestCardVerificationResultsThreeDeeSecureTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestChannelPropertiesTest.php b/test/Model/PaymentRequest/PaymentRequestChannelPropertiesTest.php similarity index 96% rename from test/Model/PaymentRequestChannelPropertiesTest.php rename to test/Model/PaymentRequest/PaymentRequestChannelPropertiesTest.php index 8ab54bf..21363e9 100644 --- a/test/Model/PaymentRequestChannelPropertiesTest.php +++ b/test/Model/PaymentRequest/PaymentRequestChannelPropertiesTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestCountryTest.php b/test/Model/PaymentRequest/PaymentRequestCountryTest.php similarity index 93% rename from test/Model/PaymentRequestCountryTest.php rename to test/Model/PaymentRequest/PaymentRequestCountryTest.php index eb8ba73..a8d501a 100644 --- a/test/Model/PaymentRequestCountryTest.php +++ b/test/Model/PaymentRequest/PaymentRequestCountryTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestCurrencyTest.php b/test/Model/PaymentRequest/PaymentRequestCurrencyTest.php similarity index 93% rename from test/Model/PaymentRequestCurrencyTest.php rename to test/Model/PaymentRequest/PaymentRequestCurrencyTest.php index 4f770a5..bf02875 100644 --- a/test/Model/PaymentRequestCurrencyTest.php +++ b/test/Model/PaymentRequest/PaymentRequestCurrencyTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestInitiatorTest.php b/test/Model/PaymentRequest/PaymentRequestInitiatorTest.php similarity index 93% rename from test/Model/PaymentRequestInitiatorTest.php rename to test/Model/PaymentRequest/PaymentRequestInitiatorTest.php index 5b0cc94..f5920fa 100644 --- a/test/Model/PaymentRequestInitiatorTest.php +++ b/test/Model/PaymentRequest/PaymentRequestInitiatorTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestListResponseTest.php b/test/Model/PaymentRequest/PaymentRequestListResponseTest.php similarity index 94% rename from test/Model/PaymentRequestListResponseTest.php rename to test/Model/PaymentRequest/PaymentRequestListResponseTest.php index 7c7e099..ae1fd91 100644 --- a/test/Model/PaymentRequestListResponseTest.php +++ b/test/Model/PaymentRequest/PaymentRequestListResponseTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestParametersChannelPropertiesAllOfTest.php b/test/Model/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOfTest.php similarity index 94% rename from test/Model/PaymentRequestParametersChannelPropertiesAllOfTest.php rename to test/Model/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOfTest.php index 5313995..9265fb9 100644 --- a/test/Model/PaymentRequestParametersChannelPropertiesAllOfTest.php +++ b/test/Model/PaymentRequest/PaymentRequestParametersChannelPropertiesAllOfTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestParametersChannelPropertiesTest.php b/test/Model/PaymentRequest/PaymentRequestParametersChannelPropertiesTest.php similarity index 96% rename from test/Model/PaymentRequestParametersChannelPropertiesTest.php rename to test/Model/PaymentRequest/PaymentRequestParametersChannelPropertiesTest.php index 98ca257..32d069e 100644 --- a/test/Model/PaymentRequestParametersChannelPropertiesTest.php +++ b/test/Model/PaymentRequest/PaymentRequestParametersChannelPropertiesTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestParametersTest.php b/test/Model/PaymentRequest/PaymentRequestParametersTest.php similarity index 97% rename from test/Model/PaymentRequestParametersTest.php rename to test/Model/PaymentRequest/PaymentRequestParametersTest.php index 8c33a24..02b3ae5 100644 --- a/test/Model/PaymentRequestParametersTest.php +++ b/test/Model/PaymentRequest/PaymentRequestParametersTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestShippingInformationTest.php b/test/Model/PaymentRequest/PaymentRequestShippingInformationTest.php similarity index 96% rename from test/Model/PaymentRequestShippingInformationTest.php rename to test/Model/PaymentRequest/PaymentRequestShippingInformationTest.php index d3a3781..26ce031 100644 --- a/test/Model/PaymentRequestShippingInformationTest.php +++ b/test/Model/PaymentRequest/PaymentRequestShippingInformationTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestStatusTest.php b/test/Model/PaymentRequest/PaymentRequestStatusTest.php similarity index 93% rename from test/Model/PaymentRequestStatusTest.php rename to test/Model/PaymentRequest/PaymentRequestStatusTest.php index 3bc403f..7f4522d 100644 --- a/test/Model/PaymentRequestStatusTest.php +++ b/test/Model/PaymentRequest/PaymentRequestStatusTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequestTest.php b/test/Model/PaymentRequest/PaymentRequestTest.php similarity index 98% rename from test/Model/PaymentRequestTest.php rename to test/Model/PaymentRequest/PaymentRequestTest.php index b71e2e1..5e6cad9 100644 --- a/test/Model/PaymentRequestTest.php +++ b/test/Model/PaymentRequest/PaymentRequestTest.php @@ -11,7 +11,7 @@ /** * Payment Requests * - * The version of the OpenAPI document: 1.44.1 + * The version of the OpenAPI document: 1.45.1 */ /** @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\PaymentRequest; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PaymentRequest/QRCodeChannelCodeTest.php b/test/Model/PaymentRequest/QRCodeChannelCodeTest.php new file mode 100644 index 0000000..b050423 --- /dev/null +++ b/test/Model/PaymentRequest/QRCodeChannelCodeTest.php @@ -0,0 +1,74 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/QRCodeChannelPropertiesTest.php b/test/Model/PaymentRequest/QRCodeChannelPropertiesTest.php new file mode 100644 index 0000000..2c54076 --- /dev/null +++ b/test/Model/PaymentRequest/QRCodeChannelPropertiesTest.php @@ -0,0 +1,92 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "qr_string" + */ + public function testPropertyQrString() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "expires_at" + */ + public function testPropertyExpiresAt() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/QRCodeParametersTest.php b/test/Model/PaymentRequest/QRCodeParametersTest.php new file mode 100644 index 0000000..ada15be --- /dev/null +++ b/test/Model/PaymentRequest/QRCodeParametersTest.php @@ -0,0 +1,92 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/QRCodeTest.php b/test/Model/PaymentRequest/QRCodeTest.php new file mode 100644 index 0000000..2a121c8 --- /dev/null +++ b/test/Model/PaymentRequest/QRCodeTest.php @@ -0,0 +1,92 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/VirtualAccountAllOfTest.php b/test/Model/PaymentRequest/VirtualAccountAllOfTest.php new file mode 100644 index 0000000..70b49f5 --- /dev/null +++ b/test/Model/PaymentRequest/VirtualAccountAllOfTest.php @@ -0,0 +1,83 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "alternative_displays" + */ + public function testPropertyAlternativeDisplays() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/VirtualAccountAlternativeDisplayTest.php b/test/Model/PaymentRequest/VirtualAccountAlternativeDisplayTest.php new file mode 100644 index 0000000..613dc76 --- /dev/null +++ b/test/Model/PaymentRequest/VirtualAccountAlternativeDisplayTest.php @@ -0,0 +1,92 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "type" + */ + public function testPropertyType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "data" + */ + public function testPropertyData() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/VirtualAccountChannelCodeTest.php b/test/Model/PaymentRequest/VirtualAccountChannelCodeTest.php new file mode 100644 index 0000000..2803609 --- /dev/null +++ b/test/Model/PaymentRequest/VirtualAccountChannelCodeTest.php @@ -0,0 +1,74 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/VirtualAccountChannelPropertiesTest.php b/test/Model/PaymentRequest/VirtualAccountChannelPropertiesTest.php new file mode 100644 index 0000000..cb18085 --- /dev/null +++ b/test/Model/PaymentRequest/VirtualAccountChannelPropertiesTest.php @@ -0,0 +1,110 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "customer_name" + */ + public function testPropertyCustomerName() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "virtual_account_number" + */ + public function testPropertyVirtualAccountNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "expires_at" + */ + public function testPropertyExpiresAt() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "suggested_amount" + */ + public function testPropertySuggestedAmount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/VirtualAccountParametersTest.php b/test/Model/PaymentRequest/VirtualAccountParametersTest.php new file mode 100644 index 0000000..dff9d70 --- /dev/null +++ b/test/Model/PaymentRequest/VirtualAccountParametersTest.php @@ -0,0 +1,137 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "min_amount" + */ + public function testPropertyMinAmount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "max_amount" + */ + public function testPropertyMaxAmount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "amount" + */ + public function testPropertyAmount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "currency" + */ + public function testPropertyCurrency() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "alternative_display_types" + */ + public function testPropertyAlternativeDisplayTypes() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/PaymentRequest/VirtualAccountTest.php b/test/Model/PaymentRequest/VirtualAccountTest.php new file mode 100644 index 0000000..052bcb1 --- /dev/null +++ b/test/Model/PaymentRequest/VirtualAccountTest.php @@ -0,0 +1,146 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "min_amount" + */ + public function testPropertyMinAmount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "max_amount" + */ + public function testPropertyMaxAmount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "amount" + */ + public function testPropertyAmount() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "currency" + */ + public function testPropertyCurrency() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_code" + */ + public function testPropertyChannelCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "channel_properties" + */ + public function testPropertyChannelProperties() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "alternative_display_types" + */ + public function testPropertyAlternativeDisplayTypes() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "alternative_displays" + */ + public function testPropertyAlternativeDisplays() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/ChannelAccountTypeTest.php b/test/Model/Payout/ChannelAccountTypeTest.php similarity index 97% rename from test/Model/ChannelAccountTypeTest.php rename to test/Model/Payout/ChannelAccountTypeTest.php index ef099d4..9062138 100644 --- a/test/Model/ChannelAccountTypeTest.php +++ b/test/Model/Payout/ChannelAccountTypeTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ChannelAmountLimitsTest.php b/test/Model/Payout/ChannelAmountLimitsTest.php similarity index 98% rename from test/Model/ChannelAmountLimitsTest.php rename to test/Model/Payout/ChannelAmountLimitsTest.php index 90430d3..5456917 100644 --- a/test/Model/ChannelAmountLimitsTest.php +++ b/test/Model/Payout/ChannelAmountLimitsTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ChannelCategoryTest.php b/test/Model/Payout/ChannelCategoryTest.php similarity index 97% rename from test/Model/ChannelCategoryTest.php rename to test/Model/Payout/ChannelCategoryTest.php index f2a61eb..0c2a9c8 100644 --- a/test/Model/ChannelCategoryTest.php +++ b/test/Model/Payout/ChannelCategoryTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ChannelTest.php b/test/Model/Payout/ChannelTest.php similarity index 98% rename from test/Model/ChannelTest.php rename to test/Model/Payout/ChannelTest.php index 1e0cf27..1346a39 100644 --- a/test/Model/ChannelTest.php +++ b/test/Model/Payout/ChannelTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreatePayoutRequestTest.php b/test/Model/Payout/CreatePayoutRequestTest.php similarity index 98% rename from test/Model/CreatePayoutRequestTest.php rename to test/Model/Payout/CreatePayoutRequestTest.php index 83868ca..b26b76f 100644 --- a/test/Model/CreatePayoutRequestTest.php +++ b/test/Model/Payout/CreatePayoutRequestTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/DigitalPayoutChannelPropertiesTest.php b/test/Model/Payout/DigitalPayoutChannelPropertiesTest.php similarity index 98% rename from test/Model/DigitalPayoutChannelPropertiesTest.php rename to test/Model/Payout/DigitalPayoutChannelPropertiesTest.php index 47229ff..38f03e0 100644 --- a/test/Model/DigitalPayoutChannelPropertiesTest.php +++ b/test/Model/Payout/DigitalPayoutChannelPropertiesTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ErrorErrorsInnerTest.php b/test/Model/Payout/ErrorErrorsInnerTest.php similarity index 97% rename from test/Model/ErrorErrorsInnerTest.php rename to test/Model/Payout/ErrorErrorsInnerTest.php index 6ee1b9b..4358697 100644 --- a/test/Model/ErrorErrorsInnerTest.php +++ b/test/Model/Payout/ErrorErrorsInnerTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/Payout/ErrorTest.php b/test/Model/Payout/ErrorTest.php new file mode 100644 index 0000000..2f95813 --- /dev/null +++ b/test/Model/Payout/ErrorTest.php @@ -0,0 +1,101 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "error_code" + */ + public function testPropertyErrorCode() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "message" + */ + public function testPropertyMessage() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "errors" + */ + public function testPropertyErrors() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/test/Model/GetPayouts200ResponseDataInnerTest.php b/test/Model/Payout/GetPayouts200ResponseDataInnerTest.php similarity index 99% rename from test/Model/GetPayouts200ResponseDataInnerTest.php rename to test/Model/Payout/GetPayouts200ResponseDataInnerTest.php index d569bde..df25da7 100644 --- a/test/Model/GetPayouts200ResponseDataInnerTest.php +++ b/test/Model/Payout/GetPayouts200ResponseDataInnerTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/GetPayouts200ResponseLinksTest.php b/test/Model/Payout/GetPayouts200ResponseLinksTest.php similarity index 98% rename from test/Model/GetPayouts200ResponseLinksTest.php rename to test/Model/Payout/GetPayouts200ResponseLinksTest.php index 9ed57f3..56cdb8d 100644 --- a/test/Model/GetPayouts200ResponseLinksTest.php +++ b/test/Model/Payout/GetPayouts200ResponseLinksTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/GetPayouts200ResponseTest.php b/test/Model/Payout/GetPayouts200ResponseTest.php similarity index 98% rename from test/Model/GetPayouts200ResponseTest.php rename to test/Model/Payout/GetPayouts200ResponseTest.php index ab194f6..15a1314 100644 --- a/test/Model/GetPayouts200ResponseTest.php +++ b/test/Model/Payout/GetPayouts200ResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PayoutAllOfTest.php b/test/Model/Payout/PayoutAllOfTest.php similarity index 98% rename from test/Model/PayoutAllOfTest.php rename to test/Model/Payout/PayoutAllOfTest.php index 15372e1..ce00c3b 100644 --- a/test/Model/PayoutAllOfTest.php +++ b/test/Model/Payout/PayoutAllOfTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/PayoutTest.php b/test/Model/Payout/PayoutTest.php similarity index 99% rename from test/Model/PayoutTest.php rename to test/Model/Payout/PayoutTest.php index 160b7aa..e699210 100644 --- a/test/Model/PayoutTest.php +++ b/test/Model/Payout/PayoutTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/ReceiptNotificationTest.php b/test/Model/Payout/ReceiptNotificationTest.php similarity index 98% rename from test/Model/ReceiptNotificationTest.php rename to test/Model/Payout/ReceiptNotificationTest.php index b102064..6fc882e 100644 --- a/test/Model/ReceiptNotificationTest.php +++ b/test/Model/Payout/ReceiptNotificationTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Payout; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreateRefund400ResponseTest.php b/test/Model/Refund/CreateRefund400ResponseTest.php similarity index 97% rename from test/Model/CreateRefund400ResponseTest.php rename to test/Model/Refund/CreateRefund400ResponseTest.php index 71cd03b..e6dee41 100644 --- a/test/Model/CreateRefund400ResponseTest.php +++ b/test/Model/Refund/CreateRefund400ResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Refund; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreateRefund403ResponseTest.php b/test/Model/Refund/CreateRefund403ResponseTest.php similarity index 97% rename from test/Model/CreateRefund403ResponseTest.php rename to test/Model/Refund/CreateRefund403ResponseTest.php index 0f5e818..d29671f 100644 --- a/test/Model/CreateRefund403ResponseTest.php +++ b/test/Model/Refund/CreateRefund403ResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Refund; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreateRefund404ResponseTest.php b/test/Model/Refund/CreateRefund404ResponseTest.php similarity index 97% rename from test/Model/CreateRefund404ResponseTest.php rename to test/Model/Refund/CreateRefund404ResponseTest.php index c90859f..0f72f9e 100644 --- a/test/Model/CreateRefund404ResponseTest.php +++ b/test/Model/Refund/CreateRefund404ResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Refund; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreateRefund409ResponseTest.php b/test/Model/Refund/CreateRefund409ResponseTest.php similarity index 97% rename from test/Model/CreateRefund409ResponseTest.php rename to test/Model/Refund/CreateRefund409ResponseTest.php index 0d35f9f..b31191c 100644 --- a/test/Model/CreateRefund409ResponseTest.php +++ b/test/Model/Refund/CreateRefund409ResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Refund; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreateRefund503ResponseTest.php b/test/Model/Refund/CreateRefund503ResponseTest.php similarity index 97% rename from test/Model/CreateRefund503ResponseTest.php rename to test/Model/Refund/CreateRefund503ResponseTest.php index 9741e3e..da051c1 100644 --- a/test/Model/CreateRefund503ResponseTest.php +++ b/test/Model/Refund/CreateRefund503ResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Refund; use PHPUnit\Framework\TestCase; diff --git a/test/Model/CreateRefundTest.php b/test/Model/Refund/CreateRefundTest.php similarity index 98% rename from test/Model/CreateRefundTest.php rename to test/Model/Refund/CreateRefundTest.php index 474356a..eb22261 100644 --- a/test/Model/CreateRefundTest.php +++ b/test/Model/Refund/CreateRefundTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Refund; use PHPUnit\Framework\TestCase; diff --git a/test/Model/GetAllRefundsDefaultResponseTest.php b/test/Model/Refund/GetAllRefundsDefaultResponseTest.php similarity index 97% rename from test/Model/GetAllRefundsDefaultResponseTest.php rename to test/Model/Refund/GetAllRefundsDefaultResponseTest.php index 82d66cc..912b3e5 100644 --- a/test/Model/GetAllRefundsDefaultResponseTest.php +++ b/test/Model/Refund/GetAllRefundsDefaultResponseTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Refund; use PHPUnit\Framework\TestCase; diff --git a/test/Model/RefundListTest.php b/test/Model/Refund/RefundListTest.php similarity index 97% rename from test/Model/RefundListTest.php rename to test/Model/Refund/RefundListTest.php index 240d9d6..0cfd175 100644 --- a/test/Model/RefundListTest.php +++ b/test/Model/Refund/RefundListTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Refund; use PHPUnit\Framework\TestCase; diff --git a/test/Model/RefundTest.php b/test/Model/Refund/RefundTest.php similarity index 98% rename from test/Model/RefundTest.php rename to test/Model/Refund/RefundTest.php index b7b6f5e..388ec21 100644 --- a/test/Model/RefundTest.php +++ b/test/Model/Refund/RefundTest.php @@ -19,7 +19,7 @@ * Please update the test case below to test the model. */ -namespace Xendit\Test\Model; +namespace Xendit\Test\Model\Refund; use PHPUnit\Framework\TestCase;