@fundly.ai/payment-sdk 1.3.0-beta.1 → 1.3.0-beta.2

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.ts CHANGED
@@ -77,6 +77,9 @@ export declare class PaymentSDKConfig {
77
77
  private static instance;
78
78
  private callbacks;
79
79
  private source;
80
+ private channel;
81
+ private erpCode;
82
+ private partnerSecretKey;
80
83
  private features;
81
84
  private constructor();
82
85
  static getInstance(): PaymentSDKConfig;
@@ -96,6 +99,26 @@ export declare class PaymentSDKConfig {
96
99
  * Get the source/typeOfApp value
97
100
  */
98
101
  getSource(): string | null;
102
+ /**
103
+ * Set the channel value (e.g. "FUNDLY", "ERP")
104
+ */
105
+ setChannel(channel: string | null): void;
106
+ /**
107
+ * Get the channel value
108
+ */
109
+ getChannel(): string | null;
110
+ /**
111
+ * Set ERP-specific headers (required when channel === "ERP")
112
+ */
113
+ setErpHeaders(erpCode: string | null, partnerSecretKey: string | null): void;
114
+ /**
115
+ * Get ERP-Code header value
116
+ */
117
+ getErpCode(): string | null;
118
+ /**
119
+ * Get Partner-Secret-Key header value
120
+ */
121
+ getPartnerSecretKey(): string | null;
99
122
  /**
100
123
  * Set feature flags (merges with existing)
101
124
  */
@@ -175,6 +198,10 @@ export interface PaymentConfig {
175
198
  chemistId?: string;
176
199
  leadId?: string;
177
200
  typeOfApp: string;
201
+ channel?: string;
202
+ source?: string;
203
+ erpCode?: string;
204
+ partnerSecretKey?: string;
178
205
  paymentInvoice: {
179
206
  invoiceId: string;
180
207
  paidAmount: number;