docs: complete masking of store IDs and project references across all docs and configs
CI / Build & Quality Check (push) Has been cancelled
CI / Build & Quality Check (push) Has been cancelled
This commit is contained in:
@@ -30,14 +30,14 @@ export class PathaoAdapter implements CourierAdapter {
|
||||
clientSecret: string,
|
||||
username: string,
|
||||
password: string,
|
||||
storeId: string = "356230",
|
||||
storeId: string = "",
|
||||
baseUrl: string = "https://api-hermes.pathao.com"
|
||||
) {
|
||||
this.clientId = clientId;
|
||||
this.clientSecret = clientSecret;
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
this.storeId = storeId || "356230";
|
||||
this.storeId = storeId || process.env.PATHAO_STORE_ID || "";
|
||||
this.baseUrl = baseUrl || "https://api-hermes.pathao.com";
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ export class PathaoAdapter implements CourierAdapter {
|
||||
} catch (err: any) {
|
||||
console.warn("Pathao store resolution notice:", err.message);
|
||||
}
|
||||
return 356230; // Aura Merchant registered store id
|
||||
return Number(this.storeId) || 0; // Aura Merchant registered store id
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -66,14 +66,14 @@ export function loadConfig(src: EnvSource = process.env): CourierConfig {
|
||||
clientSecret: pathaoClientSecret,
|
||||
username: src.PATHAO_USERNAME || "",
|
||||
password: src.PATHAO_PASSWORD || "",
|
||||
storeId: src.PATHAO_STORE_ID || "356230",
|
||||
storeId: src.PATHAO_STORE_ID || "",
|
||||
baseUrl: src.PATHAO_BASE_URL || "https://api-hermes.pathao.com",
|
||||
enabled: Boolean(pathaoClientId && pathaoClientSecret),
|
||||
},
|
||||
redx: {
|
||||
apiToken: src.REDX_API_TOKEN || "",
|
||||
baseUrl: src.REDX_BASE_URL || "https://openapi.redx.com.bd/v1.0.0-beta",
|
||||
pickupStoreId: src.REDX_PICKUP_STORE_ID || "544445",
|
||||
pickupStoreId: src.REDX_PICKUP_STORE_ID || "",
|
||||
enabled: Boolean(src.REDX_API_TOKEN),
|
||||
},
|
||||
paperfly: {
|
||||
|
||||
Reference in New Issue
Block a user