@gr4vy/sdk 1.6.10 → 1.7.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/examples/package-lock.json +1 -1
- package/funcs/transactionsCreate.d.ts +1 -1
- package/funcs/transactionsCreate.d.ts.map +1 -1
- package/funcs/transactionsCreate.js +1 -1
- package/funcs/transactionsCreate.js.map +1 -1
- package/funcs/transactionsGet.d.ts +1 -1
- package/funcs/transactionsGet.d.ts.map +1 -1
- package/funcs/transactionsGet.js +1 -1
- package/funcs/transactionsGet.js.map +1 -1
- package/funcs/transactionsSync.d.ts +1 -1
- package/funcs/transactionsSync.d.ts.map +1 -1
- package/funcs/transactionsSync.js +1 -1
- package/funcs/transactionsSync.js.map +1 -1
- package/funcs/transactionsUpdate.d.ts +1 -1
- package/funcs/transactionsUpdate.d.ts.map +1 -1
- package/funcs/transactionsUpdate.js +1 -1
- package/funcs/transactionsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/auditlogentries.d.ts +2 -2
- package/models/components/auditlogentries.d.ts.map +1 -1
- package/models/components/auditlogentries.js +2 -2
- package/models/components/auditlogentries.js.map +1 -1
- package/models/components/{auditlogentryoutput.d.ts → auditlogentry.d.ts} +4 -4
- package/models/components/auditlogentry.d.ts.map +1 -0
- package/models/components/{auditlogentryoutput.js → auditlogentry.js} +6 -6
- package/models/components/auditlogentry.js.map +1 -0
- package/models/components/{billingdetailsinput.d.ts → billingdetails.d.ts} +10 -5
- package/models/components/billingdetails.d.ts.map +1 -0
- package/models/components/{billingdetailsoutput.js → billingdetails.js} +27 -6
- package/models/components/billingdetails.js.map +1 -0
- package/models/components/buyer.d.ts +2 -2
- package/models/components/buyer.d.ts.map +1 -1
- package/models/components/buyer.js +2 -2
- package/models/components/buyer.js.map +1 -1
- package/models/components/buyercreate.d.ts +3 -3
- package/models/components/buyercreate.d.ts.map +1 -1
- package/models/components/buyercreate.js +2 -2
- package/models/components/buyercreate.js.map +1 -1
- package/models/components/buyerupdate.d.ts +3 -3
- package/models/components/buyerupdate.d.ts.map +1 -1
- package/models/components/buyerupdate.js +2 -2
- package/models/components/buyerupdate.js.map +1 -1
- package/models/components/checkoutsession.d.ts +4 -4
- package/models/components/checkoutsession.d.ts.map +1 -1
- package/models/components/checkoutsession.js +4 -4
- package/models/components/checkoutsession.js.map +1 -1
- package/models/components/checkoutsessioncreate.d.ts +3 -3
- package/models/components/checkoutsessioncreate.d.ts.map +1 -1
- package/models/components/checkoutsessioncreate.js +2 -2
- package/models/components/checkoutsessioncreate.js.map +1 -1
- package/models/components/{checkoutsessionpaymentmethodoutput.d.ts → checkoutsessionpaymentmethod.d.ts} +4 -4
- package/models/components/checkoutsessionpaymentmethod.d.ts.map +1 -0
- package/models/components/{checkoutsessionpaymentmethodoutput.js → checkoutsessionpaymentmethod.js} +6 -6
- package/models/components/checkoutsessionpaymentmethod.js.map +1 -0
- package/models/components/{guestbuyerinput.d.ts → guestbuyer.d.ts} +13 -8
- package/models/components/guestbuyer.d.ts.map +1 -0
- package/models/components/{guestbuyeroutput.js → guestbuyer.js} +28 -8
- package/models/components/guestbuyer.js.map +1 -0
- package/models/components/index.d.ts +15 -16
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +15 -16
- package/models/components/index.js.map +1 -1
- package/models/components/paymentlink.d.ts +2 -2
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js +2 -2
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkcreate.d.ts +3 -3
- package/models/components/paymentlinkcreate.d.ts.map +1 -1
- package/models/components/paymentlinkcreate.js +2 -2
- package/models/components/paymentlinkcreate.js.map +1 -1
- package/models/components/paymentmethodsummaries.d.ts +2 -2
- package/models/components/paymentmethodsummaries.d.ts.map +1 -1
- package/models/components/paymentmethodsummaries.js +2 -2
- package/models/components/paymentmethodsummaries.js.map +1 -1
- package/models/components/{paymentmethodsummaryoutput.d.ts → paymentmethodsummary.d.ts} +4 -4
- package/models/components/paymentmethodsummary.d.ts.map +1 -0
- package/models/components/{paymentmethodsummaryoutput.js → paymentmethodsummary.js} +6 -6
- package/models/components/paymentmethodsummary.js.map +1 -0
- package/models/components/{paymentoptionoutput.d.ts → paymentoption.d.ts} +4 -4
- package/models/components/paymentoption.d.ts.map +1 -0
- package/models/components/{paymentoptionoutput.js → paymentoption.js} +6 -6
- package/models/components/paymentoption.js.map +1 -0
- package/models/components/paymentoptions.d.ts +2 -2
- package/models/components/paymentoptions.d.ts.map +1 -1
- package/models/components/paymentoptions.js +2 -2
- package/models/components/paymentoptions.js.map +1 -1
- package/models/components/payoutcreate.d.ts +3 -3
- package/models/components/payoutcreate.d.ts.map +1 -1
- package/models/components/payoutcreate.js +2 -2
- package/models/components/payoutcreate.js.map +1 -1
- package/models/components/payoutsummary.d.ts +4 -4
- package/models/components/payoutsummary.d.ts.map +1 -1
- package/models/components/payoutsummary.js +4 -4
- package/models/components/payoutsummary.js.map +1 -1
- package/models/components/{transactionoutput.d.ts → transaction.d.ts} +10 -10
- package/models/components/transaction.d.ts.map +1 -0
- package/models/components/{transactionoutput.js → transaction.js} +12 -13
- package/models/components/transaction.js.map +1 -0
- package/models/components/{transactionbuyeroutput.d.ts → transactionbuyer.d.ts} +6 -6
- package/models/components/transactionbuyer.d.ts.map +1 -0
- package/models/components/{transactionbuyeroutput.js → transactionbuyer.js} +8 -8
- package/models/components/transactionbuyer.js.map +1 -0
- package/models/components/transactioncancel.d.ts +2 -2
- package/models/components/transactioncancel.d.ts.map +1 -1
- package/models/components/transactioncancel.js +2 -2
- package/models/components/transactioncancel.js.map +1 -1
- package/models/components/{transactioncaptureoutput.d.ts → transactioncapture.d.ts} +6 -6
- package/models/components/transactioncapture.d.ts.map +1 -0
- package/models/components/{transactioncaptureoutput.js → transactioncapture.js} +8 -8
- package/models/components/transactioncapture.js.map +1 -0
- package/models/components/transactioncreate.d.ts +3 -3
- package/models/components/transactioncreate.d.ts.map +1 -1
- package/models/components/transactioncreate.js +2 -2
- package/models/components/transactioncreate.js.map +1 -1
- package/models/components/{transactioneventoutput.d.ts → transactionevent.d.ts} +6 -7
- package/models/components/transactionevent.d.ts.map +1 -0
- package/models/components/{transactioneventoutput.js → transactionevent.js} +8 -7
- package/models/components/transactionevent.js.map +1 -0
- package/models/components/transactioneventcontext.d.ts +14 -0
- package/models/components/transactioneventcontext.d.ts.map +1 -0
- package/models/components/transactioneventcontext.js +57 -0
- package/models/components/transactioneventcontext.js.map +1 -0
- package/models/components/transactionevents.d.ts +2 -2
- package/models/components/transactionevents.d.ts.map +1 -1
- package/models/components/transactionevents.js +2 -2
- package/models/components/transactionevents.js.map +1 -1
- package/models/components/{transactionpaymentmethodoutput.d.ts → transactionpaymentmethod.d.ts} +4 -4
- package/models/components/transactionpaymentmethod.d.ts.map +1 -0
- package/models/components/{transactionpaymentmethodoutput.js → transactionpaymentmethod.js} +6 -6
- package/models/components/transactionpaymentmethod.js.map +1 -0
- package/models/components/transactionsummaries.d.ts +2 -2
- package/models/components/transactionsummaries.d.ts.map +1 -1
- package/models/components/transactionsummaries.js +2 -2
- package/models/components/transactionsummaries.js.map +1 -1
- package/models/components/{transactionsummaryoutput.d.ts → transactionsummary.d.ts} +8 -8
- package/models/components/transactionsummary.d.ts.map +1 -0
- package/models/components/{transactionsummaryoutput.js → transactionsummary.js} +10 -11
- package/models/components/transactionsummary.js.map +1 -0
- package/models/components/{transactionthreedsecuresummaryoutput.d.ts → transactionthreedsecuresummary.d.ts} +4 -4
- package/models/components/transactionthreedsecuresummary.d.ts.map +1 -0
- package/models/components/{transactionthreedsecuresummaryoutput.js → transactionthreedsecuresummary.js} +6 -6
- package/models/components/transactionthreedsecuresummary.js.map +1 -0
- package/models/components/{transactionvoidoutput.d.ts → transactionvoid.d.ts} +6 -6
- package/models/components/transactionvoid.d.ts.map +1 -0
- package/models/components/{transactionvoidoutput.js → transactionvoid.js} +8 -8
- package/models/components/transactionvoid.js.map +1 -0
- package/models/operations/capturetransaction.d.ts +13 -13
- package/models/operations/capturetransaction.d.ts.map +1 -1
- package/models/operations/capturetransaction.js +13 -13
- package/models/operations/capturetransaction.js.map +1 -1
- package/models/operations/voidtransaction.d.ts +13 -13
- package/models/operations/voidtransaction.d.ts.map +1 -1
- package/models/operations/voidtransaction.js +13 -13
- package/models/operations/voidtransaction.js.map +1 -1
- package/package.json +1 -1
- package/sdk/transactions.d.ts +4 -4
- package/sdk/transactions.d.ts.map +1 -1
- package/src/funcs/transactionsCreate.ts +4 -4
- package/src/funcs/transactionsGet.ts +4 -4
- package/src/funcs/transactionsSync.ts +4 -4
- package/src/funcs/transactionsUpdate.ts +4 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/auditlogentries.ts +3 -6
- package/src/models/components/{auditlogentryoutput.ts → auditlogentry.ts} +7 -7
- package/src/models/components/{billingdetailsinput.ts → billingdetails.ts} +46 -11
- package/src/models/components/buyer.ts +5 -5
- package/src/models/components/buyercreate.ts +7 -7
- package/src/models/components/buyerupdate.ts +7 -7
- package/src/models/components/checkoutsession.ts +8 -11
- package/src/models/components/checkoutsessioncreate.ts +7 -7
- package/src/models/components/{checkoutsessionpaymentmethodoutput.ts → checkoutsessionpaymentmethod.ts} +7 -8
- package/src/models/components/guestbuyer.ts +107 -0
- package/src/models/components/index.ts +15 -16
- package/src/models/components/paymentlink.ts +5 -5
- package/src/models/components/paymentlinkcreate.ts +7 -7
- package/src/models/components/paymentmethodsummaries.ts +5 -5
- package/src/models/components/{paymentmethodsummaryoutput.ts → paymentmethodsummary.ts} +7 -7
- package/src/models/components/{paymentoptionoutput.ts → paymentoption.ts} +7 -7
- package/src/models/components/paymentoptions.ts +3 -6
- package/src/models/components/payoutcreate.ts +7 -7
- package/src/models/components/payoutsummary.ts +10 -10
- package/src/models/components/{transactionoutput.ts → transaction.ts} +22 -23
- package/src/models/components/{transactionbuyeroutput.ts → transactionbuyer.ts} +12 -12
- package/src/models/components/transactioncancel.ts +3 -6
- package/src/models/components/{transactioncaptureoutput.ts → transactioncapture.ts} +10 -13
- package/src/models/components/transactioncreate.ts +7 -7
- package/src/models/components/{transactioneventoutput.ts → transactionevent.ts} +13 -9
- package/src/models/components/transactioneventcontext.ts +47 -0
- package/src/models/components/transactionevents.ts +5 -5
- package/src/models/components/{transactionpaymentmethodoutput.ts → transactionpaymentmethod.ts} +7 -7
- package/src/models/components/transactionsummaries.ts +5 -5
- package/src/models/components/{transactionsummaryoutput.ts → transactionsummary.ts} +17 -18
- package/src/models/components/{transactionthreedsecuresummaryoutput.ts → transactionthreedsecuresummary.ts} +7 -8
- package/src/models/components/{transactionvoidoutput.ts → transactionvoid.ts} +10 -13
- package/src/models/operations/capturetransaction.ts +26 -26
- package/src/models/operations/voidtransaction.ts +26 -26
- package/src/sdk/transactions.ts +4 -4
- package/models/components/auditlogentryoutput.d.ts.map +0 -1
- package/models/components/auditlogentryoutput.js.map +0 -1
- package/models/components/billingdetailsinput.d.ts.map +0 -1
- package/models/components/billingdetailsinput.js +0 -65
- package/models/components/billingdetailsinput.js.map +0 -1
- package/models/components/billingdetailsoutput.d.ts +0 -35
- package/models/components/billingdetailsoutput.d.ts.map +0 -1
- package/models/components/billingdetailsoutput.js.map +0 -1
- package/models/components/checkoutsessionpaymentmethodoutput.d.ts.map +0 -1
- package/models/components/checkoutsessionpaymentmethodoutput.js.map +0 -1
- package/models/components/guestbuyerinput.d.ts.map +0 -1
- package/models/components/guestbuyerinput.js +0 -64
- package/models/components/guestbuyerinput.js.map +0 -1
- package/models/components/guestbuyeroutput.d.ts +0 -31
- package/models/components/guestbuyeroutput.d.ts.map +0 -1
- package/models/components/guestbuyeroutput.js.map +0 -1
- package/models/components/paymentmethodsummaryoutput.d.ts.map +0 -1
- package/models/components/paymentmethodsummaryoutput.js.map +0 -1
- package/models/components/paymentoptionoutput.d.ts.map +0 -1
- package/models/components/paymentoptionoutput.js.map +0 -1
- package/models/components/transactionbuyeroutput.d.ts.map +0 -1
- package/models/components/transactionbuyeroutput.js.map +0 -1
- package/models/components/transactioncaptureoutput.d.ts.map +0 -1
- package/models/components/transactioncaptureoutput.js.map +0 -1
- package/models/components/transactioneventoutput.d.ts.map +0 -1
- package/models/components/transactioneventoutput.js.map +0 -1
- package/models/components/transactionoutput.d.ts.map +0 -1
- package/models/components/transactionoutput.js.map +0 -1
- package/models/components/transactionpaymentmethodoutput.d.ts.map +0 -1
- package/models/components/transactionpaymentmethodoutput.js.map +0 -1
- package/models/components/transactionsummaryoutput.d.ts.map +0 -1
- package/models/components/transactionsummaryoutput.js.map +0 -1
- package/models/components/transactionthreedsecuresummaryoutput.d.ts.map +0 -1
- package/models/components/transactionthreedsecuresummaryoutput.js.map +0 -1
- package/models/components/transactionvoidoutput.d.ts.map +0 -1
- package/models/components/transactionvoidoutput.js.map +0 -1
- package/src/models/components/billingdetailsoutput.ts +0 -70
- package/src/models/components/guestbuyerinput.ts +0 -75
- package/src/models/components/guestbuyeroutput.ts +0 -71
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transactionthreedsecuresummaryoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/transactionthreedsecuresummaryoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,cAAc,CAAC;AAE/D,MAAM,MAAM,oCAAoC,GAAG;IACjD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,YAAY,CAAC,EAAE,kBAAkB,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IACtE;;OAEG;IACH,SAAS,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CACoE,CAAC;AAE9E,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD;AAED,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,wBAAgB,4CAA4C,CAC1D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transactionthreedsecuresummaryoutput.js","sourceRoot":"","sources":["../../src/models/components/transactionthreedsecuresummaryoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DH,oDAQC;AAsBD,oGASC;AApGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,mEAGiC;AACjC,iEAGgC;AAChC,mEAGiC;AACjC,mEAGiC;AACjC,2DAG6B;AA8B7B,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,KAAK,CAAC,CAAC,wDAAgC,EAAE,gDAA4B,CAAC,CAAC,CAAC;AAE9E,SAAgB,oBAAoB,CAClC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,wDAAgC,CAAC,CAAC,QAAQ,EAAE;IAC/D,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,wDAAgC,CAAC,CAAC,QAAQ,EAAE;IAC/D,aAAa,EAAE,CAAC,CAAC,QAAQ,CACvB,CAAC,CAAC,KAAK,CAAC,CAAC,wDAAgC,EAAE,gDAA4B,CAAC,CAAC,CAC1E,CAAC,QAAQ,EAAE;IACZ,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,sDAA+B,CAAC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;QAC/B,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transactionvoidoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/transactionvoidoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AAEvE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACtC,MAAM,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transactionvoidoutput.js","sourceRoot":"","sources":["../../src/models/components/transactionvoidoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDH,sEAQC;AA9DD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAGgC;AAChC,mDAAuE;AA0BvE,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC/D,MAAM,EAAE,wCAAwB;IAChC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACzC,wBAAwB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChD,WAAW,EAAE,sDAA+B;CAC7C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,mBAAmB,EAAE,iBAAiB;QACtC,0BAA0B,EAAE,wBAAwB;KACrD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import { Address, Address$inboundSchema } from "./address.js";
|
|
11
|
-
import { TaxId, TaxId$inboundSchema } from "./taxid.js";
|
|
12
|
-
|
|
13
|
-
export type BillingDetailsOutput = {
|
|
14
|
-
/**
|
|
15
|
-
* The first name(s) or given name for the buyer.
|
|
16
|
-
*/
|
|
17
|
-
firstName?: string | null | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* The last name, or family name, of the buyer.
|
|
20
|
-
*/
|
|
21
|
-
lastName?: string | null | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* The email address for the buyer.
|
|
24
|
-
*/
|
|
25
|
-
emailAddress?: string | null | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* The phone number for the buyer which should be formatted according to the E164 number standard.
|
|
28
|
-
*/
|
|
29
|
-
phoneNumber?: string | null | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* The billing address for the buyer.
|
|
32
|
-
*/
|
|
33
|
-
address?: Address | null | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* The tax ID information associated with the billing details.
|
|
36
|
-
*/
|
|
37
|
-
taxId?: TaxId | null | undefined;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const BillingDetailsOutput$inboundSchema: z.ZodType<
|
|
42
|
-
BillingDetailsOutput,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
unknown
|
|
45
|
-
> = z.object({
|
|
46
|
-
first_name: z.nullable(z.string()).optional(),
|
|
47
|
-
last_name: z.nullable(z.string()).optional(),
|
|
48
|
-
email_address: z.nullable(z.string()).optional(),
|
|
49
|
-
phone_number: z.nullable(z.string()).optional(),
|
|
50
|
-
address: z.nullable(Address$inboundSchema).optional(),
|
|
51
|
-
tax_id: z.nullable(TaxId$inboundSchema).optional(),
|
|
52
|
-
}).transform((v) => {
|
|
53
|
-
return remap$(v, {
|
|
54
|
-
"first_name": "firstName",
|
|
55
|
-
"last_name": "lastName",
|
|
56
|
-
"email_address": "emailAddress",
|
|
57
|
-
"phone_number": "phoneNumber",
|
|
58
|
-
"tax_id": "taxId",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
export function billingDetailsOutputFromJSON(
|
|
63
|
-
jsonString: string,
|
|
64
|
-
): SafeParseResult<BillingDetailsOutput, SDKValidationError> {
|
|
65
|
-
return safeParse(
|
|
66
|
-
jsonString,
|
|
67
|
-
(x) => BillingDetailsOutput$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
-
`Failed to parse 'BillingDetailsOutput' from JSON`,
|
|
69
|
-
);
|
|
70
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
8
|
-
BillingDetailsInput,
|
|
9
|
-
BillingDetailsInput$Outbound,
|
|
10
|
-
BillingDetailsInput$outboundSchema,
|
|
11
|
-
} from "./billingdetailsinput.js";
|
|
12
|
-
import {
|
|
13
|
-
ShippingDetailsCreate,
|
|
14
|
-
ShippingDetailsCreate$Outbound,
|
|
15
|
-
ShippingDetailsCreate$outboundSchema,
|
|
16
|
-
} from "./shippingdetailscreate.js";
|
|
17
|
-
|
|
18
|
-
export type GuestBuyerInput = {
|
|
19
|
-
/**
|
|
20
|
-
* The display name for the buyer.
|
|
21
|
-
*/
|
|
22
|
-
displayName?: string | null | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* The merchant identifier for this buyer.
|
|
25
|
-
*/
|
|
26
|
-
externalIdentifier?: string | null | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* The billing name, address, email, and other fields for this buyer.
|
|
29
|
-
*/
|
|
30
|
-
billingDetails?: BillingDetailsInput | null | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* The buyer account number
|
|
33
|
-
*/
|
|
34
|
-
accountNumber?: string | null | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* The optional shipping details for this buyer.
|
|
37
|
-
*/
|
|
38
|
-
shippingDetails?: ShippingDetailsCreate | null | undefined;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export type GuestBuyerInput$Outbound = {
|
|
43
|
-
display_name?: string | null | undefined;
|
|
44
|
-
external_identifier?: string | null | undefined;
|
|
45
|
-
billing_details?: BillingDetailsInput$Outbound | null | undefined;
|
|
46
|
-
account_number?: string | null | undefined;
|
|
47
|
-
shipping_details?: ShippingDetailsCreate$Outbound | null | undefined;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const GuestBuyerInput$outboundSchema: z.ZodType<
|
|
52
|
-
GuestBuyerInput$Outbound,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
GuestBuyerInput
|
|
55
|
-
> = z.object({
|
|
56
|
-
displayName: z.nullable(z.string()).optional(),
|
|
57
|
-
externalIdentifier: z.nullable(z.string()).optional(),
|
|
58
|
-
billingDetails: z.nullable(BillingDetailsInput$outboundSchema).optional(),
|
|
59
|
-
accountNumber: z.nullable(z.string()).optional(),
|
|
60
|
-
shippingDetails: z.nullable(ShippingDetailsCreate$outboundSchema).optional(),
|
|
61
|
-
}).transform((v) => {
|
|
62
|
-
return remap$(v, {
|
|
63
|
-
displayName: "display_name",
|
|
64
|
-
externalIdentifier: "external_identifier",
|
|
65
|
-
billingDetails: "billing_details",
|
|
66
|
-
accountNumber: "account_number",
|
|
67
|
-
shippingDetails: "shipping_details",
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export function guestBuyerInputToJSON(
|
|
72
|
-
guestBuyerInput: GuestBuyerInput,
|
|
73
|
-
): string {
|
|
74
|
-
return JSON.stringify(GuestBuyerInput$outboundSchema.parse(guestBuyerInput));
|
|
75
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
BillingDetailsOutput,
|
|
12
|
-
BillingDetailsOutput$inboundSchema,
|
|
13
|
-
} from "./billingdetailsoutput.js";
|
|
14
|
-
import {
|
|
15
|
-
ShippingDetailsCreate,
|
|
16
|
-
ShippingDetailsCreate$inboundSchema,
|
|
17
|
-
} from "./shippingdetailscreate.js";
|
|
18
|
-
|
|
19
|
-
export type GuestBuyerOutput = {
|
|
20
|
-
/**
|
|
21
|
-
* The display name for the buyer.
|
|
22
|
-
*/
|
|
23
|
-
displayName?: string | null | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* The merchant identifier for this buyer.
|
|
26
|
-
*/
|
|
27
|
-
externalIdentifier?: string | null | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* The billing name, address, email, and other fields for this buyer.
|
|
30
|
-
*/
|
|
31
|
-
billingDetails?: BillingDetailsOutput | null | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* The buyer account number
|
|
34
|
-
*/
|
|
35
|
-
accountNumber?: string | null | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* The optional shipping details for this buyer.
|
|
38
|
-
*/
|
|
39
|
-
shippingDetails?: ShippingDetailsCreate | null | undefined;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const GuestBuyerOutput$inboundSchema: z.ZodType<
|
|
44
|
-
GuestBuyerOutput,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
unknown
|
|
47
|
-
> = z.object({
|
|
48
|
-
display_name: z.nullable(z.string()).optional(),
|
|
49
|
-
external_identifier: z.nullable(z.string()).optional(),
|
|
50
|
-
billing_details: z.nullable(BillingDetailsOutput$inboundSchema).optional(),
|
|
51
|
-
account_number: z.nullable(z.string()).optional(),
|
|
52
|
-
shipping_details: z.nullable(ShippingDetailsCreate$inboundSchema).optional(),
|
|
53
|
-
}).transform((v) => {
|
|
54
|
-
return remap$(v, {
|
|
55
|
-
"display_name": "displayName",
|
|
56
|
-
"external_identifier": "externalIdentifier",
|
|
57
|
-
"billing_details": "billingDetails",
|
|
58
|
-
"account_number": "accountNumber",
|
|
59
|
-
"shipping_details": "shippingDetails",
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
export function guestBuyerOutputFromJSON(
|
|
64
|
-
jsonString: string,
|
|
65
|
-
): SafeParseResult<GuestBuyerOutput, SDKValidationError> {
|
|
66
|
-
return safeParse(
|
|
67
|
-
jsonString,
|
|
68
|
-
(x) => GuestBuyerOutput$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
-
`Failed to parse 'GuestBuyerOutput' from JSON`,
|
|
70
|
-
);
|
|
71
|
-
}
|