@unified-api/typescript-sdk 0.0.0 → 1.0.1
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/README.md +124 -741
- package/dist/sdk/account.d.ts +6 -6
- package/dist/sdk/account.js +78 -36
- package/dist/sdk/accounting.d.ts +32 -72
- package/dist/sdk/accounting.js +451 -809
- package/dist/sdk/activity.d.ts +6 -6
- package/dist/sdk/activity.js +78 -36
- package/dist/sdk/apicall.d.ts +2 -2
- package/dist/sdk/apicall.js +26 -12
- package/dist/sdk/application.d.ts +6 -6
- package/dist/sdk/application.js +78 -36
- package/dist/sdk/applicationstatus.d.ts +1 -1
- package/dist/sdk/applicationstatus.js +13 -6
- package/dist/sdk/ats.d.ts +45 -45
- package/dist/sdk/ats.js +585 -270
- package/dist/sdk/auth.js +29 -6
- package/dist/sdk/call.d.ts +1 -1
- package/dist/sdk/call.js +13 -6
- package/dist/sdk/candidate.d.ts +6 -6
- package/dist/sdk/candidate.js +78 -36
- package/dist/sdk/collection.d.ts +6 -6
- package/dist/sdk/collection.js +78 -36
- package/dist/sdk/commerce.d.ts +24 -24
- package/dist/sdk/commerce.js +312 -144
- package/dist/sdk/company.d.ts +9 -9
- package/dist/sdk/company.js +117 -54
- package/dist/sdk/connection.d.ts +6 -6
- package/dist/sdk/connection.js +78 -36
- package/dist/sdk/contact.d.ts +18 -18
- package/dist/sdk/contact.js +234 -108
- package/dist/sdk/crm.d.ts +36 -36
- package/dist/sdk/crm.js +468 -216
- package/dist/sdk/customer.d.ts +6 -6
- package/dist/sdk/customer.js +78 -36
- package/dist/sdk/deal.d.ts +6 -6
- package/dist/sdk/deal.js +78 -36
- package/dist/sdk/document.d.ts +6 -6
- package/dist/sdk/document.js +78 -36
- package/dist/sdk/employee.d.ts +6 -6
- package/dist/sdk/employee.js +78 -36
- package/dist/sdk/enrich.d.ts +2 -2
- package/dist/sdk/enrich.js +26 -12
- package/dist/sdk/event.d.ts +6 -6
- package/dist/sdk/event.js +78 -36
- package/dist/sdk/file.d.ts +6 -6
- package/dist/sdk/file.js +78 -36
- package/dist/sdk/group.d.ts +6 -6
- package/dist/sdk/group.js +78 -36
- package/dist/sdk/hris.d.ts +12 -12
- package/dist/sdk/hris.js +156 -72
- package/dist/sdk/integration.d.ts +1 -1
- package/dist/sdk/integration.js +41 -12
- package/dist/sdk/interview.d.ts +6 -6
- package/dist/sdk/interview.js +78 -36
- package/dist/sdk/inventory.d.ts +6 -6
- package/dist/sdk/inventory.js +78 -36
- package/dist/sdk/invoice.d.ts +6 -6
- package/dist/sdk/invoice.js +78 -36
- package/dist/sdk/issue.d.ts +1 -1
- package/dist/sdk/issue.js +13 -6
- package/dist/sdk/item.d.ts +6 -6
- package/dist/sdk/item.js +78 -36
- package/dist/sdk/job.d.ts +6 -6
- package/dist/sdk/job.js +78 -36
- package/dist/sdk/lead.d.ts +6 -6
- package/dist/sdk/lead.js +78 -36
- package/dist/sdk/link.d.ts +31 -0
- package/dist/sdk/link.js +503 -0
- package/dist/sdk/list.d.ts +6 -6
- package/dist/sdk/list.js +78 -36
- package/dist/sdk/location.d.ts +6 -6
- package/dist/sdk/location.js +78 -36
- package/dist/sdk/login.js +15 -3
- package/dist/sdk/martech.d.ts +12 -12
- package/dist/sdk/martech.js +156 -72
- package/dist/sdk/member.d.ts +6 -6
- package/dist/sdk/member.js +78 -36
- package/dist/sdk/models/operations/createaccountingaccount.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountingaccount.js +1 -15
- package/dist/sdk/models/operations/createaccountingcontact.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountingcontact.js +1 -15
- package/dist/sdk/models/operations/createaccountinginvoice.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountinginvoice.js +1 -15
- package/dist/sdk/models/operations/createaccountingtaxrate.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountingtaxrate.js +1 -15
- package/dist/sdk/models/operations/createaccountingtransaction.d.ts +0 -3
- package/dist/sdk/models/operations/createaccountingtransaction.js +1 -15
- package/dist/sdk/models/operations/createatsactivity.d.ts +0 -3
- package/dist/sdk/models/operations/createatsactivity.js +1 -15
- package/dist/sdk/models/operations/createatsapplication.d.ts +0 -3
- package/dist/sdk/models/operations/createatsapplication.js +1 -15
- package/dist/sdk/models/operations/createatscandidate.d.ts +0 -3
- package/dist/sdk/models/operations/createatscandidate.js +1 -15
- package/dist/sdk/models/operations/createatsdocument.d.ts +0 -3
- package/dist/sdk/models/operations/createatsdocument.js +1 -15
- package/dist/sdk/models/operations/createatsinterview.d.ts +0 -3
- package/dist/sdk/models/operations/createatsinterview.js +1 -15
- package/dist/sdk/models/operations/createatsjob.d.ts +0 -3
- package/dist/sdk/models/operations/createatsjob.js +1 -15
- package/dist/sdk/models/operations/createatsscorecard.d.ts +0 -3
- package/dist/sdk/models/operations/createatsscorecard.js +1 -15
- package/dist/sdk/models/operations/createcommercecollection.d.ts +0 -3
- package/dist/sdk/models/operations/createcommercecollection.js +1 -15
- package/dist/sdk/models/operations/createcommerceinventory.d.ts +0 -3
- package/dist/sdk/models/operations/createcommerceinventory.js +1 -15
- package/dist/sdk/models/operations/createcommerceitem.d.ts +0 -3
- package/dist/sdk/models/operations/createcommerceitem.js +1 -15
- package/dist/sdk/models/operations/createcommercelocation.d.ts +0 -3
- package/dist/sdk/models/operations/createcommercelocation.js +1 -15
- package/dist/sdk/models/operations/createcrmcompany.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmcompany.js +1 -15
- package/dist/sdk/models/operations/createcrmcontact.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmcontact.js +1 -15
- package/dist/sdk/models/operations/createcrmdeal.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmdeal.js +1 -15
- package/dist/sdk/models/operations/createcrmevent.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmevent.js +1 -15
- package/dist/sdk/models/operations/createcrmlead.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmlead.js +1 -15
- package/dist/sdk/models/operations/createcrmpipeline.d.ts +0 -3
- package/dist/sdk/models/operations/createcrmpipeline.js +1 -15
- package/dist/sdk/models/operations/createhrisemployee.d.ts +0 -3
- package/dist/sdk/models/operations/createhrisemployee.js +1 -15
- package/dist/sdk/models/operations/createhrisgroup.d.ts +0 -3
- package/dist/sdk/models/operations/createhrisgroup.js +1 -15
- package/dist/sdk/models/operations/createmartechlist.d.ts +0 -3
- package/dist/sdk/models/operations/createmartechlist.js +1 -15
- package/dist/sdk/models/operations/createmartechmember.d.ts +0 -3
- package/dist/sdk/models/operations/createmartechmember.js +1 -15
- package/dist/sdk/models/operations/createpassthrough.d.ts +0 -3
- package/dist/sdk/models/operations/createpassthrough.js +1 -15
- package/dist/sdk/models/operations/{createaccountingpayment.d.ts → createpaymentlink.d.ts} +7 -10
- package/dist/sdk/models/operations/createpaymentlink.js +95 -0
- package/dist/sdk/models/operations/createpaymentpayment.d.ts +28 -0
- package/dist/sdk/models/operations/createpaymentpayment.js +95 -0
- package/dist/sdk/models/operations/createstoragefile.d.ts +0 -3
- package/dist/sdk/models/operations/createstoragefile.js +1 -15
- package/dist/sdk/models/operations/createticketingcustomer.d.ts +0 -3
- package/dist/sdk/models/operations/createticketingcustomer.js +1 -15
- package/dist/sdk/models/operations/createticketingnote.d.ts +0 -3
- package/dist/sdk/models/operations/createticketingnote.js +1 -15
- package/dist/sdk/models/operations/createticketingticket.d.ts +0 -3
- package/dist/sdk/models/operations/createticketingticket.js +1 -15
- package/dist/sdk/models/operations/createuccontact.d.ts +0 -3
- package/dist/sdk/models/operations/createuccontact.js +1 -15
- package/dist/sdk/models/operations/createunifiedconnection.d.ts +0 -3
- package/dist/sdk/models/operations/createunifiedconnection.js +1 -15
- package/dist/sdk/models/operations/createunifiedwebhook.d.ts +0 -3
- package/dist/sdk/models/operations/createunifiedwebhook.js +1 -15
- package/dist/sdk/models/operations/getaccountingaccount.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingaccount.js +1 -15
- package/dist/sdk/models/operations/getaccountingcontact.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingcontact.js +1 -15
- package/dist/sdk/models/operations/getaccountinginvoice.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountinginvoice.js +1 -15
- package/dist/sdk/models/operations/getaccountingorganization.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingorganization.js +1 -15
- package/dist/sdk/models/operations/getaccountingtaxrate.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingtaxrate.js +1 -15
- package/dist/sdk/models/operations/getaccountingtransaction.d.ts +0 -3
- package/dist/sdk/models/operations/getaccountingtransaction.js +1 -15
- package/dist/sdk/models/operations/getatsactivity.d.ts +0 -3
- package/dist/sdk/models/operations/getatsactivity.js +1 -15
- package/dist/sdk/models/operations/getatsapplication.d.ts +0 -3
- package/dist/sdk/models/operations/getatsapplication.js +1 -15
- package/dist/sdk/models/operations/getatscandidate.d.ts +0 -3
- package/dist/sdk/models/operations/getatscandidate.js +1 -15
- package/dist/sdk/models/operations/getatscompany.d.ts +0 -3
- package/dist/sdk/models/operations/getatscompany.js +1 -15
- package/dist/sdk/models/operations/getatsdocument.d.ts +0 -3
- package/dist/sdk/models/operations/getatsdocument.js +1 -15
- package/dist/sdk/models/operations/getatsinterview.d.ts +0 -3
- package/dist/sdk/models/operations/getatsinterview.js +1 -15
- package/dist/sdk/models/operations/getatsjob.d.ts +0 -3
- package/dist/sdk/models/operations/getatsjob.js +1 -15
- package/dist/sdk/models/operations/getatsscorecard.d.ts +0 -3
- package/dist/sdk/models/operations/getatsscorecard.js +1 -15
- package/dist/sdk/models/operations/getcommercecollection.d.ts +0 -3
- package/dist/sdk/models/operations/getcommercecollection.js +1 -15
- package/dist/sdk/models/operations/getcommerceinventory.d.ts +0 -3
- package/dist/sdk/models/operations/getcommerceinventory.js +1 -15
- package/dist/sdk/models/operations/getcommerceitem.d.ts +0 -3
- package/dist/sdk/models/operations/getcommerceitem.js +1 -15
- package/dist/sdk/models/operations/getcommercelocation.d.ts +0 -3
- package/dist/sdk/models/operations/getcommercelocation.js +1 -15
- package/dist/sdk/models/operations/getcrmcompany.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmcompany.js +1 -15
- package/dist/sdk/models/operations/getcrmcontact.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmcontact.js +1 -15
- package/dist/sdk/models/operations/getcrmdeal.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmdeal.js +1 -15
- package/dist/sdk/models/operations/getcrmevent.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmevent.js +1 -15
- package/dist/sdk/models/operations/getcrmlead.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmlead.js +1 -15
- package/dist/sdk/models/operations/getcrmpipeline.d.ts +0 -3
- package/dist/sdk/models/operations/getcrmpipeline.js +1 -15
- package/dist/sdk/models/operations/gethrisemployee.d.ts +0 -3
- package/dist/sdk/models/operations/gethrisemployee.js +1 -15
- package/dist/sdk/models/operations/gethrisgroup.d.ts +0 -3
- package/dist/sdk/models/operations/gethrisgroup.js +1 -15
- package/dist/sdk/models/operations/getmartechlist.d.ts +0 -3
- package/dist/sdk/models/operations/getmartechlist.js +1 -15
- package/dist/sdk/models/operations/getmartechmember.d.ts +0 -3
- package/dist/sdk/models/operations/getmartechmember.js +1 -15
- package/dist/sdk/models/operations/getpaymentlink.d.ts +35 -0
- package/dist/sdk/models/operations/getpaymentlink.js +99 -0
- package/dist/sdk/models/operations/{getaccountingpayment.d.ts → getpaymentpayment.d.ts} +6 -9
- package/dist/sdk/models/operations/{getaccountingpayment.js → getpaymentpayment.js} +20 -34
- package/dist/sdk/models/operations/{getaccountingpayout.d.ts → getpaymentpayout.d.ts} +6 -9
- package/dist/sdk/models/operations/{getaccountingpayout.js → getpaymentpayout.js} +20 -34
- package/dist/sdk/models/operations/{getaccountingrefund.d.ts → getpaymentrefund.d.ts} +6 -9
- package/dist/sdk/models/operations/{getaccountingrefund.js → getpaymentrefund.js} +20 -34
- package/dist/sdk/models/operations/getstoragefile.d.ts +0 -3
- package/dist/sdk/models/operations/getstoragefile.js +1 -15
- package/dist/sdk/models/operations/getticketingcustomer.d.ts +0 -3
- package/dist/sdk/models/operations/getticketingcustomer.js +1 -15
- package/dist/sdk/models/operations/getticketingnote.d.ts +0 -3
- package/dist/sdk/models/operations/getticketingnote.js +1 -15
- package/dist/sdk/models/operations/getticketingticket.d.ts +0 -3
- package/dist/sdk/models/operations/getticketingticket.js +1 -15
- package/dist/sdk/models/operations/getuccontact.d.ts +0 -3
- package/dist/sdk/models/operations/getuccontact.js +1 -15
- package/dist/sdk/models/operations/getunifiedapicall.d.ts +0 -3
- package/dist/sdk/models/operations/getunifiedapicall.js +1 -15
- package/dist/sdk/models/operations/getunifiedconnection.d.ts +0 -3
- package/dist/sdk/models/operations/getunifiedconnection.js +1 -15
- package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -4
- package/dist/sdk/models/operations/getunifiedintegrationauth.js +6 -4
- package/dist/sdk/models/operations/getunifiedwebhook.d.ts +0 -3
- package/dist/sdk/models/operations/getunifiedwebhook.js +1 -15
- package/dist/sdk/models/operations/index.d.ts +16 -10
- package/dist/sdk/models/operations/index.js +16 -10
- package/dist/sdk/models/operations/listaccountingaccounts.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingaccounts.js +1 -15
- package/dist/sdk/models/operations/listaccountingcontacts.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingcontacts.js +1 -15
- package/dist/sdk/models/operations/listaccountinginvoices.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountinginvoices.js +1 -15
- package/dist/sdk/models/operations/listaccountingorganizations.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingorganizations.js +1 -15
- package/dist/sdk/models/operations/listaccountingtaxrates.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingtaxrates.js +1 -15
- package/dist/sdk/models/operations/listaccountingtransactions.d.ts +0 -3
- package/dist/sdk/models/operations/listaccountingtransactions.js +1 -15
- package/dist/sdk/models/operations/listatsactivities.d.ts +0 -3
- package/dist/sdk/models/operations/listatsactivities.js +1 -15
- package/dist/sdk/models/operations/listatsapplications.d.ts +0 -3
- package/dist/sdk/models/operations/listatsapplications.js +1 -15
- package/dist/sdk/models/operations/listatsapplicationstatuses.d.ts +0 -3
- package/dist/sdk/models/operations/listatsapplicationstatuses.js +1 -15
- package/dist/sdk/models/operations/listatscandidates.d.ts +0 -3
- package/dist/sdk/models/operations/listatscandidates.js +1 -15
- package/dist/sdk/models/operations/listatscompanies.d.ts +0 -3
- package/dist/sdk/models/operations/listatscompanies.js +1 -15
- package/dist/sdk/models/operations/listatsdocuments.d.ts +0 -3
- package/dist/sdk/models/operations/listatsdocuments.js +1 -15
- package/dist/sdk/models/operations/listatsinterviews.d.ts +0 -3
- package/dist/sdk/models/operations/listatsinterviews.js +1 -15
- package/dist/sdk/models/operations/listatsjobs.d.ts +0 -3
- package/dist/sdk/models/operations/listatsjobs.js +1 -15
- package/dist/sdk/models/operations/listatsscorecards.d.ts +0 -3
- package/dist/sdk/models/operations/listatsscorecards.js +1 -15
- package/dist/sdk/models/operations/listcommercecollections.d.ts +0 -3
- package/dist/sdk/models/operations/listcommercecollections.js +1 -15
- package/dist/sdk/models/operations/listcommerceinventories.d.ts +0 -3
- package/dist/sdk/models/operations/listcommerceinventories.js +1 -15
- package/dist/sdk/models/operations/listcommerceitems.d.ts +0 -3
- package/dist/sdk/models/operations/listcommerceitems.js +1 -15
- package/dist/sdk/models/operations/listcommercelocations.d.ts +0 -3
- package/dist/sdk/models/operations/listcommercelocations.js +1 -15
- package/dist/sdk/models/operations/listcrmcompanies.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmcompanies.js +1 -15
- package/dist/sdk/models/operations/listcrmcontacts.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmcontacts.js +1 -15
- package/dist/sdk/models/operations/listcrmdeals.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmdeals.js +1 -15
- package/dist/sdk/models/operations/listcrmevents.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmevents.js +1 -15
- package/dist/sdk/models/operations/listcrmleads.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmleads.js +1 -15
- package/dist/sdk/models/operations/listcrmpipelines.d.ts +0 -3
- package/dist/sdk/models/operations/listcrmpipelines.js +1 -15
- package/dist/sdk/models/operations/listenrichcompanies.d.ts +0 -3
- package/dist/sdk/models/operations/listenrichcompanies.js +1 -15
- package/dist/sdk/models/operations/listenrichpeople.d.ts +0 -3
- package/dist/sdk/models/operations/listenrichpeople.js +1 -15
- package/dist/sdk/models/operations/listhrisemployees.d.ts +0 -3
- package/dist/sdk/models/operations/listhrisemployees.js +1 -15
- package/dist/sdk/models/operations/listhrisgroups.d.ts +0 -3
- package/dist/sdk/models/operations/listhrisgroups.js +1 -15
- package/dist/sdk/models/operations/listmartechlists.d.ts +0 -3
- package/dist/sdk/models/operations/listmartechlists.js +1 -15
- package/dist/sdk/models/operations/listmartechmembers.d.ts +0 -3
- package/dist/sdk/models/operations/listmartechmembers.js +1 -15
- package/dist/sdk/models/operations/listpassthroughs.d.ts +0 -3
- package/dist/sdk/models/operations/listpassthroughs.js +1 -15
- package/dist/sdk/models/operations/{listaccountingrefunds.d.ts → listpaymentlinks.d.ts} +10 -9
- package/dist/sdk/models/operations/{listaccountingrefunds.js → listpaymentlinks.js} +30 -40
- package/dist/sdk/models/operations/{listaccountingpayments.d.ts → listpaymentpayments.d.ts} +6 -9
- package/dist/sdk/models/operations/{listaccountingpayments.js → listpaymentpayments.js} +28 -42
- package/dist/sdk/models/operations/{listaccountingpayouts.d.ts → listpaymentpayouts.d.ts} +6 -9
- package/dist/sdk/models/operations/listpaymentpayouts.js +119 -0
- package/dist/sdk/models/operations/listpaymentrefunds.d.ts +47 -0
- package/dist/sdk/models/operations/{listaccountingpayouts.js → listpaymentrefunds.js} +30 -40
- package/dist/sdk/models/operations/liststoragefiles.d.ts +0 -3
- package/dist/sdk/models/operations/liststoragefiles.js +1 -15
- package/dist/sdk/models/operations/listticketingcustomers.d.ts +0 -3
- package/dist/sdk/models/operations/listticketingcustomers.js +1 -15
- package/dist/sdk/models/operations/listticketingnotes.d.ts +0 -3
- package/dist/sdk/models/operations/listticketingnotes.js +1 -15
- package/dist/sdk/models/operations/listticketingtickets.d.ts +0 -3
- package/dist/sdk/models/operations/listticketingtickets.js +1 -15
- package/dist/sdk/models/operations/listuccalls.d.ts +0 -3
- package/dist/sdk/models/operations/listuccalls.js +1 -15
- package/dist/sdk/models/operations/listuccontacts.d.ts +0 -3
- package/dist/sdk/models/operations/listuccontacts.js +1 -15
- package/dist/sdk/models/operations/listunifiedapicalls.d.ts +0 -3
- package/dist/sdk/models/operations/listunifiedapicalls.js +1 -15
- package/dist/sdk/models/operations/listunifiedconnections.d.ts +2 -4
- package/dist/sdk/models/operations/listunifiedconnections.js +2 -15
- package/dist/sdk/models/operations/listunifiedintegrations.d.ts +2 -4
- package/dist/sdk/models/operations/listunifiedintegrations.js +2 -15
- package/dist/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +2 -1
- package/dist/sdk/models/operations/listunifiedintegrationworkspaces.js +1 -0
- package/dist/sdk/models/operations/listunifiedissues.d.ts +0 -3
- package/dist/sdk/models/operations/listunifiedissues.js +1 -15
- package/dist/sdk/models/operations/listunifiedwebhooks.d.ts +0 -3
- package/dist/sdk/models/operations/listunifiedwebhooks.js +1 -15
- package/dist/sdk/models/operations/patchaccountingaccount.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountingaccount.js +1 -15
- package/dist/sdk/models/operations/patchaccountingcontact.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountingcontact.js +1 -15
- package/dist/sdk/models/operations/patchaccountinginvoice.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountinginvoice.js +1 -15
- package/dist/sdk/models/operations/patchaccountingtaxrate.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountingtaxrate.js +1 -15
- package/dist/sdk/models/operations/patchaccountingtransaction.d.ts +0 -3
- package/dist/sdk/models/operations/patchaccountingtransaction.js +1 -15
- package/dist/sdk/models/operations/patchatsactivity.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsactivity.js +1 -15
- package/dist/sdk/models/operations/patchatsapplication.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsapplication.js +1 -15
- package/dist/sdk/models/operations/patchatscandidate.d.ts +0 -3
- package/dist/sdk/models/operations/patchatscandidate.js +1 -15
- package/dist/sdk/models/operations/patchatsdocument.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsdocument.js +1 -15
- package/dist/sdk/models/operations/patchatsinterview.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsinterview.js +1 -15
- package/dist/sdk/models/operations/patchatsjob.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsjob.js +1 -15
- package/dist/sdk/models/operations/patchatsscorecard.d.ts +0 -3
- package/dist/sdk/models/operations/patchatsscorecard.js +1 -15
- package/dist/sdk/models/operations/patchcommercecollection.d.ts +0 -3
- package/dist/sdk/models/operations/patchcommercecollection.js +1 -15
- package/dist/sdk/models/operations/patchcommerceinventory.d.ts +0 -3
- package/dist/sdk/models/operations/patchcommerceinventory.js +1 -15
- package/dist/sdk/models/operations/patchcommerceitem.d.ts +0 -3
- package/dist/sdk/models/operations/patchcommerceitem.js +1 -15
- package/dist/sdk/models/operations/patchcommercelocation.d.ts +0 -3
- package/dist/sdk/models/operations/patchcommercelocation.js +1 -15
- package/dist/sdk/models/operations/patchcrmcompany.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmcompany.js +1 -15
- package/dist/sdk/models/operations/patchcrmcontact.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmcontact.js +1 -15
- package/dist/sdk/models/operations/patchcrmdeal.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmdeal.js +1 -15
- package/dist/sdk/models/operations/patchcrmevent.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmevent.js +1 -15
- package/dist/sdk/models/operations/patchcrmlead.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmlead.js +1 -15
- package/dist/sdk/models/operations/patchcrmpipeline.d.ts +0 -3
- package/dist/sdk/models/operations/patchcrmpipeline.js +1 -15
- package/dist/sdk/models/operations/patchhrisemployee.d.ts +0 -3
- package/dist/sdk/models/operations/patchhrisemployee.js +1 -15
- package/dist/sdk/models/operations/patchhrisgroup.d.ts +0 -3
- package/dist/sdk/models/operations/patchhrisgroup.js +1 -15
- package/dist/sdk/models/operations/patchmartechlist.d.ts +0 -3
- package/dist/sdk/models/operations/patchmartechlist.js +1 -15
- package/dist/sdk/models/operations/patchmartechmember.d.ts +0 -3
- package/dist/sdk/models/operations/patchmartechmember.js +1 -15
- package/dist/sdk/models/operations/patchpassthrough.d.ts +0 -3
- package/dist/sdk/models/operations/patchpassthrough.js +1 -15
- package/dist/sdk/models/operations/patchpaymentlink.d.ts +32 -0
- package/dist/sdk/models/operations/{updateaccountingpayment.js → patchpaymentlink.js} +21 -35
- package/dist/sdk/models/operations/{patchaccountingpayment.d.ts → patchpaymentpayment.d.ts} +7 -10
- package/dist/sdk/models/operations/{patchaccountingpayment.js → patchpaymentpayment.js} +21 -35
- package/dist/sdk/models/operations/patchstoragefile.d.ts +0 -3
- package/dist/sdk/models/operations/patchstoragefile.js +1 -15
- package/dist/sdk/models/operations/patchticketingcustomer.d.ts +0 -3
- package/dist/sdk/models/operations/patchticketingcustomer.js +1 -15
- package/dist/sdk/models/operations/patchticketingnote.d.ts +0 -3
- package/dist/sdk/models/operations/patchticketingnote.js +1 -15
- package/dist/sdk/models/operations/patchticketingticket.d.ts +0 -3
- package/dist/sdk/models/operations/patchticketingticket.js +1 -15
- package/dist/sdk/models/operations/patchuccontact.d.ts +0 -3
- package/dist/sdk/models/operations/patchuccontact.js +1 -15
- package/dist/sdk/models/operations/patchunifiedconnection.d.ts +0 -3
- package/dist/sdk/models/operations/patchunifiedconnection.js +1 -15
- package/dist/sdk/models/operations/patchunifiedwebhooktrigger.d.ts +0 -3
- package/dist/sdk/models/operations/patchunifiedwebhooktrigger.js +1 -15
- package/dist/sdk/models/operations/removeaccountingaccount.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountingaccount.js +1 -15
- package/dist/sdk/models/operations/removeaccountingcontact.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountingcontact.js +1 -15
- package/dist/sdk/models/operations/removeaccountinginvoice.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountinginvoice.js +1 -15
- package/dist/sdk/models/operations/removeaccountingtaxrate.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountingtaxrate.js +1 -15
- package/dist/sdk/models/operations/removeaccountingtransaction.d.ts +0 -3
- package/dist/sdk/models/operations/removeaccountingtransaction.js +1 -15
- package/dist/sdk/models/operations/removeatsactivity.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsactivity.js +1 -15
- package/dist/sdk/models/operations/removeatsapplication.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsapplication.js +1 -15
- package/dist/sdk/models/operations/removeatscandidate.d.ts +0 -3
- package/dist/sdk/models/operations/removeatscandidate.js +1 -15
- package/dist/sdk/models/operations/removeatsdocument.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsdocument.js +1 -15
- package/dist/sdk/models/operations/removeatsinterview.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsinterview.js +1 -15
- package/dist/sdk/models/operations/removeatsjob.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsjob.js +1 -15
- package/dist/sdk/models/operations/removeatsscorecard.d.ts +0 -3
- package/dist/sdk/models/operations/removeatsscorecard.js +1 -15
- package/dist/sdk/models/operations/removecommercecollection.d.ts +0 -3
- package/dist/sdk/models/operations/removecommercecollection.js +1 -15
- package/dist/sdk/models/operations/removecommerceinventory.d.ts +0 -3
- package/dist/sdk/models/operations/removecommerceinventory.js +1 -15
- package/dist/sdk/models/operations/removecommerceitem.d.ts +0 -3
- package/dist/sdk/models/operations/removecommerceitem.js +1 -15
- package/dist/sdk/models/operations/removecommercelocation.d.ts +0 -3
- package/dist/sdk/models/operations/removecommercelocation.js +1 -15
- package/dist/sdk/models/operations/removecrmcompany.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmcompany.js +1 -15
- package/dist/sdk/models/operations/removecrmcontact.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmcontact.js +1 -15
- package/dist/sdk/models/operations/removecrmdeal.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmdeal.js +1 -15
- package/dist/sdk/models/operations/removecrmevent.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmevent.js +1 -15
- package/dist/sdk/models/operations/removecrmlead.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmlead.js +1 -15
- package/dist/sdk/models/operations/removecrmpipeline.d.ts +0 -3
- package/dist/sdk/models/operations/removecrmpipeline.js +1 -15
- package/dist/sdk/models/operations/removehrisemployee.d.ts +0 -3
- package/dist/sdk/models/operations/removehrisemployee.js +1 -15
- package/dist/sdk/models/operations/removehrisgroup.d.ts +0 -3
- package/dist/sdk/models/operations/removehrisgroup.js +1 -15
- package/dist/sdk/models/operations/removemartechlist.d.ts +0 -3
- package/dist/sdk/models/operations/removemartechlist.js +1 -15
- package/dist/sdk/models/operations/removemartechmember.d.ts +0 -3
- package/dist/sdk/models/operations/removemartechmember.js +1 -15
- package/dist/sdk/models/operations/removepassthrough.d.ts +0 -3
- package/dist/sdk/models/operations/removepassthrough.js +1 -15
- package/dist/sdk/models/operations/removepaymentlink.d.ts +30 -0
- package/dist/sdk/models/operations/{removeaccountingpayment.js → removepaymentlink.js} +17 -31
- package/dist/sdk/models/operations/{removeaccountingpayment.d.ts → removepaymentpayment.d.ts} +2 -5
- package/dist/sdk/models/operations/removepaymentpayment.js +71 -0
- package/dist/sdk/models/operations/removestoragefile.d.ts +0 -3
- package/dist/sdk/models/operations/removestoragefile.js +1 -15
- package/dist/sdk/models/operations/removeticketingcustomer.d.ts +0 -3
- package/dist/sdk/models/operations/removeticketingcustomer.js +1 -15
- package/dist/sdk/models/operations/removeticketingnote.d.ts +0 -3
- package/dist/sdk/models/operations/removeticketingnote.js +1 -15
- package/dist/sdk/models/operations/removeticketingticket.d.ts +0 -3
- package/dist/sdk/models/operations/removeticketingticket.js +1 -15
- package/dist/sdk/models/operations/removeuccontact.d.ts +0 -3
- package/dist/sdk/models/operations/removeuccontact.js +1 -15
- package/dist/sdk/models/operations/removeunifiedconnection.d.ts +0 -3
- package/dist/sdk/models/operations/removeunifiedconnection.js +1 -15
- package/dist/sdk/models/operations/removeunifiedwebhook.d.ts +0 -3
- package/dist/sdk/models/operations/removeunifiedwebhook.js +1 -15
- package/dist/sdk/models/operations/updateaccountingaccount.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountingaccount.js +1 -15
- package/dist/sdk/models/operations/updateaccountingcontact.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountingcontact.js +1 -15
- package/dist/sdk/models/operations/updateaccountinginvoice.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountinginvoice.js +1 -15
- package/dist/sdk/models/operations/updateaccountingtaxrate.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountingtaxrate.js +1 -15
- package/dist/sdk/models/operations/updateaccountingtransaction.d.ts +0 -3
- package/dist/sdk/models/operations/updateaccountingtransaction.js +1 -15
- package/dist/sdk/models/operations/updateatsactivity.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsactivity.js +1 -15
- package/dist/sdk/models/operations/updateatsapplication.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsapplication.js +1 -15
- package/dist/sdk/models/operations/updateatscandidate.d.ts +0 -3
- package/dist/sdk/models/operations/updateatscandidate.js +1 -15
- package/dist/sdk/models/operations/updateatsdocument.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsdocument.js +1 -15
- package/dist/sdk/models/operations/updateatsinterview.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsinterview.js +1 -15
- package/dist/sdk/models/operations/updateatsjob.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsjob.js +1 -15
- package/dist/sdk/models/operations/updateatsscorecard.d.ts +0 -3
- package/dist/sdk/models/operations/updateatsscorecard.js +1 -15
- package/dist/sdk/models/operations/updatecommercecollection.d.ts +0 -3
- package/dist/sdk/models/operations/updatecommercecollection.js +1 -15
- package/dist/sdk/models/operations/updatecommerceinventory.d.ts +0 -3
- package/dist/sdk/models/operations/updatecommerceinventory.js +1 -15
- package/dist/sdk/models/operations/updatecommerceitem.d.ts +0 -3
- package/dist/sdk/models/operations/updatecommerceitem.js +1 -15
- package/dist/sdk/models/operations/updatecommercelocation.d.ts +0 -3
- package/dist/sdk/models/operations/updatecommercelocation.js +1 -15
- package/dist/sdk/models/operations/updatecrmcompany.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmcompany.js +1 -15
- package/dist/sdk/models/operations/updatecrmcontact.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmcontact.js +1 -15
- package/dist/sdk/models/operations/updatecrmdeal.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmdeal.js +1 -15
- package/dist/sdk/models/operations/updatecrmevent.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmevent.js +1 -15
- package/dist/sdk/models/operations/updatecrmlead.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmlead.js +1 -15
- package/dist/sdk/models/operations/updatecrmpipeline.d.ts +0 -3
- package/dist/sdk/models/operations/updatecrmpipeline.js +1 -15
- package/dist/sdk/models/operations/updatehrisemployee.d.ts +0 -3
- package/dist/sdk/models/operations/updatehrisemployee.js +1 -15
- package/dist/sdk/models/operations/updatehrisgroup.d.ts +0 -3
- package/dist/sdk/models/operations/updatehrisgroup.js +1 -15
- package/dist/sdk/models/operations/updatemartechlist.d.ts +0 -3
- package/dist/sdk/models/operations/updatemartechlist.js +1 -15
- package/dist/sdk/models/operations/updatemartechmember.d.ts +0 -3
- package/dist/sdk/models/operations/updatemartechmember.js +1 -15
- package/dist/sdk/models/operations/updatepassthrough.d.ts +0 -3
- package/dist/sdk/models/operations/updatepassthrough.js +1 -15
- package/dist/sdk/models/operations/updatepaymentlink.d.ts +32 -0
- package/dist/sdk/models/operations/updatepaymentlink.js +99 -0
- package/dist/sdk/models/operations/{updateaccountingpayment.d.ts → updatepaymentpayment.d.ts} +7 -10
- package/dist/sdk/models/operations/{createaccountingpayment.js → updatepaymentpayment.js} +24 -34
- package/dist/sdk/models/operations/updatestoragefile.d.ts +0 -3
- package/dist/sdk/models/operations/updatestoragefile.js +1 -15
- package/dist/sdk/models/operations/updateticketingcustomer.d.ts +0 -3
- package/dist/sdk/models/operations/updateticketingcustomer.js +1 -15
- package/dist/sdk/models/operations/updateticketingnote.d.ts +0 -3
- package/dist/sdk/models/operations/updateticketingnote.js +1 -15
- package/dist/sdk/models/operations/updateticketingticket.d.ts +0 -3
- package/dist/sdk/models/operations/updateticketingticket.js +1 -15
- package/dist/sdk/models/operations/updateuccontact.d.ts +0 -3
- package/dist/sdk/models/operations/updateuccontact.js +1 -15
- package/dist/sdk/models/operations/updateunifiedconnection.d.ts +0 -3
- package/dist/sdk/models/operations/updateunifiedconnection.js +1 -15
- package/dist/sdk/models/operations/updateunifiedwebhooktrigger.d.ts +0 -3
- package/dist/sdk/models/operations/updateunifiedwebhooktrigger.js +1 -15
- package/dist/sdk/models/shared/index.d.ts +6 -3
- package/dist/sdk/models/shared/index.js +6 -3
- package/dist/sdk/models/shared/paymenntlinklineitem.d.ts +20 -0
- package/dist/sdk/models/shared/paymenntlinklineitem.js +137 -0
- package/dist/sdk/models/shared/paymentlink.d.ts +15 -0
- package/dist/sdk/models/shared/paymentlink.js +105 -0
- package/dist/sdk/models/shared/{accountingpayment.d.ts → paymentpayment.d.ts} +1 -1
- package/dist/sdk/models/shared/{accountingpayment.js → paymentpayment.js} +18 -18
- package/dist/sdk/models/shared/{accountingpayout.d.ts → paymentpayout.d.ts} +3 -3
- package/dist/sdk/models/shared/{accountingpayout.js → paymentpayout.js} +21 -21
- package/dist/sdk/models/shared/{accountingrefund.d.ts → paymentrefund.d.ts} +3 -3
- package/dist/sdk/models/shared/{accountingrefund.js → paymentrefund.js} +23 -23
- package/dist/sdk/models/shared/propertyconnectioncategories.d.ts +2 -1
- package/dist/sdk/models/shared/propertyconnectioncategories.js +1 -0
- package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -4
- package/dist/sdk/models/shared/propertyconnectionpermissions.js +6 -4
- package/dist/sdk/models/shared/propertyintegrationcategories.d.ts +2 -1
- package/dist/sdk/models/shared/propertyintegrationcategories.js +1 -0
- package/dist/sdk/models/shared/security.d.ts +4 -0
- package/dist/sdk/models/shared/security.js +45 -0
- package/dist/sdk/models/shared/webhook.d.ts +4 -3
- package/dist/sdk/models/shared/webhook.js +4 -3
- package/dist/sdk/note.d.ts +6 -6
- package/dist/sdk/note.js +78 -36
- package/dist/sdk/organization.d.ts +2 -2
- package/dist/sdk/organization.js +26 -12
- package/dist/sdk/passthrough.d.ts +5 -5
- package/dist/sdk/passthrough.js +66 -30
- package/dist/sdk/payment.d.ts +46 -6
- package/dist/sdk/payment.js +755 -61
- package/dist/sdk/payout.d.ts +2 -2
- package/dist/sdk/payout.js +35 -21
- package/dist/sdk/person.d.ts +1 -1
- package/dist/sdk/person.js +13 -6
- package/dist/sdk/pipeline.d.ts +6 -6
- package/dist/sdk/pipeline.js +78 -36
- package/dist/sdk/refund.d.ts +2 -2
- package/dist/sdk/refund.js +35 -21
- package/dist/sdk/scorecard.d.ts +6 -6
- package/dist/sdk/scorecard.js +78 -36
- package/dist/sdk/sdk.d.ts +11 -3
- package/dist/sdk/sdk.js +9 -6
- package/dist/sdk/storage.d.ts +6 -6
- package/dist/sdk/storage.js +78 -36
- package/dist/sdk/taxrate.d.ts +6 -6
- package/dist/sdk/taxrate.js +78 -36
- package/dist/sdk/ticket.d.ts +6 -6
- package/dist/sdk/ticket.js +78 -36
- package/dist/sdk/ticketing.d.ts +18 -18
- package/dist/sdk/ticketing.js +234 -108
- package/dist/sdk/transaction.d.ts +6 -6
- package/dist/sdk/transaction.js +78 -36
- package/dist/sdk/uc.d.ts +7 -7
- package/dist/sdk/uc.js +91 -42
- package/dist/sdk/unified.d.ts +16 -16
- package/dist/sdk/unified.js +236 -102
- package/dist/sdk/webhook.d.ts +6 -6
- package/dist/sdk/webhook.js +78 -36
- package/docs/sdk/models/operations/categories.md +2 -1
- package/docs/sdk/models/operations/createpaymentlinkrequest.md +9 -0
- package/docs/sdk/models/operations/createpaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/createpaymentpaymentrequest.md +9 -0
- package/docs/sdk/models/operations/createpaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/getpaymentlinkrequest.md +10 -0
- package/docs/sdk/models/operations/getpaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/{getaccountingpaymentrequest.md → getpaymentpaymentrequest.md} +1 -1
- package/docs/sdk/models/operations/getpaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/{getaccountingpayoutrequest.md → getpaymentpayoutrequest.md} +1 -1
- package/docs/sdk/models/operations/getpaymentpayoutresponse.md +11 -0
- package/docs/sdk/models/operations/{getaccountingrefundrequest.md → getpaymentrefundrequest.md} +1 -1
- package/docs/sdk/models/operations/getpaymentrefundresponse.md +11 -0
- package/docs/sdk/models/operations/listpaymentlinksrequest.md +17 -0
- package/docs/sdk/models/operations/listpaymentlinksresponse.md +11 -0
- package/docs/sdk/models/operations/{listaccountingpaymentsrequest.md → listpaymentpaymentsrequest.md} +1 -1
- package/docs/sdk/models/operations/listpaymentpaymentsresponse.md +11 -0
- package/docs/sdk/models/operations/{listaccountingpayoutsrequest.md → listpaymentpayoutsrequest.md} +1 -1
- package/docs/sdk/models/operations/listpaymentpayoutsresponse.md +11 -0
- package/docs/sdk/models/operations/{listaccountingrefundsrequest.md → listpaymentrefundsrequest.md} +1 -1
- package/docs/sdk/models/operations/listpaymentrefundsresponse.md +11 -0
- package/docs/sdk/models/operations/listunifiedintegrationsqueryparamcategories.md +2 -1
- package/docs/sdk/models/operations/patchpaymentlinkrequest.md +10 -0
- package/docs/sdk/models/operations/patchpaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/patchpaymentpaymentrequest.md +10 -0
- package/docs/sdk/models/operations/patchpaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/queryparamcategories.md +2 -1
- package/docs/sdk/models/operations/{removeaccountingpaymentrequest.md → removepaymentlinkrequest.md} +2 -2
- package/docs/sdk/models/operations/{removeaccountingpaymentresponse.md → removepaymentlinkresponse.md} +1 -1
- package/docs/sdk/models/operations/removepaymentpaymentrequest.md +9 -0
- package/docs/sdk/models/operations/removepaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/scopes.md +6 -4
- package/docs/sdk/models/operations/updatepaymentlinkrequest.md +10 -0
- package/docs/sdk/models/operations/updatepaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/updatepaymentpaymentrequest.md +10 -0
- package/docs/sdk/models/operations/updatepaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/shared/objecttype.md +4 -3
- package/docs/sdk/models/shared/paymenntlinklineitem.md +24 -0
- package/docs/sdk/models/shared/paymentlink.md +18 -0
- package/docs/sdk/models/shared/{accountingpayment.md → paymentpayment.md} +1 -1
- package/docs/sdk/models/shared/paymentpayout.md +15 -0
- package/docs/sdk/models/shared/{accountingrefundstatus.md → paymentpayoutstatus.md} +1 -1
- package/docs/sdk/models/shared/paymentrefund.md +17 -0
- package/docs/sdk/models/shared/{accountingpayoutstatus.md → paymentrefundstatus.md} +1 -1
- package/docs/sdk/models/shared/propertyconnectioncategories.md +2 -1
- package/docs/sdk/models/shared/propertyconnectionpermissions.md +6 -4
- package/docs/sdk/models/shared/propertyintegrationcategories.md +2 -1
- package/docs/sdk/models/{operations/getatsjobsecurity.md → shared/security.md} +2 -2
- package/package.json +1 -1
- package/docs/sdk/models/operations/createaccountingaccountsecurity.md +0 -8
- package/docs/sdk/models/operations/createaccountingcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/createaccountinginvoicesecurity.md +0 -8
- package/docs/sdk/models/operations/createaccountingpaymentrequest.md +0 -9
- package/docs/sdk/models/operations/createaccountingpaymentresponse.md +0 -11
- package/docs/sdk/models/operations/createaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/createaccountingtaxratesecurity.md +0 -8
- package/docs/sdk/models/operations/createaccountingtransactionsecurity.md +0 -8
- package/docs/sdk/models/operations/createatsactivitysecurity.md +0 -8
- package/docs/sdk/models/operations/createatsapplicationsecurity.md +0 -8
- package/docs/sdk/models/operations/createatscandidatesecurity.md +0 -8
- package/docs/sdk/models/operations/createatsdocumentsecurity.md +0 -8
- package/docs/sdk/models/operations/createatsinterviewsecurity.md +0 -8
- package/docs/sdk/models/operations/createatsjobsecurity.md +0 -8
- package/docs/sdk/models/operations/createatsscorecardsecurity.md +0 -8
- package/docs/sdk/models/operations/createcommercecollectionsecurity.md +0 -8
- package/docs/sdk/models/operations/createcommerceinventorysecurity.md +0 -8
- package/docs/sdk/models/operations/createcommerceitemsecurity.md +0 -8
- package/docs/sdk/models/operations/createcommercelocationsecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmcompanysecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmdealsecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmeventsecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmleadsecurity.md +0 -8
- package/docs/sdk/models/operations/createcrmpipelinesecurity.md +0 -8
- package/docs/sdk/models/operations/createhrisemployeesecurity.md +0 -8
- package/docs/sdk/models/operations/createhrisgroupsecurity.md +0 -8
- package/docs/sdk/models/operations/createmartechlistsecurity.md +0 -8
- package/docs/sdk/models/operations/createmartechmembersecurity.md +0 -8
- package/docs/sdk/models/operations/createpassthroughsecurity.md +0 -8
- package/docs/sdk/models/operations/createstoragefilesecurity.md +0 -8
- package/docs/sdk/models/operations/createticketingcustomersecurity.md +0 -8
- package/docs/sdk/models/operations/createticketingnotesecurity.md +0 -8
- package/docs/sdk/models/operations/createticketingticketsecurity.md +0 -8
- package/docs/sdk/models/operations/createuccontactsecurity.md +0 -8
- package/docs/sdk/models/operations/createunifiedconnectionsecurity.md +0 -8
- package/docs/sdk/models/operations/createunifiedwebhooksecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingaccountsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountinginvoicesecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingorganizationsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingpaymentresponse.md +0 -11
- package/docs/sdk/models/operations/getaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingpayoutresponse.md +0 -11
- package/docs/sdk/models/operations/getaccountingpayoutsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingrefundresponse.md +0 -11
- package/docs/sdk/models/operations/getaccountingrefundsecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingtaxratesecurity.md +0 -8
- package/docs/sdk/models/operations/getaccountingtransactionsecurity.md +0 -8
- package/docs/sdk/models/operations/getatsactivitysecurity.md +0 -8
- package/docs/sdk/models/operations/getatsapplicationsecurity.md +0 -8
- package/docs/sdk/models/operations/getatscandidatesecurity.md +0 -8
- package/docs/sdk/models/operations/getatscompanysecurity.md +0 -8
- package/docs/sdk/models/operations/getatsdocumentsecurity.md +0 -8
- package/docs/sdk/models/operations/getatsinterviewsecurity.md +0 -8
- package/docs/sdk/models/operations/getatsscorecardsecurity.md +0 -8
- package/docs/sdk/models/operations/getcommercecollectionsecurity.md +0 -8
- package/docs/sdk/models/operations/getcommerceinventorysecurity.md +0 -8
- package/docs/sdk/models/operations/getcommerceitemsecurity.md +0 -8
- package/docs/sdk/models/operations/getcommercelocationsecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmcompanysecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmdealsecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmeventsecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmleadsecurity.md +0 -8
- package/docs/sdk/models/operations/getcrmpipelinesecurity.md +0 -8
- package/docs/sdk/models/operations/gethrisemployeesecurity.md +0 -8
- package/docs/sdk/models/operations/gethrisgroupsecurity.md +0 -8
- package/docs/sdk/models/operations/getmartechlistsecurity.md +0 -8
- package/docs/sdk/models/operations/getmartechmembersecurity.md +0 -8
- package/docs/sdk/models/operations/getstoragefilesecurity.md +0 -8
- package/docs/sdk/models/operations/getticketingcustomersecurity.md +0 -8
- package/docs/sdk/models/operations/getticketingnotesecurity.md +0 -8
- package/docs/sdk/models/operations/getticketingticketsecurity.md +0 -8
- package/docs/sdk/models/operations/getuccontactsecurity.md +0 -8
- package/docs/sdk/models/operations/getunifiedapicallsecurity.md +0 -8
- package/docs/sdk/models/operations/getunifiedconnectionsecurity.md +0 -8
- package/docs/sdk/models/operations/getunifiedwebhooksecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingaccountssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingcontactssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountinginvoicessecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingorganizationssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingpaymentsresponse.md +0 -11
- package/docs/sdk/models/operations/listaccountingpaymentssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingpayoutsresponse.md +0 -11
- package/docs/sdk/models/operations/listaccountingpayoutssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingrefundsresponse.md +0 -11
- package/docs/sdk/models/operations/listaccountingrefundssecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingtaxratessecurity.md +0 -8
- package/docs/sdk/models/operations/listaccountingtransactionssecurity.md +0 -8
- package/docs/sdk/models/operations/listatsactivitiessecurity.md +0 -8
- package/docs/sdk/models/operations/listatsapplicationssecurity.md +0 -8
- package/docs/sdk/models/operations/listatsapplicationstatusessecurity.md +0 -8
- package/docs/sdk/models/operations/listatscandidatessecurity.md +0 -8
- package/docs/sdk/models/operations/listatscompaniessecurity.md +0 -8
- package/docs/sdk/models/operations/listatsdocumentssecurity.md +0 -8
- package/docs/sdk/models/operations/listatsinterviewssecurity.md +0 -8
- package/docs/sdk/models/operations/listatsjobssecurity.md +0 -8
- package/docs/sdk/models/operations/listatsscorecardssecurity.md +0 -8
- package/docs/sdk/models/operations/listcommercecollectionssecurity.md +0 -8
- package/docs/sdk/models/operations/listcommerceinventoriessecurity.md +0 -8
- package/docs/sdk/models/operations/listcommerceitemssecurity.md +0 -8
- package/docs/sdk/models/operations/listcommercelocationssecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmcompaniessecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmcontactssecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmdealssecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmeventssecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmleadssecurity.md +0 -8
- package/docs/sdk/models/operations/listcrmpipelinessecurity.md +0 -8
- package/docs/sdk/models/operations/listenrichcompaniessecurity.md +0 -8
- package/docs/sdk/models/operations/listenrichpeoplesecurity.md +0 -8
- package/docs/sdk/models/operations/listhrisemployeessecurity.md +0 -8
- package/docs/sdk/models/operations/listhrisgroupssecurity.md +0 -8
- package/docs/sdk/models/operations/listmartechlistssecurity.md +0 -8
- package/docs/sdk/models/operations/listmartechmemberssecurity.md +0 -8
- package/docs/sdk/models/operations/listpassthroughssecurity.md +0 -8
- package/docs/sdk/models/operations/liststoragefilessecurity.md +0 -8
- package/docs/sdk/models/operations/listticketingcustomerssecurity.md +0 -8
- package/docs/sdk/models/operations/listticketingnotessecurity.md +0 -8
- package/docs/sdk/models/operations/listticketingticketssecurity.md +0 -8
- package/docs/sdk/models/operations/listuccallssecurity.md +0 -8
- package/docs/sdk/models/operations/listuccontactssecurity.md +0 -8
- package/docs/sdk/models/operations/listunifiedapicallssecurity.md +0 -8
- package/docs/sdk/models/operations/listunifiedconnectionssecurity.md +0 -8
- package/docs/sdk/models/operations/listunifiedintegrationssecurity.md +0 -8
- package/docs/sdk/models/operations/listunifiedissuessecurity.md +0 -8
- package/docs/sdk/models/operations/listunifiedwebhookssecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountingaccountsecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountingcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountinginvoicesecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountingpaymentrequest.md +0 -10
- package/docs/sdk/models/operations/patchaccountingpaymentresponse.md +0 -11
- package/docs/sdk/models/operations/patchaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountingtaxratesecurity.md +0 -8
- package/docs/sdk/models/operations/patchaccountingtransactionsecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsactivitysecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsapplicationsecurity.md +0 -8
- package/docs/sdk/models/operations/patchatscandidatesecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsdocumentsecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsinterviewsecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsjobsecurity.md +0 -8
- package/docs/sdk/models/operations/patchatsscorecardsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcommercecollectionsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcommerceinventorysecurity.md +0 -8
- package/docs/sdk/models/operations/patchcommerceitemsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcommercelocationsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmcompanysecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmdealsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmeventsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmleadsecurity.md +0 -8
- package/docs/sdk/models/operations/patchcrmpipelinesecurity.md +0 -8
- package/docs/sdk/models/operations/patchhrisemployeesecurity.md +0 -8
- package/docs/sdk/models/operations/patchhrisgroupsecurity.md +0 -8
- package/docs/sdk/models/operations/patchmartechlistsecurity.md +0 -8
- package/docs/sdk/models/operations/patchmartechmembersecurity.md +0 -8
- package/docs/sdk/models/operations/patchpassthroughsecurity.md +0 -8
- package/docs/sdk/models/operations/patchstoragefilesecurity.md +0 -8
- package/docs/sdk/models/operations/patchticketingcustomersecurity.md +0 -8
- package/docs/sdk/models/operations/patchticketingnotesecurity.md +0 -8
- package/docs/sdk/models/operations/patchticketingticketsecurity.md +0 -8
- package/docs/sdk/models/operations/patchuccontactsecurity.md +0 -8
- package/docs/sdk/models/operations/patchunifiedconnectionsecurity.md +0 -8
- package/docs/sdk/models/operations/patchunifiedwebhooktriggersecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountingaccountsecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountingcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountinginvoicesecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountingtaxratesecurity.md +0 -8
- package/docs/sdk/models/operations/removeaccountingtransactionsecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsactivitysecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsapplicationsecurity.md +0 -8
- package/docs/sdk/models/operations/removeatscandidatesecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsdocumentsecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsinterviewsecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsjobsecurity.md +0 -8
- package/docs/sdk/models/operations/removeatsscorecardsecurity.md +0 -8
- package/docs/sdk/models/operations/removecommercecollectionsecurity.md +0 -8
- package/docs/sdk/models/operations/removecommerceinventorysecurity.md +0 -8
- package/docs/sdk/models/operations/removecommerceitemsecurity.md +0 -8
- package/docs/sdk/models/operations/removecommercelocationsecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmcompanysecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmdealsecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmeventsecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmleadsecurity.md +0 -8
- package/docs/sdk/models/operations/removecrmpipelinesecurity.md +0 -8
- package/docs/sdk/models/operations/removehrisemployeesecurity.md +0 -8
- package/docs/sdk/models/operations/removehrisgroupsecurity.md +0 -8
- package/docs/sdk/models/operations/removemartechlistsecurity.md +0 -8
- package/docs/sdk/models/operations/removemartechmembersecurity.md +0 -8
- package/docs/sdk/models/operations/removepassthroughsecurity.md +0 -8
- package/docs/sdk/models/operations/removestoragefilesecurity.md +0 -8
- package/docs/sdk/models/operations/removeticketingcustomersecurity.md +0 -8
- package/docs/sdk/models/operations/removeticketingnotesecurity.md +0 -8
- package/docs/sdk/models/operations/removeticketingticketsecurity.md +0 -8
- package/docs/sdk/models/operations/removeuccontactsecurity.md +0 -8
- package/docs/sdk/models/operations/removeunifiedconnectionsecurity.md +0 -8
- package/docs/sdk/models/operations/removeunifiedwebhooksecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountingaccountsecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountingcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountinginvoicesecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountingpaymentrequest.md +0 -10
- package/docs/sdk/models/operations/updateaccountingpaymentresponse.md +0 -11
- package/docs/sdk/models/operations/updateaccountingpaymentsecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountingtaxratesecurity.md +0 -8
- package/docs/sdk/models/operations/updateaccountingtransactionsecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsactivitysecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsapplicationsecurity.md +0 -8
- package/docs/sdk/models/operations/updateatscandidatesecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsdocumentsecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsinterviewsecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsjobsecurity.md +0 -8
- package/docs/sdk/models/operations/updateatsscorecardsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecommercecollectionsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecommerceinventorysecurity.md +0 -8
- package/docs/sdk/models/operations/updatecommerceitemsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecommercelocationsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmcompanysecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmcontactsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmdealsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmeventsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmleadsecurity.md +0 -8
- package/docs/sdk/models/operations/updatecrmpipelinesecurity.md +0 -8
- package/docs/sdk/models/operations/updatehrisemployeesecurity.md +0 -8
- package/docs/sdk/models/operations/updatehrisgroupsecurity.md +0 -8
- package/docs/sdk/models/operations/updatemartechlistsecurity.md +0 -8
- package/docs/sdk/models/operations/updatemartechmembersecurity.md +0 -8
- package/docs/sdk/models/operations/updatepassthroughsecurity.md +0 -8
- package/docs/sdk/models/operations/updatestoragefilesecurity.md +0 -8
- package/docs/sdk/models/operations/updateticketingcustomersecurity.md +0 -8
- package/docs/sdk/models/operations/updateticketingnotesecurity.md +0 -8
- package/docs/sdk/models/operations/updateticketingticketsecurity.md +0 -8
- package/docs/sdk/models/operations/updateuccontactsecurity.md +0 -8
- package/docs/sdk/models/operations/updateunifiedconnectionsecurity.md +0 -8
- package/docs/sdk/models/operations/updateunifiedwebhooktriggersecurity.md +0 -8
- package/docs/sdk/models/shared/accountingpayout.md +0 -15
- package/docs/sdk/models/shared/accountingrefund.md +0 -17
- package/docs/sdks/account/README.md +0 -318
- package/docs/sdks/accounting/README.md +0 -2240
- package/docs/sdks/activity/README.md +0 -327
- package/docs/sdks/apicall/README.md +0 -97
- package/docs/sdks/application/README.md +0 -339
- package/docs/sdks/applicationstatus/README.md +0 -55
- package/docs/sdks/ats/README.md +0 -2533
- package/docs/sdks/auth/README.md +0 -95
- package/docs/sdks/call/README.md +0 -55
- package/docs/sdks/candidate/README.md +0 -375
- package/docs/sdks/collection/README.md +0 -354
- package/docs/sdks/commerce/README.md +0 -1395
- package/docs/sdks/company/README.md +0 -526
- package/docs/sdks/connection/README.md +0 -364
- package/docs/sdks/contact/README.md +0 -1046
- package/docs/sdks/crm/README.md +0 -2084
- package/docs/sdks/customer/README.md +0 -354
- package/docs/sdks/deal/README.md +0 -321
- package/docs/sdks/document/README.md +0 -315
- package/docs/sdks/employee/README.md +0 -369
- package/docs/sdks/enrich/README.md +0 -99
- package/docs/sdks/event/README.md +0 -396
- package/docs/sdks/file/README.md +0 -336
- package/docs/sdks/group/README.md +0 -333
- package/docs/sdks/hris/README.md +0 -697
- package/docs/sdks/integration/README.md +0 -147
- package/docs/sdks/interview/README.md +0 -324
- package/docs/sdks/inventory/README.md +0 -315
- package/docs/sdks/invoice/README.md +0 -330
- package/docs/sdks/issue/README.md +0 -50
- package/docs/sdks/item/README.md +0 -423
- package/docs/sdks/job/README.md +0 -402
- package/docs/sdks/lead/README.md +0 -342
- package/docs/sdks/list/README.md +0 -312
- package/docs/sdks/location/README.md +0 -318
- package/docs/sdks/login/README.md +0 -48
- package/docs/sdks/martech/README.md +0 -655
- package/docs/sdks/member/README.md +0 -348
- package/docs/sdks/note/README.md +0 -312
- package/docs/sdks/organization/README.md +0 -106
- package/docs/sdks/passthrough/README.md +0 -254
- package/docs/sdks/payment/README.md +0 -312
- package/docs/sdks/payout/README.md +0 -106
- package/docs/sdks/person/README.md +0 -52
- package/docs/sdks/pipeline/README.md +0 -312
- package/docs/sdks/refund/README.md +0 -106
- package/docs/sdks/scorecard/README.md +0 -330
- package/docs/sdks/storage/README.md +0 -336
- package/docs/sdks/taxrate/README.md +0 -318
- package/docs/sdks/ticket/README.md +0 -324
- package/docs/sdks/ticketing/README.md +0 -980
- package/docs/sdks/transaction/README.md +0 -333
- package/docs/sdks/uc/README.md +0 -395
- package/docs/sdks/unified/README.md +0 -935
- package/docs/sdks/unifiedto/README.md +0 -9
- package/docs/sdks/webhook/README.md +0 -297
package/dist/sdk/payment.js
CHANGED
|
@@ -99,24 +99,24 @@ var Payment = /** @class */ (function () {
|
|
|
99
99
|
this.sdkConfiguration = sdkConfig;
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
|
-
* Create a payment
|
|
102
|
+
* Create a payment link
|
|
103
103
|
*/
|
|
104
|
-
Payment.prototype.
|
|
104
|
+
Payment.prototype.createPaymentLink = function (req, config) {
|
|
105
105
|
var _a, _b;
|
|
106
106
|
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
107
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
108
108
|
var _d;
|
|
109
109
|
return __generator(this, function (_e) {
|
|
110
110
|
switch (_e.label) {
|
|
111
111
|
case 0:
|
|
112
112
|
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
113
|
-
req = new operations.
|
|
113
|
+
req = new operations.CreatePaymentLinkRequest(req);
|
|
114
114
|
}
|
|
115
115
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
116
|
-
operationUrl = utils.generateURL(baseURL, "/
|
|
116
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link", req);
|
|
117
117
|
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
118
118
|
try {
|
|
119
|
-
_d = __read(utils.serializeRequestBody(req, "
|
|
119
|
+
_d = __read(utils.serializeRequestBody(req, "paymentLink", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
120
120
|
}
|
|
121
121
|
catch (e) {
|
|
122
122
|
if (e instanceof Error) {
|
|
@@ -124,21 +124,161 @@ var Payment = /** @class */ (function () {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
client = this.sdkConfiguration.defaultClient;
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
128
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
129
|
+
return [4 /*yield*/, globalSecurity()];
|
|
130
|
+
case 1:
|
|
131
|
+
globalSecurity = _e.sent();
|
|
132
|
+
_e.label = 2;
|
|
133
|
+
case 2:
|
|
134
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
135
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
129
136
|
}
|
|
130
|
-
properties = utils.parseSecurityProperties(
|
|
137
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
131
138
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
132
139
|
headers["Accept"] = "application/json";
|
|
133
140
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
134
141
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
142
|
+
case 3:
|
|
143
|
+
httpRes = _e.sent();
|
|
144
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
145
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
146
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
147
|
+
}
|
|
148
|
+
res = new operations.CreatePaymentLinkResponse({
|
|
149
|
+
statusCode: httpRes.status,
|
|
150
|
+
contentType: responseContentType,
|
|
151
|
+
rawResponse: httpRes,
|
|
152
|
+
});
|
|
153
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
154
|
+
switch (true) {
|
|
155
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
156
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
157
|
+
res.paymentLink = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentLink);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
161
|
+
}
|
|
162
|
+
break;
|
|
163
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
164
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
165
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
166
|
+
}
|
|
167
|
+
return [2 /*return*/, res];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Create a payment
|
|
174
|
+
*/
|
|
175
|
+
Payment.prototype.createPaymentPayment = function (req, config) {
|
|
176
|
+
var _a, _b;
|
|
177
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
179
|
+
var _d;
|
|
180
|
+
return __generator(this, function (_e) {
|
|
181
|
+
switch (_e.label) {
|
|
182
|
+
case 0:
|
|
183
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
184
|
+
req = new operations.CreatePaymentPaymentRequest(req);
|
|
185
|
+
}
|
|
186
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
187
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment", req);
|
|
188
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
189
|
+
try {
|
|
190
|
+
_d = __read(utils.serializeRequestBody(req, "paymentPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
191
|
+
}
|
|
192
|
+
catch (e) {
|
|
193
|
+
if (e instanceof Error) {
|
|
194
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
client = this.sdkConfiguration.defaultClient;
|
|
198
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
199
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
200
|
+
return [4 /*yield*/, globalSecurity()];
|
|
135
201
|
case 1:
|
|
202
|
+
globalSecurity = _e.sent();
|
|
203
|
+
_e.label = 2;
|
|
204
|
+
case 2:
|
|
205
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
206
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
207
|
+
}
|
|
208
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
209
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
210
|
+
headers["Accept"] = "application/json";
|
|
211
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
212
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
213
|
+
case 3:
|
|
136
214
|
httpRes = _e.sent();
|
|
137
215
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
138
216
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
139
217
|
throw new Error("status code not found in response: ".concat(httpRes));
|
|
140
218
|
}
|
|
141
|
-
res = new operations.
|
|
219
|
+
res = new operations.CreatePaymentPaymentResponse({
|
|
220
|
+
statusCode: httpRes.status,
|
|
221
|
+
contentType: responseContentType,
|
|
222
|
+
rawResponse: httpRes,
|
|
223
|
+
});
|
|
224
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
225
|
+
switch (true) {
|
|
226
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
227
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
228
|
+
res.paymentPayment = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayment);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
232
|
+
}
|
|
233
|
+
break;
|
|
234
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
235
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
236
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
237
|
+
}
|
|
238
|
+
return [2 /*return*/, res];
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Retrieve a payment link
|
|
245
|
+
*/
|
|
246
|
+
Payment.prototype.getPaymentLink = function (req, config) {
|
|
247
|
+
var _a, _b;
|
|
248
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
249
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
250
|
+
return __generator(this, function (_c) {
|
|
251
|
+
switch (_c.label) {
|
|
252
|
+
case 0:
|
|
253
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
254
|
+
req = new operations.GetPaymentLinkRequest(req);
|
|
255
|
+
}
|
|
256
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
257
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link/{id}", req);
|
|
258
|
+
client = this.sdkConfiguration.defaultClient;
|
|
259
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
260
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
261
|
+
return [4 /*yield*/, globalSecurity()];
|
|
262
|
+
case 1:
|
|
263
|
+
globalSecurity = _c.sent();
|
|
264
|
+
_c.label = 2;
|
|
265
|
+
case 2:
|
|
266
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
267
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
268
|
+
}
|
|
269
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
270
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
271
|
+
queryParams = utils.serializeQueryParams(req);
|
|
272
|
+
headers["Accept"] = "application/json";
|
|
273
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
274
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
275
|
+
case 3:
|
|
276
|
+
httpRes = _c.sent();
|
|
277
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
278
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
279
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
280
|
+
}
|
|
281
|
+
res = new operations.GetPaymentLinkResponse({
|
|
142
282
|
statusCode: httpRes.status,
|
|
143
283
|
contentType: responseContentType,
|
|
144
284
|
rawResponse: httpRes,
|
|
@@ -147,7 +287,7 @@ var Payment = /** @class */ (function () {
|
|
|
147
287
|
switch (true) {
|
|
148
288
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
149
289
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
150
|
-
res.
|
|
290
|
+
res.paymentLink = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentLink);
|
|
151
291
|
}
|
|
152
292
|
else {
|
|
153
293
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -165,35 +305,104 @@ var Payment = /** @class */ (function () {
|
|
|
165
305
|
/**
|
|
166
306
|
* Retrieve a payment
|
|
167
307
|
*/
|
|
168
|
-
Payment.prototype.
|
|
308
|
+
Payment.prototype.getPaymentPayment = function (req, config) {
|
|
169
309
|
var _a, _b;
|
|
170
310
|
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
311
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
172
312
|
return __generator(this, function (_c) {
|
|
173
313
|
switch (_c.label) {
|
|
174
314
|
case 0:
|
|
175
315
|
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
176
|
-
req = new operations.
|
|
316
|
+
req = new operations.GetPaymentPaymentRequest(req);
|
|
177
317
|
}
|
|
178
318
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
179
|
-
operationUrl = utils.generateURL(baseURL, "/
|
|
319
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment/{id}", req);
|
|
180
320
|
client = this.sdkConfiguration.defaultClient;
|
|
181
|
-
|
|
182
|
-
|
|
321
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
322
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
323
|
+
return [4 /*yield*/, globalSecurity()];
|
|
324
|
+
case 1:
|
|
325
|
+
globalSecurity = _c.sent();
|
|
326
|
+
_c.label = 2;
|
|
327
|
+
case 2:
|
|
328
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
329
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
183
330
|
}
|
|
184
|
-
properties = utils.parseSecurityProperties(
|
|
331
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
185
332
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
186
333
|
queryParams = utils.serializeQueryParams(req);
|
|
187
334
|
headers["Accept"] = "application/json";
|
|
188
335
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
189
336
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
337
|
+
case 3:
|
|
338
|
+
httpRes = _c.sent();
|
|
339
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
340
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
341
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
342
|
+
}
|
|
343
|
+
res = new operations.GetPaymentPaymentResponse({
|
|
344
|
+
statusCode: httpRes.status,
|
|
345
|
+
contentType: responseContentType,
|
|
346
|
+
rawResponse: httpRes,
|
|
347
|
+
});
|
|
348
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
349
|
+
switch (true) {
|
|
350
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
351
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
352
|
+
res.paymentPayment = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayment);
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
355
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
356
|
+
}
|
|
357
|
+
break;
|
|
358
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
359
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
360
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
361
|
+
}
|
|
362
|
+
return [2 /*return*/, res];
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Retrieve a payout
|
|
369
|
+
*/
|
|
370
|
+
Payment.prototype.getPaymentPayout = function (req, config) {
|
|
371
|
+
var _a, _b;
|
|
372
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
373
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
374
|
+
return __generator(this, function (_c) {
|
|
375
|
+
switch (_c.label) {
|
|
376
|
+
case 0:
|
|
377
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
378
|
+
req = new operations.GetPaymentPayoutRequest(req);
|
|
379
|
+
}
|
|
380
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
381
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payout/{id}", req);
|
|
382
|
+
client = this.sdkConfiguration.defaultClient;
|
|
383
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
384
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
385
|
+
return [4 /*yield*/, globalSecurity()];
|
|
190
386
|
case 1:
|
|
387
|
+
globalSecurity = _c.sent();
|
|
388
|
+
_c.label = 2;
|
|
389
|
+
case 2:
|
|
390
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
391
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
392
|
+
}
|
|
393
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
394
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
395
|
+
queryParams = utils.serializeQueryParams(req);
|
|
396
|
+
headers["Accept"] = "application/json";
|
|
397
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
398
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
399
|
+
case 3:
|
|
191
400
|
httpRes = _c.sent();
|
|
192
401
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
193
402
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
194
403
|
throw new Error("status code not found in response: ".concat(httpRes));
|
|
195
404
|
}
|
|
196
|
-
res = new operations.
|
|
405
|
+
res = new operations.GetPaymentPayoutResponse({
|
|
197
406
|
statusCode: httpRes.status,
|
|
198
407
|
contentType: responseContentType,
|
|
199
408
|
rawResponse: httpRes,
|
|
@@ -202,7 +411,133 @@ var Payment = /** @class */ (function () {
|
|
|
202
411
|
switch (true) {
|
|
203
412
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
204
413
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
205
|
-
res.
|
|
414
|
+
res.paymentPayout = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayout);
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
418
|
+
}
|
|
419
|
+
break;
|
|
420
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
421
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
422
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
423
|
+
}
|
|
424
|
+
return [2 /*return*/, res];
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* Retrieve a refund
|
|
431
|
+
*/
|
|
432
|
+
Payment.prototype.getPaymentRefund = function (req, config) {
|
|
433
|
+
var _a, _b;
|
|
434
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
435
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
|
|
436
|
+
return __generator(this, function (_c) {
|
|
437
|
+
switch (_c.label) {
|
|
438
|
+
case 0:
|
|
439
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
440
|
+
req = new operations.GetPaymentRefundRequest(req);
|
|
441
|
+
}
|
|
442
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
443
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/refund/{id}", req);
|
|
444
|
+
client = this.sdkConfiguration.defaultClient;
|
|
445
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
446
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
447
|
+
return [4 /*yield*/, globalSecurity()];
|
|
448
|
+
case 1:
|
|
449
|
+
globalSecurity = _c.sent();
|
|
450
|
+
_c.label = 2;
|
|
451
|
+
case 2:
|
|
452
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
453
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
454
|
+
}
|
|
455
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
456
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
457
|
+
queryParams = utils.serializeQueryParams(req);
|
|
458
|
+
headers["Accept"] = "application/json";
|
|
459
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
460
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
461
|
+
case 3:
|
|
462
|
+
httpRes = _c.sent();
|
|
463
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
464
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
465
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
466
|
+
}
|
|
467
|
+
res = new operations.GetPaymentRefundResponse({
|
|
468
|
+
statusCode: httpRes.status,
|
|
469
|
+
contentType: responseContentType,
|
|
470
|
+
rawResponse: httpRes,
|
|
471
|
+
});
|
|
472
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
473
|
+
switch (true) {
|
|
474
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
475
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
476
|
+
res.paymentRefund = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentRefund);
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
480
|
+
}
|
|
481
|
+
break;
|
|
482
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
483
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
484
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
485
|
+
}
|
|
486
|
+
return [2 /*return*/, res];
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* List all payment links
|
|
493
|
+
*/
|
|
494
|
+
Payment.prototype.listPaymentLinks = function (req, config) {
|
|
495
|
+
var _a, _b;
|
|
496
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
497
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
498
|
+
return __generator(this, function (_c) {
|
|
499
|
+
switch (_c.label) {
|
|
500
|
+
case 0:
|
|
501
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
502
|
+
req = new operations.ListPaymentLinksRequest(req);
|
|
503
|
+
}
|
|
504
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
505
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link", req);
|
|
506
|
+
client = this.sdkConfiguration.defaultClient;
|
|
507
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
508
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
509
|
+
return [4 /*yield*/, globalSecurity()];
|
|
510
|
+
case 1:
|
|
511
|
+
globalSecurity = _c.sent();
|
|
512
|
+
_c.label = 2;
|
|
513
|
+
case 2:
|
|
514
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
515
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
516
|
+
}
|
|
517
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
518
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
519
|
+
queryParams = utils.serializeQueryParams(req);
|
|
520
|
+
headers["Accept"] = "application/json";
|
|
521
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
522
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
523
|
+
case 3:
|
|
524
|
+
httpRes = _c.sent();
|
|
525
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
526
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
527
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
528
|
+
}
|
|
529
|
+
res = new operations.ListPaymentLinksResponse({
|
|
530
|
+
statusCode: httpRes.status,
|
|
531
|
+
contentType: responseContentType,
|
|
532
|
+
rawResponse: httpRes,
|
|
533
|
+
});
|
|
534
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
535
|
+
switch (true) {
|
|
536
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
537
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
538
|
+
res.paymentLinks = [];
|
|
539
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
540
|
+
res.paymentLinks = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentLink, resFieldDepth);
|
|
206
541
|
}
|
|
207
542
|
else {
|
|
208
543
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -220,35 +555,106 @@ var Payment = /** @class */ (function () {
|
|
|
220
555
|
/**
|
|
221
556
|
* List all payments
|
|
222
557
|
*/
|
|
223
|
-
Payment.prototype.
|
|
558
|
+
Payment.prototype.listPaymentPayments = function (req, config) {
|
|
224
559
|
var _a, _b;
|
|
225
560
|
return __awaiter(this, void 0, void 0, function () {
|
|
226
|
-
var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
561
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
227
562
|
return __generator(this, function (_c) {
|
|
228
563
|
switch (_c.label) {
|
|
229
564
|
case 0:
|
|
230
565
|
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
231
|
-
req = new operations.
|
|
566
|
+
req = new operations.ListPaymentPaymentsRequest(req);
|
|
232
567
|
}
|
|
233
568
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
234
|
-
operationUrl = utils.generateURL(baseURL, "/
|
|
569
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment", req);
|
|
235
570
|
client = this.sdkConfiguration.defaultClient;
|
|
236
|
-
|
|
237
|
-
|
|
571
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
572
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
573
|
+
return [4 /*yield*/, globalSecurity()];
|
|
574
|
+
case 1:
|
|
575
|
+
globalSecurity = _c.sent();
|
|
576
|
+
_c.label = 2;
|
|
577
|
+
case 2:
|
|
578
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
579
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
238
580
|
}
|
|
239
|
-
properties = utils.parseSecurityProperties(
|
|
581
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
240
582
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
241
583
|
queryParams = utils.serializeQueryParams(req);
|
|
242
584
|
headers["Accept"] = "application/json";
|
|
243
585
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
244
586
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
587
|
+
case 3:
|
|
588
|
+
httpRes = _c.sent();
|
|
589
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
590
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
591
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
592
|
+
}
|
|
593
|
+
res = new operations.ListPaymentPaymentsResponse({
|
|
594
|
+
statusCode: httpRes.status,
|
|
595
|
+
contentType: responseContentType,
|
|
596
|
+
rawResponse: httpRes,
|
|
597
|
+
});
|
|
598
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
599
|
+
switch (true) {
|
|
600
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
601
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
602
|
+
res.paymentPayments = [];
|
|
603
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
604
|
+
res.paymentPayments = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayment, resFieldDepth);
|
|
605
|
+
}
|
|
606
|
+
else {
|
|
607
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
608
|
+
}
|
|
609
|
+
break;
|
|
610
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
611
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
612
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
613
|
+
}
|
|
614
|
+
return [2 /*return*/, res];
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
});
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* List all payouts
|
|
621
|
+
*/
|
|
622
|
+
Payment.prototype.listPaymentPayouts = function (req, config) {
|
|
623
|
+
var _a, _b;
|
|
624
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
625
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
626
|
+
return __generator(this, function (_c) {
|
|
627
|
+
switch (_c.label) {
|
|
628
|
+
case 0:
|
|
629
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
630
|
+
req = new operations.ListPaymentPayoutsRequest(req);
|
|
631
|
+
}
|
|
632
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
633
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payout", req);
|
|
634
|
+
client = this.sdkConfiguration.defaultClient;
|
|
635
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
636
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
637
|
+
return [4 /*yield*/, globalSecurity()];
|
|
245
638
|
case 1:
|
|
639
|
+
globalSecurity = _c.sent();
|
|
640
|
+
_c.label = 2;
|
|
641
|
+
case 2:
|
|
642
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
643
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
644
|
+
}
|
|
645
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
646
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
647
|
+
queryParams = utils.serializeQueryParams(req);
|
|
648
|
+
headers["Accept"] = "application/json";
|
|
649
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
650
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
651
|
+
case 3:
|
|
246
652
|
httpRes = _c.sent();
|
|
247
653
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
248
654
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
249
655
|
throw new Error("status code not found in response: ".concat(httpRes));
|
|
250
656
|
}
|
|
251
|
-
res = new operations.
|
|
657
|
+
res = new operations.ListPaymentPayoutsResponse({
|
|
252
658
|
statusCode: httpRes.status,
|
|
253
659
|
contentType: responseContentType,
|
|
254
660
|
rawResponse: httpRes,
|
|
@@ -257,9 +663,9 @@ var Payment = /** @class */ (function () {
|
|
|
257
663
|
switch (true) {
|
|
258
664
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
259
665
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
260
|
-
res.
|
|
666
|
+
res.paymentPayouts = [];
|
|
261
667
|
resFieldDepth = utils.getResFieldDepth(res);
|
|
262
|
-
res.
|
|
668
|
+
res.paymentPayouts = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayout, resFieldDepth);
|
|
263
669
|
}
|
|
264
670
|
else {
|
|
265
671
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -275,24 +681,88 @@ var Payment = /** @class */ (function () {
|
|
|
275
681
|
});
|
|
276
682
|
};
|
|
277
683
|
/**
|
|
278
|
-
*
|
|
684
|
+
* List all refunds
|
|
279
685
|
*/
|
|
280
|
-
Payment.prototype.
|
|
686
|
+
Payment.prototype.listPaymentRefunds = function (req, config) {
|
|
281
687
|
var _a, _b;
|
|
282
688
|
return __awaiter(this, void 0, void 0, function () {
|
|
283
|
-
var baseURL, operationUrl,
|
|
689
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
|
|
690
|
+
return __generator(this, function (_c) {
|
|
691
|
+
switch (_c.label) {
|
|
692
|
+
case 0:
|
|
693
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
694
|
+
req = new operations.ListPaymentRefundsRequest(req);
|
|
695
|
+
}
|
|
696
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
697
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/refund", req);
|
|
698
|
+
client = this.sdkConfiguration.defaultClient;
|
|
699
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
700
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
701
|
+
return [4 /*yield*/, globalSecurity()];
|
|
702
|
+
case 1:
|
|
703
|
+
globalSecurity = _c.sent();
|
|
704
|
+
_c.label = 2;
|
|
705
|
+
case 2:
|
|
706
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
707
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
708
|
+
}
|
|
709
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
710
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
711
|
+
queryParams = utils.serializeQueryParams(req);
|
|
712
|
+
headers["Accept"] = "application/json";
|
|
713
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
714
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
|
|
715
|
+
case 3:
|
|
716
|
+
httpRes = _c.sent();
|
|
717
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
718
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
719
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
720
|
+
}
|
|
721
|
+
res = new operations.ListPaymentRefundsResponse({
|
|
722
|
+
statusCode: httpRes.status,
|
|
723
|
+
contentType: responseContentType,
|
|
724
|
+
rawResponse: httpRes,
|
|
725
|
+
});
|
|
726
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
727
|
+
switch (true) {
|
|
728
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
729
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
730
|
+
res.paymentRefunds = [];
|
|
731
|
+
resFieldDepth = utils.getResFieldDepth(res);
|
|
732
|
+
res.paymentRefunds = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentRefund, resFieldDepth);
|
|
733
|
+
}
|
|
734
|
+
else {
|
|
735
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
736
|
+
}
|
|
737
|
+
break;
|
|
738
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
739
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
740
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
741
|
+
}
|
|
742
|
+
return [2 /*return*/, res];
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
});
|
|
746
|
+
};
|
|
747
|
+
/**
|
|
748
|
+
* Update a payment link
|
|
749
|
+
*/
|
|
750
|
+
Payment.prototype.patchPaymentLink = function (req, config) {
|
|
751
|
+
var _a, _b;
|
|
752
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
753
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
284
754
|
var _d;
|
|
285
755
|
return __generator(this, function (_e) {
|
|
286
756
|
switch (_e.label) {
|
|
287
757
|
case 0:
|
|
288
758
|
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
289
|
-
req = new operations.
|
|
759
|
+
req = new operations.PatchPaymentLinkRequest(req);
|
|
290
760
|
}
|
|
291
761
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
292
|
-
operationUrl = utils.generateURL(baseURL, "/
|
|
762
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link/{id}", req);
|
|
293
763
|
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
294
764
|
try {
|
|
295
|
-
_d = __read(utils.serializeRequestBody(req, "
|
|
765
|
+
_d = __read(utils.serializeRequestBody(req, "paymentLink", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
296
766
|
}
|
|
297
767
|
catch (e) {
|
|
298
768
|
if (e instanceof Error) {
|
|
@@ -300,21 +770,99 @@ var Payment = /** @class */ (function () {
|
|
|
300
770
|
}
|
|
301
771
|
}
|
|
302
772
|
client = this.sdkConfiguration.defaultClient;
|
|
303
|
-
|
|
304
|
-
|
|
773
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
774
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
775
|
+
return [4 /*yield*/, globalSecurity()];
|
|
776
|
+
case 1:
|
|
777
|
+
globalSecurity = _e.sent();
|
|
778
|
+
_e.label = 2;
|
|
779
|
+
case 2:
|
|
780
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
781
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
305
782
|
}
|
|
306
|
-
properties = utils.parseSecurityProperties(
|
|
783
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
307
784
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
308
785
|
headers["Accept"] = "application/json";
|
|
309
786
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
310
787
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
788
|
+
case 3:
|
|
789
|
+
httpRes = _e.sent();
|
|
790
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
791
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
792
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
793
|
+
}
|
|
794
|
+
res = new operations.PatchPaymentLinkResponse({
|
|
795
|
+
statusCode: httpRes.status,
|
|
796
|
+
contentType: responseContentType,
|
|
797
|
+
rawResponse: httpRes,
|
|
798
|
+
});
|
|
799
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
800
|
+
switch (true) {
|
|
801
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
802
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
803
|
+
res.paymentLink = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentLink);
|
|
804
|
+
}
|
|
805
|
+
else {
|
|
806
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
807
|
+
}
|
|
808
|
+
break;
|
|
809
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
810
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
811
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
812
|
+
}
|
|
813
|
+
return [2 /*return*/, res];
|
|
814
|
+
}
|
|
815
|
+
});
|
|
816
|
+
});
|
|
817
|
+
};
|
|
818
|
+
/**
|
|
819
|
+
* Update a payment
|
|
820
|
+
*/
|
|
821
|
+
Payment.prototype.patchPaymentPayment = function (req, config) {
|
|
822
|
+
var _a, _b;
|
|
823
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
824
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
825
|
+
var _d;
|
|
826
|
+
return __generator(this, function (_e) {
|
|
827
|
+
switch (_e.label) {
|
|
828
|
+
case 0:
|
|
829
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
830
|
+
req = new operations.PatchPaymentPaymentRequest(req);
|
|
831
|
+
}
|
|
832
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
833
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment/{id}", req);
|
|
834
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
835
|
+
try {
|
|
836
|
+
_d = __read(utils.serializeRequestBody(req, "paymentPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
837
|
+
}
|
|
838
|
+
catch (e) {
|
|
839
|
+
if (e instanceof Error) {
|
|
840
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
client = this.sdkConfiguration.defaultClient;
|
|
844
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
845
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
846
|
+
return [4 /*yield*/, globalSecurity()];
|
|
311
847
|
case 1:
|
|
848
|
+
globalSecurity = _e.sent();
|
|
849
|
+
_e.label = 2;
|
|
850
|
+
case 2:
|
|
851
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
852
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
853
|
+
}
|
|
854
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
855
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
856
|
+
headers["Accept"] = "application/json";
|
|
857
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
858
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
859
|
+
case 3:
|
|
312
860
|
httpRes = _e.sent();
|
|
313
861
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
314
862
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
315
863
|
throw new Error("status code not found in response: ".concat(httpRes));
|
|
316
864
|
}
|
|
317
|
-
res = new operations.
|
|
865
|
+
res = new operations.PatchPaymentPaymentResponse({
|
|
318
866
|
statusCode: httpRes.status,
|
|
319
867
|
contentType: responseContentType,
|
|
320
868
|
rawResponse: httpRes,
|
|
@@ -323,7 +871,7 @@ var Payment = /** @class */ (function () {
|
|
|
323
871
|
switch (true) {
|
|
324
872
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
325
873
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
326
|
-
res.
|
|
874
|
+
res.paymentPayment = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayment);
|
|
327
875
|
}
|
|
328
876
|
else {
|
|
329
877
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -339,36 +887,104 @@ var Payment = /** @class */ (function () {
|
|
|
339
887
|
});
|
|
340
888
|
};
|
|
341
889
|
/**
|
|
342
|
-
* Remove a payment
|
|
890
|
+
* Remove a payment link
|
|
343
891
|
*/
|
|
344
|
-
Payment.prototype.
|
|
892
|
+
Payment.prototype.removePaymentLink = function (req, config) {
|
|
345
893
|
var _a, _b;
|
|
346
894
|
return __awaiter(this, void 0, void 0, function () {
|
|
347
|
-
var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
895
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
348
896
|
return __generator(this, function (_c) {
|
|
349
897
|
switch (_c.label) {
|
|
350
898
|
case 0:
|
|
351
899
|
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
352
|
-
req = new operations.
|
|
900
|
+
req = new operations.RemovePaymentLinkRequest(req);
|
|
353
901
|
}
|
|
354
902
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
355
|
-
operationUrl = utils.generateURL(baseURL, "/
|
|
903
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link/{id}", req);
|
|
356
904
|
client = this.sdkConfiguration.defaultClient;
|
|
357
|
-
|
|
358
|
-
|
|
905
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
906
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
907
|
+
return [4 /*yield*/, globalSecurity()];
|
|
908
|
+
case 1:
|
|
909
|
+
globalSecurity = _c.sent();
|
|
910
|
+
_c.label = 2;
|
|
911
|
+
case 2:
|
|
912
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
913
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
359
914
|
}
|
|
360
|
-
properties = utils.parseSecurityProperties(
|
|
915
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
361
916
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
362
917
|
headers["Accept"] = "application/json";
|
|
363
918
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
364
919
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
920
|
+
case 3:
|
|
921
|
+
httpRes = _c.sent();
|
|
922
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
923
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
924
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
925
|
+
}
|
|
926
|
+
res = new operations.RemovePaymentLinkResponse({
|
|
927
|
+
statusCode: httpRes.status,
|
|
928
|
+
contentType: responseContentType,
|
|
929
|
+
rawResponse: httpRes,
|
|
930
|
+
});
|
|
931
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
932
|
+
switch (true) {
|
|
933
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
934
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
935
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
936
|
+
default:
|
|
937
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
938
|
+
res.res = decodedRes;
|
|
939
|
+
}
|
|
940
|
+
else {
|
|
941
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
942
|
+
}
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
return [2 /*return*/, res];
|
|
946
|
+
}
|
|
947
|
+
});
|
|
948
|
+
});
|
|
949
|
+
};
|
|
950
|
+
/**
|
|
951
|
+
* Remove a payment
|
|
952
|
+
*/
|
|
953
|
+
Payment.prototype.removePaymentPayment = function (req, config) {
|
|
954
|
+
var _a, _b;
|
|
955
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
956
|
+
var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
957
|
+
return __generator(this, function (_c) {
|
|
958
|
+
switch (_c.label) {
|
|
959
|
+
case 0:
|
|
960
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
961
|
+
req = new operations.RemovePaymentPaymentRequest(req);
|
|
962
|
+
}
|
|
963
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
964
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment/{id}", req);
|
|
965
|
+
client = this.sdkConfiguration.defaultClient;
|
|
966
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
967
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
968
|
+
return [4 /*yield*/, globalSecurity()];
|
|
365
969
|
case 1:
|
|
970
|
+
globalSecurity = _c.sent();
|
|
971
|
+
_c.label = 2;
|
|
972
|
+
case 2:
|
|
973
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
974
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
975
|
+
}
|
|
976
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
977
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
978
|
+
headers["Accept"] = "application/json";
|
|
979
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
980
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
|
|
981
|
+
case 3:
|
|
366
982
|
httpRes = _c.sent();
|
|
367
983
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
368
984
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
369
985
|
throw new Error("status code not found in response: ".concat(httpRes));
|
|
370
986
|
}
|
|
371
|
-
res = new operations.
|
|
987
|
+
res = new operations.RemovePaymentPaymentResponse({
|
|
372
988
|
statusCode: httpRes.status,
|
|
373
989
|
contentType: responseContentType,
|
|
374
990
|
rawResponse: httpRes,
|
|
@@ -393,24 +1009,24 @@ var Payment = /** @class */ (function () {
|
|
|
393
1009
|
});
|
|
394
1010
|
};
|
|
395
1011
|
/**
|
|
396
|
-
* Update a payment
|
|
1012
|
+
* Update a payment link
|
|
397
1013
|
*/
|
|
398
|
-
Payment.prototype.
|
|
1014
|
+
Payment.prototype.updatePaymentLink = function (req, config) {
|
|
399
1015
|
var _a, _b;
|
|
400
1016
|
return __awaiter(this, void 0, void 0, function () {
|
|
401
|
-
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1017
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
402
1018
|
var _d;
|
|
403
1019
|
return __generator(this, function (_e) {
|
|
404
1020
|
switch (_e.label) {
|
|
405
1021
|
case 0:
|
|
406
1022
|
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
407
|
-
req = new operations.
|
|
1023
|
+
req = new operations.UpdatePaymentLinkRequest(req);
|
|
408
1024
|
}
|
|
409
1025
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
410
|
-
operationUrl = utils.generateURL(baseURL, "/
|
|
1026
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/link/{id}", req);
|
|
411
1027
|
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
412
1028
|
try {
|
|
413
|
-
_d = __read(utils.serializeRequestBody(req, "
|
|
1029
|
+
_d = __read(utils.serializeRequestBody(req, "paymentLink", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
414
1030
|
}
|
|
415
1031
|
catch (e) {
|
|
416
1032
|
if (e instanceof Error) {
|
|
@@ -418,21 +1034,99 @@ var Payment = /** @class */ (function () {
|
|
|
418
1034
|
}
|
|
419
1035
|
}
|
|
420
1036
|
client = this.sdkConfiguration.defaultClient;
|
|
421
|
-
|
|
422
|
-
|
|
1037
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1038
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1039
|
+
return [4 /*yield*/, globalSecurity()];
|
|
1040
|
+
case 1:
|
|
1041
|
+
globalSecurity = _e.sent();
|
|
1042
|
+
_e.label = 2;
|
|
1043
|
+
case 2:
|
|
1044
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1045
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
423
1046
|
}
|
|
424
|
-
properties = utils.parseSecurityProperties(
|
|
1047
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
425
1048
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
426
1049
|
headers["Accept"] = "application/json";
|
|
427
1050
|
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
428
1051
|
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1052
|
+
case 3:
|
|
1053
|
+
httpRes = _e.sent();
|
|
1054
|
+
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
1055
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
1056
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
1057
|
+
}
|
|
1058
|
+
res = new operations.UpdatePaymentLinkResponse({
|
|
1059
|
+
statusCode: httpRes.status,
|
|
1060
|
+
contentType: responseContentType,
|
|
1061
|
+
rawResponse: httpRes,
|
|
1062
|
+
});
|
|
1063
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
1064
|
+
switch (true) {
|
|
1065
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
1066
|
+
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1067
|
+
res.paymentLink = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentLink);
|
|
1068
|
+
}
|
|
1069
|
+
else {
|
|
1070
|
+
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
1071
|
+
}
|
|
1072
|
+
break;
|
|
1073
|
+
case ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 400 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 500) ||
|
|
1074
|
+
((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) >= 500 && (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) < 600):
|
|
1075
|
+
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1076
|
+
}
|
|
1077
|
+
return [2 /*return*/, res];
|
|
1078
|
+
}
|
|
1079
|
+
});
|
|
1080
|
+
});
|
|
1081
|
+
};
|
|
1082
|
+
/**
|
|
1083
|
+
* Update a payment
|
|
1084
|
+
*/
|
|
1085
|
+
Payment.prototype.updatePaymentPayment = function (req, config) {
|
|
1086
|
+
var _a, _b;
|
|
1087
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1088
|
+
var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
|
|
1089
|
+
var _d;
|
|
1090
|
+
return __generator(this, function (_e) {
|
|
1091
|
+
switch (_e.label) {
|
|
1092
|
+
case 0:
|
|
1093
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
1094
|
+
req = new operations.UpdatePaymentPaymentRequest(req);
|
|
1095
|
+
}
|
|
1096
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
1097
|
+
operationUrl = utils.generateURL(baseURL, "/payment/{connection_id}/payment/{id}", req);
|
|
1098
|
+
_c = __read([{}, null], 2), reqBodyHeaders = _c[0], reqBody = _c[1];
|
|
1099
|
+
try {
|
|
1100
|
+
_d = __read(utils.serializeRequestBody(req, "paymentPayment", "json"), 2), reqBodyHeaders = _d[0], reqBody = _d[1];
|
|
1101
|
+
}
|
|
1102
|
+
catch (e) {
|
|
1103
|
+
if (e instanceof Error) {
|
|
1104
|
+
throw new Error("Error serializing request body, cause: ".concat(e.message));
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
client = this.sdkConfiguration.defaultClient;
|
|
1108
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
1109
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
1110
|
+
return [4 /*yield*/, globalSecurity()];
|
|
429
1111
|
case 1:
|
|
1112
|
+
globalSecurity = _e.sent();
|
|
1113
|
+
_e.label = 2;
|
|
1114
|
+
case 2:
|
|
1115
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
1116
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
1117
|
+
}
|
|
1118
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
1119
|
+
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
1120
|
+
headers["Accept"] = "application/json";
|
|
1121
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
1122
|
+
return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
|
|
1123
|
+
case 3:
|
|
430
1124
|
httpRes = _e.sent();
|
|
431
1125
|
responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
|
|
432
1126
|
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
433
1127
|
throw new Error("status code not found in response: ".concat(httpRes));
|
|
434
1128
|
}
|
|
435
|
-
res = new operations.
|
|
1129
|
+
res = new operations.UpdatePaymentPaymentResponse({
|
|
436
1130
|
statusCode: httpRes.status,
|
|
437
1131
|
contentType: responseContentType,
|
|
438
1132
|
rawResponse: httpRes,
|
|
@@ -441,7 +1135,7 @@ var Payment = /** @class */ (function () {
|
|
|
441
1135
|
switch (true) {
|
|
442
1136
|
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
443
1137
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
444
|
-
res.
|
|
1138
|
+
res.paymentPayment = utils.objectToClass(JSON.parse(decodedRes), shared.PaymentPayment);
|
|
445
1139
|
}
|
|
446
1140
|
else {
|
|
447
1141
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|