tremendous 4.5.1 → 4.7.0
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +20 -0
- package/dist/api.d.ts +84 -5
- package/dist/api.js +151 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.7.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.6.0...tremendous-v4.7.0) (2026-04-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add `currency_code` field to create invoice ([0e8103d](https://github.com/tremendous-rewards/tremendous-node/commit/0e8103d0d89a911c8788821b08e5e378365335d9))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* deprecate `currency` in favor of `currency_code` ([0e8103d](https://github.com/tremendous-rewards/tremendous-node/commit/0e8103d0d89a911c8788821b08e5e378365335d9))
|
|
14
|
+
|
|
15
|
+
## [4.6.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.5.1...tremendous-v4.6.0) (2026-04-15)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add delete connected organization endpoint ([02caf0a](https://github.com/tremendous-rewards/tremendous-node/commit/02caf0a16ea4eccbfe8b9e095cd5698538e5e866))
|
|
21
|
+
* add delete connected organization member endpoint ([02caf0a](https://github.com/tremendous-rewards/tremendous-node/commit/02caf0a16ea4eccbfe8b9e095cd5698538e5e866))
|
|
22
|
+
|
|
3
23
|
## [4.5.1](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.5.0...tremendous-v4.5.1) (2026-04-14)
|
|
4
24
|
|
|
5
25
|
|
package/dist/api.d.ts
CHANGED
|
@@ -842,9 +842,16 @@ export interface CreateInvoiceRequest {
|
|
|
842
842
|
*/
|
|
843
843
|
'amount': number;
|
|
844
844
|
/**
|
|
845
|
-
* Currency of the invoice
|
|
845
|
+
* Currency of the invoice. Defaults to the organization\'s currency if not provided.
|
|
846
|
+
* @type {string}
|
|
847
|
+
* @memberof CreateInvoiceRequest
|
|
848
|
+
*/
|
|
849
|
+
'currency_code'?: CreateInvoiceRequestCurrencyCodeEnum;
|
|
850
|
+
/**
|
|
851
|
+
* Deprecated: Use `currency_code` instead.
|
|
846
852
|
* @type {string}
|
|
847
853
|
* @memberof CreateInvoiceRequest
|
|
854
|
+
* @deprecated
|
|
848
855
|
*/
|
|
849
856
|
'currency'?: CreateInvoiceRequestCurrencyEnum;
|
|
850
857
|
/**
|
|
@@ -854,6 +861,12 @@ export interface CreateInvoiceRequest {
|
|
|
854
861
|
*/
|
|
855
862
|
'memo'?: string | null;
|
|
856
863
|
}
|
|
864
|
+
export declare const CreateInvoiceRequestCurrencyCodeEnum: {
|
|
865
|
+
readonly Usd: "USD";
|
|
866
|
+
readonly Eur: "EUR";
|
|
867
|
+
readonly Gbp: "GBP";
|
|
868
|
+
};
|
|
869
|
+
export type CreateInvoiceRequestCurrencyCodeEnum = typeof CreateInvoiceRequestCurrencyCodeEnum[keyof typeof CreateInvoiceRequestCurrencyCodeEnum];
|
|
857
870
|
export declare const CreateInvoiceRequestCurrencyEnum: {
|
|
858
871
|
readonly Usd: "USD";
|
|
859
872
|
readonly Eur: "EUR";
|
|
@@ -8718,6 +8731,14 @@ export declare const ConnectedOrganizationMembersApiAxiosParamCreator: (configur
|
|
|
8718
8731
|
* @throws {RequiredError}
|
|
8719
8732
|
*/
|
|
8720
8733
|
createConnectedOrganizationMemberSession: (id: string, createConnectedOrganizationMemberSessionRequest: CreateConnectedOrganizationMemberSessionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8734
|
+
/**
|
|
8735
|
+
* Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
|
|
8736
|
+
* @summary Remove a connected organization member
|
|
8737
|
+
* @param {string} id ID of the connected organization member to remove.
|
|
8738
|
+
* @param {*} [options] Override http request option.
|
|
8739
|
+
* @throws {RequiredError}
|
|
8740
|
+
*/
|
|
8741
|
+
deleteConnectedOrganizationMember: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8721
8742
|
/**
|
|
8722
8743
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
8723
8744
|
* @summary Retrieve a connected organization member
|
|
@@ -8759,6 +8780,14 @@ export declare const ConnectedOrganizationMembersApiFp: (configuration?: Configu
|
|
|
8759
8780
|
* @throws {RequiredError}
|
|
8760
8781
|
*/
|
|
8761
8782
|
createConnectedOrganizationMemberSession(id: string, createConnectedOrganizationMemberSessionRequest: CreateConnectedOrganizationMemberSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConnectedOrganizationMemberSession200Response>>;
|
|
8783
|
+
/**
|
|
8784
|
+
* Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
|
|
8785
|
+
* @summary Remove a connected organization member
|
|
8786
|
+
* @param {string} id ID of the connected organization member to remove.
|
|
8787
|
+
* @param {*} [options] Override http request option.
|
|
8788
|
+
* @throws {RequiredError}
|
|
8789
|
+
*/
|
|
8790
|
+
deleteConnectedOrganizationMember(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConnectedOrganizationMember200Response>>;
|
|
8762
8791
|
/**
|
|
8763
8792
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
8764
8793
|
* @summary Retrieve a connected organization member
|
|
@@ -8800,6 +8829,14 @@ export declare const ConnectedOrganizationMembersApiFactory: (configuration?: Co
|
|
|
8800
8829
|
* @throws {RequiredError}
|
|
8801
8830
|
*/
|
|
8802
8831
|
createConnectedOrganizationMemberSession(id: string, createConnectedOrganizationMemberSessionRequest: CreateConnectedOrganizationMemberSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectedOrganizationMemberSession200Response>;
|
|
8832
|
+
/**
|
|
8833
|
+
* Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
|
|
8834
|
+
* @summary Remove a connected organization member
|
|
8835
|
+
* @param {string} id ID of the connected organization member to remove.
|
|
8836
|
+
* @param {*} [options] Override http request option.
|
|
8837
|
+
* @throws {RequiredError}
|
|
8838
|
+
*/
|
|
8839
|
+
deleteConnectedOrganizationMember(id: string, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectedOrganizationMember200Response>;
|
|
8803
8840
|
/**
|
|
8804
8841
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
8805
8842
|
* @summary Retrieve a connected organization member
|
|
@@ -8845,6 +8882,15 @@ export declare class ConnectedOrganizationMembersApi extends BaseAPI {
|
|
|
8845
8882
|
* @memberof ConnectedOrganizationMembersApi
|
|
8846
8883
|
*/
|
|
8847
8884
|
createConnectedOrganizationMemberSession(id: string, createConnectedOrganizationMemberSessionRequest: CreateConnectedOrganizationMemberSessionRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateConnectedOrganizationMemberSession200Response, any, {}>>;
|
|
8885
|
+
/**
|
|
8886
|
+
* Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
|
|
8887
|
+
* @summary Remove a connected organization member
|
|
8888
|
+
* @param {string} id ID of the connected organization member to remove.
|
|
8889
|
+
* @param {*} [options] Override http request option.
|
|
8890
|
+
* @throws {RequiredError}
|
|
8891
|
+
* @memberof ConnectedOrganizationMembersApi
|
|
8892
|
+
*/
|
|
8893
|
+
deleteConnectedOrganizationMember(id: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateConnectedOrganizationMember200Response, any, {}>>;
|
|
8848
8894
|
/**
|
|
8849
8895
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
8850
8896
|
* @summary Retrieve a connected organization member
|
|
@@ -8879,6 +8925,14 @@ export declare const ConnectedOrganizationsApiAxiosParamCreator: (configuration?
|
|
|
8879
8925
|
* @throws {RequiredError}
|
|
8880
8926
|
*/
|
|
8881
8927
|
createConnectedOrganization: (createConnectedOrganizationRequest: CreateConnectedOrganizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8928
|
+
/**
|
|
8929
|
+
* Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
|
|
8930
|
+
* @summary Delete a connected organization
|
|
8931
|
+
* @param {string} id ID of the connected organization to delete.
|
|
8932
|
+
* @param {*} [options] Override http request option.
|
|
8933
|
+
* @throws {RequiredError}
|
|
8934
|
+
*/
|
|
8935
|
+
deleteConnectedOrganization: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8882
8936
|
/**
|
|
8883
8937
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
8884
8938
|
* @summary Retrieve a connected organization
|
|
@@ -8910,6 +8964,14 @@ export declare const ConnectedOrganizationsApiFp: (configuration?: Configuration
|
|
|
8910
8964
|
* @throws {RequiredError}
|
|
8911
8965
|
*/
|
|
8912
8966
|
createConnectedOrganization(createConnectedOrganizationRequest: CreateConnectedOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConnectedOrganization200Response>>;
|
|
8967
|
+
/**
|
|
8968
|
+
* Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
|
|
8969
|
+
* @summary Delete a connected organization
|
|
8970
|
+
* @param {string} id ID of the connected organization to delete.
|
|
8971
|
+
* @param {*} [options] Override http request option.
|
|
8972
|
+
* @throws {RequiredError}
|
|
8973
|
+
*/
|
|
8974
|
+
deleteConnectedOrganization(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConnectedOrganization200Response>>;
|
|
8913
8975
|
/**
|
|
8914
8976
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
8915
8977
|
* @summary Retrieve a connected organization
|
|
@@ -8941,6 +9003,14 @@ export declare const ConnectedOrganizationsApiFactory: (configuration?: Configur
|
|
|
8941
9003
|
* @throws {RequiredError}
|
|
8942
9004
|
*/
|
|
8943
9005
|
createConnectedOrganization(createConnectedOrganizationRequest: CreateConnectedOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectedOrganization200Response>;
|
|
9006
|
+
/**
|
|
9007
|
+
* Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
|
|
9008
|
+
* @summary Delete a connected organization
|
|
9009
|
+
* @param {string} id ID of the connected organization to delete.
|
|
9010
|
+
* @param {*} [options] Override http request option.
|
|
9011
|
+
* @throws {RequiredError}
|
|
9012
|
+
*/
|
|
9013
|
+
deleteConnectedOrganization(id: string, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectedOrganization200Response>;
|
|
8944
9014
|
/**
|
|
8945
9015
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
8946
9016
|
* @summary Retrieve a connected organization
|
|
@@ -8975,6 +9045,15 @@ export declare class ConnectedOrganizationsApi extends BaseAPI {
|
|
|
8975
9045
|
* @memberof ConnectedOrganizationsApi
|
|
8976
9046
|
*/
|
|
8977
9047
|
createConnectedOrganization(createConnectedOrganizationRequest: CreateConnectedOrganizationRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateConnectedOrganization200Response, any, {}>>;
|
|
9048
|
+
/**
|
|
9049
|
+
* Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
|
|
9050
|
+
* @summary Delete a connected organization
|
|
9051
|
+
* @param {string} id ID of the connected organization to delete.
|
|
9052
|
+
* @param {*} [options] Override http request option.
|
|
9053
|
+
* @throws {RequiredError}
|
|
9054
|
+
* @memberof ConnectedOrganizationsApi
|
|
9055
|
+
*/
|
|
9056
|
+
deleteConnectedOrganization(id: string, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateConnectedOrganization200Response, any, {}>>;
|
|
8978
9057
|
/**
|
|
8979
9058
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
8980
9059
|
* @summary Retrieve a connected organization
|
|
@@ -9634,7 +9713,7 @@ export declare class FundingSourcesApi extends BaseAPI {
|
|
|
9634
9713
|
*/
|
|
9635
9714
|
export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
9636
9715
|
/**
|
|
9637
|
-
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">
|
|
9716
|
+
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice. Defaults to the organization's currency if not provided.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Deprecated: Use <code>currency_code</code> instead.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
|
|
9638
9717
|
* @summary Create invoice
|
|
9639
9718
|
* @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
|
|
9640
9719
|
* @param {*} [options] Override http request option.
|
|
@@ -9689,7 +9768,7 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
9689
9768
|
*/
|
|
9690
9769
|
export declare const InvoicesApiFp: (configuration?: Configuration) => {
|
|
9691
9770
|
/**
|
|
9692
|
-
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">
|
|
9771
|
+
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice. Defaults to the organization's currency if not provided.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Deprecated: Use <code>currency_code</code> instead.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
|
|
9693
9772
|
* @summary Create invoice
|
|
9694
9773
|
* @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
|
|
9695
9774
|
* @param {*} [options] Override http request option.
|
|
@@ -9744,7 +9823,7 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
|
|
|
9744
9823
|
*/
|
|
9745
9824
|
export declare const InvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
9746
9825
|
/**
|
|
9747
|
-
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">
|
|
9826
|
+
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice. Defaults to the organization's currency if not provided.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Deprecated: Use <code>currency_code</code> instead.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
|
|
9748
9827
|
* @summary Create invoice
|
|
9749
9828
|
* @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
|
|
9750
9829
|
* @param {*} [options] Override http request option.
|
|
@@ -9801,7 +9880,7 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
|
|
|
9801
9880
|
*/
|
|
9802
9881
|
export declare class InvoicesApi extends BaseAPI {
|
|
9803
9882
|
/**
|
|
9804
|
-
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">
|
|
9883
|
+
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice. Defaults to the organization's currency if not provided.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Deprecated: Use <code>currency_code</code> instead.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
|
|
9805
9884
|
* @summary Create invoice
|
|
9806
9885
|
* @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
|
|
9807
9886
|
* @param {*} [options] Override http request option.
|
package/dist/api.js
CHANGED
|
@@ -25,10 +25,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TopupsApi = exports.TopupsApiFactory = exports.TopupsApiFp = exports.TopupsApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.FundingSourcesApi = exports.FundingSourcesApiFactory = exports.FundingSourcesApiFp = exports.FundingSourcesApiAxiosParamCreator = exports.UpdateFraudRuleListRuleTypeEnum = exports.FraudRuleRuleTypeEnum = void 0;
|
|
28
|
+
exports.FundingSourceTypeEnum = exports.FundingSourceStatusEnum = exports.FundingSourceUsagePermissionsEnum = exports.FundingSourceMethodEnum = exports.FraudRulesListItemRuleTypeEnum = exports.FraudRuleType = exports.FraudRuleRequestConfigPeriodEnum = exports.FraudRuleRequestConfigTypeEnum = exports.FraudReviewStatus = exports.FraudReviewRisk = exports.FraudReviewRedemptionMethod = exports.FraudReviewReason = exports.FraudReviewListItemRedemptionMethodEnum = exports.FraudReviewListItemReasonsEnum = exports.FraudReviewListItemStatusEnum = exports.FraudReviewBaseRedemptionMethodEnum = exports.FraudReviewBaseReasonsEnum = exports.FraudReviewBaseStatusEnum = exports.FraudReviewRiskEnum = exports.FraudReviewRedemptionMethodEnum = exports.FraudReviewReasonsEnum = exports.FraudReviewStatusEnum = exports.FraudConfigRedeemedRewardsCountPeriodEnum = exports.FraudConfigRedeemedRewardsAmountPeriodEnum = exports.FraudConfigCountryTypeEnum = exports.FieldDataTypeEnum = exports.DeliveryStatus = exports.DeliveryMethod = exports.DeliveryDetailsWithLinkStatusEnum = exports.DeliveryDetailsWithLinkMethodEnum = exports.DeliveryDetailsStatusEnum = exports.DeliveryDetailsMethodEnum = exports.CurrencyCodes = exports.CreateReportRequestFiltersDigitalRewardsStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsOrderStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsDeliveryMethodEnum = exports.CreateReportRequestFormatEnum = exports.CreateReportRequestReportTypeEnum = exports.CreateReport200ResponseReportStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryMethodEnum = exports.CreateOrder200ResponseOrderChannelEnum = exports.CreateOrder200ResponseOrderStatusEnum = exports.CreateInvoiceRequestCurrencyEnum = exports.CreateInvoiceRequestCurrencyCodeEnum = exports.CreateFieldRequestDataTypeEnum = exports.CreateFieldDataTypeEnum = exports.ConnectedOrganizationOrganizationStatusEnum = exports.ConnectedOrganizationMemberMemberStatusEnum = exports.Channel = void 0;
|
|
29
|
+
exports.ProductCategoryEnum = exports.PayoutStatusEnum = exports.OrganizationStatusEnum = exports.OrderWithoutLinkChannelEnum = exports.OrderWithoutLinkStatusEnum = exports.OrderWithLinkChannelEnum = exports.OrderWithLinkStatusEnum = exports.OrderStatus = exports.OrderBaseChannelEnum = exports.OrderBaseStatusEnum = exports.OrderChannelEnum = exports.OrderStatusEnum = exports.MemberWithoutEventsStatusEnum = exports.MemberWithEventsStatusEnum = exports.MemberBaseStatusEnum = exports.MemberStatusEnum = exports.ListRewards200ResponseRewardsInnerValueCurrencyCodeEnum = exports.ListRewards200ResponseRewardsInnerDeliveryStatusEnum = exports.ListRewards200ResponseRewardsInnerDeliveryMethodEnum = exports.ListProductsResponseProductsInnerImagesInnerTypeEnum = exports.ListProductsResponseProductsInnerCurrencyCodesEnum = exports.ListProductsResponseProductsInnerSubcategoryEnum = exports.ListProductsResponseProductsInnerCategoryEnum = exports.ListOrganizations200ResponseOrganizationsInnerStatusEnum = exports.ListOrders200ResponseOrdersInnerChannelEnum = exports.ListOrders200ResponseOrdersInnerStatusEnum = exports.ListMembers200ResponseMembersInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerCurrencyEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaNetworkEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaAccountTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerStatusEnum = exports.ListFundingSources200ResponseFundingSourcesInnerUsagePermissionsEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMethodEnum = exports.ListFraudRules200ResponseFraudRulesInnerRuleTypeEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerRedemptionMethodEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerReasonsEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerStatusEnum = exports.ListFields200ResponseFieldsInnerDataTypeEnum = exports.ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganizationStatusEnum = exports.ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMemberStatusEnum = exports.InvoiceStatusEnum = exports.InvoiceCurrencyEnum = exports.GetMember200ResponseMemberEventsInnerTypeEnum = exports.GetMember200ResponseMemberStatusEnum = exports.GetFraudReview200ResponseFraudReviewRiskEnum = exports.GetFraudReview200ResponseFraudReviewRedemptionMethodEnum = exports.GetFraudReview200ResponseFraudReviewReasonsEnum = exports.GetFraudReview200ResponseFraudReviewStatusEnum = void 0;
|
|
30
|
+
exports.FraudRulesApi = exports.FraudRulesApiFactory = exports.FraudRulesApiFp = exports.FraudRulesApiAxiosParamCreator = exports.ListFraudReviewsStatusEnum = exports.FraudReviewsApi = exports.FraudReviewsApiFactory = exports.FraudReviewsApiFp = exports.FraudReviewsApiAxiosParamCreator = exports.ForexApi = exports.ForexApiFactory = exports.ForexApiFp = exports.ForexApiAxiosParamCreator = exports.FieldsApi = exports.FieldsApiFactory = exports.FieldsApiFp = exports.FieldsApiAxiosParamCreator = exports.ConnectedOrganizationsApi = exports.ConnectedOrganizationsApiFactory = exports.ConnectedOrganizationsApiFp = exports.ConnectedOrganizationsApiAxiosParamCreator = exports.ConnectedOrganizationMembersApi = exports.ConnectedOrganizationMembersApiFactory = exports.ConnectedOrganizationMembersApiFp = exports.ConnectedOrganizationMembersApiAxiosParamCreator = exports.CampaignsApi = exports.CampaignsApiFactory = exports.CampaignsApiFp = exports.CampaignsApiAxiosParamCreator = exports.BalanceTransactionsApi = exports.BalanceTransactionsApiFactory = exports.BalanceTransactionsApiFp = exports.BalanceTransactionsApiAxiosParamCreator = exports.UpdateFraudRuleListRequestOperationEnum = exports.SingleRewardOrderWithoutLinkOrderChannelEnum = exports.SingleRewardOrderWithoutLinkOrderStatusEnum = exports.SingleRewardOrderWithLinkOrderChannelEnum = exports.SingleRewardOrderWithLinkOrderStatusEnum = exports.SingleRewardOrderRewardDeliveryMethodEnum = exports.RewardWithoutLinkDeliveryStatusEnum = exports.RewardWithoutLinkDeliveryMethodEnum = exports.RewardWithLinkDeliveryStatusEnum = exports.RewardWithLinkDeliveryMethodEnum = exports.RewardValueCurrencyCodeEnum = exports.ReviewRedeemedRewardsCountPeriodEnum = exports.ReviewRedeemedRewardsAmountPeriodEnum = exports.ReviewCountryTypeEnum = exports.ReportStatusEnum = exports.ProductCurrencyCodesEnum = exports.ProductSubcategoryEnum = void 0;
|
|
31
|
+
exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TopupsApi = exports.TopupsApiFactory = exports.TopupsApiFp = exports.TopupsApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.FundingSourcesApi = exports.FundingSourcesApiFactory = exports.FundingSourcesApiFp = exports.FundingSourcesApiAxiosParamCreator = exports.UpdateFraudRuleListRuleTypeEnum = exports.FraudRuleRuleTypeEnum = exports.DeleteFraudRuleRuleTypeEnum = void 0;
|
|
32
32
|
const axios_1 = __importDefault(require("axios"));
|
|
33
33
|
// Some imports not used depending on template conditions
|
|
34
34
|
// @ts-ignore
|
|
@@ -83,6 +83,11 @@ exports.CreateFieldRequestDataTypeEnum = {
|
|
|
83
83
|
Text: 'Text',
|
|
84
84
|
TextArea: 'TextArea'
|
|
85
85
|
};
|
|
86
|
+
exports.CreateInvoiceRequestCurrencyCodeEnum = {
|
|
87
|
+
Usd: 'USD',
|
|
88
|
+
Eur: 'EUR',
|
|
89
|
+
Gbp: 'GBP'
|
|
90
|
+
};
|
|
86
91
|
exports.CreateInvoiceRequestCurrencyEnum = {
|
|
87
92
|
Usd: 'USD',
|
|
88
93
|
Eur: 'EUR',
|
|
@@ -2049,6 +2054,38 @@ const ConnectedOrganizationMembersApiAxiosParamCreator = function (configuration
|
|
|
2049
2054
|
options: localVarRequestOptions,
|
|
2050
2055
|
};
|
|
2051
2056
|
}),
|
|
2057
|
+
/**
|
|
2058
|
+
* Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
|
|
2059
|
+
* @summary Remove a connected organization member
|
|
2060
|
+
* @param {string} id ID of the connected organization member to remove.
|
|
2061
|
+
* @param {*} [options] Override http request option.
|
|
2062
|
+
* @throws {RequiredError}
|
|
2063
|
+
*/
|
|
2064
|
+
deleteConnectedOrganizationMember: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2065
|
+
// verify required parameter 'id' is not null or undefined
|
|
2066
|
+
(0, common_1.assertParamExists)('deleteConnectedOrganizationMember', 'id', id);
|
|
2067
|
+
const localVarPath = `/connected_organization_members/{id}`
|
|
2068
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2069
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2070
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2071
|
+
let baseOptions;
|
|
2072
|
+
if (configuration) {
|
|
2073
|
+
baseOptions = configuration.baseOptions;
|
|
2074
|
+
}
|
|
2075
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2076
|
+
const localVarHeaderParameter = {};
|
|
2077
|
+
const localVarQueryParameter = {};
|
|
2078
|
+
// authentication BearerApiKey required
|
|
2079
|
+
// http bearer authentication required
|
|
2080
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2081
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2082
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2083
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2084
|
+
return {
|
|
2085
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2086
|
+
options: localVarRequestOptions,
|
|
2087
|
+
};
|
|
2088
|
+
}),
|
|
2052
2089
|
/**
|
|
2053
2090
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
2054
2091
|
* @summary Retrieve a connected organization member
|
|
@@ -2166,6 +2203,22 @@ const ConnectedOrganizationMembersApiFp = function (configuration) {
|
|
|
2166
2203
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2167
2204
|
});
|
|
2168
2205
|
},
|
|
2206
|
+
/**
|
|
2207
|
+
* Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
|
|
2208
|
+
* @summary Remove a connected organization member
|
|
2209
|
+
* @param {string} id ID of the connected organization member to remove.
|
|
2210
|
+
* @param {*} [options] Override http request option.
|
|
2211
|
+
* @throws {RequiredError}
|
|
2212
|
+
*/
|
|
2213
|
+
deleteConnectedOrganizationMember(id, options) {
|
|
2214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2215
|
+
var _a, _b, _c;
|
|
2216
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteConnectedOrganizationMember(id, options);
|
|
2217
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2218
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectedOrganizationMembersApi.deleteConnectedOrganizationMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2219
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2220
|
+
});
|
|
2221
|
+
},
|
|
2169
2222
|
/**
|
|
2170
2223
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
2171
2224
|
* @summary Retrieve a connected organization member
|
|
@@ -2231,6 +2284,16 @@ const ConnectedOrganizationMembersApiFactory = function (configuration, basePath
|
|
|
2231
2284
|
createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options) {
|
|
2232
2285
|
return localVarFp.createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options).then((request) => request(axios, basePath));
|
|
2233
2286
|
},
|
|
2287
|
+
/**
|
|
2288
|
+
* Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
|
|
2289
|
+
* @summary Remove a connected organization member
|
|
2290
|
+
* @param {string} id ID of the connected organization member to remove.
|
|
2291
|
+
* @param {*} [options] Override http request option.
|
|
2292
|
+
* @throws {RequiredError}
|
|
2293
|
+
*/
|
|
2294
|
+
deleteConnectedOrganizationMember(id, options) {
|
|
2295
|
+
return localVarFp.deleteConnectedOrganizationMember(id, options).then((request) => request(axios, basePath));
|
|
2296
|
+
},
|
|
2234
2297
|
/**
|
|
2235
2298
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
2236
2299
|
* @summary Retrieve a connected organization member
|
|
@@ -2286,6 +2349,17 @@ class ConnectedOrganizationMembersApi extends base_1.BaseAPI {
|
|
|
2286
2349
|
createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options) {
|
|
2287
2350
|
return (0, exports.ConnectedOrganizationMembersApiFp)(this.configuration).createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2288
2351
|
}
|
|
2352
|
+
/**
|
|
2353
|
+
* Removes a connected organization member. If the member has completed registration and has an associated Tremendous member, that membership is also revoked. The connected organization itself is not affected.
|
|
2354
|
+
* @summary Remove a connected organization member
|
|
2355
|
+
* @param {string} id ID of the connected organization member to remove.
|
|
2356
|
+
* @param {*} [options] Override http request option.
|
|
2357
|
+
* @throws {RequiredError}
|
|
2358
|
+
* @memberof ConnectedOrganizationMembersApi
|
|
2359
|
+
*/
|
|
2360
|
+
deleteConnectedOrganizationMember(id, options) {
|
|
2361
|
+
return (0, exports.ConnectedOrganizationMembersApiFp)(this.configuration).deleteConnectedOrganizationMember(id, options).then((request) => request(this.axios, this.basePath));
|
|
2362
|
+
}
|
|
2289
2363
|
/**
|
|
2290
2364
|
* Retrieve the connected organization member, identified by the given `id` in the URL
|
|
2291
2365
|
* @summary Retrieve a connected organization member
|
|
@@ -2351,6 +2425,38 @@ const ConnectedOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
2351
2425
|
options: localVarRequestOptions,
|
|
2352
2426
|
};
|
|
2353
2427
|
}),
|
|
2428
|
+
/**
|
|
2429
|
+
* Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
|
|
2430
|
+
* @summary Delete a connected organization
|
|
2431
|
+
* @param {string} id ID of the connected organization to delete.
|
|
2432
|
+
* @param {*} [options] Override http request option.
|
|
2433
|
+
* @throws {RequiredError}
|
|
2434
|
+
*/
|
|
2435
|
+
deleteConnectedOrganization: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2436
|
+
// verify required parameter 'id' is not null or undefined
|
|
2437
|
+
(0, common_1.assertParamExists)('deleteConnectedOrganization', 'id', id);
|
|
2438
|
+
const localVarPath = `/connected_organizations/{id}`
|
|
2439
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2440
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2441
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2442
|
+
let baseOptions;
|
|
2443
|
+
if (configuration) {
|
|
2444
|
+
baseOptions = configuration.baseOptions;
|
|
2445
|
+
}
|
|
2446
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2447
|
+
const localVarHeaderParameter = {};
|
|
2448
|
+
const localVarQueryParameter = {};
|
|
2449
|
+
// authentication BearerApiKey required
|
|
2450
|
+
// http bearer authentication required
|
|
2451
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2452
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2453
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2454
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2455
|
+
return {
|
|
2456
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2457
|
+
options: localVarRequestOptions,
|
|
2458
|
+
};
|
|
2459
|
+
}),
|
|
2354
2460
|
/**
|
|
2355
2461
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
2356
2462
|
* @summary Retrieve a connected organization
|
|
@@ -2445,6 +2551,22 @@ const ConnectedOrganizationsApiFp = function (configuration) {
|
|
|
2445
2551
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2446
2552
|
});
|
|
2447
2553
|
},
|
|
2554
|
+
/**
|
|
2555
|
+
* Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
|
|
2556
|
+
* @summary Delete a connected organization
|
|
2557
|
+
* @param {string} id ID of the connected organization to delete.
|
|
2558
|
+
* @param {*} [options] Override http request option.
|
|
2559
|
+
* @throws {RequiredError}
|
|
2560
|
+
*/
|
|
2561
|
+
deleteConnectedOrganization(id, options) {
|
|
2562
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2563
|
+
var _a, _b, _c;
|
|
2564
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteConnectedOrganization(id, options);
|
|
2565
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2566
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectedOrganizationsApi.deleteConnectedOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2567
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2568
|
+
});
|
|
2569
|
+
},
|
|
2448
2570
|
/**
|
|
2449
2571
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
2450
2572
|
* @summary Retrieve a connected organization
|
|
@@ -2498,6 +2620,16 @@ const ConnectedOrganizationsApiFactory = function (configuration, basePath, axio
|
|
|
2498
2620
|
createConnectedOrganization(createConnectedOrganizationRequest, options) {
|
|
2499
2621
|
return localVarFp.createConnectedOrganization(createConnectedOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
2500
2622
|
},
|
|
2623
|
+
/**
|
|
2624
|
+
* Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
|
|
2625
|
+
* @summary Delete a connected organization
|
|
2626
|
+
* @param {string} id ID of the connected organization to delete.
|
|
2627
|
+
* @param {*} [options] Override http request option.
|
|
2628
|
+
* @throws {RequiredError}
|
|
2629
|
+
*/
|
|
2630
|
+
deleteConnectedOrganization(id, options) {
|
|
2631
|
+
return localVarFp.deleteConnectedOrganization(id, options).then((request) => request(axios, basePath));
|
|
2632
|
+
},
|
|
2501
2633
|
/**
|
|
2502
2634
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
2503
2635
|
* @summary Retrieve a connected organization
|
|
@@ -2540,6 +2672,17 @@ class ConnectedOrganizationsApi extends base_1.BaseAPI {
|
|
|
2540
2672
|
createConnectedOrganization(createConnectedOrganizationRequest, options) {
|
|
2541
2673
|
return (0, exports.ConnectedOrganizationsApiFp)(this.configuration).createConnectedOrganization(createConnectedOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2542
2674
|
}
|
|
2675
|
+
/**
|
|
2676
|
+
* Deletes a connected organization and revokes the associated OAuth connection. The underlying Tremendous organization is not affected and remains accessible.
|
|
2677
|
+
* @summary Delete a connected organization
|
|
2678
|
+
* @param {string} id ID of the connected organization to delete.
|
|
2679
|
+
* @param {*} [options] Override http request option.
|
|
2680
|
+
* @throws {RequiredError}
|
|
2681
|
+
* @memberof ConnectedOrganizationsApi
|
|
2682
|
+
*/
|
|
2683
|
+
deleteConnectedOrganization(id, options) {
|
|
2684
|
+
return (0, exports.ConnectedOrganizationsApiFp)(this.configuration).deleteConnectedOrganization(id, options).then((request) => request(this.axios, this.basePath));
|
|
2685
|
+
}
|
|
2543
2686
|
/**
|
|
2544
2687
|
* Retrieve the connected organization, identified by the given `id` in the URL
|
|
2545
2688
|
* @summary Retrieve a connected organization
|
|
@@ -3745,7 +3888,7 @@ exports.FundingSourcesApi = FundingSourcesApi;
|
|
|
3745
3888
|
const InvoicesApiAxiosParamCreator = function (configuration) {
|
|
3746
3889
|
return {
|
|
3747
3890
|
/**
|
|
3748
|
-
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">
|
|
3891
|
+
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice. Defaults to the organization's currency if not provided.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Deprecated: Use <code>currency_code</code> instead.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
|
|
3749
3892
|
* @summary Create invoice
|
|
3750
3893
|
* @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
|
|
3751
3894
|
* @param {*} [options] Override http request option.
|
|
@@ -3952,7 +4095,7 @@ const InvoicesApiFp = function (configuration) {
|
|
|
3952
4095
|
const localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
|
|
3953
4096
|
return {
|
|
3954
4097
|
/**
|
|
3955
|
-
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">
|
|
4098
|
+
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice. Defaults to the organization's currency if not provided.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Deprecated: Use <code>currency_code</code> instead.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
|
|
3956
4099
|
* @summary Create invoice
|
|
3957
4100
|
* @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
|
|
3958
4101
|
* @param {*} [options] Override http request option.
|
|
@@ -4059,7 +4202,7 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
4059
4202
|
const localVarFp = (0, exports.InvoicesApiFp)(configuration);
|
|
4060
4203
|
return {
|
|
4061
4204
|
/**
|
|
4062
|
-
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">
|
|
4205
|
+
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice. Defaults to the organization's currency if not provided.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Deprecated: Use <code>currency_code</code> instead.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
|
|
4063
4206
|
* @summary Create invoice
|
|
4064
4207
|
* @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
|
|
4065
4208
|
* @param {*} [options] Override http request option.
|
|
@@ -4130,7 +4273,7 @@ exports.InvoicesApiFactory = InvoicesApiFactory;
|
|
|
4130
4273
|
*/
|
|
4131
4274
|
class InvoicesApi extends base_1.BaseAPI {
|
|
4132
4275
|
/**
|
|
4133
|
-
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">
|
|
4276
|
+
* Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice. Defaults to the organization's currency if not provided.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Deprecated: Use <code>currency_code</code> instead.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
|
|
4134
4277
|
* @summary Create invoice
|
|
4135
4278
|
* @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
|
|
4136
4279
|
* @param {*} [options] Override http request option.
|