@singularity-payments/core 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -263,6 +263,7 @@ interface DynamicQRResponse {
263
263
  QRCode: string;
264
264
  }
265
265
  interface C2BSimulateRequest {
266
+ shortcode?: string;
266
267
  amount: number;
267
268
  phoneNumber: string;
268
269
  billRefNumber: string;
package/dist/index.d.ts CHANGED
@@ -263,6 +263,7 @@ interface DynamicQRResponse {
263
263
  QRCode: string;
264
264
  }
265
265
  interface C2BSimulateRequest {
266
+ shortcode?: string;
266
267
  amount: number;
267
268
  phoneNumber: string;
268
269
  billRefNumber: string;
package/dist/index.js CHANGED
@@ -1206,7 +1206,7 @@ var MpesaClient = class {
1206
1206
  }
1207
1207
  const phone = this.validateAndFormatPhone(request.phoneNumber);
1208
1208
  const payload = {
1209
- ShortCode: this.config.shortcode,
1209
+ ShortCode: request.shortcode || this.config.shortcode,
1210
1210
  CommandID: request.commandID || "CustomerPayBillOnline",
1211
1211
  Amount: Math.floor(request.amount),
1212
1212
  Msisdn: phone,
package/dist/index.mjs CHANGED
@@ -1157,7 +1157,7 @@ var MpesaClient = class {
1157
1157
  }
1158
1158
  const phone = this.validateAndFormatPhone(request.phoneNumber);
1159
1159
  const payload = {
1160
- ShortCode: this.config.shortcode,
1160
+ ShortCode: request.shortcode || this.config.shortcode,
1161
1161
  CommandID: request.commandID || "CustomerPayBillOnline",
1162
1162
  Amount: Math.floor(request.amount),
1163
1163
  Msisdn: phone,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularity-payments/core",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },