diff --git a/bookstore-api/.idea/workspace.xml b/bookstore-api/.idea/workspace.xml index 26696f8..534a6f8 100644 --- a/bookstore-api/.idea/workspace.xml +++ b/bookstore-api/.idea/workspace.xml @@ -943,12 +943,12 @@ - + - + diff --git a/store-front/src/app/components/my-profile/my-profile.component.html b/store-front/src/app/components/my-profile/my-profile.component.html index 0d0c027..12afe0e 100644 --- a/store-front/src/app/components/my-profile/my-profile.component.html +++ b/store-front/src/app/components/my-profile/my-profile.component.html @@ -131,16 +131,15 @@ * City - + * State - Please select an option... - - {{state}} + -- state -- + {{state}} @@ -164,6 +163,9 @@ * Select Card Type: + + -- Card Type -- + Visa Mastercard Discover @@ -191,7 +193,7 @@ - + --Month-- Jan (01) @@ -210,7 +212,7 @@ - --Year-- + --Year-- 2017 2018 diff --git a/store-front/src/app/components/my-profile/my-profile.component.ts b/store-front/src/app/components/my-profile/my-profile.component.ts index cbd2811..17e3d78 100644 --- a/store-front/src/app/components/my-profile/my-profile.component.ts +++ b/store-front/src/app/components/my-profile/my-profile.component.ts @@ -104,7 +104,7 @@ export class MyProfileComponent implements OnInit { res => { console.log(res.json()); this.user=res.json(); - this.userPaymentList = this.user.userPaymentList; + // this.userPaymentList = this.user.userPaymentList; }, error => { console.log(error); @@ -114,5 +114,10 @@ export class MyProfileComponent implements OnInit { for (let s in AppConst.usStates) { this.stateList.push(s); } + + this.userBilling.userBillingState=""; + this.userPayment.type=""; + this.userPayment.expiryMonth=""; + this.userPayment.expiryYear=""; } } diff --git a/store-front/src/app/models/user-payment.ts b/store-front/src/app/models/user-payment.ts index fda368c..fa4f4d4 100644 --- a/store-front/src/app/models/user-payment.ts +++ b/store-front/src/app/models/user-payment.ts @@ -5,8 +5,8 @@ export class UserPayment { public type: string; public cardName: string; public cardNumber: string; - public expiryMonth: number; - public expiryYear: number; + public expiryMonth: string; + public expiryYear: string; public cvc: number; public holderName: string; public defaultPayment: boolean; diff --git a/store-front/src/app/services/payment.service.ts b/store-front/src/app/services/payment.service.ts index ff5cdbd..3301e9e 100644 --- a/store-front/src/app/services/payment.service.ts +++ b/store-front/src/app/services/payment.service.ts @@ -9,6 +9,6 @@ export class PaymentService { constructor(private http:Http) { } getUserPaymentlist() { - + } } \ No newline at end of file