@wix/auto_sdk_app-management_external-billing 1.0.8 → 1.0.10

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.
Files changed (134) hide show
  1. package/build/index.d.mts +17 -0
  2. package/build/index.d.ts +17 -0
  3. package/build/index.js +188 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +163 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +17 -0
  8. package/build/internal/index.d.ts +17 -0
  9. package/build/internal/index.js +188 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +163 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/{cjs/src/market-aim-v1-external-billing-event-external-billing.types.d.ts → market-aim-v1-external-billing-event-external-billing.universal-DamAfTwv.d.mts} +19 -8
  14. package/build/{es/src/market-aim-v1-external-billing-event-external-billing.types.d.ts → internal/market-aim-v1-external-billing-event-external-billing.universal-DamAfTwv.d.ts} +19 -8
  15. package/build/internal/meta.d.mts +76 -0
  16. package/build/internal/meta.d.ts +76 -0
  17. package/build/internal/meta.js +156 -0
  18. package/build/internal/meta.js.map +1 -0
  19. package/build/internal/meta.mjs +129 -0
  20. package/build/internal/meta.mjs.map +1 -0
  21. package/build/{cjs/src/market-aim-v1-external-billing-event-external-billing.types.d.ts → market-aim-v1-external-billing-event-external-billing.universal-DamAfTwv.d.mts} +19 -8
  22. package/build/{internal/es/src/market-aim-v1-external-billing-event-external-billing.types.d.ts → market-aim-v1-external-billing-event-external-billing.universal-DamAfTwv.d.ts} +19 -8
  23. package/build/meta.d.mts +76 -0
  24. package/build/meta.d.ts +76 -0
  25. package/build/meta.js +156 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +129 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.context.d.ts +0 -5
  40. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.context.js +0 -9
  41. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.context.js.map +0 -1
  42. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.http.d.ts +0 -7
  43. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.http.js +0 -112
  44. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.http.js.map +0 -1
  45. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.d.ts +0 -13
  46. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.js +0 -47
  47. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.js.map +0 -1
  48. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.public.d.ts +0 -15
  49. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.public.js +0 -14
  50. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.public.js.map +0 -1
  51. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.types.js +0 -10
  52. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.types.js.map +0 -1
  53. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.d.ts +0 -88
  54. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.js +0 -77
  55. package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/market-aim-v1-external-billing-event-external-billing.context.d.ts +0 -5
  67. package/build/es/src/market-aim-v1-external-billing-event-external-billing.context.js +0 -5
  68. package/build/es/src/market-aim-v1-external-billing-event-external-billing.context.js.map +0 -1
  69. package/build/es/src/market-aim-v1-external-billing-event-external-billing.http.d.ts +0 -7
  70. package/build/es/src/market-aim-v1-external-billing-event-external-billing.http.js +0 -108
  71. package/build/es/src/market-aim-v1-external-billing-event-external-billing.http.js.map +0 -1
  72. package/build/es/src/market-aim-v1-external-billing-event-external-billing.meta.d.ts +0 -13
  73. package/build/es/src/market-aim-v1-external-billing-event-external-billing.meta.js +0 -20
  74. package/build/es/src/market-aim-v1-external-billing-event-external-billing.meta.js.map +0 -1
  75. package/build/es/src/market-aim-v1-external-billing-event-external-billing.public.d.ts +0 -15
  76. package/build/es/src/market-aim-v1-external-billing-event-external-billing.public.js +0 -9
  77. package/build/es/src/market-aim-v1-external-billing-event-external-billing.public.js.map +0 -1
  78. package/build/es/src/market-aim-v1-external-billing-event-external-billing.types.js +0 -7
  79. package/build/es/src/market-aim-v1-external-billing-event-external-billing.types.js.map +0 -1
  80. package/build/es/src/market-aim-v1-external-billing-event-external-billing.universal.d.ts +0 -88
  81. package/build/es/src/market-aim-v1-external-billing-event-external-billing.universal.js +0 -50
  82. package/build/es/src/market-aim-v1-external-billing-event-external-billing.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.context.d.ts +0 -5
  93. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.context.js +0 -9
  94. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.context.js.map +0 -1
  95. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.http.d.ts +0 -7
  96. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.http.js +0 -112
  97. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.http.js.map +0 -1
  98. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.d.ts +0 -13
  99. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.js +0 -47
  100. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.js.map +0 -1
  101. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.public.d.ts +0 -15
  102. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.public.js +0 -14
  103. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.public.js.map +0 -1
  104. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.types.js +0 -10
  105. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.types.js.map +0 -1
  106. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.d.ts +0 -88
  107. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.js +0 -77
  108. package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.context.d.ts +0 -5
  119. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.context.js +0 -5
  120. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.context.js.map +0 -1
  121. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.http.d.ts +0 -7
  122. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.http.js +0 -108
  123. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.http.js.map +0 -1
  124. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.meta.d.ts +0 -13
  125. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.meta.js +0 -20
  126. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.meta.js.map +0 -1
  127. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.public.d.ts +0 -15
  128. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.public.js +0 -9
  129. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.public.js.map +0 -1
  130. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.types.js +0 -7
  131. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.types.js.map +0 -1
  132. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.universal.d.ts +0 -88
  133. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.universal.js +0 -50
  134. package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.universal.js.map +0 -1
@@ -1,7 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * Sends an external billing event to Wix.
4
- * Use this to report charges or refunds for your [Partner Billed App](https://dev.wix.com/docs/build-apps/launch-your-app/pricing-and-billing/partner-billed-apps-reporting).
5
- * The reported event enables Wix to track revenue, deductions, and shares related to third-party billing.
6
- */
7
- export declare function reportExternalBillingEvent(payload: object): RequestOptionsFactory<any>;
@@ -1,108 +0,0 @@
1
- import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
2
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
3
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
4
- import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
5
- function resolveComWixpressMarketAimApiExternalBillingBiServiceUrl(opts) {
6
- const domainToMappings = {
7
- 'api._api_base_domain_': [
8
- {
9
- srcPath: '/app-instance-manager-webapp',
10
- destPath: '',
11
- },
12
- ],
13
- 'www.wixapis.com': [
14
- {
15
- srcPath: '/apps',
16
- destPath: '',
17
- },
18
- ],
19
- 'wixapis.com': [
20
- {
21
- srcPath: '/apps',
22
- destPath: '',
23
- },
24
- ],
25
- 'dev._base_domain_': [
26
- {
27
- srcPath: '/_api/app-instance-manager',
28
- destPath: '',
29
- },
30
- {
31
- srcPath: '/api/v1/instance',
32
- destPath: '/v1/instance',
33
- },
34
- {
35
- srcPath: '/api/v1/scripts',
36
- destPath: '/v1/scripts',
37
- },
38
- ],
39
- 'manage._base_domain_': [
40
- {
41
- srcPath: '/_api/app-instance-manager',
42
- destPath: '',
43
- },
44
- ],
45
- 'www._base_domain_': [
46
- {
47
- srcPath: '/_api/app-instance-manager',
48
- destPath: '',
49
- },
50
- ],
51
- 'editor._base_domain_': [
52
- {
53
- srcPath: '/_api/app-instance-manager',
54
- destPath: '',
55
- },
56
- ],
57
- 'blocks._base_domain_': [
58
- {
59
- srcPath: '/_api/app-instance-manager',
60
- destPath: '',
61
- },
62
- ],
63
- 'create.editorx': [
64
- {
65
- srcPath: '/_api/app-instance-manager',
66
- destPath: '',
67
- },
68
- ],
69
- };
70
- return resolveUrl(Object.assign(opts, { domainToMappings }));
71
- }
72
- const PACKAGE_NAME = '@wix/auto_sdk_app-management_external-billing';
73
- /**
74
- * Sends an external billing event to Wix.
75
- * Use this to report charges or refunds for your [Partner Billed App](https://dev.wix.com/docs/build-apps/launch-your-app/pricing-and-billing/partner-billed-apps-reporting).
76
- * The reported event enables Wix to track revenue, deductions, and shares related to third-party billing.
77
- */
78
- export function reportExternalBillingEvent(payload) {
79
- function __reportExternalBillingEvent({ host }) {
80
- const serializedData = transformPaths(payload, [
81
- {
82
- transformFn: transformSDKTimestampToRESTTimestamp,
83
- paths: [{ path: 'event.createdDate' }],
84
- },
85
- ]);
86
- const metadata = {
87
- entityFqdn: 'wix.market.aim.v1.external_billing_event',
88
- method: 'POST',
89
- methodFqn: 'com.wixpress.market.aim.api.ExternalBillingBIService.ReportExternalBillingEvent',
90
- packageName: PACKAGE_NAME,
91
- url: resolveComWixpressMarketAimApiExternalBillingBiServiceUrl({
92
- protoPath: '/v1/billing-event',
93
- data: serializedData,
94
- host,
95
- }),
96
- data: serializedData,
97
- transformResponse: (payload) => transformPaths(payload, [
98
- {
99
- transformFn: transformRESTTimestampToSDKTimestamp,
100
- paths: [{ path: 'event.createdDate' }],
101
- },
102
- ]),
103
- };
104
- return metadata;
105
- }
106
- return __reportExternalBillingEvent;
107
- }
108
- //# sourceMappingURL=market-aim-v1-external-billing-event-external-billing.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"market-aim-v1-external-billing-event-external-billing.http.js","sourceRoot":"","sources":["../../../../src/market-aim-v1-external-billing-event-external-billing.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,yDAAyD,CAChE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,aAAa,EAAE;YACb;gBACE,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,cAAc;aACzB;YACD;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,aAAa;aACxB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,+CAA+C,CAAC;AAErE;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CACxC,OAAe;IAEf,SAAS,4BAA4B,CAAC,EAAE,IAAI,EAAO;QACjD,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE;YAC7C;gBACE,WAAW,EAAE,oCAAoC;gBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;aACvC;SACF,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,0CAA0C;YACtD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,iFAAiF;YACnF,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,yDAAyD,CAAC;gBAC7D,SAAS,EAAE,mBAAmB;gBAC9B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;iBACvC;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,4BAA4B,CAAC;AACtC,CAAC"}
@@ -1,13 +0,0 @@
1
- import * as ambassadorWixMarketAimV1ExternalBillingEventTypes from './market-aim-v1-external-billing-event-external-billing.types.js';
2
- import * as ambassadorWixMarketAimV1ExternalBillingEventUniversalTypes from './market-aim-v1-external-billing-event-external-billing.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function reportExternalBillingEvent(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixMarketAimV1ExternalBillingEventUniversalTypes.ReportExternalBillingEventRequest, ambassadorWixMarketAimV1ExternalBillingEventTypes.ReportExternalBillingEventRequest, ambassadorWixMarketAimV1ExternalBillingEventUniversalTypes.ReportExternalBillingEventResponse, ambassadorWixMarketAimV1ExternalBillingEventTypes.ReportExternalBillingEventResponse>;
@@ -1,20 +0,0 @@
1
- import * as ambassadorWixMarketAimV1ExternalBillingEvent from './market-aim-v1-external-billing-event-external-billing.http.js';
2
- export function reportExternalBillingEvent() {
3
- const payload = {};
4
- const getRequestOptions = ambassadorWixMarketAimV1ExternalBillingEvent.reportExternalBillingEvent(payload);
5
- const getUrl = (context) => {
6
- const { url } = getRequestOptions(context);
7
- return url;
8
- };
9
- return {
10
- getUrl,
11
- httpMethod: 'POST',
12
- path: '/v1/billing-event',
13
- pathParams: {},
14
- __requestType: null,
15
- __originalRequestType: null,
16
- __responseType: null,
17
- __originalResponseType: null,
18
- };
19
- }
20
- //# sourceMappingURL=market-aim-v1-external-billing-event-external-billing.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"market-aim-v1-external-billing-event-external-billing.meta.js","sourceRoot":"","sources":["../../../../src/market-aim-v1-external-billing-event-external-billing.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,4CAA4C,MAAM,iEAAiE,CAAC;AAsBhI,MAAM,UAAU,0BAA0B;IAQxC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,4CAA4C,CAAC,0BAA0B,CACrE,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,mBAAmB;QACzB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -1,15 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { ReportExternalBillingEventOptions, ReportExternalBillingEventResponse } from './market-aim-v1-external-billing-event-external-billing.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function reportExternalBillingEvent(httpClient: HttpClient): ReportExternalBillingEventSignature;
7
- interface ReportExternalBillingEventSignature {
8
- /**
9
- * Sends an external billing event to Wix.
10
- * Use this to report charges or refunds for your [Partner Billed App](https://dev.wix.com/docs/build-apps/launch-your-app/pricing-and-billing/partner-billed-apps-reporting).
11
- * The reported event enables Wix to track revenue, deductions, and shares related to third-party billing.
12
- */
13
- (options?: ReportExternalBillingEventOptions | undefined): Promise<ReportExternalBillingEventResponse>;
14
- }
15
- export { BillingType, ExternalBillingEvent, ReportExternalBillingEventOptions, ReportExternalBillingEventRequest, ReportExternalBillingEventResponse, } from './market-aim-v1-external-billing-event-external-billing.universal.js';
@@ -1,9 +0,0 @@
1
- import { reportExternalBillingEvent as universalReportExternalBillingEvent, } from './market-aim-v1-external-billing-event-external-billing.universal.js';
2
- export const __metadata = { PACKAGE_NAME: '@wix/app-management' };
3
- export function reportExternalBillingEvent(httpClient) {
4
- return (options) => universalReportExternalBillingEvent(options,
5
- // @ts-ignore
6
- { httpClient });
7
- }
8
- export { BillingType, } from './market-aim-v1-external-billing-event-external-billing.universal.js';
9
- //# sourceMappingURL=market-aim-v1-external-billing-event-external-billing.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"market-aim-v1-external-billing-event-external-billing.public.js","sourceRoot":"","sources":["../../../../src/market-aim-v1-external-billing-event-external-billing.public.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,0BAA0B,IAAI,mCAAmC,GAClE,MAAM,sEAAsE,CAAC;AAE9E,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAElE,MAAM,UAAU,0BAA0B,CACxC,UAAsB;IAEtB,OAAO,CACL,OAGC,EACD,EAAE,CACF,mCAAmC,CACjC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAaD,OAAO,EACL,WAAW,GAKZ,MAAM,sEAAsE,CAAC"}
@@ -1,7 +0,0 @@
1
- export var BillingType;
2
- (function (BillingType) {
3
- BillingType["UNKNOWN"] = "UNKNOWN";
4
- BillingType["CHARGE"] = "CHARGE";
5
- BillingType["REFUND"] = "REFUND";
6
- })(BillingType || (BillingType = {}));
7
- //# sourceMappingURL=market-aim-v1-external-billing-event-external-billing.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"market-aim-v1-external-billing-event-external-billing.types.js","sourceRoot":"","sources":["../../../../src/market-aim-v1-external-billing-event-external-billing.types.ts"],"names":[],"mappings":"AAyCA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;AACnB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB"}
@@ -1,88 +0,0 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface ExternalBillingEvent {
3
- /**
4
- * The app ID linked to this transaction.
5
- * @format GUID
6
- */
7
- appId?: string | null;
8
- /**
9
- * The app instance ID linked to this transaction.
10
- *
11
- * This connects the transaction to a specific instance of your app installed on a Wix site.
12
- * Learn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).
13
- * @format GUID
14
- */
15
- instanceId?: string | null;
16
- /**
17
- * The total amount of the transaction in USD, not including tax.
18
- * This value can be negative, such as for adjustments or refunds.
19
- * @format DECIMAL_VALUE
20
- * @decimalValue options { maxScale:10 }
21
- */
22
- grossRevenue?: string;
23
- /**
24
- * The amount charged minus agreed-upon expenses, such as shipping fees.
25
- * This value can be negative.
26
- * @format DECIMAL_VALUE
27
- * @decimalValue options { maxScale:10 }
28
- */
29
- netRevenue?: string | null;
30
- /**
31
- * Wix's share of the transaction in USD.
32
- * This value can be negative, such as for adjustments or refunds.
33
- * @format DECIMAL_VALUE
34
- * @decimalValue options { maxScale:10 }
35
- */
36
- wixShare?: string;
37
- /** The date and time of the transaction. */
38
- _createdDate?: Date | null;
39
- /** The type of billing event, either charge or refund. */
40
- billingType?: BillingTypeWithLiterals;
41
- }
42
- export declare enum BillingType {
43
- UNKNOWN = "UNKNOWN",
44
- CHARGE = "CHARGE",
45
- REFUND = "REFUND"
46
- }
47
- /** @enumType */
48
- export type BillingTypeWithLiterals = BillingType | 'UNKNOWN' | 'CHARGE' | 'REFUND';
49
- export interface ReportExternalBillingEventRequest {
50
- /**
51
- * The billing event with details of the external transaction, including the gross revenue,
52
- * net revenue, and billing type (charge or refund).
53
- */
54
- event?: ExternalBillingEvent;
55
- }
56
- export interface ReportExternalBillingEventResponse {
57
- /** The billing event that was processed. */
58
- event?: ExternalBillingEvent;
59
- }
60
- type ExternalBillingEventNonNullablePaths = `grossRevenue` | `wixShare` | `billingType`;
61
- /**
62
- * Sends an external billing event to Wix.
63
- * Use this to report charges or refunds for your [Partner Billed App](https://dev.wix.com/docs/build-apps/launch-your-app/pricing-and-billing/partner-billed-apps-reporting).
64
- * The reported event enables Wix to track revenue, deductions, and shares related to third-party billing.
65
- * @public
66
- * @documentationMaturity preview
67
- * @requiredField options.event.billingType
68
- * @requiredField options.event.grossRevenue
69
- * @requiredField options.event.wixShare
70
- * @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
71
- * @permissionScope Manage Your App
72
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
73
- * @permissionScope Read site, business, and email details
74
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
75
- * @applicableIdentity APP
76
- * @fqn com.wixpress.market.aim.api.ExternalBillingBIService.ReportExternalBillingEvent
77
- */
78
- export declare function reportExternalBillingEvent(options?: NonNullablePaths<ReportExternalBillingEventOptions, `event.billingType` | `event.grossRevenue` | `event.wixShare`>): Promise<NonNullablePaths<ReportExternalBillingEventResponse, {
79
- [P in ExternalBillingEventNonNullablePaths]: `event.${P}`;
80
- }[ExternalBillingEventNonNullablePaths]>>;
81
- export interface ReportExternalBillingEventOptions {
82
- /**
83
- * The billing event with details of the external transaction, including the gross revenue,
84
- * net revenue, and billing type (charge or refund).
85
- */
86
- event?: ExternalBillingEvent;
87
- }
88
- export {};
@@ -1,50 +0,0 @@
1
- import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
- import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
3
- import * as ambassadorWixMarketAimV1ExternalBillingEvent from './market-aim-v1-external-billing-event-external-billing.http.js';
4
- export var BillingType;
5
- (function (BillingType) {
6
- BillingType["UNKNOWN"] = "UNKNOWN";
7
- BillingType["CHARGE"] = "CHARGE";
8
- BillingType["REFUND"] = "REFUND";
9
- })(BillingType || (BillingType = {}));
10
- /**
11
- * Sends an external billing event to Wix.
12
- * Use this to report charges or refunds for your [Partner Billed App](https://dev.wix.com/docs/build-apps/launch-your-app/pricing-and-billing/partner-billed-apps-reporting).
13
- * The reported event enables Wix to track revenue, deductions, and shares related to third-party billing.
14
- * @public
15
- * @documentationMaturity preview
16
- * @requiredField options.event.billingType
17
- * @requiredField options.event.grossRevenue
18
- * @requiredField options.event.wixShare
19
- * @permissionId WIX_DEVELOPERS.MANAGE_APP_INSTANCE
20
- * @permissionScope Manage Your App
21
- * @permissionScopeId SCOPE.DC.MANAGE-YOUR-APP
22
- * @permissionScope Read site, business, and email details
23
- * @permissionScopeId SCOPE.DEV_CENTER.APP-INSTANCE-READ-BASIC-INFO
24
- * @applicableIdentity APP
25
- * @fqn com.wixpress.market.aim.api.ExternalBillingBIService.ReportExternalBillingEvent
26
- */
27
- export async function reportExternalBillingEvent(options) {
28
- // @ts-ignore
29
- const { httpClient, sideEffects } = arguments[1];
30
- const payload = renameKeysFromSDKRequestToRESTRequest({
31
- event: options?.event,
32
- });
33
- const reqOpts = ambassadorWixMarketAimV1ExternalBillingEvent.reportExternalBillingEvent(payload);
34
- sideEffects?.onSiteCall?.();
35
- try {
36
- const result = await httpClient.request(reqOpts);
37
- sideEffects?.onSuccess?.(result);
38
- return renameKeysFromRESTResponseToSDKResponse(result.data);
39
- }
40
- catch (err) {
41
- const transformedError = sdkTransformError(err, {
42
- spreadPathsToArguments: {},
43
- explicitPathsToArguments: { event: '$[0].event' },
44
- singleArgumentUnchanged: false,
45
- }, ['options']);
46
- sideEffects?.onError?.(err);
47
- throw transformedError;
48
- }
49
- }
50
- //# sourceMappingURL=market-aim-v1-external-billing-event-external-billing.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"market-aim-v1-external-billing-event-external-billing.universal.js","sourceRoot":"","sources":["../../../../src/market-aim-v1-external-billing-event-external-billing.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,4CAA4C,MAAM,iEAAiE,CAAC;AA2ChI,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;AACnB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AA2BD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,OAGC;IASD,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,KAAK,EAAE,OAAO,EAAE,KAAK;KACtB,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,4CAA4C,CAAC,0BAA0B,CACrE,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE;YACjD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}