@trusted-solutions/sdit.models 0.22.6 → 0.22.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.
@@ -28,7 +28,9 @@ export interface GetCurrentStoreContractLimitResponse {
28
28
  /**
29
29
  * Create Contract use case
30
30
  */
31
- export declare type CreateContractRequest = ContractCore;
31
+ export declare type CreateContractRequest = {
32
+ planIds?: string[];
33
+ } & ContractCore;
32
34
  export declare type CreateContractResponse = Contract;
33
35
  /**
34
36
  * Update Contract Duration use case
@@ -20,8 +20,7 @@ export declare type ContractCore = {
20
20
  planId: string;
21
21
  storeId: string;
22
22
  ownerCognitoUserId: string;
23
- /** Should create subscription before creating contract. */
24
- subscriptionId: string;
23
+ subscriptionId?: string;
25
24
  };
26
25
  export declare type Contract = {
27
26
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.22.6",
3
+ "version": "0.22.8",
4
4
  "description": "TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.",
5
5
  "main": "index.js",
6
6
  "scripts": {