setUpPayPal

package
v0.0.0-...-0ba6107 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interactor

type Interactor struct {
	user.Store
	authenticate.AuthenticateUseCase
}

Interactor can do the logic for setting up the PayPal.

func (Interactor) SetUpPayPal

func (i Interactor) SetUpPayPal(req Request) error

SetUpPayPal sets the paypal configuration for a user.

type Request

type Request struct {
	PayPal user.PayPal `json:"payPal"`
	Login  user.Login  `json:"login"`
}

Request contains the PayPal data.

type SetUpPayPalUseCase

type SetUpPayPalUseCase interface {
	SetUpPayPal(Request) error
}

SetUpPayPalUseCase can set up or change the paypal configuration for the user.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL