@flexprice/sdk 2.1.48-dev.5 → 2.1.48-dev.7

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.
@@ -784,7 +784,7 @@ run();
784
784
 
785
785
  ## terminateCommitment
786
786
 
787
- Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled and any amount it earned beyond what is already invoiced is billed as a settlement. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
787
+ Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled, and those already due by effective_at are billed together as one settlement; later instalments are not billed and nothing is refunded. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
788
788
 
789
789
  ### Example Usage
790
790
 
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
11
11
  * Terminate commitment
12
12
  *
13
13
  * @remarks
14
- * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled and any amount it earned beyond what is already invoiced is billed as a settlement. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
14
+ * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled, and those already due by effective_at are billed together as one settlement; later instalments are not billed and nothing is refunded. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
15
15
  */
16
16
  export declare function commitmentsTerminateCommitment(client: FlexpriceCore, id: string, body?: models.TerminateCommitmentRequest | undefined, options?: RequestOptions): APIPromise<Result<models.CommitmentResponse, models.ErrorsErrorResponse | FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
17
  //# sourceMappingURL=commitments-terminate-commitment.d.ts.map
@@ -15,7 +15,7 @@ import { APIPromise } from "../types/async.js";
15
15
  * Terminate commitment
16
16
  *
17
17
  * @remarks
18
- * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled and any amount it earned beyond what is already invoiced is billed as a settlement. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
18
+ * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled, and those already due by effective_at are billed together as one settlement; later instalments are not billed and nothing is refunded. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
19
19
  */
20
20
  export function commitmentsTerminateCommitment(client, id, body, options) {
21
21
  return new APIPromise($do(client, id, body, options));
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
35
35
  export declare const SDK_METADATA: {
36
36
  readonly language: "typescript";
37
37
  readonly openapiDocVersion: "1.0";
38
- readonly sdkVersion: "2.1.48-dev.5";
38
+ readonly sdkVersion: "2.1.48-dev.7";
39
39
  readonly genVersion: "2.956.1";
40
- readonly userAgent: "speakeasy-sdk/typescript 2.1.48-dev.5 2.956.1 1.0 @flexprice/sdk";
40
+ readonly userAgent: "speakeasy-sdk/typescript 2.1.48-dev.7 2.956.1 1.0 @flexprice/sdk";
41
41
  };
42
42
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
39
39
  export const SDK_METADATA = {
40
40
  language: "typescript",
41
41
  openapiDocVersion: "1.0",
42
- sdkVersion: "2.1.48-dev.5",
42
+ sdkVersion: "2.1.48-dev.7",
43
43
  genVersion: "2.956.1",
44
- userAgent: "speakeasy-sdk/typescript 2.1.48-dev.5 2.956.1 1.0 @flexprice/sdk",
44
+ userAgent: "speakeasy-sdk/typescript 2.1.48-dev.7 2.956.1 1.0 @flexprice/sdk",
45
45
  };
46
46
  //# sourceMappingURL=config.js.map
@@ -75,7 +75,7 @@ export declare class Commitments extends ClientSDK {
75
75
  * Terminate commitment
76
76
  *
77
77
  * @remarks
78
- * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled and any amount it earned beyond what is already invoiced is billed as a settlement. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
78
+ * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled, and those already due by effective_at are billed together as one settlement; later instalments are not billed and nothing is refunded. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
79
79
  */
80
80
  terminateCommitment(id: string, body?: models.TerminateCommitmentRequest | undefined, options?: RequestOptions): Promise<models.CommitmentResponse>;
81
81
  }
@@ -109,7 +109,7 @@ export class Commitments extends ClientSDK {
109
109
  * Terminate commitment
110
110
  *
111
111
  * @remarks
112
- * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled and any amount it earned beyond what is already invoiced is billed as a settlement. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
112
+ * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled, and those already due by effective_at are billed together as one settlement; later instalments are not billed and nothing is refunded. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
113
113
  */
114
114
  async terminateCommitment(id, body, options) {
115
115
  return unwrapAsync(commitmentsTerminateCommitment(this, id, body, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@flexprice/sdk",
5
- "version": "2.1.48-dev.5",
5
+ "version": "2.1.48-dev.7",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./sdk/models": "./src/sdk/models/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexprice/sdk",
3
- "version": "2.1.48-dev.5",
3
+ "version": "2.1.48-dev.7",
4
4
  "author": "FlexPrice",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -49,5 +49,5 @@
49
49
  "dependencies": {
50
50
  "zod": "^3.25.65 || ^4.0.0"
51
51
  },
52
- "flexpriceCommit": "bf14d2cc9ca32ebb7ccc413e58394d088afaadd3"
52
+ "flexpriceCommit": "8aabbb23c3414637ff4115a3d926b395bad466b7"
53
53
  }
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Terminate commitment
31
31
  *
32
32
  * @remarks
33
- * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled and any amount it earned beyond what is already invoiced is billed as a settlement. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
33
+ * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled, and those already due by effective_at are billed together as one settlement; later instalments are not billed and nothing is refunded. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
34
34
  */
35
35
  export function commitmentsTerminateCommitment(
36
36
  client: FlexpriceCore,
package/src/lib/config.ts CHANGED
@@ -77,7 +77,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
77
77
  export const SDK_METADATA = {
78
78
  language: "typescript",
79
79
  openapiDocVersion: "1.0",
80
- sdkVersion: "2.1.48-dev.5",
80
+ sdkVersion: "2.1.48-dev.7",
81
81
  genVersion: "2.956.1",
82
- userAgent: "speakeasy-sdk/typescript 2.1.48-dev.5 2.956.1 1.0 @flexprice/sdk",
82
+ userAgent: "speakeasy-sdk/typescript 2.1.48-dev.7 2.956.1 1.0 @flexprice/sdk",
83
83
  } as const;
@@ -204,7 +204,7 @@ export class Commitments extends ClientSDK {
204
204
  * Terminate commitment
205
205
  *
206
206
  * @remarks
207
- * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled and any amount it earned beyond what is already invoiced is billed as a settlement. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
207
+ * Ends a commitment immediately. effective_at defaults to now and cannot be in the future. Under billing terms, its scheduled instalments are cancelled, and those already due by effective_at are billed together as one settlement; later instalments are not billed and nothing is refunded. The settlement and a fixed cancellation fee, when given, are billed together on one one-off invoice.
208
208
  */
209
209
  async terminateCommitment(
210
210
  id: string,