Skip to content

Commit

Permalink
fix Object Creation error on graphQl object
Browse files Browse the repository at this point in the history
  • Loading branch information
mngoe committed Dec 1, 2023
1 parent 989484b commit 1caf01e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public CreateFamilyMutation.Data create(@NonNull Family family) throws Exception
Family.Member head = family.getHead();
Response<CreateFamilyMutation.Data> response = makeSynchronous(new CreateFamilyMutation(
CreateFamilyMutationInput.builder()
.id(family.getId())
.uuid(family.getUuid())
.locationId(family.getLocationId())
.poverty(family.isPoor())
.familyTypeId(family.getType())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ public class CreateInsureeGraphQLRequest extends BaseGraphQLRequest {
public CreateInsureeMutation.Data create(@NonNull Family.Member member) throws Exception {
Response<CreateInsureeMutation.Data> response = makeSynchronous(new CreateInsureeMutation(
CreateInsureeMutationInput.builder()
.id(member.getId())
.chfId(member.getChfId())
.uuid(member.getUuid())
.familyId(member.getFamilyId())
.head(member.isHead())
.passport(member.getIdentificationNumber())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public class CreatePolicyGraphQLRequest extends BaseGraphQLRequest {
public CreatePolicyMutation.Data create(@NonNull Family.Policy policy) throws Exception {
Response<CreatePolicyMutation.Data> response = makeSynchronous(new CreatePolicyMutation(
CreatePolicyMutationInput.builder()
.id(policy.getId())
.uuid(policy.getUuid())
.familyId(policy.getFamilyId())
.enrollDate(policy.getEnrollDate())
.startDate(policy.getStartDate())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class CreatePremiumGraphQLRequest extends BaseGraphQLRequest {
public CreatePremiumMutation.Data create(@NonNull Family.Policy.Premium premium) throws Exception {
Response<CreatePremiumMutation.Data> response = makeSynchronous(new CreatePremiumMutation(
CreatePremiumMutationInput.builder()
.id(premium.getId())
.policyUuid(premium.getPolicyUuid())
.amount(premium.getAmount())
.receipt(premium.getReceipt())
Expand Down

0 comments on commit 1caf01e

Please sign in to comment.