vayu-ts 0.3.7 → 0.3.8

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.
@@ -26,8 +26,11 @@ export declare class InvoicesApiRequestFactory extends BaseAPIRequestFactory {
26
26
  * @param limit
27
27
  * @param cursor
28
28
  * @param customerId
29
+ * @param billingStatus Filter invoices by their billing status
30
+ * @param issuedAtFrom Only include invoices issued on or after this timestamp
31
+ * @param issuedAtTo Only include invoices issued on or before this timestamp
29
32
  */
30
- listInvoices(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Promise<RequestContext>;
33
+ listInvoices(limit?: number, cursor?: string, customerId?: string, billingStatus?: 'None' | 'Paid' | 'Rejected' | 'PendingPayment' | 'Overdue', issuedAtFrom?: Date, issuedAtTo?: Date, _options?: Configuration): Promise<RequestContext>;
31
34
  }
32
35
  export declare class InvoicesApiResponseProcessor {
33
36
  /**
@@ -75,8 +75,11 @@ class InvoicesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
75
75
  * @param limit
76
76
  * @param cursor
77
77
  * @param customerId
78
+ * @param billingStatus Filter invoices by their billing status
79
+ * @param issuedAtFrom Only include invoices issued on or after this timestamp
80
+ * @param issuedAtTo Only include invoices issued on or before this timestamp
78
81
  */
79
- async listInvoices(limit, cursor, customerId, _options) {
82
+ async listInvoices(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options) {
80
83
  let _config = _options || this.configuration;
81
84
  // Path Params
82
85
  const localVarPath = '/invoices';
@@ -95,6 +98,18 @@ class InvoicesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
95
98
  if (customerId !== undefined) {
96
99
  requestContext.setQueryParam("customerId", ObjectSerializer_1.ObjectSerializer.serialize(customerId, "string", ""));
97
100
  }
101
+ // Query Params
102
+ if (billingStatus !== undefined) {
103
+ requestContext.setQueryParam("billingStatus", ObjectSerializer_1.ObjectSerializer.serialize(billingStatus, "'None' | 'Paid' | 'Rejected' | 'PendingPayment' | 'Overdue'", ""));
104
+ }
105
+ // Query Params
106
+ if (issuedAtFrom !== undefined) {
107
+ requestContext.setQueryParam("issuedAtFrom", ObjectSerializer_1.ObjectSerializer.serialize(issuedAtFrom, "Date", "date-time"));
108
+ }
109
+ // Query Params
110
+ if (issuedAtTo !== undefined) {
111
+ requestContext.setQueryParam("issuedAtTo", ObjectSerializer_1.ObjectSerializer.serialize(issuedAtTo, "Date", "date-time"));
112
+ }
98
113
  let authMethod;
99
114
  // Apply auth methods
100
115
  authMethod = _config.authMethods["BearerAuthorizer"];
@@ -29,6 +29,14 @@ export declare class CreateContractRequest {
29
29
  */
30
30
  'name': string;
31
31
  /**
32
+ * The id of the plan template to create the contract from. When provided, the contract\'s products are derived from the plan template.
33
+ */
34
+ 'planId'?: string;
35
+ /**
36
+ * An external identifier for the contract
37
+ */
38
+ 'externalId'?: string | null;
39
+ /**
32
40
  * The id of the sales force opportunity that the contract is associated with
33
41
  */
34
42
  'salesForceOpportunityId'?: string | null;
@@ -41,6 +41,18 @@ CreateContractRequest.attributeTypeMap = [
41
41
  "type": "string",
42
42
  "format": ""
43
43
  },
44
+ {
45
+ "name": "planId",
46
+ "baseName": "planId",
47
+ "type": "string",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "externalId",
52
+ "baseName": "externalId",
53
+ "type": "string",
54
+ "format": ""
55
+ },
44
56
  {
45
57
  "name": "salesForceOpportunityId",
46
58
  "baseName": "salesForceOpportunityId",
@@ -756,16 +756,22 @@ export declare class ObservableInvoicesApi {
756
756
  * @param [limit]
757
757
  * @param [cursor]
758
758
  * @param [customerId]
759
+ * @param [billingStatus] Filter invoices by their billing status
760
+ * @param [issuedAtFrom] Only include invoices issued on or after this timestamp
761
+ * @param [issuedAtTo] Only include invoices issued on or before this timestamp
759
762
  */
760
- listInvoicesWithHttpInfo(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Observable<HttpInfo<ListInvoicesResponse>>;
763
+ listInvoicesWithHttpInfo(limit?: number, cursor?: string, customerId?: string, billingStatus?: 'None' | 'Paid' | 'Rejected' | 'PendingPayment' | 'Overdue', issuedAtFrom?: Date, issuedAtTo?: Date, _options?: Configuration): Observable<HttpInfo<ListInvoicesResponse>>;
761
764
  /**
762
765
  * List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
763
766
  * List invoices
764
767
  * @param [limit]
765
768
  * @param [cursor]
766
769
  * @param [customerId]
770
+ * @param [billingStatus] Filter invoices by their billing status
771
+ * @param [issuedAtFrom] Only include invoices issued on or after this timestamp
772
+ * @param [issuedAtTo] Only include invoices issued on or before this timestamp
767
773
  */
768
- listInvoices(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Observable<ListInvoicesResponse>;
774
+ listInvoices(limit?: number, cursor?: string, customerId?: string, billingStatus?: 'None' | 'Paid' | 'Rejected' | 'PendingPayment' | 'Overdue', issuedAtFrom?: Date, issuedAtTo?: Date, _options?: Configuration): Observable<ListInvoicesResponse>;
769
775
  }
770
776
  import { MeasurementsApiRequestFactory, MeasurementsApiResponseProcessor } from "../apis/MeasurementsApi";
771
777
  export declare class ObservableMeasurementsApi {
@@ -1495,9 +1495,12 @@ class ObservableInvoicesApi {
1495
1495
  * @param [limit]
1496
1496
  * @param [cursor]
1497
1497
  * @param [customerId]
1498
+ * @param [billingStatus] Filter invoices by their billing status
1499
+ * @param [issuedAtFrom] Only include invoices issued on or after this timestamp
1500
+ * @param [issuedAtTo] Only include invoices issued on or before this timestamp
1498
1501
  */
1499
- listInvoicesWithHttpInfo(limit, cursor, customerId, _options) {
1500
- const requestContextPromise = this.requestFactory.listInvoices(limit, cursor, customerId, _options);
1502
+ listInvoicesWithHttpInfo(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options) {
1503
+ const requestContextPromise = this.requestFactory.listInvoices(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options);
1501
1504
  // build promise chain
1502
1505
  let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
1503
1506
  for (const middleware of this.configuration.middleware) {
@@ -1518,9 +1521,12 @@ class ObservableInvoicesApi {
1518
1521
  * @param [limit]
1519
1522
  * @param [cursor]
1520
1523
  * @param [customerId]
1524
+ * @param [billingStatus] Filter invoices by their billing status
1525
+ * @param [issuedAtFrom] Only include invoices issued on or after this timestamp
1526
+ * @param [issuedAtTo] Only include invoices issued on or before this timestamp
1521
1527
  */
1522
- listInvoices(limit, cursor, customerId, _options) {
1523
- return this.listInvoicesWithHttpInfo(limit, cursor, customerId, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
1528
+ listInvoices(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options) {
1529
+ return this.listInvoicesWithHttpInfo(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options).pipe((0, rxjsStub_2.map)((apiResponse) => apiResponse.data));
1524
1530
  }
1525
1531
  }
1526
1532
  exports.ObservableInvoicesApi = ObservableInvoicesApi;
@@ -737,16 +737,22 @@ export declare class PromiseInvoicesApi {
737
737
  * @param [limit]
738
738
  * @param [cursor]
739
739
  * @param [customerId]
740
+ * @param [billingStatus] Filter invoices by their billing status
741
+ * @param [issuedAtFrom] Only include invoices issued on or after this timestamp
742
+ * @param [issuedAtTo] Only include invoices issued on or before this timestamp
740
743
  */
741
- listInvoicesWithHttpInfo(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Promise<HttpInfo<ListInvoicesResponse>>;
744
+ listInvoicesWithHttpInfo(limit?: number, cursor?: string, customerId?: string, billingStatus?: 'None' | 'Paid' | 'Rejected' | 'PendingPayment' | 'Overdue', issuedAtFrom?: Date, issuedAtTo?: Date, _options?: Configuration): Promise<HttpInfo<ListInvoicesResponse>>;
742
745
  /**
743
746
  * List invoices for the account. Optionally filter by customerId to retrieve invoices for a specific customer.
744
747
  * List invoices
745
748
  * @param [limit]
746
749
  * @param [cursor]
747
750
  * @param [customerId]
751
+ * @param [billingStatus] Filter invoices by their billing status
752
+ * @param [issuedAtFrom] Only include invoices issued on or after this timestamp
753
+ * @param [issuedAtTo] Only include invoices issued on or before this timestamp
748
754
  */
749
- listInvoices(limit?: number, cursor?: string, customerId?: string, _options?: Configuration): Promise<ListInvoicesResponse>;
755
+ listInvoices(limit?: number, cursor?: string, customerId?: string, billingStatus?: 'None' | 'Paid' | 'Rejected' | 'PendingPayment' | 'Overdue', issuedAtFrom?: Date, issuedAtTo?: Date, _options?: Configuration): Promise<ListInvoicesResponse>;
750
756
  }
751
757
  import { MeasurementsApiRequestFactory, MeasurementsApiResponseProcessor } from "../apis/MeasurementsApi";
752
758
  export declare class PromiseMeasurementsApi {
@@ -958,9 +958,12 @@ class PromiseInvoicesApi {
958
958
  * @param [limit]
959
959
  * @param [cursor]
960
960
  * @param [customerId]
961
+ * @param [billingStatus] Filter invoices by their billing status
962
+ * @param [issuedAtFrom] Only include invoices issued on or after this timestamp
963
+ * @param [issuedAtTo] Only include invoices issued on or before this timestamp
961
964
  */
962
- listInvoicesWithHttpInfo(limit, cursor, customerId, _options) {
963
- const result = this.api.listInvoicesWithHttpInfo(limit, cursor, customerId, _options);
965
+ listInvoicesWithHttpInfo(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options) {
966
+ const result = this.api.listInvoicesWithHttpInfo(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options);
964
967
  return result.toPromise();
965
968
  }
966
969
  /**
@@ -969,9 +972,12 @@ class PromiseInvoicesApi {
969
972
  * @param [limit]
970
973
  * @param [cursor]
971
974
  * @param [customerId]
975
+ * @param [billingStatus] Filter invoices by their billing status
976
+ * @param [issuedAtFrom] Only include invoices issued on or after this timestamp
977
+ * @param [issuedAtTo] Only include invoices issued on or before this timestamp
972
978
  */
973
- listInvoices(limit, cursor, customerId, _options) {
974
- const result = this.api.listInvoices(limit, cursor, customerId, _options);
979
+ listInvoices(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options) {
980
+ const result = this.api.listInvoices(limit, cursor, customerId, billingStatus, issuedAtFrom, issuedAtTo, _options);
975
981
  return result.toPromise();
976
982
  }
977
983
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vayu-ts",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Simple and easy to use typescript package for utilizing vayu billing system",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",