bkper-js 1.34.4 → 1.34.6
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/lib/index.d.ts +17 -0
- package/lib/model/Agent.js +7 -0
- package/lib/model/Transaction.js +18 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -249,6 +249,11 @@ export declare class Agent {
|
|
|
249
249
|
* @returns The Agent logo url
|
|
250
250
|
*/
|
|
251
251
|
getLogoUrl(): string | undefined;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @returns The Agent logo url in dark mode
|
|
255
|
+
*/
|
|
256
|
+
getLogoUrlDark(): string | undefined;
|
|
252
257
|
}
|
|
253
258
|
|
|
254
259
|
/**
|
|
@@ -2286,6 +2291,18 @@ export declare class Transaction {
|
|
|
2286
2291
|
* @returns The id of the agent that created this transaction
|
|
2287
2292
|
*/
|
|
2288
2293
|
getAgentId(): string | undefined;
|
|
2294
|
+
/**
|
|
2295
|
+
* @returns The name of the agent that created this transaction
|
|
2296
|
+
*/
|
|
2297
|
+
getAgentName(): string | undefined;
|
|
2298
|
+
/**
|
|
2299
|
+
* @returns The logo of the agent that created this transaction
|
|
2300
|
+
*/
|
|
2301
|
+
getAgentLogoUrl(): string | undefined;
|
|
2302
|
+
/**
|
|
2303
|
+
* @returns The logo of the agent that created this transaction in dark mode
|
|
2304
|
+
*/
|
|
2305
|
+
getAgentLogoUrlDark(): string | undefined;
|
|
2289
2306
|
/**
|
|
2290
2307
|
* Remote ids are used to avoid duplication.
|
|
2291
2308
|
*
|
package/lib/model/Agent.js
CHANGED
package/lib/model/Transaction.js
CHANGED
|
@@ -51,6 +51,24 @@ export class Transaction {
|
|
|
51
51
|
getAgentId() {
|
|
52
52
|
return this.payload.agentId;
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* @returns The name of the agent that created this transaction
|
|
56
|
+
*/
|
|
57
|
+
getAgentName() {
|
|
58
|
+
return this.payload.agentName;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @returns The logo of the agent that created this transaction
|
|
62
|
+
*/
|
|
63
|
+
getAgentLogoUrl() {
|
|
64
|
+
return this.payload.agentLogo;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @returns The logo of the agent that created this transaction in dark mode
|
|
68
|
+
*/
|
|
69
|
+
getAgentLogoUrlDark() {
|
|
70
|
+
return this.payload.agentLogoDark;
|
|
71
|
+
}
|
|
54
72
|
/**
|
|
55
73
|
* Remote ids are used to avoid duplication.
|
|
56
74
|
*
|