Skip to content

Commit

Permalink
Updating the response structure and naming
Browse files Browse the repository at this point in the history
  • Loading branch information
rajagopal28 committed Jul 30, 2021
1 parent e6b84fe commit f700964
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pricing_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ type GeneratePricingRequest struct {
// IsEligible to indicate whether the user is eligible
// Message to state the reason for thich the Decline has happened
type GeneratePricingResponse struct {
input GeneratePricingRequest
IsEligible string `json:"is_eligible"`
Input GeneratePricingRequest `json:"input"`
IsEligible bool `json:"is-eligible"`
Message string `json:"message"`
pricing_list []PricingItem `json:"pricing"`
PricingList []PricingItem `json:"pricing"`
}

// PricingItem - contains the pricing data generated for partucular group based on the request passed
Expand Down

0 comments on commit f700964

Please sign in to comment.