@paygentic/sdk 0.7.14 → 0.7.16
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 +45 -3
- package/dist/commonjs/funcs/externalReferencesCreateExternalReference.d.ts +16 -0
- package/dist/commonjs/funcs/externalReferencesCreateExternalReference.d.ts.map +1 -0
- package/dist/commonjs/funcs/externalReferencesCreateExternalReference.js +116 -0
- package/dist/commonjs/funcs/externalReferencesCreateExternalReference.js.map +1 -0
- package/dist/commonjs/funcs/externalReferencesDeleteExternalReference.d.ts +15 -0
- package/dist/commonjs/funcs/externalReferencesDeleteExternalReference.d.ts.map +1 -0
- package/dist/commonjs/funcs/externalReferencesDeleteExternalReference.js +121 -0
- package/dist/commonjs/funcs/externalReferencesDeleteExternalReference.js.map +1 -0
- package/dist/commonjs/funcs/externalReferencesGetExternalReference.d.ts +16 -0
- package/dist/commonjs/funcs/externalReferencesGetExternalReference.d.ts.map +1 -0
- package/dist/commonjs/funcs/externalReferencesGetExternalReference.js +121 -0
- package/dist/commonjs/funcs/externalReferencesGetExternalReference.js.map +1 -0
- package/dist/commonjs/funcs/externalReferencesListExternalReferences.d.ts +15 -0
- package/dist/commonjs/funcs/externalReferencesListExternalReferences.d.ts.map +1 -0
- package/dist/commonjs/funcs/externalReferencesListExternalReferences.js +124 -0
- package/dist/commonjs/funcs/externalReferencesListExternalReferences.js.map +1 -0
- package/dist/commonjs/funcs/externalReferencesUpdateExternalReference.d.ts +16 -0
- package/dist/commonjs/funcs/externalReferencesUpdateExternalReference.d.ts.map +1 -0
- package/dist/commonjs/funcs/externalReferencesUpdateExternalReference.js +122 -0
- package/dist/commonjs/funcs/externalReferencesUpdateExternalReference.js.map +1 -0
- package/dist/commonjs/funcs/invoicesV2List.js +1 -0
- package/dist/commonjs/funcs/invoicesV2List.js.map +1 -1
- package/dist/commonjs/funcs/itemsCreateItem.d.ts +16 -0
- package/dist/commonjs/funcs/itemsCreateItem.d.ts.map +1 -0
- package/dist/commonjs/funcs/itemsCreateItem.js +116 -0
- package/dist/commonjs/funcs/itemsCreateItem.js.map +1 -0
- package/dist/commonjs/funcs/itemsDeleteItem.d.ts +15 -0
- package/dist/commonjs/funcs/itemsDeleteItem.d.ts.map +1 -0
- package/dist/commonjs/funcs/itemsDeleteItem.js +121 -0
- package/dist/commonjs/funcs/itemsDeleteItem.js.map +1 -0
- package/dist/commonjs/funcs/itemsGetItem.d.ts +16 -0
- package/dist/commonjs/funcs/itemsGetItem.d.ts.map +1 -0
- package/dist/commonjs/funcs/itemsGetItem.js +121 -0
- package/dist/commonjs/funcs/itemsGetItem.js.map +1 -0
- package/dist/commonjs/funcs/itemsListItems.d.ts +15 -0
- package/dist/commonjs/funcs/itemsListItems.d.ts.map +1 -0
- package/dist/commonjs/funcs/itemsListItems.js +122 -0
- package/dist/commonjs/funcs/itemsListItems.js.map +1 -0
- package/dist/commonjs/funcs/itemsUpdateItem.d.ts +16 -0
- package/dist/commonjs/funcs/itemsUpdateItem.d.ts.map +1 -0
- package/dist/commonjs/funcs/itemsUpdateItem.js +122 -0
- package/dist/commonjs/funcs/itemsUpdateItem.js.map +1 -0
- package/dist/commonjs/funcs/merchantIntegrationsDisconnectMerchantIntegration.d.ts +19 -0
- package/dist/commonjs/funcs/merchantIntegrationsDisconnectMerchantIntegration.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantIntegrationsDisconnectMerchantIntegration.js +124 -0
- package/dist/commonjs/funcs/merchantIntegrationsDisconnectMerchantIntegration.js.map +1 -0
- package/dist/commonjs/funcs/merchantIntegrationsGetMerchantIntegration.d.ts +16 -0
- package/dist/commonjs/funcs/merchantIntegrationsGetMerchantIntegration.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantIntegrationsGetMerchantIntegration.js +121 -0
- package/dist/commonjs/funcs/merchantIntegrationsGetMerchantIntegration.js.map +1 -0
- package/dist/commonjs/funcs/merchantIntegrationsListMerchantIntegrations.d.ts +15 -0
- package/dist/commonjs/funcs/merchantIntegrationsListMerchantIntegrations.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantIntegrationsListMerchantIntegrations.js +122 -0
- package/dist/commonjs/funcs/merchantIntegrationsListMerchantIntegrations.js.map +1 -0
- package/dist/commonjs/funcs/merchantIntegrationsUpsertMerchantIntegration.d.ts +19 -0
- package/dist/commonjs/funcs/merchantIntegrationsUpsertMerchantIntegration.d.ts.map +1 -0
- package/dist/commonjs/funcs/merchantIntegrationsUpsertMerchantIntegration.js +119 -0
- package/dist/commonjs/funcs/merchantIntegrationsUpsertMerchantIntegration.js.map +1 -0
- package/dist/commonjs/funcs/salesforceListSalesforceAccounts.d.ts +18 -0
- package/dist/commonjs/funcs/salesforceListSalesforceAccounts.d.ts.map +1 -0
- package/dist/commonjs/funcs/salesforceListSalesforceAccounts.js +124 -0
- package/dist/commonjs/funcs/salesforceListSalesforceAccounts.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/entitytype.d.ts +18 -0
- package/dist/commonjs/models/entitytype.d.ts.map +1 -0
- package/dist/commonjs/models/entitytype.js +53 -0
- package/dist/commonjs/models/entitytype.js.map +1 -0
- package/dist/commonjs/models/externalreference.d.ts +50 -0
- package/dist/commonjs/models/externalreference.d.ts.map +1 -0
- package/dist/commonjs/models/externalreference.js +68 -0
- package/dist/commonjs/models/externalreference.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +6 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +6 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/invoice.d.ts +4 -0
- package/dist/commonjs/models/invoice.d.ts.map +1 -1
- package/dist/commonjs/models/invoice.js +1 -0
- package/dist/commonjs/models/invoice.js.map +1 -1
- package/dist/commonjs/models/item.d.ts +27 -0
- package/dist/commonjs/models/item.d.ts.map +1 -0
- package/dist/commonjs/models/item.js +65 -0
- package/dist/commonjs/models/item.js.map +1 -0
- package/dist/commonjs/models/lineitem.d.ts +4 -0
- package/dist/commonjs/models/lineitem.d.ts.map +1 -1
- package/dist/commonjs/models/lineitem.js +1 -0
- package/dist/commonjs/models/lineitem.js.map +1 -1
- package/dist/commonjs/models/merchantintegration.d.ts +52 -0
- package/dist/commonjs/models/merchantintegration.d.ts.map +1 -0
- package/dist/commonjs/models/merchantintegration.js +68 -0
- package/dist/commonjs/models/merchantintegration.js.map +1 -0
- package/dist/commonjs/models/merchantintegrationprovider.d.ts +17 -0
- package/dist/commonjs/models/merchantintegrationprovider.d.ts.map +1 -0
- package/dist/commonjs/models/merchantintegrationprovider.js +51 -0
- package/dist/commonjs/models/merchantintegrationprovider.js.map +1 -0
- package/dist/commonjs/models/merchantintegrationstatus.d.ts +19 -0
- package/dist/commonjs/models/merchantintegrationstatus.d.ts.map +1 -0
- package/dist/commonjs/models/merchantintegrationstatus.js +53 -0
- package/dist/commonjs/models/merchantintegrationstatus.js.map +1 -0
- package/dist/commonjs/models/operations/createexternalreference.d.ts +57 -0
- package/dist/commonjs/models/operations/createexternalreference.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createexternalreference.js +58 -0
- package/dist/commonjs/models/operations/createexternalreference.js.map +1 -0
- package/dist/commonjs/models/operations/createitem.d.ts +26 -0
- package/dist/commonjs/models/operations/createitem.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createitem.js +51 -0
- package/dist/commonjs/models/operations/createitem.js.map +1 -0
- package/dist/commonjs/models/operations/deleteexternalreference.d.ts +15 -0
- package/dist/commonjs/models/operations/deleteexternalreference.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deleteexternalreference.js +49 -0
- package/dist/commonjs/models/operations/deleteexternalreference.js.map +1 -0
- package/dist/commonjs/models/operations/deleteitem.d.ts +15 -0
- package/dist/commonjs/models/operations/deleteitem.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deleteitem.js +49 -0
- package/dist/commonjs/models/operations/deleteitem.js.map +1 -0
- package/dist/commonjs/models/operations/disconnectmerchantintegration.d.ts +15 -0
- package/dist/commonjs/models/operations/disconnectmerchantintegration.d.ts.map +1 -0
- package/dist/commonjs/models/operations/disconnectmerchantintegration.js +49 -0
- package/dist/commonjs/models/operations/disconnectmerchantintegration.js.map +1 -0
- package/dist/commonjs/models/operations/getexternalreference.d.ts +15 -0
- package/dist/commonjs/models/operations/getexternalreference.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getexternalreference.js +49 -0
- package/dist/commonjs/models/operations/getexternalreference.js.map +1 -0
- package/dist/commonjs/models/operations/getitem.d.ts +15 -0
- package/dist/commonjs/models/operations/getitem.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getitem.js +49 -0
- package/dist/commonjs/models/operations/getitem.js.map +1 -0
- package/dist/commonjs/models/operations/getmerchantintegration.d.ts +15 -0
- package/dist/commonjs/models/operations/getmerchantintegration.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getmerchantintegration.js +49 -0
- package/dist/commonjs/models/operations/getmerchantintegration.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +15 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +15 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listexternalreferences.d.ts +55 -0
- package/dist/commonjs/models/operations/listexternalreferences.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listexternalreferences.js +66 -0
- package/dist/commonjs/models/operations/listexternalreferences.js.map +1 -0
- package/dist/commonjs/models/operations/listinvoices.d.ts +5 -0
- package/dist/commonjs/models/operations/listinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listinvoices.js +1 -0
- package/dist/commonjs/models/operations/listinvoices.js.map +1 -1
- package/dist/commonjs/models/operations/listitems.d.ts +51 -0
- package/dist/commonjs/models/operations/listitems.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listitems.js +64 -0
- package/dist/commonjs/models/operations/listitems.js.map +1 -0
- package/dist/commonjs/models/operations/listmerchantintegrations.d.ts +40 -0
- package/dist/commonjs/models/operations/listmerchantintegrations.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listmerchantintegrations.js +63 -0
- package/dist/commonjs/models/operations/listmerchantintegrations.js.map +1 -0
- package/dist/commonjs/models/operations/listsalesforceaccounts.d.ts +39 -0
- package/dist/commonjs/models/operations/listsalesforceaccounts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listsalesforceaccounts.js +63 -0
- package/dist/commonjs/models/operations/listsalesforceaccounts.js.map +1 -0
- package/dist/commonjs/models/operations/updateexternalreference.d.ts +37 -0
- package/dist/commonjs/models/operations/updateexternalreference.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateexternalreference.js +66 -0
- package/dist/commonjs/models/operations/updateexternalreference.js.map +1 -0
- package/dist/commonjs/models/operations/updateitem.d.ts +33 -0
- package/dist/commonjs/models/operations/updateitem.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateitem.js +64 -0
- package/dist/commonjs/models/operations/updateitem.js.map +1 -0
- package/dist/commonjs/models/operations/upsertmerchantintegration.d.ts +43 -0
- package/dist/commonjs/models/operations/upsertmerchantintegration.d.ts.map +1 -0
- package/dist/commonjs/models/operations/upsertmerchantintegration.js +55 -0
- package/dist/commonjs/models/operations/upsertmerchantintegration.js.map +1 -0
- package/dist/commonjs/models/price.d.ts +4 -0
- package/dist/commonjs/models/price.d.ts.map +1 -1
- package/dist/commonjs/models/price.js +1 -0
- package/dist/commonjs/models/price.js.map +1 -1
- package/dist/commonjs/models/purchasegrantrequest.d.ts +1 -1
- package/dist/commonjs/models/schemasprice.d.ts +4 -0
- package/dist/commonjs/models/schemasprice.d.ts.map +1 -1
- package/dist/commonjs/models/schemasprice.js +1 -0
- package/dist/commonjs/models/schemasprice.js.map +1 -1
- package/dist/commonjs/models/subscription.d.ts +4 -0
- package/dist/commonjs/models/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/subscription.js +1 -0
- package/dist/commonjs/models/subscription.js.map +1 -1
- package/dist/commonjs/sdk/externalreferences.d.ts +26 -0
- package/dist/commonjs/sdk/externalreferences.d.ts.map +1 -0
- package/dist/commonjs/sdk/externalreferences.js +47 -0
- package/dist/commonjs/sdk/externalreferences.js.map +1 -0
- package/dist/commonjs/sdk/items.d.ts +26 -0
- package/dist/commonjs/sdk/items.d.ts.map +1 -0
- package/dist/commonjs/sdk/items.js +47 -0
- package/dist/commonjs/sdk/items.js.map +1 -0
- package/dist/commonjs/sdk/merchantintegrations.d.ts +28 -0
- package/dist/commonjs/sdk/merchantintegrations.d.ts.map +1 -0
- package/dist/commonjs/sdk/merchantintegrations.js +46 -0
- package/dist/commonjs/sdk/merchantintegrations.js.map +1 -0
- package/dist/commonjs/sdk/salesforce.d.ts +12 -0
- package/dist/commonjs/sdk/salesforce.d.ts.map +1 -0
- package/dist/commonjs/sdk/salesforce.js +22 -0
- package/dist/commonjs/sdk/salesforce.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +12 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +16 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/externalReferencesCreateExternalReference.d.ts +16 -0
- package/dist/esm/funcs/externalReferencesCreateExternalReference.d.ts.map +1 -0
- package/dist/esm/funcs/externalReferencesCreateExternalReference.js +80 -0
- package/dist/esm/funcs/externalReferencesCreateExternalReference.js.map +1 -0
- package/dist/esm/funcs/externalReferencesDeleteExternalReference.d.ts +15 -0
- package/dist/esm/funcs/externalReferencesDeleteExternalReference.d.ts.map +1 -0
- package/dist/esm/funcs/externalReferencesDeleteExternalReference.js +85 -0
- package/dist/esm/funcs/externalReferencesDeleteExternalReference.js.map +1 -0
- package/dist/esm/funcs/externalReferencesGetExternalReference.d.ts +16 -0
- package/dist/esm/funcs/externalReferencesGetExternalReference.d.ts.map +1 -0
- package/dist/esm/funcs/externalReferencesGetExternalReference.js +85 -0
- package/dist/esm/funcs/externalReferencesGetExternalReference.js.map +1 -0
- package/dist/esm/funcs/externalReferencesListExternalReferences.d.ts +15 -0
- package/dist/esm/funcs/externalReferencesListExternalReferences.d.ts.map +1 -0
- package/dist/esm/funcs/externalReferencesListExternalReferences.js +88 -0
- package/dist/esm/funcs/externalReferencesListExternalReferences.js.map +1 -0
- package/dist/esm/funcs/externalReferencesUpdateExternalReference.d.ts +16 -0
- package/dist/esm/funcs/externalReferencesUpdateExternalReference.d.ts.map +1 -0
- package/dist/esm/funcs/externalReferencesUpdateExternalReference.js +86 -0
- package/dist/esm/funcs/externalReferencesUpdateExternalReference.js.map +1 -0
- package/dist/esm/funcs/invoicesV2List.js +1 -0
- package/dist/esm/funcs/invoicesV2List.js.map +1 -1
- package/dist/esm/funcs/itemsCreateItem.d.ts +16 -0
- package/dist/esm/funcs/itemsCreateItem.d.ts.map +1 -0
- package/dist/esm/funcs/itemsCreateItem.js +80 -0
- package/dist/esm/funcs/itemsCreateItem.js.map +1 -0
- package/dist/esm/funcs/itemsDeleteItem.d.ts +15 -0
- package/dist/esm/funcs/itemsDeleteItem.d.ts.map +1 -0
- package/dist/esm/funcs/itemsDeleteItem.js +85 -0
- package/dist/esm/funcs/itemsDeleteItem.js.map +1 -0
- package/dist/esm/funcs/itemsGetItem.d.ts +16 -0
- package/dist/esm/funcs/itemsGetItem.d.ts.map +1 -0
- package/dist/esm/funcs/itemsGetItem.js +85 -0
- package/dist/esm/funcs/itemsGetItem.js.map +1 -0
- package/dist/esm/funcs/itemsListItems.d.ts +15 -0
- package/dist/esm/funcs/itemsListItems.d.ts.map +1 -0
- package/dist/esm/funcs/itemsListItems.js +86 -0
- package/dist/esm/funcs/itemsListItems.js.map +1 -0
- package/dist/esm/funcs/itemsUpdateItem.d.ts +16 -0
- package/dist/esm/funcs/itemsUpdateItem.d.ts.map +1 -0
- package/dist/esm/funcs/itemsUpdateItem.js +86 -0
- package/dist/esm/funcs/itemsUpdateItem.js.map +1 -0
- package/dist/esm/funcs/merchantIntegrationsDisconnectMerchantIntegration.d.ts +19 -0
- package/dist/esm/funcs/merchantIntegrationsDisconnectMerchantIntegration.d.ts.map +1 -0
- package/dist/esm/funcs/merchantIntegrationsDisconnectMerchantIntegration.js +88 -0
- package/dist/esm/funcs/merchantIntegrationsDisconnectMerchantIntegration.js.map +1 -0
- package/dist/esm/funcs/merchantIntegrationsGetMerchantIntegration.d.ts +16 -0
- package/dist/esm/funcs/merchantIntegrationsGetMerchantIntegration.d.ts.map +1 -0
- package/dist/esm/funcs/merchantIntegrationsGetMerchantIntegration.js +85 -0
- package/dist/esm/funcs/merchantIntegrationsGetMerchantIntegration.js.map +1 -0
- package/dist/esm/funcs/merchantIntegrationsListMerchantIntegrations.d.ts +15 -0
- package/dist/esm/funcs/merchantIntegrationsListMerchantIntegrations.d.ts.map +1 -0
- package/dist/esm/funcs/merchantIntegrationsListMerchantIntegrations.js +86 -0
- package/dist/esm/funcs/merchantIntegrationsListMerchantIntegrations.js.map +1 -0
- package/dist/esm/funcs/merchantIntegrationsUpsertMerchantIntegration.d.ts +19 -0
- package/dist/esm/funcs/merchantIntegrationsUpsertMerchantIntegration.d.ts.map +1 -0
- package/dist/esm/funcs/merchantIntegrationsUpsertMerchantIntegration.js +83 -0
- package/dist/esm/funcs/merchantIntegrationsUpsertMerchantIntegration.js.map +1 -0
- package/dist/esm/funcs/salesforceListSalesforceAccounts.d.ts +18 -0
- package/dist/esm/funcs/salesforceListSalesforceAccounts.d.ts.map +1 -0
- package/dist/esm/funcs/salesforceListSalesforceAccounts.js +88 -0
- package/dist/esm/funcs/salesforceListSalesforceAccounts.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/entitytype.d.ts +18 -0
- package/dist/esm/models/entitytype.d.ts.map +1 -0
- package/dist/esm/models/entitytype.js +17 -0
- package/dist/esm/models/entitytype.js.map +1 -0
- package/dist/esm/models/externalreference.d.ts +50 -0
- package/dist/esm/models/externalreference.d.ts.map +1 -0
- package/dist/esm/models/externalreference.js +31 -0
- package/dist/esm/models/externalreference.js.map +1 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/invoice.d.ts +4 -0
- package/dist/esm/models/invoice.d.ts.map +1 -1
- package/dist/esm/models/invoice.js +1 -0
- package/dist/esm/models/invoice.js.map +1 -1
- package/dist/esm/models/item.d.ts +27 -0
- package/dist/esm/models/item.d.ts.map +1 -0
- package/dist/esm/models/item.js +28 -0
- package/dist/esm/models/item.js.map +1 -0
- package/dist/esm/models/lineitem.d.ts +4 -0
- package/dist/esm/models/lineitem.d.ts.map +1 -1
- package/dist/esm/models/lineitem.js +1 -0
- package/dist/esm/models/lineitem.js.map +1 -1
- package/dist/esm/models/merchantintegration.d.ts +52 -0
- package/dist/esm/models/merchantintegration.d.ts.map +1 -0
- package/dist/esm/models/merchantintegration.js +31 -0
- package/dist/esm/models/merchantintegration.js.map +1 -0
- package/dist/esm/models/merchantintegrationprovider.d.ts +17 -0
- package/dist/esm/models/merchantintegrationprovider.d.ts.map +1 -0
- package/dist/esm/models/merchantintegrationprovider.js +15 -0
- package/dist/esm/models/merchantintegrationprovider.js.map +1 -0
- package/dist/esm/models/merchantintegrationstatus.d.ts +19 -0
- package/dist/esm/models/merchantintegrationstatus.d.ts.map +1 -0
- package/dist/esm/models/merchantintegrationstatus.js +17 -0
- package/dist/esm/models/merchantintegrationstatus.js.map +1 -0
- package/dist/esm/models/operations/createexternalreference.d.ts +57 -0
- package/dist/esm/models/operations/createexternalreference.d.ts.map +1 -0
- package/dist/esm/models/operations/createexternalreference.js +21 -0
- package/dist/esm/models/operations/createexternalreference.js.map +1 -0
- package/dist/esm/models/operations/createitem.d.ts +26 -0
- package/dist/esm/models/operations/createitem.d.ts.map +1 -0
- package/dist/esm/models/operations/createitem.js +14 -0
- package/dist/esm/models/operations/createitem.js.map +1 -0
- package/dist/esm/models/operations/deleteexternalreference.d.ts +15 -0
- package/dist/esm/models/operations/deleteexternalreference.d.ts.map +1 -0
- package/dist/esm/models/operations/deleteexternalreference.js +12 -0
- package/dist/esm/models/operations/deleteexternalreference.js.map +1 -0
- package/dist/esm/models/operations/deleteitem.d.ts +15 -0
- package/dist/esm/models/operations/deleteitem.d.ts.map +1 -0
- package/dist/esm/models/operations/deleteitem.js +12 -0
- package/dist/esm/models/operations/deleteitem.js.map +1 -0
- package/dist/esm/models/operations/disconnectmerchantintegration.d.ts +15 -0
- package/dist/esm/models/operations/disconnectmerchantintegration.d.ts.map +1 -0
- package/dist/esm/models/operations/disconnectmerchantintegration.js +12 -0
- package/dist/esm/models/operations/disconnectmerchantintegration.js.map +1 -0
- package/dist/esm/models/operations/getexternalreference.d.ts +15 -0
- package/dist/esm/models/operations/getexternalreference.d.ts.map +1 -0
- package/dist/esm/models/operations/getexternalreference.js +12 -0
- package/dist/esm/models/operations/getexternalreference.js.map +1 -0
- package/dist/esm/models/operations/getitem.d.ts +15 -0
- package/dist/esm/models/operations/getitem.d.ts.map +1 -0
- package/dist/esm/models/operations/getitem.js +12 -0
- package/dist/esm/models/operations/getitem.js.map +1 -0
- package/dist/esm/models/operations/getmerchantintegration.d.ts +15 -0
- package/dist/esm/models/operations/getmerchantintegration.d.ts.map +1 -0
- package/dist/esm/models/operations/getmerchantintegration.js +12 -0
- package/dist/esm/models/operations/getmerchantintegration.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +15 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +15 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listexternalreferences.d.ts +55 -0
- package/dist/esm/models/operations/listexternalreferences.d.ts.map +1 -0
- package/dist/esm/models/operations/listexternalreferences.js +28 -0
- package/dist/esm/models/operations/listexternalreferences.js.map +1 -0
- package/dist/esm/models/operations/listinvoices.d.ts +5 -0
- package/dist/esm/models/operations/listinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listinvoices.js +1 -0
- package/dist/esm/models/operations/listinvoices.js.map +1 -1
- package/dist/esm/models/operations/listitems.d.ts +51 -0
- package/dist/esm/models/operations/listitems.d.ts.map +1 -0
- package/dist/esm/models/operations/listitems.js +26 -0
- package/dist/esm/models/operations/listitems.js.map +1 -0
- package/dist/esm/models/operations/listmerchantintegrations.d.ts +40 -0
- package/dist/esm/models/operations/listmerchantintegrations.d.ts.map +1 -0
- package/dist/esm/models/operations/listmerchantintegrations.js +25 -0
- package/dist/esm/models/operations/listmerchantintegrations.js.map +1 -0
- package/dist/esm/models/operations/listsalesforceaccounts.d.ts +39 -0
- package/dist/esm/models/operations/listsalesforceaccounts.d.ts.map +1 -0
- package/dist/esm/models/operations/listsalesforceaccounts.js +25 -0
- package/dist/esm/models/operations/listsalesforceaccounts.js.map +1 -0
- package/dist/esm/models/operations/updateexternalreference.d.ts +37 -0
- package/dist/esm/models/operations/updateexternalreference.d.ts.map +1 -0
- package/dist/esm/models/operations/updateexternalreference.js +28 -0
- package/dist/esm/models/operations/updateexternalreference.js.map +1 -0
- package/dist/esm/models/operations/updateitem.d.ts +33 -0
- package/dist/esm/models/operations/updateitem.d.ts.map +1 -0
- package/dist/esm/models/operations/updateitem.js +26 -0
- package/dist/esm/models/operations/updateitem.js.map +1 -0
- package/dist/esm/models/operations/upsertmerchantintegration.d.ts +43 -0
- package/dist/esm/models/operations/upsertmerchantintegration.d.ts.map +1 -0
- package/dist/esm/models/operations/upsertmerchantintegration.js +18 -0
- package/dist/esm/models/operations/upsertmerchantintegration.js.map +1 -0
- package/dist/esm/models/price.d.ts +4 -0
- package/dist/esm/models/price.d.ts.map +1 -1
- package/dist/esm/models/price.js +1 -0
- package/dist/esm/models/price.js.map +1 -1
- package/dist/esm/models/purchasegrantrequest.d.ts +1 -1
- package/dist/esm/models/schemasprice.d.ts +4 -0
- package/dist/esm/models/schemasprice.d.ts.map +1 -1
- package/dist/esm/models/schemasprice.js +1 -0
- package/dist/esm/models/schemasprice.js.map +1 -1
- package/dist/esm/models/subscription.d.ts +4 -0
- package/dist/esm/models/subscription.d.ts.map +1 -1
- package/dist/esm/models/subscription.js +1 -0
- package/dist/esm/models/subscription.js.map +1 -1
- package/dist/esm/sdk/externalreferences.d.ts +26 -0
- package/dist/esm/sdk/externalreferences.d.ts.map +1 -0
- package/dist/esm/sdk/externalreferences.js +43 -0
- package/dist/esm/sdk/externalreferences.js.map +1 -0
- package/dist/esm/sdk/items.d.ts +26 -0
- package/dist/esm/sdk/items.d.ts.map +1 -0
- package/dist/esm/sdk/items.js +43 -0
- package/dist/esm/sdk/items.js.map +1 -0
- package/dist/esm/sdk/merchantintegrations.d.ts +28 -0
- package/dist/esm/sdk/merchantintegrations.d.ts.map +1 -0
- package/dist/esm/sdk/merchantintegrations.js +42 -0
- package/dist/esm/sdk/merchantintegrations.js.map +1 -0
- package/dist/esm/sdk/salesforce.d.ts +12 -0
- package/dist/esm/sdk/salesforce.d.ts.map +1 -0
- package/dist/esm/sdk/salesforce.js +18 -0
- package/dist/esm/sdk/salesforce.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +12 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +16 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/externalReferencesCreateExternalReference.ts +173 -0
- package/src/funcs/externalReferencesDeleteExternalReference.ts +174 -0
- package/src/funcs/externalReferencesGetExternalReference.ts +174 -0
- package/src/funcs/externalReferencesListExternalReferences.ts +184 -0
- package/src/funcs/externalReferencesUpdateExternalReference.ts +179 -0
- package/src/funcs/invoicesV2List.ts +1 -0
- package/src/funcs/itemsCreateItem.ts +172 -0
- package/src/funcs/itemsDeleteItem.ts +173 -0
- package/src/funcs/itemsGetItem.ts +173 -0
- package/src/funcs/itemsListItems.ts +180 -0
- package/src/funcs/itemsUpdateItem.ts +178 -0
- package/src/funcs/merchantIntegrationsDisconnectMerchantIntegration.ts +181 -0
- package/src/funcs/merchantIntegrationsGetMerchantIntegration.ts +174 -0
- package/src/funcs/merchantIntegrationsListMerchantIntegrations.ts +180 -0
- package/src/funcs/merchantIntegrationsUpsertMerchantIntegration.ts +176 -0
- package/src/funcs/salesforceListSalesforceAccounts.ts +182 -0
- package/src/lib/config.ts +2 -2
- package/src/models/entitytype.ts +25 -0
- package/src/models/externalreference.ts +87 -0
- package/src/models/index.ts +6 -0
- package/src/models/invoice.ts +5 -0
- package/src/models/item.ts +60 -0
- package/src/models/lineitem.ts +5 -0
- package/src/models/merchantintegration.ts +98 -0
- package/src/models/merchantintegrationprovider.ts +28 -0
- package/src/models/merchantintegrationstatus.ts +30 -0
- package/src/models/operations/createexternalreference.ts +82 -0
- package/src/models/operations/createitem.ts +43 -0
- package/src/models/operations/deleteexternalreference.ts +36 -0
- package/src/models/operations/deleteitem.ts +34 -0
- package/src/models/operations/disconnectmerchantintegration.ts +36 -0
- package/src/models/operations/getexternalreference.ts +36 -0
- package/src/models/operations/getitem.ts +30 -0
- package/src/models/operations/getmerchantintegration.ts +36 -0
- package/src/models/operations/index.ts +15 -0
- package/src/models/operations/listexternalreferences.ts +101 -0
- package/src/models/operations/listinvoices.ts +6 -0
- package/src/models/operations/listitems.ts +93 -0
- package/src/models/operations/listmerchantintegrations.ts +83 -0
- package/src/models/operations/listsalesforceaccounts.ts +81 -0
- package/src/models/operations/updateexternalreference.ts +81 -0
- package/src/models/operations/updateitem.ts +71 -0
- package/src/models/operations/upsertmerchantintegration.ts +61 -0
- package/src/models/price.ts +5 -0
- package/src/models/purchasegrantrequest.ts +1 -1
- package/src/models/schemasprice.ts +5 -0
- package/src/models/subscription.ts +5 -0
- package/src/sdk/externalreferences.ts +85 -0
- package/src/sdk/items.ts +85 -0
- package/src/sdk/merchantintegrations.ts +76 -0
- package/src/sdk/salesforce.ts +27 -0
- package/src/sdk/sdk.ts +26 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ExternalReference,
|
|
12
|
+
ExternalReference$inboundSchema,
|
|
13
|
+
} from "./externalreference.js";
|
|
14
|
+
|
|
15
|
+
export const ItemObject = {
|
|
16
|
+
Item: "item",
|
|
17
|
+
} as const;
|
|
18
|
+
export type ItemObject = ClosedEnum<typeof ItemObject>;
|
|
19
|
+
|
|
20
|
+
export type Item = {
|
|
21
|
+
id: string;
|
|
22
|
+
object: ItemObject;
|
|
23
|
+
merchantId: string;
|
|
24
|
+
name: string;
|
|
25
|
+
metadata: { [k: string]: any };
|
|
26
|
+
externalReferences: Array<ExternalReference>;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ItemObject$inboundSchema: z.ZodNativeEnum<typeof ItemObject> = z
|
|
33
|
+
.nativeEnum(ItemObject);
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const Item$inboundSchema: z.ZodType<Item, z.ZodTypeDef, unknown> = z
|
|
37
|
+
.object({
|
|
38
|
+
id: z.string(),
|
|
39
|
+
object: ItemObject$inboundSchema.default("item"),
|
|
40
|
+
merchantId: z.string(),
|
|
41
|
+
name: z.string(),
|
|
42
|
+
metadata: z.record(z.any()),
|
|
43
|
+
externalReferences: z.array(ExternalReference$inboundSchema),
|
|
44
|
+
createdAt: z.string().datetime({ offset: true }).transform(v =>
|
|
45
|
+
new Date(v)
|
|
46
|
+
),
|
|
47
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v =>
|
|
48
|
+
new Date(v)
|
|
49
|
+
),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function itemFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<Item, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => Item$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'Item' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
package/src/models/lineitem.ts
CHANGED
|
@@ -55,6 +55,10 @@ export type LineItem = {
|
|
|
55
55
|
* The subscription this line item belongs to
|
|
56
56
|
*/
|
|
57
57
|
subscriptionId: string;
|
|
58
|
+
/**
|
|
59
|
+
* The customer ID that owns this line item
|
|
60
|
+
*/
|
|
61
|
+
customerId: string;
|
|
58
62
|
/**
|
|
59
63
|
* The price ID associated with this line item
|
|
60
64
|
*/
|
|
@@ -167,6 +171,7 @@ export const LineItem$inboundSchema: z.ZodType<
|
|
|
167
171
|
> = z.object({
|
|
168
172
|
id: z.string(),
|
|
169
173
|
subscriptionId: z.string(),
|
|
174
|
+
customerId: z.string(),
|
|
170
175
|
priceId: z.nullable(z.string()).optional(),
|
|
171
176
|
invoiceId: z.nullable(z.string()).optional(),
|
|
172
177
|
type: LineItemType$inboundSchema,
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
MerchantIntegrationProvider,
|
|
12
|
+
MerchantIntegrationProvider$inboundSchema,
|
|
13
|
+
} from "./merchantintegrationprovider.js";
|
|
14
|
+
import {
|
|
15
|
+
MerchantIntegrationStatus,
|
|
16
|
+
MerchantIntegrationStatus$inboundSchema,
|
|
17
|
+
} from "./merchantintegrationstatus.js";
|
|
18
|
+
|
|
19
|
+
export const MerchantIntegrationObject = {
|
|
20
|
+
MerchantIntegration: "merchantIntegration",
|
|
21
|
+
} as const;
|
|
22
|
+
export type MerchantIntegrationObject = ClosedEnum<
|
|
23
|
+
typeof MerchantIntegrationObject
|
|
24
|
+
>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A merchant's tenant-level connection to an external provider via Ampersand.
|
|
28
|
+
*/
|
|
29
|
+
export type MerchantIntegration = {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for a merchant integration
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
object: MerchantIntegrationObject;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier for an organization
|
|
37
|
+
*/
|
|
38
|
+
merchantId: string;
|
|
39
|
+
/**
|
|
40
|
+
* External provider a merchant can connect at the tenant level
|
|
41
|
+
*/
|
|
42
|
+
provider: MerchantIntegrationProvider;
|
|
43
|
+
/**
|
|
44
|
+
* Ampersand installation id.
|
|
45
|
+
*/
|
|
46
|
+
externalId: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Connection lifecycle state. Live Ampersand health is separate and not stored here.
|
|
49
|
+
*/
|
|
50
|
+
status: MerchantIntegrationStatus;
|
|
51
|
+
config: { [k: string]: any };
|
|
52
|
+
metadata: { [k: string]: any };
|
|
53
|
+
connectedAt: Date;
|
|
54
|
+
disconnectedAt: Date | null;
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
updatedAt: Date;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const MerchantIntegrationObject$inboundSchema: z.ZodNativeEnum<
|
|
61
|
+
typeof MerchantIntegrationObject
|
|
62
|
+
> = z.nativeEnum(MerchantIntegrationObject);
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const MerchantIntegration$inboundSchema: z.ZodType<
|
|
66
|
+
MerchantIntegration,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
unknown
|
|
69
|
+
> = z.object({
|
|
70
|
+
id: z.string(),
|
|
71
|
+
object: MerchantIntegrationObject$inboundSchema.default(
|
|
72
|
+
"merchantIntegration",
|
|
73
|
+
),
|
|
74
|
+
merchantId: z.string(),
|
|
75
|
+
provider: MerchantIntegrationProvider$inboundSchema,
|
|
76
|
+
externalId: z.nullable(z.string()),
|
|
77
|
+
status: MerchantIntegrationStatus$inboundSchema,
|
|
78
|
+
config: z.record(z.any()),
|
|
79
|
+
metadata: z.record(z.any()),
|
|
80
|
+
connectedAt: z.string().datetime({ offset: true }).transform(v =>
|
|
81
|
+
new Date(v)
|
|
82
|
+
),
|
|
83
|
+
disconnectedAt: z.nullable(
|
|
84
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
85
|
+
),
|
|
86
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
87
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
export function merchantIntegrationFromJSON(
|
|
91
|
+
jsonString: string,
|
|
92
|
+
): SafeParseResult<MerchantIntegration, SDKValidationError> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) => MerchantIntegration$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
+
`Failed to parse 'MerchantIntegration' from JSON`,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* External provider a merchant can connect at the tenant level
|
|
10
|
+
*/
|
|
11
|
+
export const MerchantIntegrationProvider = {
|
|
12
|
+
Salesforce: "salesforce",
|
|
13
|
+
} as const;
|
|
14
|
+
/**
|
|
15
|
+
* External provider a merchant can connect at the tenant level
|
|
16
|
+
*/
|
|
17
|
+
export type MerchantIntegrationProvider = ClosedEnum<
|
|
18
|
+
typeof MerchantIntegrationProvider
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const MerchantIntegrationProvider$inboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof MerchantIntegrationProvider
|
|
24
|
+
> = z.nativeEnum(MerchantIntegrationProvider);
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const MerchantIntegrationProvider$outboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof MerchantIntegrationProvider
|
|
28
|
+
> = MerchantIntegrationProvider$inboundSchema;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Connection lifecycle state. Live Ampersand health is separate and not stored here.
|
|
10
|
+
*/
|
|
11
|
+
export const MerchantIntegrationStatus = {
|
|
12
|
+
Active: "active",
|
|
13
|
+
Disconnected: "disconnected",
|
|
14
|
+
Error: "error",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Connection lifecycle state. Live Ampersand health is separate and not stored here.
|
|
18
|
+
*/
|
|
19
|
+
export type MerchantIntegrationStatus = ClosedEnum<
|
|
20
|
+
typeof MerchantIntegrationStatus
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const MerchantIntegrationStatus$inboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof MerchantIntegrationStatus
|
|
26
|
+
> = z.nativeEnum(MerchantIntegrationStatus);
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const MerchantIntegrationStatus$outboundSchema: z.ZodNativeEnum<
|
|
29
|
+
typeof MerchantIntegrationStatus
|
|
30
|
+
> = MerchantIntegrationStatus$inboundSchema;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as models from "../index.js";
|
|
7
|
+
|
|
8
|
+
export type CreateExternalReferenceRequest = {
|
|
9
|
+
merchantId: string;
|
|
10
|
+
/**
|
|
11
|
+
* The type of Paygentic entity this external reference points at
|
|
12
|
+
*/
|
|
13
|
+
entityType: models.EntityType;
|
|
14
|
+
/**
|
|
15
|
+
* Paygentic id of the entity, e.g. `itm_xxx`
|
|
16
|
+
*/
|
|
17
|
+
entityId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Lowercase snake_case provider identifier (e.g. `salesforce`, `netsuite`)
|
|
20
|
+
*/
|
|
21
|
+
provider: string;
|
|
22
|
+
/**
|
|
23
|
+
* Identifier of the record in the external system
|
|
24
|
+
*/
|
|
25
|
+
externalId: string;
|
|
26
|
+
/**
|
|
27
|
+
* Human-friendly name shown in UIs (e.g. a NetSuite financial-treatment name)
|
|
28
|
+
*/
|
|
29
|
+
externalLabel?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Provider-specific fields (e.g. `{ "sfObject": "Product2" }`)
|
|
32
|
+
*/
|
|
33
|
+
metadata?: { [k: string]: any } | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Whether this is the canonical reference for `(provider, externalId)`. The primary is unique per merchant; non-primary references are aliases.
|
|
36
|
+
*/
|
|
37
|
+
isPrimary?: boolean | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Whether this is the default target for the entity + provider. At most one default per `(entityType, entityId, provider)`.
|
|
40
|
+
*/
|
|
41
|
+
isDefault?: boolean | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type CreateExternalReferenceRequest$Outbound = {
|
|
46
|
+
merchantId: string;
|
|
47
|
+
entityType: string;
|
|
48
|
+
entityId: string;
|
|
49
|
+
provider: string;
|
|
50
|
+
externalId: string;
|
|
51
|
+
externalLabel?: string | undefined;
|
|
52
|
+
metadata?: { [k: string]: any } | undefined;
|
|
53
|
+
isPrimary: boolean;
|
|
54
|
+
isDefault: boolean;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const CreateExternalReferenceRequest$outboundSchema: z.ZodType<
|
|
59
|
+
CreateExternalReferenceRequest$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
CreateExternalReferenceRequest
|
|
62
|
+
> = z.object({
|
|
63
|
+
merchantId: z.string(),
|
|
64
|
+
entityType: models.EntityType$outboundSchema,
|
|
65
|
+
entityId: z.string(),
|
|
66
|
+
provider: z.string(),
|
|
67
|
+
externalId: z.string(),
|
|
68
|
+
externalLabel: z.string().optional(),
|
|
69
|
+
metadata: z.record(z.any()).optional(),
|
|
70
|
+
isPrimary: z.boolean().default(true),
|
|
71
|
+
isDefault: z.boolean().default(false),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export function createExternalReferenceRequestToJSON(
|
|
75
|
+
createExternalReferenceRequest: CreateExternalReferenceRequest,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
CreateExternalReferenceRequest$outboundSchema.parse(
|
|
79
|
+
createExternalReferenceRequest,
|
|
80
|
+
),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type CreateItemRequest = {
|
|
8
|
+
merchantId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Canonical sellable name for the Item
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional key-value metadata
|
|
15
|
+
*/
|
|
16
|
+
metadata?: { [k: string]: any } | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type CreateItemRequest$Outbound = {
|
|
21
|
+
merchantId: string;
|
|
22
|
+
name: string;
|
|
23
|
+
metadata?: { [k: string]: any } | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const CreateItemRequest$outboundSchema: z.ZodType<
|
|
28
|
+
CreateItemRequest$Outbound,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
CreateItemRequest
|
|
31
|
+
> = z.object({
|
|
32
|
+
merchantId: z.string(),
|
|
33
|
+
name: z.string(),
|
|
34
|
+
metadata: z.record(z.any()).optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function createItemRequestToJSON(
|
|
38
|
+
createItemRequest: CreateItemRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
CreateItemRequest$outboundSchema.parse(createItemRequest),
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type DeleteExternalReferenceRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the external reference
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type DeleteExternalReferenceRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const DeleteExternalReferenceRequest$outboundSchema: z.ZodType<
|
|
21
|
+
DeleteExternalReferenceRequest$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
DeleteExternalReferenceRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function deleteExternalReferenceRequestToJSON(
|
|
29
|
+
deleteExternalReferenceRequest: DeleteExternalReferenceRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
DeleteExternalReferenceRequest$outboundSchema.parse(
|
|
33
|
+
deleteExternalReferenceRequest,
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type DeleteItemRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the item
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type DeleteItemRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const DeleteItemRequest$outboundSchema: z.ZodType<
|
|
21
|
+
DeleteItemRequest$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
DeleteItemRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function deleteItemRequestToJSON(
|
|
29
|
+
deleteItemRequest: DeleteItemRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
DeleteItemRequest$outboundSchema.parse(deleteItemRequest),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type DisconnectMerchantIntegrationRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the merchant integration
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type DisconnectMerchantIntegrationRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const DisconnectMerchantIntegrationRequest$outboundSchema: z.ZodType<
|
|
21
|
+
DisconnectMerchantIntegrationRequest$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
DisconnectMerchantIntegrationRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function disconnectMerchantIntegrationRequestToJSON(
|
|
29
|
+
disconnectMerchantIntegrationRequest: DisconnectMerchantIntegrationRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
DisconnectMerchantIntegrationRequest$outboundSchema.parse(
|
|
33
|
+
disconnectMerchantIntegrationRequest,
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type GetExternalReferenceRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the external reference
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetExternalReferenceRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetExternalReferenceRequest$outboundSchema: z.ZodType<
|
|
21
|
+
GetExternalReferenceRequest$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
GetExternalReferenceRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function getExternalReferenceRequestToJSON(
|
|
29
|
+
getExternalReferenceRequest: GetExternalReferenceRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
GetExternalReferenceRequest$outboundSchema.parse(
|
|
33
|
+
getExternalReferenceRequest,
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type GetItemRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the item
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetItemRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetItemRequest$outboundSchema: z.ZodType<
|
|
21
|
+
GetItemRequest$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
GetItemRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function getItemRequestToJSON(getItemRequest: GetItemRequest): string {
|
|
29
|
+
return JSON.stringify(GetItemRequest$outboundSchema.parse(getItemRequest));
|
|
30
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type GetMerchantIntegrationRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier of the merchant integration
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetMerchantIntegrationRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetMerchantIntegrationRequest$outboundSchema: z.ZodType<
|
|
21
|
+
GetMerchantIntegrationRequest$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
GetMerchantIntegrationRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function getMerchantIntegrationRequestToJSON(
|
|
29
|
+
getMerchantIntegrationRequest: GetMerchantIntegrationRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
GetMerchantIntegrationRequest$outboundSchema.parse(
|
|
33
|
+
getMerchantIntegrationRequest,
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -11,8 +11,10 @@ export * from "./createcost.js";
|
|
|
11
11
|
export * from "./createcustomer.js";
|
|
12
12
|
export * from "./createcustomerpaymentmethod.js";
|
|
13
13
|
export * from "./createentitlementgrant.js";
|
|
14
|
+
export * from "./createexternalreference.js";
|
|
14
15
|
export * from "./createfeature.js";
|
|
15
16
|
export * from "./createfee.js";
|
|
17
|
+
export * from "./createitem.js";
|
|
16
18
|
export * from "./createlineitem.js";
|
|
17
19
|
export * from "./createpayment.js";
|
|
18
20
|
export * from "./createplan.js";
|
|
@@ -23,11 +25,14 @@ export * from "./createsubscription.js";
|
|
|
23
25
|
export * from "./createtestclock.js";
|
|
24
26
|
export * from "./deletecost.js";
|
|
25
27
|
export * from "./deletecustomer.js";
|
|
28
|
+
export * from "./deleteexternalreference.js";
|
|
26
29
|
export * from "./deletefeature.js";
|
|
27
30
|
export * from "./deletefee.js";
|
|
31
|
+
export * from "./deleteitem.js";
|
|
28
32
|
export * from "./deleteprice.js";
|
|
29
33
|
export * from "./deletesourcerule.js";
|
|
30
34
|
export * from "./deletetestclock.js";
|
|
35
|
+
export * from "./disconnectmerchantintegration.js";
|
|
31
36
|
export * from "./generateportallink.js";
|
|
32
37
|
export * from "./getbillablemetric.js";
|
|
33
38
|
export * from "./getbillablemetricmeter.js";
|
|
@@ -37,11 +42,14 @@ export * from "./getcostsummary.js";
|
|
|
37
42
|
export * from "./getcustomer.js";
|
|
38
43
|
export * from "./getentitlement.js";
|
|
39
44
|
export * from "./getentitlementgrant.js";
|
|
45
|
+
export * from "./getexternalreference.js";
|
|
40
46
|
export * from "./getfeature.js";
|
|
41
47
|
export * from "./getfee.js";
|
|
42
48
|
export * from "./getfeeprice.js";
|
|
43
49
|
export * from "./getinvoice.js";
|
|
44
50
|
export * from "./getinvoicelineitems.js";
|
|
51
|
+
export * from "./getitem.js";
|
|
52
|
+
export * from "./getmerchantintegration.js";
|
|
45
53
|
export * from "./getpayment.js";
|
|
46
54
|
export * from "./getplan.js";
|
|
47
55
|
export * from "./getprice.js";
|
|
@@ -62,15 +70,19 @@ export * from "./listcustomerpaymentmethods.js";
|
|
|
62
70
|
export * from "./listcustomers.js";
|
|
63
71
|
export * from "./listentitlementgrants.js";
|
|
64
72
|
export * from "./listentitlements.js";
|
|
73
|
+
export * from "./listexternalreferences.js";
|
|
65
74
|
export * from "./listfeatures.js";
|
|
66
75
|
export * from "./listfees.js";
|
|
67
76
|
export * from "./listinvoices.js";
|
|
77
|
+
export * from "./listitems.js";
|
|
68
78
|
export * from "./listlineitems.js";
|
|
79
|
+
export * from "./listmerchantintegrations.js";
|
|
69
80
|
export * from "./listpayments.js";
|
|
70
81
|
export * from "./listpaymentsessions.js";
|
|
71
82
|
export * from "./listplans.js";
|
|
72
83
|
export * from "./listprices.js";
|
|
73
84
|
export * from "./listproducts.js";
|
|
85
|
+
export * from "./listsalesforceaccounts.js";
|
|
74
86
|
export * from "./listsourceevents.js";
|
|
75
87
|
export * from "./listsourcerules.js";
|
|
76
88
|
export * from "./listsources.js";
|
|
@@ -82,8 +94,10 @@ export * from "./terminatesubscription.js";
|
|
|
82
94
|
export * from "./updatebillablemetric.js";
|
|
83
95
|
export * from "./updatecost.js";
|
|
84
96
|
export * from "./updatecustomer.js";
|
|
97
|
+
export * from "./updateexternalreference.js";
|
|
85
98
|
export * from "./updatefeature.js";
|
|
86
99
|
export * from "./updatefee.js";
|
|
100
|
+
export * from "./updateitem.js";
|
|
87
101
|
export * from "./updateplan.js";
|
|
88
102
|
export * from "./updateprice.js";
|
|
89
103
|
export * from "./updateproduct.js";
|
|
@@ -91,4 +105,5 @@ export * from "./updatesource.js";
|
|
|
91
105
|
export * from "./updatesourcerule.js";
|
|
92
106
|
export * from "./updatesubscription.js";
|
|
93
107
|
export * from "./updateuser.js";
|
|
108
|
+
export * from "./upsertmerchantintegration.js";
|
|
94
109
|
export * from "./voidentitlementgrant.js";
|