@livechat/developer-studio-api 3.0.31 → 3.0.33

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/dist/index.d.mts CHANGED
@@ -1615,6 +1615,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
1615
1615
  }): void;
1616
1616
 
1617
1617
  interface ApplicationPaymentDto {
1618
+ creditCardRequired: boolean;
1618
1619
  frequency: "monthly" | "once";
1619
1620
  perAccount: boolean;
1620
1621
  price: number;
@@ -2667,7 +2668,9 @@ declare const api: {
2667
2668
  deleteOnboarding(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2668
2669
  };
2669
2670
  payment: {
2670
- updatePaymentBlock(appId: string, payment: ApplicationPaymentDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2671
+ updatePaymentBlock(appId: string, payment: Omit<ApplicationPaymentDto, "creditCardRequired"> & {
2672
+ creditCardRequired?: boolean | undefined;
2673
+ }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2671
2674
  deletePaymentBlock(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2672
2675
  };
2673
2676
  product: {
package/dist/index.d.ts CHANGED
@@ -1615,6 +1615,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
1615
1615
  }): void;
1616
1616
 
1617
1617
  interface ApplicationPaymentDto {
1618
+ creditCardRequired: boolean;
1618
1619
  frequency: "monthly" | "once";
1619
1620
  perAccount: boolean;
1620
1621
  price: number;
@@ -2667,7 +2668,9 @@ declare const api: {
2667
2668
  deleteOnboarding(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2668
2669
  };
2669
2670
  payment: {
2670
- updatePaymentBlock(appId: string, payment: ApplicationPaymentDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2671
+ updatePaymentBlock(appId: string, payment: Omit<ApplicationPaymentDto, "creditCardRequired"> & {
2672
+ creditCardRequired?: boolean | undefined;
2673
+ }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2671
2674
  deletePaymentBlock(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2672
2675
  };
2673
2676
  product: {
package/dist/index.js CHANGED
@@ -3981,12 +3981,12 @@ var platformDpsApplicationOnboardingApi = {
3981
3981
  var platformDpsApplicationPaymentApi = {
3982
3982
  updatePaymentBlock(appId, payment, authorization) {
3983
3983
  return __async(this, null, function* () {
3984
+ var _a;
3984
3985
  yield platformDpsClientInstance.put(
3985
3986
  `/v2/applications/${appId}/payment`,
3986
- {
3987
- payment,
3988
- creditCardRequired: true
3989
- },
3987
+ __spreadProps(__spreadValues({}, payment), {
3988
+ creditCardRequired: (_a = payment.creditCardRequired) != null ? _a : true
3989
+ }),
3990
3990
  getPlatformDpsClientConfig(authorization)
3991
3991
  ).catch((error) => {
3992
3992
  throw error.withCustomMessage(
package/dist/index.mjs CHANGED
@@ -3879,12 +3879,12 @@ var platformDpsApplicationOnboardingApi = {
3879
3879
  var platformDpsApplicationPaymentApi = {
3880
3880
  updatePaymentBlock(appId, payment, authorization) {
3881
3881
  return __async(this, null, function* () {
3882
+ var _a;
3882
3883
  yield platformDpsClientInstance.put(
3883
3884
  `/v2/applications/${appId}/payment`,
3884
- {
3885
- payment,
3886
- creditCardRequired: true
3887
- },
3885
+ __spreadProps(__spreadValues({}, payment), {
3886
+ creditCardRequired: (_a = payment.creditCardRequired) != null ? _a : true
3887
+ }),
3888
3888
  getPlatformDpsClientConfig(authorization)
3889
3889
  ).catch((error) => {
3890
3890
  throw error.withCustomMessage(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.31",
3
+ "version": "3.0.33",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
20
  "eslint-config-custom": "0.0.7",
21
- "tsconfig": "0.0.1",
22
- "utils": "0.0.3"
21
+ "utils": "0.0.3",
22
+ "tsconfig": "0.0.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup",