softycomp-node 1.0.0 → 1.0.1

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 (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -113,8 +113,8 @@ class SoftyComp {
113
113
  */
114
114
  async createBill(params) {
115
115
  const isRecurring = params.frequency !== 'once-off';
116
- // Frequency type mapping: 1=once-off, 2=monthly, 7=yearly
117
- const frequencyTypeID = params.frequency === 'yearly' ? 7 : params.frequency === 'monthly' ? 2 : 1;
116
+ // Frequency type mapping: 1=once-off, 2=monthly, 6=yearly (valid range is 1-6)
117
+ const frequencyTypeID = params.frequency === 'yearly' ? 6 : params.frequency === 'monthly' ? 2 : 1;
118
118
  // Build the bill item
119
119
  const item = {
120
120
  Description: params.description || 'Payment',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "softycomp-node",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Node.js SDK for SoftyComp — South African bill presentment and debit order platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",