@payabli/sdk-node 0.0.131 → 0.0.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/bill/types/BillOutData.d.ts +3 -3
- package/dist/cjs/api/resources/bill/types/BillResponseData.d.ts +3 -3
- package/dist/cjs/api/resources/boarding/client/Client.d.ts +41 -5
- package/dist/cjs/api/resources/boarding/client/Client.js +41 -5
- package/dist/cjs/api/resources/chargeBacks/client/requests/ResponseChargeBack.d.ts +1 -1
- package/dist/cjs/api/resources/invoice/client/requests/AddInvoiceRequest.d.ts +1 -1
- package/dist/cjs/api/resources/invoice/types/GetInvoiceRecord.d.ts +5 -5
- package/dist/cjs/api/resources/invoice/types/QueryInvoiceResponse.d.ts +5 -5
- package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/moneyIn/client/Client.js +1 -1
- package/dist/cjs/api/resources/moneyIn/client/requests/RequestCredit.d.ts +1 -1
- package/dist/cjs/api/resources/moneyIn/client/requests/RequestPayment.d.ts +2 -2
- package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentAuthorize.d.ts +1 -1
- package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.d.ts +1 -1
- package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentV2.d.ts +2 -2
- package/dist/cjs/api/resources/moneyIn/types/ResponseDataRefunds.d.ts +1 -1
- package/dist/cjs/api/resources/moneyIn/types/TransactionDetailInvoiceData.d.ts +8 -8
- package/dist/cjs/api/resources/moneyIn/types/TransactionDetailRecord.d.ts +1 -1
- package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +21 -0
- package/dist/cjs/api/resources/moneyOut/client/Client.js +21 -0
- package/dist/cjs/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.ts +21 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.ts +2 -2
- package/dist/cjs/api/resources/moneyOutTypes/types/MethodElementOut.d.ts +21 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/MethodsListOut.d.ts +11 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/PaymentLinkStatus.d.ts +8 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/PaymentLinkStatus.js +11 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/index.js +3 -0
- package/dist/cjs/api/resources/notification/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/notification/client/Client.js +4 -4
- package/dist/cjs/api/resources/organization/client/requests/AddOrganizationRequest.d.ts +1 -1
- package/dist/cjs/api/resources/organization/client/requests/OrganizationData.d.ts +1 -1
- package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +231 -46
- package/dist/cjs/api/resources/paymentLink/client/Client.js +325 -46
- package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataBill.d.ts +69 -22
- package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataOut.d.ts +8 -25
- package/dist/cjs/api/resources/paymentLink/types/PatchOutPaymentLinkRequest.d.ts +12 -0
- package/dist/cjs/api/resources/paymentLink/types/PatchOutPaymentLinkRequest.js +3 -0
- package/dist/cjs/api/resources/paymentLink/types/PaymentPageRequestBody.d.ts +0 -79
- package/dist/cjs/api/resources/paymentLink/types/PaymentPageRequestBodyOut.d.ts +88 -0
- package/dist/cjs/api/resources/paymentLink/types/PaymentPageRequestBodyOut.js +3 -0
- package/dist/cjs/api/resources/paymentLink/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/paymentLink/types/index.js +2 -0
- package/dist/cjs/api/resources/query/client/requests/ListTransfersPaypointRequest.d.ts +1 -1
- package/dist/cjs/api/resources/queryTypes/types/LimitRecord.d.ts +1 -1
- package/dist/cjs/api/resources/queryTypes/types/QueryTransferDetailResponse.d.ts +8 -8
- package/dist/cjs/api/resources/subscription/client/requests/RequestSchedule.d.ts +1 -1
- package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/tokenStorage/client/Client.js +4 -1
- package/dist/cjs/api/resources/tokenStorage/client/requests/AddMethodRequest.d.ts +6 -3
- package/dist/cjs/api/resources/tokenStorage/client/requests/UpdateMethodRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tokenStorage/types/CreateAnonymous.d.ts +1 -1
- package/dist/cjs/api/resources/tokenStorage/types/Temporary.d.ts +1 -1
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.d.ts +2 -2
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetails.d.ts +14 -14
- package/dist/cjs/api/types/AcceptOauth.d.ts +1 -1
- package/dist/cjs/api/types/AcceptRegister.d.ts +1 -1
- package/dist/cjs/api/types/AchValidation.d.ts +1 -1
- package/dist/cjs/api/types/Annualrevenue.d.ts +1 -1
- package/dist/cjs/api/types/ApplePayType.d.ts +1 -1
- package/dist/cjs/api/types/ApplicationData.d.ts +1 -1
- package/dist/cjs/api/types/ApplicationDataPayIn.d.ts +3 -5
- package/dist/cjs/api/types/ApplicationDetailsRecord.d.ts +1 -1
- package/dist/cjs/api/types/ApplicationQueryRecord.d.ts +1 -1
- package/dist/cjs/api/types/Attachments.d.ts +1 -1
- package/dist/cjs/api/types/Avgmonthly.d.ts +1 -1
- package/dist/cjs/api/types/Avgticketamt.d.ts +1 -1
- package/dist/cjs/api/types/BankData.d.ts +1 -1
- package/dist/cjs/api/types/BillApprovals.d.ts +1 -1
- package/dist/cjs/api/types/BillData.d.ts +3 -3
- package/dist/cjs/api/types/BillDetailsResponse.d.ts +2 -2
- package/dist/cjs/api/types/BillEvents.d.ts +1 -1
- package/dist/cjs/api/types/BillPayOutData.d.ts +2 -2
- package/dist/cjs/api/types/BillPayOutDataRequest.d.ts +2 -2
- package/dist/cjs/api/types/BillQueryRecord2.d.ts +4 -4
- package/dist/cjs/api/types/BillQueryRecord2BillApprovalsItem.d.ts +1 -1
- package/dist/cjs/api/types/Billitems.d.ts +1 -1
- package/dist/cjs/api/types/ContactsField.d.ts +1 -1
- package/dist/cjs/api/types/DeviceId.d.ts +1 -1
- package/dist/cjs/api/types/Discount.d.ts +1 -1
- package/dist/cjs/api/types/DutyAmount.d.ts +1 -1
- package/dist/cjs/api/types/EnrollmentStatus.d.ts +1 -1
- package/dist/cjs/api/types/ExpectedProcessingDateTime.d.ts +1 -1
- package/dist/cjs/api/types/ForceCustomerCreation.d.ts +1 -1
- package/dist/cjs/api/types/FreightAmount.d.ts +1 -1
- package/dist/cjs/api/types/HasVcardTransactions.d.ts +1 -1
- package/dist/cjs/api/types/Highticketamt.d.ts +1 -1
- package/dist/cjs/api/types/Initiator.d.ts +1 -1
- package/dist/cjs/api/types/IsRoot.d.ts +1 -1
- package/dist/cjs/api/types/IsSameDayAch.d.ts +1 -1
- package/dist/cjs/api/types/LastModified.d.ts +1 -1
- package/dist/cjs/api/types/Mfa.d.ts +1 -1
- package/dist/cjs/api/types/Netamountnullable.d.ts +1 -1
- package/dist/cjs/api/types/Ownerid.d.ts +5 -1
- package/dist/cjs/api/types/Ownership.d.ts +1 -1
- package/dist/cjs/api/types/PayabliCredentials.d.ts +2 -0
- package/dist/cjs/api/types/PayabliCredentialsPascal.d.ts +2 -0
- package/dist/cjs/api/types/PaymentDetail.d.ts +1 -1
- package/dist/cjs/api/types/PayorId.d.ts +1 -1
- package/dist/cjs/api/types/PciAttestation.d.ts +1 -1
- package/dist/cjs/api/types/PendingFeeAmount.d.ts +1 -1
- package/dist/cjs/api/types/ReadOnly.d.ts +1 -1
- package/dist/cjs/api/types/RiskActionCode.d.ts +1 -1
- package/dist/cjs/api/types/RiskFlagged.d.ts +1 -1
- package/dist/cjs/api/types/RiskFlaggedOn.d.ts +1 -1
- package/dist/cjs/api/types/SaveIfSuccess.d.ts +1 -1
- package/dist/cjs/api/types/Sequence.d.ts +1 -1
- package/dist/cjs/api/types/SignerAcceptance.d.ts +1 -1
- package/dist/cjs/api/types/SignerData.d.ts +6 -2
- package/dist/cjs/api/types/SignerDataRequest.d.ts +1 -1
- package/dist/cjs/api/types/SplitFunding.d.ts +1 -1
- package/dist/cjs/api/types/StoredMethodUsageType.d.ts +1 -1
- package/dist/cjs/api/types/SubscriptionQueryRecords.d.ts +4 -4
- package/dist/cjs/api/types/Tax.d.ts +1 -1
- package/dist/cjs/api/types/TemplateCode.d.ts +1 -1
- package/dist/cjs/api/types/Ticketamt.d.ts +1 -1
- package/dist/cjs/api/types/TransactionQueryRecords.d.ts +1 -1
- package/dist/cjs/api/types/TransactionQueryRecordsCustomer.d.ts +1 -1
- package/dist/cjs/api/types/VendorPhone.d.ts +1 -1
- package/dist/cjs/api/types/Visible.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +0 -2
- package/dist/cjs/api/types/index.js +0 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/bill/types/BillOutData.d.mts +3 -3
- package/dist/esm/api/resources/bill/types/BillResponseData.d.mts +3 -3
- package/dist/esm/api/resources/boarding/client/Client.d.mts +41 -5
- package/dist/esm/api/resources/boarding/client/Client.mjs +41 -5
- package/dist/esm/api/resources/chargeBacks/client/requests/ResponseChargeBack.d.mts +1 -1
- package/dist/esm/api/resources/invoice/client/requests/AddInvoiceRequest.d.mts +1 -1
- package/dist/esm/api/resources/invoice/types/GetInvoiceRecord.d.mts +5 -5
- package/dist/esm/api/resources/invoice/types/QueryInvoiceResponse.d.mts +5 -5
- package/dist/esm/api/resources/moneyIn/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/moneyIn/client/Client.mjs +1 -1
- package/dist/esm/api/resources/moneyIn/client/requests/RequestCredit.d.mts +1 -1
- package/dist/esm/api/resources/moneyIn/client/requests/RequestPayment.d.mts +2 -2
- package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentAuthorize.d.mts +1 -1
- package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.d.mts +1 -1
- package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentV2.d.mts +2 -2
- package/dist/esm/api/resources/moneyIn/types/ResponseDataRefunds.d.mts +1 -1
- package/dist/esm/api/resources/moneyIn/types/TransactionDetailInvoiceData.d.mts +8 -8
- package/dist/esm/api/resources/moneyIn/types/TransactionDetailRecord.d.mts +1 -1
- package/dist/esm/api/resources/moneyOut/client/Client.d.mts +21 -0
- package/dist/esm/api/resources/moneyOut/client/Client.mjs +21 -0
- package/dist/esm/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.mts +21 -0
- package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.mts +2 -2
- package/dist/esm/api/resources/moneyOutTypes/types/MethodElementOut.d.mts +21 -0
- package/dist/esm/api/resources/moneyOutTypes/types/MethodsListOut.d.mts +11 -0
- package/dist/esm/api/resources/moneyOutTypes/types/PaymentLinkStatus.d.mts +8 -0
- package/dist/esm/api/resources/moneyOutTypes/types/PaymentLinkStatus.mjs +8 -0
- package/dist/esm/api/resources/moneyOutTypes/types/index.d.mts +3 -0
- package/dist/esm/api/resources/moneyOutTypes/types/index.mjs +3 -0
- package/dist/esm/api/resources/notification/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/notification/client/Client.mjs +4 -4
- package/dist/esm/api/resources/organization/client/requests/AddOrganizationRequest.d.mts +1 -1
- package/dist/esm/api/resources/organization/client/requests/OrganizationData.d.mts +1 -1
- package/dist/esm/api/resources/paymentLink/client/Client.d.mts +231 -46
- package/dist/esm/api/resources/paymentLink/client/Client.mjs +325 -46
- package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataBill.d.mts +69 -22
- package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataOut.d.mts +8 -25
- package/dist/esm/api/resources/paymentLink/types/PatchOutPaymentLinkRequest.d.mts +12 -0
- package/dist/esm/api/resources/paymentLink/types/PatchOutPaymentLinkRequest.mjs +2 -0
- package/dist/esm/api/resources/paymentLink/types/PaymentPageRequestBody.d.mts +0 -79
- package/dist/esm/api/resources/paymentLink/types/PaymentPageRequestBodyOut.d.mts +88 -0
- package/dist/esm/api/resources/paymentLink/types/PaymentPageRequestBodyOut.mjs +2 -0
- package/dist/esm/api/resources/paymentLink/types/index.d.mts +2 -0
- package/dist/esm/api/resources/paymentLink/types/index.mjs +2 -0
- package/dist/esm/api/resources/query/client/requests/ListTransfersPaypointRequest.d.mts +1 -1
- package/dist/esm/api/resources/queryTypes/types/LimitRecord.d.mts +1 -1
- package/dist/esm/api/resources/queryTypes/types/QueryTransferDetailResponse.d.mts +8 -8
- package/dist/esm/api/resources/subscription/client/requests/RequestSchedule.d.mts +1 -1
- package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/tokenStorage/client/Client.mjs +4 -1
- package/dist/esm/api/resources/tokenStorage/client/requests/AddMethodRequest.d.mts +6 -3
- package/dist/esm/api/resources/tokenStorage/client/requests/UpdateMethodRequest.d.mts +1 -1
- package/dist/esm/api/resources/tokenStorage/types/CreateAnonymous.d.mts +1 -1
- package/dist/esm/api/resources/tokenStorage/types/Temporary.d.mts +1 -1
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.d.mts +2 -2
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetails.d.mts +14 -14
- package/dist/esm/api/types/AcceptOauth.d.mts +1 -1
- package/dist/esm/api/types/AcceptRegister.d.mts +1 -1
- package/dist/esm/api/types/AchValidation.d.mts +1 -1
- package/dist/esm/api/types/Annualrevenue.d.mts +1 -1
- package/dist/esm/api/types/ApplePayType.d.mts +1 -1
- package/dist/esm/api/types/ApplicationData.d.mts +1 -1
- package/dist/esm/api/types/ApplicationDataPayIn.d.mts +3 -5
- package/dist/esm/api/types/ApplicationDetailsRecord.d.mts +1 -1
- package/dist/esm/api/types/ApplicationQueryRecord.d.mts +1 -1
- package/dist/esm/api/types/Attachments.d.mts +1 -1
- package/dist/esm/api/types/Avgmonthly.d.mts +1 -1
- package/dist/esm/api/types/Avgticketamt.d.mts +1 -1
- package/dist/esm/api/types/BankData.d.mts +1 -1
- package/dist/esm/api/types/BillApprovals.d.mts +1 -1
- package/dist/esm/api/types/BillData.d.mts +3 -3
- package/dist/esm/api/types/BillDetailsResponse.d.mts +2 -2
- package/dist/esm/api/types/BillEvents.d.mts +1 -1
- package/dist/esm/api/types/BillPayOutData.d.mts +2 -2
- package/dist/esm/api/types/BillPayOutDataRequest.d.mts +2 -2
- package/dist/esm/api/types/BillQueryRecord2.d.mts +4 -4
- package/dist/esm/api/types/BillQueryRecord2BillApprovalsItem.d.mts +1 -1
- package/dist/esm/api/types/Billitems.d.mts +1 -1
- package/dist/esm/api/types/ContactsField.d.mts +1 -1
- package/dist/esm/api/types/DeviceId.d.mts +1 -1
- package/dist/esm/api/types/Discount.d.mts +1 -1
- package/dist/esm/api/types/DutyAmount.d.mts +1 -1
- package/dist/esm/api/types/EnrollmentStatus.d.mts +1 -1
- package/dist/esm/api/types/ExpectedProcessingDateTime.d.mts +1 -1
- package/dist/esm/api/types/ForceCustomerCreation.d.mts +1 -1
- package/dist/esm/api/types/FreightAmount.d.mts +1 -1
- package/dist/esm/api/types/HasVcardTransactions.d.mts +1 -1
- package/dist/esm/api/types/Highticketamt.d.mts +1 -1
- package/dist/esm/api/types/Initiator.d.mts +1 -1
- package/dist/esm/api/types/IsRoot.d.mts +1 -1
- package/dist/esm/api/types/IsSameDayAch.d.mts +1 -1
- package/dist/esm/api/types/LastModified.d.mts +1 -1
- package/dist/esm/api/types/Mfa.d.mts +1 -1
- package/dist/esm/api/types/Netamountnullable.d.mts +1 -1
- package/dist/esm/api/types/Ownerid.d.mts +5 -1
- package/dist/esm/api/types/Ownership.d.mts +1 -1
- package/dist/esm/api/types/PayabliCredentials.d.mts +2 -0
- package/dist/esm/api/types/PayabliCredentialsPascal.d.mts +2 -0
- package/dist/esm/api/types/PaymentDetail.d.mts +1 -1
- package/dist/esm/api/types/PayorId.d.mts +1 -1
- package/dist/esm/api/types/PciAttestation.d.mts +1 -1
- package/dist/esm/api/types/PendingFeeAmount.d.mts +1 -1
- package/dist/esm/api/types/ReadOnly.d.mts +1 -1
- package/dist/esm/api/types/RiskActionCode.d.mts +1 -1
- package/dist/esm/api/types/RiskFlagged.d.mts +1 -1
- package/dist/esm/api/types/RiskFlaggedOn.d.mts +1 -1
- package/dist/esm/api/types/SaveIfSuccess.d.mts +1 -1
- package/dist/esm/api/types/Sequence.d.mts +1 -1
- package/dist/esm/api/types/SignerAcceptance.d.mts +1 -1
- package/dist/esm/api/types/SignerData.d.mts +6 -2
- package/dist/esm/api/types/SignerDataRequest.d.mts +1 -1
- package/dist/esm/api/types/SplitFunding.d.mts +1 -1
- package/dist/esm/api/types/StoredMethodUsageType.d.mts +1 -1
- package/dist/esm/api/types/SubscriptionQueryRecords.d.mts +4 -4
- package/dist/esm/api/types/Tax.d.mts +1 -1
- package/dist/esm/api/types/TemplateCode.d.mts +1 -1
- package/dist/esm/api/types/Ticketamt.d.mts +1 -1
- package/dist/esm/api/types/TransactionQueryRecords.d.mts +1 -1
- package/dist/esm/api/types/TransactionQueryRecordsCustomer.d.mts +1 -1
- package/dist/esm/api/types/VendorPhone.d.mts +1 -1
- package/dist/esm/api/types/Visible.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +0 -2
- package/dist/esm/api/types/index.mjs +0 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +253 -56
- package/dist/cjs/api/types/Datenullable.d.ts +0 -4
- package/dist/cjs/api/types/DatetimeNullable.d.ts +0 -4
- package/dist/esm/api/types/Datenullable.d.mts +0 -4
- package/dist/esm/api/types/DatetimeNullable.d.mts +0 -4
- /package/dist/cjs/api/{types/Datenullable.js → resources/moneyOutTypes/types/MethodElementOut.js} +0 -0
- /package/dist/cjs/api/{types/DatetimeNullable.js → resources/moneyOutTypes/types/MethodsListOut.js} +0 -0
- /package/dist/esm/api/{types/Datenullable.mjs → resources/moneyOutTypes/types/MethodElementOut.mjs} +0 -0
- /package/dist/esm/api/{types/DatetimeNullable.mjs → resources/moneyOutTypes/types/MethodsListOut.mjs} +0 -0
|
@@ -234,7 +234,7 @@ class PaymentLinkClient {
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
|
-
* Generates a payment link for a bill from the bill ID.
|
|
237
|
+
* Generates a payment link for a bill from the bill ID. The vendor receives a secure page where they can select their preferred payment method (ACH, virtual card, or check) and complete the payment.
|
|
238
238
|
*
|
|
239
239
|
* @param {number} billId - The Payabli ID for the bill.
|
|
240
240
|
* @param {Payabli.PayLinkDataBill} request
|
|
@@ -286,35 +286,82 @@ class PaymentLinkClient {
|
|
|
286
286
|
* },
|
|
287
287
|
* paymentMethods: {
|
|
288
288
|
* allMethodsChecked: true,
|
|
289
|
+
* allowMultipleMethods: true,
|
|
290
|
+
* defaultMethod: "vcard",
|
|
289
291
|
* enabled: true,
|
|
290
292
|
* header: "Payment Methods",
|
|
291
293
|
* methods: {
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
* eCheck: true,
|
|
296
|
-
* mastercard: true,
|
|
297
|
-
* visa: true
|
|
294
|
+
* ach: true,
|
|
295
|
+
* check: true,
|
|
296
|
+
* vcard: true
|
|
298
297
|
* },
|
|
298
|
+
* order: 0,
|
|
299
|
+
* showPreviewVirtualCard: true
|
|
300
|
+
* },
|
|
301
|
+
* review: {
|
|
302
|
+
* enabled: true,
|
|
303
|
+
* header: "Review Payment",
|
|
299
304
|
* order: 0
|
|
300
305
|
* },
|
|
301
|
-
*
|
|
306
|
+
* settings: {
|
|
307
|
+
* color: "#000000",
|
|
308
|
+
* language: "en"
|
|
309
|
+
* }
|
|
310
|
+
* }
|
|
311
|
+
* })
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* await client.paymentLink.addPayLinkFromBill(23548884, {
|
|
315
|
+
* body: {
|
|
316
|
+
* contactUs: {
|
|
317
|
+
* emailLabel: "Email",
|
|
302
318
|
* enabled: true,
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
319
|
+
* header: "Contact Us",
|
|
320
|
+
* order: 0,
|
|
321
|
+
* paymentIcons: true,
|
|
322
|
+
* phoneLabel: "Phone"
|
|
323
|
+
* },
|
|
324
|
+
* logo: {
|
|
325
|
+
* enabled: true,
|
|
326
|
+
* order: 0
|
|
327
|
+
* },
|
|
328
|
+
* messageBeforePaying: {
|
|
329
|
+
* enabled: true,
|
|
330
|
+
* label: "Please review your payment details",
|
|
331
|
+
* order: 0
|
|
332
|
+
* },
|
|
333
|
+
* notes: {
|
|
334
|
+
* enabled: true,
|
|
335
|
+
* header: "Additional Notes",
|
|
336
|
+
* order: 0,
|
|
337
|
+
* placeholder: "Enter any additional notes here",
|
|
338
|
+
* value: ""
|
|
339
|
+
* },
|
|
340
|
+
* page: {
|
|
341
|
+
* description: "Get paid securely",
|
|
342
|
+
* enabled: true,
|
|
343
|
+
* header: "Payment Page",
|
|
344
|
+
* order: 0
|
|
345
|
+
* },
|
|
346
|
+
* paymentButton: {
|
|
347
|
+
* enabled: true,
|
|
348
|
+
* label: "Pay Now",
|
|
316
349
|
* order: 0
|
|
317
350
|
* },
|
|
351
|
+
* paymentMethods: {
|
|
352
|
+
* allMethodsChecked: true,
|
|
353
|
+
* allowMultipleMethods: true,
|
|
354
|
+
* defaultMethod: "vcard",
|
|
355
|
+
* enabled: true,
|
|
356
|
+
* header: "Payment Methods",
|
|
357
|
+
* methods: {
|
|
358
|
+
* ach: true,
|
|
359
|
+
* check: true,
|
|
360
|
+
* vcard: true
|
|
361
|
+
* },
|
|
362
|
+
* order: 0,
|
|
363
|
+
* showPreviewVirtualCard: true
|
|
364
|
+
* },
|
|
318
365
|
* review: {
|
|
319
366
|
* enabled: true,
|
|
320
367
|
* header: "Review Payment",
|
|
@@ -393,7 +440,7 @@ class PaymentLinkClient {
|
|
|
393
440
|
* @throws {@link Payabli.ServiceUnavailableError}
|
|
394
441
|
*
|
|
395
442
|
* @example
|
|
396
|
-
* await client.paymentLink.deletePayLinkFromId("
|
|
443
|
+
* await client.paymentLink.deletePayLinkFromId("2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234")
|
|
397
444
|
*/
|
|
398
445
|
deletePayLinkFromId(payLinkId, requestOptions) {
|
|
399
446
|
return core.HttpResponsePromise.fromPromise(this.__deletePayLinkFromId(payLinkId, requestOptions));
|
|
@@ -832,34 +879,17 @@ class PaymentLinkClient {
|
|
|
832
879
|
* },
|
|
833
880
|
* paymentMethods: {
|
|
834
881
|
* allMethodsChecked: true,
|
|
882
|
+
* allowMultipleMethods: true,
|
|
883
|
+
* defaultMethod: "vcard",
|
|
835
884
|
* enabled: true,
|
|
836
885
|
* header: "Payment Methods",
|
|
837
886
|
* methods: {
|
|
838
|
-
*
|
|
839
|
-
*
|
|
840
|
-
*
|
|
841
|
-
* eCheck: true,
|
|
842
|
-
* mastercard: true,
|
|
843
|
-
* visa: true
|
|
887
|
+
* ach: true,
|
|
888
|
+
* check: true,
|
|
889
|
+
* vcard: true
|
|
844
890
|
* },
|
|
845
|
-
* order: 0
|
|
846
|
-
*
|
|
847
|
-
* payor: {
|
|
848
|
-
* enabled: true,
|
|
849
|
-
* fields: [{
|
|
850
|
-
* display: true,
|
|
851
|
-
* fixed: true,
|
|
852
|
-
* identifier: true,
|
|
853
|
-
* label: "Full Name",
|
|
854
|
-
* name: "fullName",
|
|
855
|
-
* order: 0,
|
|
856
|
-
* required: true,
|
|
857
|
-
* validation: "alpha",
|
|
858
|
-
* value: "",
|
|
859
|
-
* width: 0
|
|
860
|
-
* }],
|
|
861
|
-
* header: "Payor Information",
|
|
862
|
-
* order: 0
|
|
891
|
+
* order: 0,
|
|
892
|
+
* showPreviewVirtualCard: true
|
|
863
893
|
* },
|
|
864
894
|
* review: {
|
|
865
895
|
* enabled: true,
|
|
@@ -918,5 +948,254 @@ class PaymentLinkClient {
|
|
|
918
948
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/PaymentLink/bill/lotNumber/{lotNumber}");
|
|
919
949
|
});
|
|
920
950
|
}
|
|
951
|
+
/**
|
|
952
|
+
* Partially updates a Pay Out payment link's content, expiration date, and/or status. Use this to modify the payment page configuration, extend or change the expiration, or cancel a link. Updating the expiration date of an expired link reactivates it to Active status.
|
|
953
|
+
*
|
|
954
|
+
* @param {string} paylinkId - ID for the payment link.
|
|
955
|
+
* @param {Payabli.PatchOutPaymentLinkRequest} request
|
|
956
|
+
* @param {PaymentLinkClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
957
|
+
*
|
|
958
|
+
* @throws {@link Payabli.BadRequestError}
|
|
959
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
960
|
+
* @throws {@link Payabli.InternalServerError}
|
|
961
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
962
|
+
*
|
|
963
|
+
* @example
|
|
964
|
+
* await client.paymentLink.patchOutPaymentLink("2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", {
|
|
965
|
+
* expirationDate: "2026-06-01T00:00:00Z",
|
|
966
|
+
* status: "Active"
|
|
967
|
+
* })
|
|
968
|
+
*
|
|
969
|
+
* @example
|
|
970
|
+
* await client.paymentLink.patchOutPaymentLink("2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", {
|
|
971
|
+
* status: "Canceled"
|
|
972
|
+
* })
|
|
973
|
+
*
|
|
974
|
+
* @example
|
|
975
|
+
* await client.paymentLink.patchOutPaymentLink("2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", {
|
|
976
|
+
* billPageData: {
|
|
977
|
+
* page: {
|
|
978
|
+
* description: "You have a payment waiting",
|
|
979
|
+
* enabled: true,
|
|
980
|
+
* header: "Vendor Payment",
|
|
981
|
+
* order: 0
|
|
982
|
+
* },
|
|
983
|
+
* paymentButton: {
|
|
984
|
+
* enabled: true,
|
|
985
|
+
* label: "Select Payment Method",
|
|
986
|
+
* order: 0
|
|
987
|
+
* },
|
|
988
|
+
* paymentMethods: {
|
|
989
|
+
* allMethodsChecked: true,
|
|
990
|
+
* allowMultipleMethods: true,
|
|
991
|
+
* defaultMethod: "ach",
|
|
992
|
+
* enabled: true,
|
|
993
|
+
* header: "Payment Methods",
|
|
994
|
+
* methods: {
|
|
995
|
+
* ach: true,
|
|
996
|
+
* check: true,
|
|
997
|
+
* vcard: true
|
|
998
|
+
* },
|
|
999
|
+
* order: 0,
|
|
1000
|
+
* showPreviewVirtualCard: false
|
|
1001
|
+
* }
|
|
1002
|
+
* }
|
|
1003
|
+
* })
|
|
1004
|
+
*/
|
|
1005
|
+
patchOutPaymentLink(paylinkId, request, requestOptions) {
|
|
1006
|
+
return core.HttpResponsePromise.fromPromise(this.__patchOutPaymentLink(paylinkId, request, requestOptions));
|
|
1007
|
+
}
|
|
1008
|
+
__patchOutPaymentLink(paylinkId, request, requestOptions) {
|
|
1009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1010
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1011
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1012
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1013
|
+
const _response = yield core.fetcher({
|
|
1014
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `PaymentLink/out/${core.url.encodePathParam(paylinkId)}`),
|
|
1015
|
+
method: "PATCH",
|
|
1016
|
+
headers: _headers,
|
|
1017
|
+
contentType: "application/json",
|
|
1018
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1019
|
+
requestType: "json",
|
|
1020
|
+
body: request,
|
|
1021
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
1022
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
1023
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1024
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
1025
|
+
logging: this._options.logging,
|
|
1026
|
+
});
|
|
1027
|
+
if (_response.ok) {
|
|
1028
|
+
return {
|
|
1029
|
+
data: _response.body,
|
|
1030
|
+
rawResponse: _response.rawResponse,
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
if (_response.error.reason === "status-code") {
|
|
1034
|
+
switch (_response.error.statusCode) {
|
|
1035
|
+
case 400:
|
|
1036
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1037
|
+
case 401:
|
|
1038
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1039
|
+
case 500:
|
|
1040
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1041
|
+
case 503:
|
|
1042
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1043
|
+
default:
|
|
1044
|
+
throw new errors.PayabliError({
|
|
1045
|
+
statusCode: _response.error.statusCode,
|
|
1046
|
+
body: _response.error.body,
|
|
1047
|
+
rawResponse: _response.rawResponse,
|
|
1048
|
+
});
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/PaymentLink/out/{paylinkId}");
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Updates the payment page content for a Pay Out payment link. Use this to change the branding, messaging, payment methods offered, or other page configuration.
|
|
1056
|
+
*
|
|
1057
|
+
* @param {string} paylinkId - ID for the payment link.
|
|
1058
|
+
* @param {Payabli.PaymentPageRequestBodyOut} request
|
|
1059
|
+
* @param {PaymentLinkClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1060
|
+
*
|
|
1061
|
+
* @throws {@link Payabli.BadRequestError}
|
|
1062
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
1063
|
+
* @throws {@link Payabli.InternalServerError}
|
|
1064
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
1065
|
+
*
|
|
1066
|
+
* @example
|
|
1067
|
+
* await client.paymentLink.updatePayLinkOutFromId("2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", {
|
|
1068
|
+
* contactUs: {
|
|
1069
|
+
* emailLabel: "Email",
|
|
1070
|
+
* enabled: true,
|
|
1071
|
+
* header: "Contact Us",
|
|
1072
|
+
* order: 0,
|
|
1073
|
+
* paymentIcons: true,
|
|
1074
|
+
* phoneLabel: "Phone"
|
|
1075
|
+
* },
|
|
1076
|
+
* logo: {
|
|
1077
|
+
* enabled: true,
|
|
1078
|
+
* order: 0
|
|
1079
|
+
* },
|
|
1080
|
+
* messageBeforePaying: {
|
|
1081
|
+
* enabled: true,
|
|
1082
|
+
* label: "Please review your payment details",
|
|
1083
|
+
* order: 0
|
|
1084
|
+
* },
|
|
1085
|
+
* notes: {
|
|
1086
|
+
* enabled: true,
|
|
1087
|
+
* header: "Additional Notes",
|
|
1088
|
+
* order: 0,
|
|
1089
|
+
* placeholder: "Enter any additional notes here",
|
|
1090
|
+
* value: ""
|
|
1091
|
+
* },
|
|
1092
|
+
* page: {
|
|
1093
|
+
* description: "Get paid securely",
|
|
1094
|
+
* enabled: true,
|
|
1095
|
+
* header: "Payment Page",
|
|
1096
|
+
* order: 0
|
|
1097
|
+
* },
|
|
1098
|
+
* paymentButton: {
|
|
1099
|
+
* enabled: true,
|
|
1100
|
+
* label: "Pay Now",
|
|
1101
|
+
* order: 0
|
|
1102
|
+
* },
|
|
1103
|
+
* paymentMethods: {
|
|
1104
|
+
* allMethodsChecked: true,
|
|
1105
|
+
* allowMultipleMethods: true,
|
|
1106
|
+
* defaultMethod: "vcard",
|
|
1107
|
+
* enabled: true,
|
|
1108
|
+
* header: "Payment Methods",
|
|
1109
|
+
* methods: {
|
|
1110
|
+
* ach: true,
|
|
1111
|
+
* check: true,
|
|
1112
|
+
* vcard: true
|
|
1113
|
+
* },
|
|
1114
|
+
* order: 0,
|
|
1115
|
+
* showPreviewVirtualCard: true
|
|
1116
|
+
* },
|
|
1117
|
+
* review: {
|
|
1118
|
+
* enabled: true,
|
|
1119
|
+
* header: "Review Payment",
|
|
1120
|
+
* order: 0
|
|
1121
|
+
* },
|
|
1122
|
+
* settings: {
|
|
1123
|
+
* color: "#000000",
|
|
1124
|
+
* language: "en"
|
|
1125
|
+
* }
|
|
1126
|
+
* })
|
|
1127
|
+
*
|
|
1128
|
+
* @example
|
|
1129
|
+
* await client.paymentLink.updatePayLinkOutFromId("2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", {
|
|
1130
|
+
* paymentMethods: {
|
|
1131
|
+
* allMethodsChecked: false,
|
|
1132
|
+
* allowMultipleMethods: true,
|
|
1133
|
+
* defaultMethod: "vcard",
|
|
1134
|
+
* enabled: true,
|
|
1135
|
+
* header: "Payment Methods",
|
|
1136
|
+
* methods: {
|
|
1137
|
+
* ach: true,
|
|
1138
|
+
* check: false,
|
|
1139
|
+
* vcard: true
|
|
1140
|
+
* },
|
|
1141
|
+
* order: 0,
|
|
1142
|
+
* showPreviewVirtualCard: true
|
|
1143
|
+
* },
|
|
1144
|
+
* paymentButton: {
|
|
1145
|
+
* enabled: true,
|
|
1146
|
+
* label: "Choose Payment Method",
|
|
1147
|
+
* order: 0
|
|
1148
|
+
* }
|
|
1149
|
+
* })
|
|
1150
|
+
*/
|
|
1151
|
+
updatePayLinkOutFromId(paylinkId, request, requestOptions) {
|
|
1152
|
+
return core.HttpResponsePromise.fromPromise(this.__updatePayLinkOutFromId(paylinkId, request, requestOptions));
|
|
1153
|
+
}
|
|
1154
|
+
__updatePayLinkOutFromId(paylinkId, request, requestOptions) {
|
|
1155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1156
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1157
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1158
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1159
|
+
const _response = yield core.fetcher({
|
|
1160
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `PaymentLink/updateOut/${core.url.encodePathParam(paylinkId)}`),
|
|
1161
|
+
method: "PATCH",
|
|
1162
|
+
headers: _headers,
|
|
1163
|
+
contentType: "application/json",
|
|
1164
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1165
|
+
requestType: "json",
|
|
1166
|
+
body: request,
|
|
1167
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
1168
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
1169
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1170
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
1171
|
+
logging: this._options.logging,
|
|
1172
|
+
});
|
|
1173
|
+
if (_response.ok) {
|
|
1174
|
+
return {
|
|
1175
|
+
data: _response.body,
|
|
1176
|
+
rawResponse: _response.rawResponse,
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
if (_response.error.reason === "status-code") {
|
|
1180
|
+
switch (_response.error.statusCode) {
|
|
1181
|
+
case 400:
|
|
1182
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1183
|
+
case 401:
|
|
1184
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1185
|
+
case 500:
|
|
1186
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1187
|
+
case 503:
|
|
1188
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
1189
|
+
default:
|
|
1190
|
+
throw new errors.PayabliError({
|
|
1191
|
+
statusCode: _response.error.statusCode,
|
|
1192
|
+
body: _response.error.body,
|
|
1193
|
+
rawResponse: _response.rawResponse,
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/PaymentLink/updateOut/{paylinkId}");
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
921
1200
|
}
|
|
922
1201
|
exports.PaymentLinkClient = PaymentLinkClient;
|
|
@@ -41,35 +41,82 @@ import type * as Payabli from "../../../../index.js";
|
|
|
41
41
|
* },
|
|
42
42
|
* paymentMethods: {
|
|
43
43
|
* allMethodsChecked: true,
|
|
44
|
+
* allowMultipleMethods: true,
|
|
45
|
+
* defaultMethod: "vcard",
|
|
44
46
|
* enabled: true,
|
|
45
47
|
* header: "Payment Methods",
|
|
46
48
|
* methods: {
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* eCheck: true,
|
|
51
|
-
* mastercard: true,
|
|
52
|
-
* visa: true
|
|
49
|
+
* ach: true,
|
|
50
|
+
* check: true,
|
|
51
|
+
* vcard: true
|
|
53
52
|
* },
|
|
53
|
+
* order: 0,
|
|
54
|
+
* showPreviewVirtualCard: true
|
|
55
|
+
* },
|
|
56
|
+
* review: {
|
|
57
|
+
* enabled: true,
|
|
58
|
+
* header: "Review Payment",
|
|
54
59
|
* order: 0
|
|
55
60
|
* },
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
61
|
+
* settings: {
|
|
62
|
+
* color: "#000000",
|
|
63
|
+
* language: "en"
|
|
64
|
+
* }
|
|
65
|
+
* }
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* {
|
|
70
|
+
* body: {
|
|
71
|
+
* contactUs: {
|
|
72
|
+
* emailLabel: "Email",
|
|
73
|
+
* enabled: true,
|
|
74
|
+
* header: "Contact Us",
|
|
75
|
+
* order: 0,
|
|
76
|
+
* paymentIcons: true,
|
|
77
|
+
* phoneLabel: "Phone"
|
|
78
|
+
* },
|
|
79
|
+
* logo: {
|
|
80
|
+
* enabled: true,
|
|
71
81
|
* order: 0
|
|
72
82
|
* },
|
|
83
|
+
* messageBeforePaying: {
|
|
84
|
+
* enabled: true,
|
|
85
|
+
* label: "Please review your payment details",
|
|
86
|
+
* order: 0
|
|
87
|
+
* },
|
|
88
|
+
* notes: {
|
|
89
|
+
* enabled: true,
|
|
90
|
+
* header: "Additional Notes",
|
|
91
|
+
* order: 0,
|
|
92
|
+
* placeholder: "Enter any additional notes here",
|
|
93
|
+
* value: ""
|
|
94
|
+
* },
|
|
95
|
+
* page: {
|
|
96
|
+
* description: "Get paid securely",
|
|
97
|
+
* enabled: true,
|
|
98
|
+
* header: "Payment Page",
|
|
99
|
+
* order: 0
|
|
100
|
+
* },
|
|
101
|
+
* paymentButton: {
|
|
102
|
+
* enabled: true,
|
|
103
|
+
* label: "Pay Now",
|
|
104
|
+
* order: 0
|
|
105
|
+
* },
|
|
106
|
+
* paymentMethods: {
|
|
107
|
+
* allMethodsChecked: true,
|
|
108
|
+
* allowMultipleMethods: true,
|
|
109
|
+
* defaultMethod: "vcard",
|
|
110
|
+
* enabled: true,
|
|
111
|
+
* header: "Payment Methods",
|
|
112
|
+
* methods: {
|
|
113
|
+
* ach: true,
|
|
114
|
+
* check: true,
|
|
115
|
+
* vcard: true
|
|
116
|
+
* },
|
|
117
|
+
* order: 0,
|
|
118
|
+
* showPreviewVirtualCard: true
|
|
119
|
+
* },
|
|
73
120
|
* review: {
|
|
74
121
|
* enabled: true,
|
|
75
122
|
* header: "Review Payment",
|
|
@@ -88,5 +135,5 @@ export interface PayLinkDataBill {
|
|
|
88
135
|
/** List of recipient email addresses. When there is more than one, separate them by a semicolon (;). */
|
|
89
136
|
mail2?: string;
|
|
90
137
|
idempotencyKey?: Payabli.IdempotencyKey;
|
|
91
|
-
body: Payabli.
|
|
138
|
+
body: Payabli.PaymentPageRequestBodyOut;
|
|
92
139
|
}
|
|
@@ -44,34 +44,17 @@ import type * as Payabli from "../../../../index.js";
|
|
|
44
44
|
* },
|
|
45
45
|
* paymentMethods: {
|
|
46
46
|
* allMethodsChecked: true,
|
|
47
|
+
* allowMultipleMethods: true,
|
|
48
|
+
* defaultMethod: "vcard",
|
|
47
49
|
* enabled: true,
|
|
48
50
|
* header: "Payment Methods",
|
|
49
51
|
* methods: {
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* eCheck: true,
|
|
54
|
-
* mastercard: true,
|
|
55
|
-
* visa: true
|
|
52
|
+
* ach: true,
|
|
53
|
+
* check: true,
|
|
54
|
+
* vcard: true
|
|
56
55
|
* },
|
|
57
|
-
* order: 0
|
|
58
|
-
*
|
|
59
|
-
* payor: {
|
|
60
|
-
* enabled: true,
|
|
61
|
-
* fields: [{
|
|
62
|
-
* display: true,
|
|
63
|
-
* fixed: true,
|
|
64
|
-
* identifier: true,
|
|
65
|
-
* label: "Full Name",
|
|
66
|
-
* name: "fullName",
|
|
67
|
-
* order: 0,
|
|
68
|
-
* required: true,
|
|
69
|
-
* validation: "alpha",
|
|
70
|
-
* value: "",
|
|
71
|
-
* width: 0
|
|
72
|
-
* }],
|
|
73
|
-
* header: "Payor Information",
|
|
74
|
-
* order: 0
|
|
56
|
+
* order: 0,
|
|
57
|
+
* showPreviewVirtualCard: true
|
|
75
58
|
* },
|
|
76
59
|
* review: {
|
|
77
60
|
* enabled: true,
|
|
@@ -93,5 +76,5 @@ export interface PayLinkDataOut {
|
|
|
93
76
|
mail2?: string;
|
|
94
77
|
/** Indicates whether customer can modify the payment amount. A value of `true` means the amount isn't modifiable, a value `false` means the payor can modify the amount to pay. */
|
|
95
78
|
amountFixed?: string;
|
|
96
|
-
body: Payabli.
|
|
79
|
+
body: Payabli.PaymentPageRequestBodyOut;
|
|
97
80
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Payabli from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Request body for partially updating a Pay Out payment link.
|
|
4
|
+
*/
|
|
5
|
+
export interface PatchOutPaymentLinkRequest {
|
|
6
|
+
/** Updated payment link page configuration. */
|
|
7
|
+
billPageData?: Payabli.PaymentPageRequestBodyOut | undefined;
|
|
8
|
+
/** New expiration date for the payment link. Must be a future date. If null and the link is expired, uses the default expiration from settings. Updating the expiration date reactivates an expired payment link to Active status. */
|
|
9
|
+
expirationDate?: string | undefined;
|
|
10
|
+
/** Updated status for the payment link. */
|
|
11
|
+
status?: Payabli.PaymentLinkStatus | undefined;
|
|
12
|
+
}
|
|
@@ -108,85 +108,6 @@ import type * as Payabli from "../../../index.js";
|
|
|
108
108
|
* redirectAfterApproveUrl: "https://example.com/success"
|
|
109
109
|
* }
|
|
110
110
|
* }
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* {
|
|
114
|
-
* contactUs: {
|
|
115
|
-
* emailLabel: "Email",
|
|
116
|
-
* enabled: true,
|
|
117
|
-
* header: "Contact Us",
|
|
118
|
-
* order: 0,
|
|
119
|
-
* paymentIcons: true,
|
|
120
|
-
* phoneLabel: "Phone"
|
|
121
|
-
* },
|
|
122
|
-
* logo: {
|
|
123
|
-
* enabled: true,
|
|
124
|
-
* order: 0
|
|
125
|
-
* },
|
|
126
|
-
* messageBeforePaying: {
|
|
127
|
-
* enabled: true,
|
|
128
|
-
* label: "Please review your payment details",
|
|
129
|
-
* order: 0
|
|
130
|
-
* },
|
|
131
|
-
* notes: {
|
|
132
|
-
* enabled: true,
|
|
133
|
-
* header: "Additional Notes",
|
|
134
|
-
* order: 0,
|
|
135
|
-
* placeholder: "Enter any additional notes here",
|
|
136
|
-
* value: ""
|
|
137
|
-
* },
|
|
138
|
-
* page: {
|
|
139
|
-
* description: "Get paid securely",
|
|
140
|
-
* enabled: true,
|
|
141
|
-
* header: "Payment Page",
|
|
142
|
-
* order: 0
|
|
143
|
-
* },
|
|
144
|
-
* paymentButton: {
|
|
145
|
-
* enabled: true,
|
|
146
|
-
* label: "Pay Now",
|
|
147
|
-
* order: 0
|
|
148
|
-
* },
|
|
149
|
-
* paymentMethods: {
|
|
150
|
-
* allMethodsChecked: true,
|
|
151
|
-
* enabled: true,
|
|
152
|
-
* header: "Payment Methods",
|
|
153
|
-
* methods: {
|
|
154
|
-
* amex: true,
|
|
155
|
-
* applePay: true,
|
|
156
|
-
* discover: true,
|
|
157
|
-
* eCheck: true,
|
|
158
|
-
* mastercard: true,
|
|
159
|
-
* visa: true
|
|
160
|
-
* },
|
|
161
|
-
* order: 0
|
|
162
|
-
* },
|
|
163
|
-
* payor: {
|
|
164
|
-
* enabled: true,
|
|
165
|
-
* fields: [{
|
|
166
|
-
* display: true,
|
|
167
|
-
* fixed: true,
|
|
168
|
-
* identifier: true,
|
|
169
|
-
* label: "Full Name",
|
|
170
|
-
* name: "fullName",
|
|
171
|
-
* order: 0,
|
|
172
|
-
* required: true,
|
|
173
|
-
* validation: "alpha",
|
|
174
|
-
* value: "",
|
|
175
|
-
* width: 0
|
|
176
|
-
* }],
|
|
177
|
-
* header: "Payor Information",
|
|
178
|
-
* order: 0
|
|
179
|
-
* },
|
|
180
|
-
* review: {
|
|
181
|
-
* enabled: true,
|
|
182
|
-
* header: "Review Payment",
|
|
183
|
-
* order: 0
|
|
184
|
-
* },
|
|
185
|
-
* settings: {
|
|
186
|
-
* color: "#000000",
|
|
187
|
-
* language: "en"
|
|
188
|
-
* }
|
|
189
|
-
* }
|
|
190
111
|
*/
|
|
191
112
|
export interface PaymentPageRequestBody {
|
|
192
113
|
/** ContactUs section of payment link page */
|