29 lines
896 B
Go
29 lines
896 B
Go
package contract
|
|||
|
|
|
||
|
|
// Requests of /customer/pin and /marketing/customers/:id/pin (docs/prd-point-coin.md
|
||
|
|
// F11). PINs are strings so a leading zero is kept.
|
||
|
|
|
||
|
|
type RequestPinOtpRequest struct {
|
||
|
|
// pin_setup or pin_reset.
|
||
|
|
Purpose string `json:"purpose" binding:"required"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type CreateCustomerPinRequest struct {
|
||
|
|
OtpToken string `json:"otp_token" binding:"required"`
|
||
|
|
OtpCode string `json:"otp_code" binding:"required"`
|
||
|
|
Pin string `json:"pin" binding:"required"`
|
||
|
|
ConfirmPin string `json:"confirm_pin" binding:"required"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type ChangeCustomerPinRequest struct {
|
||
|
|
OldPin string `json:"old_pin" binding:"required"`
|
||
|
|
Pin string `json:"pin" binding:"required"`
|
||
|
|
ConfirmPin string `json:"confirm_pin" binding:"required"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type ResetCustomerPinRequest = CreateCustomerPinRequest
|
||
|
|
|
||
|
|
type RemoveCustomerPinRequest struct {
|
||
|
|
Reason string `json:"reason" binding:"required"`
|
||
|
|
}
|