@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.
- package/build/index.d.mts +17 -0
- package/build/index.d.ts +17 -0
- package/build/index.js +188 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +163 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +17 -0
- package/build/internal/index.d.ts +17 -0
- package/build/internal/index.js +188 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +163 -0
- package/build/internal/index.mjs.map +1 -0
- 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
- 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
- package/build/internal/meta.d.mts +76 -0
- package/build/internal/meta.d.ts +76 -0
- package/build/internal/meta.js +156 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +129 -0
- package/build/internal/meta.mjs.map +1 -0
- 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
- 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
- package/build/meta.d.mts +76 -0
- package/build/meta.d.ts +76 -0
- package/build/meta.js +156 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +129 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.context.d.ts +0 -5
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.context.js +0 -9
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.context.js.map +0 -1
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.http.d.ts +0 -7
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.http.js +0 -112
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.http.js.map +0 -1
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.d.ts +0 -13
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.js +0 -47
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.js.map +0 -1
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.public.d.ts +0 -15
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.public.js +0 -14
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.public.js.map +0 -1
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.types.js +0 -10
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.types.js.map +0 -1
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.d.ts +0 -88
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.js +0 -77
- package/build/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.context.d.ts +0 -5
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.context.js +0 -5
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.context.js.map +0 -1
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.http.d.ts +0 -7
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.http.js +0 -108
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.http.js.map +0 -1
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.meta.d.ts +0 -13
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.meta.js +0 -20
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.meta.js.map +0 -1
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.public.d.ts +0 -15
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.public.js +0 -9
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.public.js.map +0 -1
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.types.js +0 -7
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.types.js.map +0 -1
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.universal.d.ts +0 -88
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.universal.js +0 -50
- package/build/es/src/market-aim-v1-external-billing-event-external-billing.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.context.d.ts +0 -5
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.context.js +0 -9
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.context.js.map +0 -1
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.http.d.ts +0 -7
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.http.js +0 -112
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.http.js.map +0 -1
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.d.ts +0 -13
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.js +0 -47
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.meta.js.map +0 -1
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.public.d.ts +0 -15
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.public.js +0 -14
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.public.js.map +0 -1
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.types.js +0 -10
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.types.js.map +0 -1
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.d.ts +0 -88
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.js +0 -77
- package/build/internal/cjs/src/market-aim-v1-external-billing-event-external-billing.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.context.d.ts +0 -5
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.context.js +0 -5
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.context.js.map +0 -1
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.http.d.ts +0 -7
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.http.js +0 -108
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.http.js.map +0 -1
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.meta.d.ts +0 -13
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.meta.js +0 -20
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.meta.js.map +0 -1
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.public.d.ts +0 -15
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.public.js +0 -9
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.public.js.map +0 -1
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.types.js +0 -7
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.types.js.map +0 -1
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.universal.d.ts +0 -88
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.universal.js +0 -50
- package/build/internal/es/src/market-aim-v1-external-billing-event-external-billing.universal.js.map +0 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { b as ReportExternalBillingEventRequest$1, a as ReportExternalBillingEventResponse$1 } from './market-aim-v1-external-billing-event-external-billing.universal-DamAfTwv.js';
|
|
2
|
+
|
|
3
|
+
interface ExternalBillingEvent {
|
|
4
|
+
/**
|
|
5
|
+
* The app ID linked to this transaction. This field is only relevant if using an API key for authorization,
|
|
6
|
+
* in which case you're required to pass the app ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
*/
|
|
9
|
+
appId?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,
|
|
12
|
+
* in which case you can optionally pass the instance ID.
|
|
13
|
+
*
|
|
14
|
+
* This connects the transaction to a specific instance of your app installed on a Wix site.
|
|
15
|
+
* Learn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).
|
|
16
|
+
* @format GUID
|
|
17
|
+
*/
|
|
18
|
+
instanceId?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The total amount of the transaction in USD, not including tax.
|
|
21
|
+
* This value can be negative, such as for adjustments or refunds.
|
|
22
|
+
* @format DECIMAL_VALUE
|
|
23
|
+
* @decimalValue options { maxScale:10 }
|
|
24
|
+
*/
|
|
25
|
+
grossRevenue?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The amount charged minus agreed-upon expenses, such as shipping fees.
|
|
28
|
+
* This value can be negative.
|
|
29
|
+
* @format DECIMAL_VALUE
|
|
30
|
+
* @decimalValue options { maxScale:10 }
|
|
31
|
+
*/
|
|
32
|
+
netRevenue?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Wix's share of the transaction in USD.
|
|
35
|
+
* This value can be negative, such as for adjustments or refunds.
|
|
36
|
+
* @format DECIMAL_VALUE
|
|
37
|
+
* @decimalValue options { maxScale:10 }
|
|
38
|
+
*/
|
|
39
|
+
wixShare?: string;
|
|
40
|
+
/** The date and time of the transaction. */
|
|
41
|
+
createdDate?: Date | null;
|
|
42
|
+
/** The type of billing event, either charge or refund. */
|
|
43
|
+
billingType?: BillingTypeWithLiterals;
|
|
44
|
+
}
|
|
45
|
+
declare enum BillingType {
|
|
46
|
+
UNKNOWN = "UNKNOWN",
|
|
47
|
+
CHARGE = "CHARGE",
|
|
48
|
+
REFUND = "REFUND"
|
|
49
|
+
}
|
|
50
|
+
/** @enumType */
|
|
51
|
+
type BillingTypeWithLiterals = BillingType | 'UNKNOWN' | 'CHARGE' | 'REFUND';
|
|
52
|
+
interface ReportExternalBillingEventRequest {
|
|
53
|
+
/**
|
|
54
|
+
* The billing event with details of the external transaction, including the gross revenue,
|
|
55
|
+
* net revenue, and billing type (charge or refund).
|
|
56
|
+
*/
|
|
57
|
+
event?: ExternalBillingEvent;
|
|
58
|
+
}
|
|
59
|
+
interface ReportExternalBillingEventResponse {
|
|
60
|
+
/** The billing event that was processed. */
|
|
61
|
+
event?: ExternalBillingEvent;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
65
|
+
getUrl: (context: any) => string;
|
|
66
|
+
httpMethod: K;
|
|
67
|
+
path: string;
|
|
68
|
+
pathParams: M;
|
|
69
|
+
__requestType: T;
|
|
70
|
+
__originalRequestType: S;
|
|
71
|
+
__responseType: Q;
|
|
72
|
+
__originalResponseType: R;
|
|
73
|
+
};
|
|
74
|
+
declare function reportExternalBillingEvent(): __PublicMethodMetaInfo<'POST', {}, ReportExternalBillingEventRequest$1, ReportExternalBillingEventRequest, ReportExternalBillingEventResponse$1, ReportExternalBillingEventResponse>;
|
|
75
|
+
|
|
76
|
+
export { type __PublicMethodMetaInfo, reportExternalBillingEvent };
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// meta.ts
|
|
21
|
+
var meta_exports = {};
|
|
22
|
+
__export(meta_exports, {
|
|
23
|
+
reportExternalBillingEvent: () => reportExternalBillingEvent2
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(meta_exports);
|
|
26
|
+
|
|
27
|
+
// src/market-aim-v1-external-billing-event-external-billing.http.ts
|
|
28
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
29
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
30
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
31
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
32
|
+
function resolveComWixpressMarketAimApiExternalBillingBiServiceUrl(opts) {
|
|
33
|
+
const domainToMappings = {
|
|
34
|
+
"api._api_base_domain_": [
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/app-instance-manager-webapp",
|
|
37
|
+
destPath: ""
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"www.wixapis.com": [
|
|
41
|
+
{
|
|
42
|
+
srcPath: "/apps",
|
|
43
|
+
destPath: ""
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"wixapis.com": [
|
|
47
|
+
{
|
|
48
|
+
srcPath: "/apps",
|
|
49
|
+
destPath: ""
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"dev._base_domain_": [
|
|
53
|
+
{
|
|
54
|
+
srcPath: "/_api/app-instance-manager",
|
|
55
|
+
destPath: ""
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
srcPath: "/api/v1/instance",
|
|
59
|
+
destPath: "/v1/instance"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
srcPath: "/api/v1/scripts",
|
|
63
|
+
destPath: "/v1/scripts"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"manage._base_domain_": [
|
|
67
|
+
{
|
|
68
|
+
srcPath: "/_api/app-instance-manager",
|
|
69
|
+
destPath: ""
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"www._base_domain_": [
|
|
73
|
+
{
|
|
74
|
+
srcPath: "/_api/app-instance-manager",
|
|
75
|
+
destPath: ""
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"editor._base_domain_": [
|
|
79
|
+
{
|
|
80
|
+
srcPath: "/_api/app-instance-manager",
|
|
81
|
+
destPath: ""
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"blocks._base_domain_": [
|
|
85
|
+
{
|
|
86
|
+
srcPath: "/_api/app-instance-manager",
|
|
87
|
+
destPath: ""
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"create.editorx": [
|
|
91
|
+
{
|
|
92
|
+
srcPath: "/_api/app-instance-manager",
|
|
93
|
+
destPath: ""
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
};
|
|
97
|
+
return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
98
|
+
}
|
|
99
|
+
var PACKAGE_NAME = "@wix/auto_sdk_app-management_external-billing";
|
|
100
|
+
function reportExternalBillingEvent(payload) {
|
|
101
|
+
function __reportExternalBillingEvent({ host }) {
|
|
102
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
103
|
+
{
|
|
104
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
105
|
+
paths: [{ path: "event.createdDate" }]
|
|
106
|
+
}
|
|
107
|
+
]);
|
|
108
|
+
const metadata = {
|
|
109
|
+
entityFqdn: "wix.market.aim.v1.external_billing_event",
|
|
110
|
+
method: "POST",
|
|
111
|
+
methodFqn: "com.wixpress.market.aim.api.ExternalBillingBIService.ReportExternalBillingEvent",
|
|
112
|
+
packageName: PACKAGE_NAME,
|
|
113
|
+
url: resolveComWixpressMarketAimApiExternalBillingBiServiceUrl({
|
|
114
|
+
protoPath: "/v1/billing-event",
|
|
115
|
+
data: serializedData,
|
|
116
|
+
host
|
|
117
|
+
}),
|
|
118
|
+
data: serializedData,
|
|
119
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
120
|
+
{
|
|
121
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
122
|
+
paths: [{ path: "event.createdDate" }]
|
|
123
|
+
}
|
|
124
|
+
])
|
|
125
|
+
};
|
|
126
|
+
return metadata;
|
|
127
|
+
}
|
|
128
|
+
return __reportExternalBillingEvent;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// src/market-aim-v1-external-billing-event-external-billing.meta.ts
|
|
132
|
+
function reportExternalBillingEvent2() {
|
|
133
|
+
const payload = {};
|
|
134
|
+
const getRequestOptions = reportExternalBillingEvent(
|
|
135
|
+
payload
|
|
136
|
+
);
|
|
137
|
+
const getUrl = (context) => {
|
|
138
|
+
const { url } = getRequestOptions(context);
|
|
139
|
+
return url;
|
|
140
|
+
};
|
|
141
|
+
return {
|
|
142
|
+
getUrl,
|
|
143
|
+
httpMethod: "POST",
|
|
144
|
+
path: "/v1/billing-event",
|
|
145
|
+
pathParams: {},
|
|
146
|
+
__requestType: null,
|
|
147
|
+
__originalRequestType: null,
|
|
148
|
+
__responseType: null,
|
|
149
|
+
__originalResponseType: null
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
153
|
+
0 && (module.exports = {
|
|
154
|
+
reportExternalBillingEvent
|
|
155
|
+
});
|
|
156
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/market-aim-v1-external-billing-event-external-billing.http.ts","../../src/market-aim-v1-external-billing-event-external-billing.meta.ts"],"sourcesContent":["export * from './src/market-aim-v1-external-billing-event-external-billing.meta.js';\n","import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressMarketAimApiExternalBillingBiServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/app-instance-manager-webapp',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/apps',\n destPath: '',\n },\n ],\n 'wixapis.com': [\n {\n srcPath: '/apps',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n {\n srcPath: '/api/v1/instance',\n destPath: '/v1/instance',\n },\n {\n srcPath: '/api/v1/scripts',\n destPath: '/v1/scripts',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_app-management_external-billing';\n\n/**\n * Sends an external billing event to Wix.\n * 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).\n * The reported event enables Wix to track revenue, deductions, and shares related to third-party billing.\n */\nexport function reportExternalBillingEvent(\n payload: object\n): RequestOptionsFactory<any> {\n function __reportExternalBillingEvent({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'event.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.market.aim.v1.external_billing_event',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.market.aim.api.ExternalBillingBIService.ReportExternalBillingEvent',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMarketAimApiExternalBillingBiServiceUrl({\n protoPath: '/v1/billing-event',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'event.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __reportExternalBillingEvent;\n}\n","import * as ambassadorWixMarketAimV1ExternalBillingEvent from './market-aim-v1-external-billing-event-external-billing.http.js';\nimport * as ambassadorWixMarketAimV1ExternalBillingEventTypes from './market-aim-v1-external-billing-event-external-billing.types.js';\nimport * as ambassadorWixMarketAimV1ExternalBillingEventUniversalTypes from './market-aim-v1-external-billing-event-external-billing.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function reportExternalBillingEvent(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMarketAimV1ExternalBillingEventUniversalTypes.ReportExternalBillingEventRequest,\n ambassadorWixMarketAimV1ExternalBillingEventTypes.ReportExternalBillingEventRequest,\n ambassadorWixMarketAimV1ExternalBillingEventUniversalTypes.ReportExternalBillingEventResponse,\n ambassadorWixMarketAimV1ExternalBillingEventTypes.ReportExternalBillingEventResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMarketAimV1ExternalBillingEvent.reportExternalBillingEvent(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/billing-event',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,oCAAAA;AAAA;AAAA;;;ACAA,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,0BAA2B;AAI3B,SAAS,0DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAOd,SAAS,2BACd,SAC4B;AAC5B,WAAS,6BAA6B,EAAE,KAAK,GAAQ;AACnD,UAAM,qBAAiB,uCAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAAA,MACvC;AAAA,IACF,CAAC;AACD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,0DAA0D;AAAA,QAC7D,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,MACN,mBAAmB,CAACC,iBAClB,uCAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAAA,QACvC;AAAA,MACF,CAAC;AAAA,IACL;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AClGO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC;AAAA,IAC3C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["reportExternalBillingEvent","import_timestamp","payload","reportExternalBillingEvent"]}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// src/market-aim-v1-external-billing-event-external-billing.http.ts
|
|
2
|
+
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
3
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
4
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
5
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
6
|
+
function resolveComWixpressMarketAimApiExternalBillingBiServiceUrl(opts) {
|
|
7
|
+
const domainToMappings = {
|
|
8
|
+
"api._api_base_domain_": [
|
|
9
|
+
{
|
|
10
|
+
srcPath: "/app-instance-manager-webapp",
|
|
11
|
+
destPath: ""
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"www.wixapis.com": [
|
|
15
|
+
{
|
|
16
|
+
srcPath: "/apps",
|
|
17
|
+
destPath: ""
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"wixapis.com": [
|
|
21
|
+
{
|
|
22
|
+
srcPath: "/apps",
|
|
23
|
+
destPath: ""
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"dev._base_domain_": [
|
|
27
|
+
{
|
|
28
|
+
srcPath: "/_api/app-instance-manager",
|
|
29
|
+
destPath: ""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
srcPath: "/api/v1/instance",
|
|
33
|
+
destPath: "/v1/instance"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/api/v1/scripts",
|
|
37
|
+
destPath: "/v1/scripts"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"manage._base_domain_": [
|
|
41
|
+
{
|
|
42
|
+
srcPath: "/_api/app-instance-manager",
|
|
43
|
+
destPath: ""
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"www._base_domain_": [
|
|
47
|
+
{
|
|
48
|
+
srcPath: "/_api/app-instance-manager",
|
|
49
|
+
destPath: ""
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"editor._base_domain_": [
|
|
53
|
+
{
|
|
54
|
+
srcPath: "/_api/app-instance-manager",
|
|
55
|
+
destPath: ""
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"blocks._base_domain_": [
|
|
59
|
+
{
|
|
60
|
+
srcPath: "/_api/app-instance-manager",
|
|
61
|
+
destPath: ""
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"create.editorx": [
|
|
65
|
+
{
|
|
66
|
+
srcPath: "/_api/app-instance-manager",
|
|
67
|
+
destPath: ""
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
};
|
|
71
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
72
|
+
}
|
|
73
|
+
var PACKAGE_NAME = "@wix/auto_sdk_app-management_external-billing";
|
|
74
|
+
function reportExternalBillingEvent(payload) {
|
|
75
|
+
function __reportExternalBillingEvent({ host }) {
|
|
76
|
+
const serializedData = transformPaths(payload, [
|
|
77
|
+
{
|
|
78
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
79
|
+
paths: [{ path: "event.createdDate" }]
|
|
80
|
+
}
|
|
81
|
+
]);
|
|
82
|
+
const metadata = {
|
|
83
|
+
entityFqdn: "wix.market.aim.v1.external_billing_event",
|
|
84
|
+
method: "POST",
|
|
85
|
+
methodFqn: "com.wixpress.market.aim.api.ExternalBillingBIService.ReportExternalBillingEvent",
|
|
86
|
+
packageName: PACKAGE_NAME,
|
|
87
|
+
url: resolveComWixpressMarketAimApiExternalBillingBiServiceUrl({
|
|
88
|
+
protoPath: "/v1/billing-event",
|
|
89
|
+
data: serializedData,
|
|
90
|
+
host
|
|
91
|
+
}),
|
|
92
|
+
data: serializedData,
|
|
93
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
94
|
+
{
|
|
95
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
96
|
+
paths: [{ path: "event.createdDate" }]
|
|
97
|
+
}
|
|
98
|
+
])
|
|
99
|
+
};
|
|
100
|
+
return metadata;
|
|
101
|
+
}
|
|
102
|
+
return __reportExternalBillingEvent;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// src/market-aim-v1-external-billing-event-external-billing.meta.ts
|
|
106
|
+
function reportExternalBillingEvent2() {
|
|
107
|
+
const payload = {};
|
|
108
|
+
const getRequestOptions = reportExternalBillingEvent(
|
|
109
|
+
payload
|
|
110
|
+
);
|
|
111
|
+
const getUrl = (context) => {
|
|
112
|
+
const { url } = getRequestOptions(context);
|
|
113
|
+
return url;
|
|
114
|
+
};
|
|
115
|
+
return {
|
|
116
|
+
getUrl,
|
|
117
|
+
httpMethod: "POST",
|
|
118
|
+
path: "/v1/billing-event",
|
|
119
|
+
pathParams: {},
|
|
120
|
+
__requestType: null,
|
|
121
|
+
__originalRequestType: null,
|
|
122
|
+
__responseType: null,
|
|
123
|
+
__originalResponseType: null
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
reportExternalBillingEvent2 as reportExternalBillingEvent
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=meta.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/market-aim-v1-external-billing-event-external-billing.http.ts","../../src/market-aim-v1-external-billing-event-external-billing.meta.ts"],"sourcesContent":["import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressMarketAimApiExternalBillingBiServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/app-instance-manager-webapp',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/apps',\n destPath: '',\n },\n ],\n 'wixapis.com': [\n {\n srcPath: '/apps',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n {\n srcPath: '/api/v1/instance',\n destPath: '/v1/instance',\n },\n {\n srcPath: '/api/v1/scripts',\n destPath: '/v1/scripts',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/app-instance-manager',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_app-management_external-billing';\n\n/**\n * Sends an external billing event to Wix.\n * 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).\n * The reported event enables Wix to track revenue, deductions, and shares related to third-party billing.\n */\nexport function reportExternalBillingEvent(\n payload: object\n): RequestOptionsFactory<any> {\n function __reportExternalBillingEvent({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'event.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.market.aim.v1.external_billing_event',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.market.aim.api.ExternalBillingBIService.ReportExternalBillingEvent',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressMarketAimApiExternalBillingBiServiceUrl({\n protoPath: '/v1/billing-event',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'event.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __reportExternalBillingEvent;\n}\n","import * as ambassadorWixMarketAimV1ExternalBillingEvent from './market-aim-v1-external-billing-event-external-billing.http.js';\nimport * as ambassadorWixMarketAimV1ExternalBillingEventTypes from './market-aim-v1-external-billing-event-external-billing.types.js';\nimport * as ambassadorWixMarketAimV1ExternalBillingEventUniversalTypes from './market-aim-v1-external-billing-event-external-billing.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function reportExternalBillingEvent(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMarketAimV1ExternalBillingEventUniversalTypes.ReportExternalBillingEventRequest,\n ambassadorWixMarketAimV1ExternalBillingEventTypes.ReportExternalBillingEventRequest,\n ambassadorWixMarketAimV1ExternalBillingEventUniversalTypes.ReportExternalBillingEventResponse,\n ambassadorWixMarketAimV1ExternalBillingEventTypes.ReportExternalBillingEventResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMarketAimV1ExternalBillingEvent.reportExternalBillingEvent(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/billing-event',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,0DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAOd,SAAS,2BACd,SAC4B;AAC5B,WAAS,6BAA6B,EAAE,KAAK,GAAQ;AACnD,UAAM,iBAAiB,eAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAAA,MACvC;AAAA,IACF,CAAC;AACD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,0DAA0D;AAAA,QAC7D,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,MACN,mBAAmB,CAACA,aAClB,eAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAAA,QACvC;AAAA,MACF,CAAC;AAAA,IACL;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AClGO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACyC;AAAA,IAC3C;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","reportExternalBillingEvent"]}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
interface ExternalBillingEvent {
|
|
2
2
|
/**
|
|
3
|
-
* The app ID linked to this transaction.
|
|
3
|
+
* The app ID linked to this transaction. This field is only relevant if using an API key for authorization,
|
|
4
|
+
* in which case you're required to pass the app ID.
|
|
4
5
|
* @format GUID
|
|
5
6
|
*/
|
|
6
7
|
appId?: string | null;
|
|
7
8
|
/**
|
|
8
|
-
* The app instance ID linked to this transaction.
|
|
9
|
+
* The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,
|
|
10
|
+
* in which case you can optionally pass the instance ID.
|
|
9
11
|
*
|
|
10
12
|
* This connects the transaction to a specific instance of your app installed on a Wix site.
|
|
11
13
|
* Learn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).
|
|
@@ -34,25 +36,34 @@ export interface ExternalBillingEvent {
|
|
|
34
36
|
*/
|
|
35
37
|
wixShare?: string;
|
|
36
38
|
/** The date and time of the transaction. */
|
|
37
|
-
|
|
39
|
+
_createdDate?: Date | null;
|
|
38
40
|
/** The type of billing event, either charge or refund. */
|
|
39
41
|
billingType?: BillingTypeWithLiterals;
|
|
40
42
|
}
|
|
41
|
-
|
|
43
|
+
declare enum BillingType {
|
|
42
44
|
UNKNOWN = "UNKNOWN",
|
|
43
45
|
CHARGE = "CHARGE",
|
|
44
46
|
REFUND = "REFUND"
|
|
45
47
|
}
|
|
46
48
|
/** @enumType */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
type BillingTypeWithLiterals = BillingType | 'UNKNOWN' | 'CHARGE' | 'REFUND';
|
|
50
|
+
interface ReportExternalBillingEventRequest {
|
|
49
51
|
/**
|
|
50
52
|
* The billing event with details of the external transaction, including the gross revenue,
|
|
51
53
|
* net revenue, and billing type (charge or refund).
|
|
52
54
|
*/
|
|
53
55
|
event?: ExternalBillingEvent;
|
|
54
56
|
}
|
|
55
|
-
|
|
57
|
+
interface ReportExternalBillingEventResponse {
|
|
56
58
|
/** The billing event that was processed. */
|
|
57
59
|
event?: ExternalBillingEvent;
|
|
58
60
|
}
|
|
61
|
+
interface ReportExternalBillingEventOptions {
|
|
62
|
+
/**
|
|
63
|
+
* The billing event with details of the external transaction, including the gross revenue,
|
|
64
|
+
* net revenue, and billing type (charge or refund).
|
|
65
|
+
*/
|
|
66
|
+
event?: ExternalBillingEvent;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { BillingType as B, type ExternalBillingEvent as E, type ReportExternalBillingEventOptions as R, type ReportExternalBillingEventResponse as a, type ReportExternalBillingEventRequest as b };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
interface ExternalBillingEvent {
|
|
2
2
|
/**
|
|
3
|
-
* The app ID linked to this transaction.
|
|
3
|
+
* The app ID linked to this transaction. This field is only relevant if using an API key for authorization,
|
|
4
|
+
* in which case you're required to pass the app ID.
|
|
4
5
|
* @format GUID
|
|
5
6
|
*/
|
|
6
7
|
appId?: string | null;
|
|
7
8
|
/**
|
|
8
|
-
* The app instance ID linked to this transaction.
|
|
9
|
+
* The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,
|
|
10
|
+
* in which case you can optionally pass the instance ID.
|
|
9
11
|
*
|
|
10
12
|
* This connects the transaction to a specific instance of your app installed on a Wix site.
|
|
11
13
|
* Learn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).
|
|
@@ -34,25 +36,34 @@ export interface ExternalBillingEvent {
|
|
|
34
36
|
*/
|
|
35
37
|
wixShare?: string;
|
|
36
38
|
/** The date and time of the transaction. */
|
|
37
|
-
|
|
39
|
+
_createdDate?: Date | null;
|
|
38
40
|
/** The type of billing event, either charge or refund. */
|
|
39
41
|
billingType?: BillingTypeWithLiterals;
|
|
40
42
|
}
|
|
41
|
-
|
|
43
|
+
declare enum BillingType {
|
|
42
44
|
UNKNOWN = "UNKNOWN",
|
|
43
45
|
CHARGE = "CHARGE",
|
|
44
46
|
REFUND = "REFUND"
|
|
45
47
|
}
|
|
46
48
|
/** @enumType */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
type BillingTypeWithLiterals = BillingType | 'UNKNOWN' | 'CHARGE' | 'REFUND';
|
|
50
|
+
interface ReportExternalBillingEventRequest {
|
|
49
51
|
/**
|
|
50
52
|
* The billing event with details of the external transaction, including the gross revenue,
|
|
51
53
|
* net revenue, and billing type (charge or refund).
|
|
52
54
|
*/
|
|
53
55
|
event?: ExternalBillingEvent;
|
|
54
56
|
}
|
|
55
|
-
|
|
57
|
+
interface ReportExternalBillingEventResponse {
|
|
56
58
|
/** The billing event that was processed. */
|
|
57
59
|
event?: ExternalBillingEvent;
|
|
58
60
|
}
|
|
61
|
+
interface ReportExternalBillingEventOptions {
|
|
62
|
+
/**
|
|
63
|
+
* The billing event with details of the external transaction, including the gross revenue,
|
|
64
|
+
* net revenue, and billing type (charge or refund).
|
|
65
|
+
*/
|
|
66
|
+
event?: ExternalBillingEvent;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { BillingType as B, type ExternalBillingEvent as E, type ReportExternalBillingEventOptions as R, type ReportExternalBillingEventResponse as a, type ReportExternalBillingEventRequest as b };
|
package/build/meta.d.mts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { b as ReportExternalBillingEventRequest$1, a as ReportExternalBillingEventResponse$1 } from './market-aim-v1-external-billing-event-external-billing.universal-DamAfTwv.mjs';
|
|
2
|
+
|
|
3
|
+
interface ExternalBillingEvent {
|
|
4
|
+
/**
|
|
5
|
+
* The app ID linked to this transaction. This field is only relevant if using an API key for authorization,
|
|
6
|
+
* in which case you're required to pass the app ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
*/
|
|
9
|
+
appId?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,
|
|
12
|
+
* in which case you can optionally pass the instance ID.
|
|
13
|
+
*
|
|
14
|
+
* This connects the transaction to a specific instance of your app installed on a Wix site.
|
|
15
|
+
* Learn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).
|
|
16
|
+
* @format GUID
|
|
17
|
+
*/
|
|
18
|
+
instanceId?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The total amount of the transaction in USD, not including tax.
|
|
21
|
+
* This value can be negative, such as for adjustments or refunds.
|
|
22
|
+
* @format DECIMAL_VALUE
|
|
23
|
+
* @decimalValue options { maxScale:10 }
|
|
24
|
+
*/
|
|
25
|
+
grossRevenue?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The amount charged minus agreed-upon expenses, such as shipping fees.
|
|
28
|
+
* This value can be negative.
|
|
29
|
+
* @format DECIMAL_VALUE
|
|
30
|
+
* @decimalValue options { maxScale:10 }
|
|
31
|
+
*/
|
|
32
|
+
netRevenue?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Wix's share of the transaction in USD.
|
|
35
|
+
* This value can be negative, such as for adjustments or refunds.
|
|
36
|
+
* @format DECIMAL_VALUE
|
|
37
|
+
* @decimalValue options { maxScale:10 }
|
|
38
|
+
*/
|
|
39
|
+
wixShare?: string;
|
|
40
|
+
/** The date and time of the transaction. */
|
|
41
|
+
createdDate?: Date | null;
|
|
42
|
+
/** The type of billing event, either charge or refund. */
|
|
43
|
+
billingType?: BillingTypeWithLiterals;
|
|
44
|
+
}
|
|
45
|
+
declare enum BillingType {
|
|
46
|
+
UNKNOWN = "UNKNOWN",
|
|
47
|
+
CHARGE = "CHARGE",
|
|
48
|
+
REFUND = "REFUND"
|
|
49
|
+
}
|
|
50
|
+
/** @enumType */
|
|
51
|
+
type BillingTypeWithLiterals = BillingType | 'UNKNOWN' | 'CHARGE' | 'REFUND';
|
|
52
|
+
interface ReportExternalBillingEventRequest {
|
|
53
|
+
/**
|
|
54
|
+
* The billing event with details of the external transaction, including the gross revenue,
|
|
55
|
+
* net revenue, and billing type (charge or refund).
|
|
56
|
+
*/
|
|
57
|
+
event?: ExternalBillingEvent;
|
|
58
|
+
}
|
|
59
|
+
interface ReportExternalBillingEventResponse {
|
|
60
|
+
/** The billing event that was processed. */
|
|
61
|
+
event?: ExternalBillingEvent;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
65
|
+
getUrl: (context: any) => string;
|
|
66
|
+
httpMethod: K;
|
|
67
|
+
path: string;
|
|
68
|
+
pathParams: M;
|
|
69
|
+
__requestType: T;
|
|
70
|
+
__originalRequestType: S;
|
|
71
|
+
__responseType: Q;
|
|
72
|
+
__originalResponseType: R;
|
|
73
|
+
};
|
|
74
|
+
declare function reportExternalBillingEvent(): __PublicMethodMetaInfo<'POST', {}, ReportExternalBillingEventRequest$1, ReportExternalBillingEventRequest, ReportExternalBillingEventResponse$1, ReportExternalBillingEventResponse>;
|
|
75
|
+
|
|
76
|
+
export { type __PublicMethodMetaInfo, reportExternalBillingEvent };
|
package/build/meta.d.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { b as ReportExternalBillingEventRequest$1, a as ReportExternalBillingEventResponse$1 } from './market-aim-v1-external-billing-event-external-billing.universal-DamAfTwv.js';
|
|
2
|
+
|
|
3
|
+
interface ExternalBillingEvent {
|
|
4
|
+
/**
|
|
5
|
+
* The app ID linked to this transaction. This field is only relevant if using an API key for authorization,
|
|
6
|
+
* in which case you're required to pass the app ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
*/
|
|
9
|
+
appId?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The app instance ID linked to this transaction. This field is only relevant if using an API key for authorization,
|
|
12
|
+
* in which case you can optionally pass the instance ID.
|
|
13
|
+
*
|
|
14
|
+
* This connects the transaction to a specific instance of your app installed on a Wix site.
|
|
15
|
+
* Learn more [about app instances](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances).
|
|
16
|
+
* @format GUID
|
|
17
|
+
*/
|
|
18
|
+
instanceId?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The total amount of the transaction in USD, not including tax.
|
|
21
|
+
* This value can be negative, such as for adjustments or refunds.
|
|
22
|
+
* @format DECIMAL_VALUE
|
|
23
|
+
* @decimalValue options { maxScale:10 }
|
|
24
|
+
*/
|
|
25
|
+
grossRevenue?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The amount charged minus agreed-upon expenses, such as shipping fees.
|
|
28
|
+
* This value can be negative.
|
|
29
|
+
* @format DECIMAL_VALUE
|
|
30
|
+
* @decimalValue options { maxScale:10 }
|
|
31
|
+
*/
|
|
32
|
+
netRevenue?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Wix's share of the transaction in USD.
|
|
35
|
+
* This value can be negative, such as for adjustments or refunds.
|
|
36
|
+
* @format DECIMAL_VALUE
|
|
37
|
+
* @decimalValue options { maxScale:10 }
|
|
38
|
+
*/
|
|
39
|
+
wixShare?: string;
|
|
40
|
+
/** The date and time of the transaction. */
|
|
41
|
+
createdDate?: Date | null;
|
|
42
|
+
/** The type of billing event, either charge or refund. */
|
|
43
|
+
billingType?: BillingTypeWithLiterals;
|
|
44
|
+
}
|
|
45
|
+
declare enum BillingType {
|
|
46
|
+
UNKNOWN = "UNKNOWN",
|
|
47
|
+
CHARGE = "CHARGE",
|
|
48
|
+
REFUND = "REFUND"
|
|
49
|
+
}
|
|
50
|
+
/** @enumType */
|
|
51
|
+
type BillingTypeWithLiterals = BillingType | 'UNKNOWN' | 'CHARGE' | 'REFUND';
|
|
52
|
+
interface ReportExternalBillingEventRequest {
|
|
53
|
+
/**
|
|
54
|
+
* The billing event with details of the external transaction, including the gross revenue,
|
|
55
|
+
* net revenue, and billing type (charge or refund).
|
|
56
|
+
*/
|
|
57
|
+
event?: ExternalBillingEvent;
|
|
58
|
+
}
|
|
59
|
+
interface ReportExternalBillingEventResponse {
|
|
60
|
+
/** The billing event that was processed. */
|
|
61
|
+
event?: ExternalBillingEvent;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
65
|
+
getUrl: (context: any) => string;
|
|
66
|
+
httpMethod: K;
|
|
67
|
+
path: string;
|
|
68
|
+
pathParams: M;
|
|
69
|
+
__requestType: T;
|
|
70
|
+
__originalRequestType: S;
|
|
71
|
+
__responseType: Q;
|
|
72
|
+
__originalResponseType: R;
|
|
73
|
+
};
|
|
74
|
+
declare function reportExternalBillingEvent(): __PublicMethodMetaInfo<'POST', {}, ReportExternalBillingEventRequest$1, ReportExternalBillingEventRequest, ReportExternalBillingEventResponse$1, ReportExternalBillingEventResponse>;
|
|
75
|
+
|
|
76
|
+
export { type __PublicMethodMetaInfo, reportExternalBillingEvent };
|