# Summary BE 2022-12-22
## Java
### RSKT-266 Tab Produk Siap Usaha -> dandi
- GET /v2/website/core-programs/summary
### RSKT-299 generate referralCode when register -> fadhlu
- POST v1/auth/google
- POST v1/auth/facebook
- POST v1/user/register/user
- POST v1/auth
### RSKT-265 return user response from referral code -> fadhlu
- GET v1/user/referral/:referralCode
```json=1
{
"success": true,
"data": {
"id": "a0cdefe0-8b4a-4f47-b3ee-546eec0ba9fc",
"version": 12,
"createdAt": "2021-11-29T11:50:26",
"updatedAt": "2022-03-02T14:38:47",
"createdBy": "anonymousUser",
"updatedBy": "data.rahko@gmail.com",
"markForDelete": false,
"fullName": "Tess",
"profileImage": "/v1/user/profile-image/blank.png"
},
"error": null
}
```
## NodeJs
### RSKT-266 Tab Produk Siap Usaha -> dandi
#### Changes:
- GET /v3/program-management/:programId
Added response value, type, maxValue
- PUT /v3/program-management/:programId/plans
Added value, type, maxValue in request body
Note: Logic for PUT request stays the same, request body is array
Existing plans will be deleted if not exist in request body
### RSKT-263 Multiple Address Shipment -> riyo
#### Changes
Add CRUD for user shipment address
#### New Endpoint
- POST v3/user-shipment-address
- GET v3/user-shipment-address/:userId
- PUT v3/user-shipment-address/:id
- DELETE v3/user-shipment-address/:id
### RSKT-268 initialize user account services -> adi
##### New Endpoint:
- GET /v3/users/payment
- POST /v3/user/payment
- PUT /v3/user/payment/<account_id>
##### Payload for POST and PUT:
```json=1
{
"account_type": "BCA",
"account_name": "Mang Ujang",
"account_number": "840193823"
}
```
##### Body Response for POST and PUT:
```json=1
{
"success": true,
"message": null,
"data": null
}
```
### RSKT-264 Back Office - Stock Management
#### New Endpoint
- fetch all products: `GET /v3/products`
- fetch on product: `GET /v3/products/<product_id>`
- create new product: `POST /v3/products`
- update existing product: `PUT /v3/products/<product_id>`
- add stock (inbound): PUT `/v3/products/<product_id>/inbound`
- opname stock (inbound): PUT `/v3/products/<product_id>/opname`