Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Releases
## VERSION 2.9.1
- Fix: Corrected 'plataformId' typo to 'platformId'.

## VERSION 2.9.0
- Task: Update the local project to comply with release 2.8.0
- Task: Update dependencies and validate builds/tests
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export declare type Config = {
export declare type Options = {
timeout?: number;
idempotencyKey?: string;
plataformId?: string;
platformId?: string;
integratorId?: string;
corporationId?: string;
meliSessionId?: string;
Expand Down
6 changes: 3 additions & 3 deletions src/utils/restClient/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class RestClient {
retries = AppConfig.DEFAULT_RETRIES,
corporationId,
integratorId,
plataformId,
platformId,
meliSessionId,
expandResponseNodes,
cardValidation,
Expand All @@ -84,7 +84,7 @@ class RestClient {
[AppConfig.Headers.USER_AGENT]: AppConfig.getUserAgent(),
...(corporationId ? { [AppConfig.Headers.CORPORATION_ID]: corporationId } : {}),
...(integratorId ? { [AppConfig.Headers.INTEGRATOR_ID]: integratorId } : {}),
...(plataformId ? { [AppConfig.Headers.PLATFORM_ID]: plataformId } : {}),
...(platformId ? { [AppConfig.Headers.PLATFORM_ID]: platformId } : {}),
...(meliSessionId ? { [AppConfig.Headers.MELI_SESSION_ID]: meliSessionId } : {}),
...(expandResponseNodes ? { [AppConfig.Headers.EXPAND_RESPONDE_NODES]: expandResponseNodes } : {}),
...(cardValidation ? { [AppConfig.Headers.CARD_VALIDATION]: cardValidation } : {}),
Expand Down Expand Up @@ -135,4 +135,4 @@ class RestClient {
}
}

export { RestClient };
export { RestClient };