Data Structure for Mirror Balance
...
Account Details GET /account/details
Account Block Code POST /account/block-code
CustomerPOST /customerAccount Customer Linking POST /account/customer
Account Card LinkingPOST /account/prepaid
Account Details
Source
Fiserv endpoint:
GET /account/details
Class:
FiservRepository
Service:
getAccountDetails
...
Code Block | ||
---|---|---|
| ||
import lombok.Getter; import lombok.Setter; import javax.validation.constraints.NotNull; import org.springframework.data.mongodb.core.mapping.Document; @Getter @Setter @Document public class AccountBlockUnblockKey { @NotNull(message="account number is mandatory") private String accountNumber; @NotNull(message="organization number is mandatory") private String organizationNumber; @NotNull(message="block is mandatory") private String blockCode; @NotNull(message="block code indicator is mandatory") private Integer blockCodeIndicator; @NotNull(message="foreign use is mandatory") private Integer foreignUse; @NotNull(message="function code is mandatory") private String functionCode; } |
Customer (No se considerará como parte del dominio de Account Mirror)
Source
Fiserv endpoint:
POST /customer
Class:
FiservRepository
Service:
createCustomer
...
Code Block | ||
---|---|---|
| ||
import lombok.Getter; import lombok.Setter; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; @Getter @Setter @Document(collection = "accountCustomerLinks") public class AccountToCustomerLinking { @Id private String id; @NotNull(message="account number is mandatory") private String accountNumber; @NotNull(message="customer number is mandatory") private String customerNumber; @NotNull(message="qualification is mandatory") private String qualification; @NotNull(message="organization number is mandatory") private String organizationNumber; @NotNull(message="customer type indicator is mandatory") private Integer customerTypeIndicator; @NotNull(message="foreign use indicator is mandatory") private Integer foreignUseIndicator; private String expirationDate; private String status; } |
Account Card Linking (No se considerará como parte del dominio de Account Mirror)
Source
Fiserv endpoint:
POST /account/prepaid
Class:
FiservRepository
Service:
linkCardToAccount
...