Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] add certification property #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
13 changes: 11 additions & 2 deletions lib/response/Certification.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ResponseBase from './Base';
import ResponseBase from "./Base";

class Certification extends ResponseBase {
public imp_uid: string;
Expand All @@ -14,6 +14,9 @@ class Certification extends ResponseBase {
public unique_key?: string;
public unique_in_site?: string;
public origin?: string;
public birthday?: string;
public phone?: string;
public carrier?: string;

public setAttributes(response: Certification): void {
const {
Expand All @@ -30,6 +33,9 @@ class Certification extends ResponseBase {
unique_key,
unique_in_site,
origin,
birthday,
phone,
carrier,
} = response;
this.imp_uid = imp_uid;
this.merchant_uid = merchant_uid;
Expand All @@ -44,7 +50,10 @@ class Certification extends ResponseBase {
this.unique_key = unique_key;
this.unique_in_site = unique_in_site;
this.origin = origin;
this.birthday = birthday;
this.phone = phone;
this.carrier = carrier;
}
}

export default Certification;
export default Certification;
Loading