• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

paypay / paypayopa-sdk-node / 3889352965

pending completion
3889352965

push

github

GitHub
Merge pull request #654 from paypay/dependabot/npm_and_yarn/json5-2.2.3

41 of 45 branches covered (91.11%)

Branch coverage included in aggregate %.

177 of 188 relevant lines covered (94.15%)

20.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/lib/auth.ts
1
/*
2
 * Handles authentication here.
3
 * If API exists to return error for client credentials, throw error,
4
 * Right now, we don't have any such checks, this is a dummy file
5
 */
6

7
export class Auth {
25✔
8
  clientId: string;
9
  clientSecret: string;
10
  merchantId?: string;
11
  /**
12
   * Set intial values to empty string
13
   */
14
  constructor() {
15
    this.clientId = "";
33✔
16
    this.clientSecret = "";
33✔
17
    this.merchantId = "";
33✔
18
  }
19

20
  /**
21
   * Set authentication without any validation
22
   * @param  {String}   clientId      API_KEY provided by client
23
   * @param  {String}   clientSecret  API_SECRET provided by client
24
   */
25
  setAuth(clientId: string, clientSecret: string, merchantId?: string) {
26
    this.clientId = clientId;
32✔
27
    this.clientSecret = clientSecret;
32✔
28
    this.merchantId = merchantId;
32✔
29
  }
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc