@nimee/shared-types 1.0.322 → 1.0.324
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.
|
@@ -67,7 +67,9 @@ export declare enum InvoiceProviderType {
|
|
|
67
67
|
export declare enum InvoiceDocTypeEnum {
|
|
68
68
|
INVOICE_RECEIPT = "invrec",
|
|
69
69
|
RECEIPT = "receipt",
|
|
70
|
-
REFUND = "refund"
|
|
70
|
+
REFUND = "refund",
|
|
71
|
+
/** קבלה זיכוי — reversal of a RECEIPT sale (Nimi invoices service; no VAT-invoice semantics) */
|
|
72
|
+
RECEIPT_REFUND = "receipt_refund"
|
|
71
73
|
}
|
|
72
74
|
export interface IBankDetails {
|
|
73
75
|
bankNumber: string;
|
|
@@ -95,6 +97,48 @@ export interface IWalletDesign {
|
|
|
95
97
|
fields: IWalletLayoutField[];
|
|
96
98
|
};
|
|
97
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Groups gate scans into named entrance rows on the activity report. Rules are tried in
|
|
102
|
+
* order and the first whose `match` appears in the event name wins; scans matching no rule
|
|
103
|
+
* fall to `entranceFallbackLabel`. A venue with a single gate can omit rules entirely, in
|
|
104
|
+
* which case the report falls back to one row per event name.
|
|
105
|
+
*/
|
|
106
|
+
export interface IActivityReportEntranceRule {
|
|
107
|
+
/** Case-insensitive substring matched against the event name. */
|
|
108
|
+
match: string;
|
|
109
|
+
/** Row label used for scans of events matching this rule. */
|
|
110
|
+
label: string;
|
|
111
|
+
}
|
|
112
|
+
export interface IActivityReportScheduleConfig {
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
/** Email addresses this report is sent to. Enabled with none set sends nothing. */
|
|
115
|
+
recipients: string[];
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Opt-in, per-seller configuration for the automated activity reports
|
|
119
|
+
* (tools/activity-report). Absent or `enabled: false` means the seller is skipped,
|
|
120
|
+
* so adding a customer is a config change rather than a code change.
|
|
121
|
+
* Lives on the seller (top-level account) — reports are per seller, scoped by `seller` on
|
|
122
|
+
* user-events / event-orders / enduser-season-tickets / visits.
|
|
123
|
+
*/
|
|
124
|
+
export interface IActivityReportConfig {
|
|
125
|
+
/** Same-day report, sent each evening once the venue has closed. */
|
|
126
|
+
daily?: IActivityReportScheduleConfig;
|
|
127
|
+
/** Friday-Saturday report, sent Sunday morning. */
|
|
128
|
+
weekend?: IActivityReportScheduleConfig;
|
|
129
|
+
/** Second header line. The seller account `name` is always used as the title. */
|
|
130
|
+
subtitle?: string;
|
|
131
|
+
entranceRules?: IActivityReportEntranceRule[];
|
|
132
|
+
/** Label for scans matching no entrance rule. Ignored when no rules are set. */
|
|
133
|
+
entranceFallbackLabel?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Send even when the window has zero scans, sales and subscriptions. Off by default,
|
|
136
|
+
* because for a venue open every day an all-zeros report almost always means a data or
|
|
137
|
+
* connection problem rather than a quiet day. Turn on for venues that genuinely close
|
|
138
|
+
* on some days, which would otherwise raise a failure alert every time.
|
|
139
|
+
*/
|
|
140
|
+
allowEmpty?: boolean;
|
|
141
|
+
}
|
|
98
142
|
export interface IAccountModel {
|
|
99
143
|
idInsidePaymentProvider: string;
|
|
100
144
|
name: string;
|
|
@@ -244,6 +288,7 @@ export interface IAccountModel {
|
|
|
244
288
|
enabled: boolean;
|
|
245
289
|
recipients: string[];
|
|
246
290
|
};
|
|
291
|
+
activityReportConfig?: IActivityReportConfig;
|
|
247
292
|
}
|
|
248
293
|
export interface IPaymeUpdateOrCreateSellerWebhookPayload {
|
|
249
294
|
seller_payme_id: string;
|
package/dist/account/account.js
CHANGED
|
@@ -52,6 +52,8 @@ var InvoiceDocTypeEnum;
|
|
|
52
52
|
InvoiceDocTypeEnum["INVOICE_RECEIPT"] = "invrec";
|
|
53
53
|
InvoiceDocTypeEnum["RECEIPT"] = "receipt";
|
|
54
54
|
InvoiceDocTypeEnum["REFUND"] = "refund";
|
|
55
|
+
/** קבלה זיכוי — reversal of a RECEIPT sale (Nimi invoices service; no VAT-invoice semantics) */
|
|
56
|
+
InvoiceDocTypeEnum["RECEIPT_REFUND"] = "receipt_refund";
|
|
55
57
|
})(InvoiceDocTypeEnum || (exports.InvoiceDocTypeEnum = InvoiceDocTypeEnum = {}));
|
|
56
58
|
var IAccountStatusEnum;
|
|
57
59
|
(function (IAccountStatusEnum) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAMA,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B,iEAAW,CAAA;IACX,iEAAW,CAAA;IACX,iEAAW,CAAA;IACX,mEAAY,CAAA;IACZ,+DAAU,CAAA;IACV,+DAAU,CAAA;IACV,iEAAW,CAAA;IACX,6DAAS,CAAA;IACT,6DAAS,CAAA;AACX,CAAC,EAVW,kBAAkB,kCAAlB,kBAAkB,QAU7B;AACD,IAAY,aAUX;AAVD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;AACvB,CAAC,EAVW,aAAa,6BAAb,aAAa,QAUxB;AACD,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,kDAA6B,CAAA;IAC7B,kDAA6B,CAAA;IAC7B,sCAAiB,CAAA;IACjB,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;AACvB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B;AAgBD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAMD,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,wEAAwE;IACxE,oCAAa,CAAA;AACf,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAMA,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B,iEAAW,CAAA;IACX,iEAAW,CAAA;IACX,iEAAW,CAAA;IACX,mEAAY,CAAA;IACZ,+DAAU,CAAA;IACV,+DAAU,CAAA;IACV,iEAAW,CAAA;IACX,6DAAS,CAAA;IACT,6DAAS,CAAA;AACX,CAAC,EAVW,kBAAkB,kCAAlB,kBAAkB,QAU7B;AACD,IAAY,aAUX;AAVD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;AACvB,CAAC,EAVW,aAAa,6BAAb,aAAa,QAUxB;AACD,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,kDAA6B,CAAA;IAC7B,kDAA6B,CAAA;IAC7B,sCAAiB,CAAA;IACjB,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;AACvB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B;AAgBD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAMD,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,wEAAwE;IACxE,oCAAa,CAAA;AACf,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B;AAED,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,gDAA0B,CAAA;IAC1B,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;IACjB,gGAAgG;IAChG,uDAAiC,CAAA;AACnC,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;AA0QD,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;IACjB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;AACrB,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B"}
|
package/package.json
CHANGED
package/src/account/account.ts
CHANGED
|
@@ -70,6 +70,8 @@ export enum InvoiceDocTypeEnum {
|
|
|
70
70
|
INVOICE_RECEIPT = "invrec",
|
|
71
71
|
RECEIPT = "receipt",
|
|
72
72
|
REFUND = "refund",
|
|
73
|
+
/** קבלה זיכוי — reversal of a RECEIPT sale (Nimi invoices service; no VAT-invoice semantics) */
|
|
74
|
+
RECEIPT_REFUND = "receipt_refund",
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
export interface IBankDetails {
|
|
@@ -102,6 +104,51 @@ export interface IWalletDesign {
|
|
|
102
104
|
};
|
|
103
105
|
}
|
|
104
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Groups gate scans into named entrance rows on the activity report. Rules are tried in
|
|
109
|
+
* order and the first whose `match` appears in the event name wins; scans matching no rule
|
|
110
|
+
* fall to `entranceFallbackLabel`. A venue with a single gate can omit rules entirely, in
|
|
111
|
+
* which case the report falls back to one row per event name.
|
|
112
|
+
*/
|
|
113
|
+
export interface IActivityReportEntranceRule {
|
|
114
|
+
/** Case-insensitive substring matched against the event name. */
|
|
115
|
+
match: string;
|
|
116
|
+
/** Row label used for scans of events matching this rule. */
|
|
117
|
+
label: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface IActivityReportScheduleConfig {
|
|
121
|
+
enabled: boolean;
|
|
122
|
+
/** Email addresses this report is sent to. Enabled with none set sends nothing. */
|
|
123
|
+
recipients: string[];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Opt-in, per-seller configuration for the automated activity reports
|
|
128
|
+
* (tools/activity-report). Absent or `enabled: false` means the seller is skipped,
|
|
129
|
+
* so adding a customer is a config change rather than a code change.
|
|
130
|
+
* Lives on the seller (top-level account) — reports are per seller, scoped by `seller` on
|
|
131
|
+
* user-events / event-orders / enduser-season-tickets / visits.
|
|
132
|
+
*/
|
|
133
|
+
export interface IActivityReportConfig {
|
|
134
|
+
/** Same-day report, sent each evening once the venue has closed. */
|
|
135
|
+
daily?: IActivityReportScheduleConfig;
|
|
136
|
+
/** Friday-Saturday report, sent Sunday morning. */
|
|
137
|
+
weekend?: IActivityReportScheduleConfig;
|
|
138
|
+
/** Second header line. The seller account `name` is always used as the title. */
|
|
139
|
+
subtitle?: string;
|
|
140
|
+
entranceRules?: IActivityReportEntranceRule[];
|
|
141
|
+
/** Label for scans matching no entrance rule. Ignored when no rules are set. */
|
|
142
|
+
entranceFallbackLabel?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Send even when the window has zero scans, sales and subscriptions. Off by default,
|
|
145
|
+
* because for a venue open every day an all-zeros report almost always means a data or
|
|
146
|
+
* connection problem rather than a quiet day. Turn on for venues that genuinely close
|
|
147
|
+
* on some days, which would otherwise raise a failure alert every time.
|
|
148
|
+
*/
|
|
149
|
+
allowEmpty?: boolean;
|
|
150
|
+
}
|
|
151
|
+
|
|
105
152
|
export interface IAccountModel {
|
|
106
153
|
idInsidePaymentProvider: string;
|
|
107
154
|
name: string;
|
|
@@ -247,6 +294,8 @@ export interface IAccountModel {
|
|
|
247
294
|
enabled: boolean;
|
|
248
295
|
recipients: string[];
|
|
249
296
|
};
|
|
297
|
+
// Opt-in automated activity reports (daily / weekend), see tools/activity-report.
|
|
298
|
+
activityReportConfig?: IActivityReportConfig;
|
|
250
299
|
}
|
|
251
300
|
// {"payme_status":"success","status_error_code":0,"status_code":0,"seller_payme_id":"MPL16720-72349IAE-FRITPXY5-TFLDUEWF","seller_created":"2022-12-26 18:32:29","seller_first_name":"Ron","seller_last_name":"Dahan","seller_social_id":"205569163","seller_birthdate":"1994-07-01","seller_date_of_birth":"1994-07-01","seller_gender":0,"seller_email":"roncho1794@gmail.com","seller_contact_email":"roncho1794@gmail.com","seller_phone":"+972542323517","seller_contact_phone":"+972542323517","seller_address_city":"Tel Aviv","seller_address_street":"Tel Aviv","seller_address_street_number":"12","seller_address_country":"IL","seller_inc":0,"seller_inc_code":"12345","seller_merchant_name":"Ronen","seller_site_url":"www.no.co.il","seller_custom_details":"No existing Isracard MID","seller_active":true,"seller_approved":false,"seller_market_fee":0,"seller_currencies":,"fee_default_processing_fee":"1.50","fee_default_processing_charge":"0.100000000000000000","fee_default_discount_fee":"0.50","fee_foreign_processing_fee":"2.95","fee_foreign_processing_charge":"0.100000000000000000","fee_forcurr_processing_charge":"0.100000000000000000","seller_public_key":{"uuid":"b40a5251-9907-4db1-8f26-c015dd9466df","description":"PayMe-Public-Key","is_active":true},"notify_type":"seller-create"}
|
|
252
301
|
|