customer_profile.go
File customer_profile.go
has 533 lines of code (exceeds 500 allowed). Consider refactoring. Open
Open
package AuthorizeCIM
import (
"encoding/json"
)
exported method GetCustomerProfileResponse.Subscriptions should have comment or be unexported Open
Open
func (response GetCustomerProfileResponse) Subscriptions() []string {
- Exclude checks
exported function UpdateProfile should have comment or be unexported Open
Open
func UpdateProfile(profile Profile) (*MessagesResponse, error) {
- Exclude checks
exported type DeleteCustomerProfileRequest should have comment or be unexported Open
Open
type DeleteCustomerProfileRequest struct {
- Exclude checks
exported type MessagesResponse should have comment or be unexported Open
Open
type MessagesResponse struct {
- Exclude checks
exported function GetProfile should have comment or be unexported Open
Open
func GetProfile(customer Customer) (*GetCustomerProfileResponse, error) {
- Exclude checks
struct field PaymentProfileId should be PaymentProfileID Open
Open
PaymentProfileId string `json:"customerPaymentProfileId,omitempty"`
- Exclude checks
exported type DeleteCustomerShippingProfile should have comment or be unexported Open
Open
type DeleteCustomerShippingProfile struct {
- Exclude checks
exported type CustomerPaymentProfile should have comment or be unexported Open
Open
type CustomerPaymentProfile struct {
- Exclude checks
exported function UpdatePaymentProfile should have comment or be unexported Open
Open
func UpdatePaymentProfile(profile Profile) (*MessagesResponse, error) {
- Exclude checks
exported type PaymentProfiles should have comment or be unexported Open
Open
type PaymentProfiles struct {
- Exclude checks
exported type CreateCustomerShippingAddress should have comment or be unexported Open
Open
type CreateCustomerShippingAddress struct {
- Exclude checks
exported type CreateCustomerShippingAddressResponse should have comment or be unexported Open
Open
type CreateCustomerShippingAddressResponse struct {
- Exclude checks
exported method GetCustomerProfileResponse.PaymentProfiles should have comment or be unexported Open
Open
func (response GetCustomerProfileResponse) PaymentProfiles() []GetPaymentProfiles {
- Exclude checks
exported function ValidatePaymentProfile should have comment or be unexported Open
Open
func ValidatePaymentProfile(customer Customer) (*ValidateCustomerPaymentProfileResponse, error) {
- Exclude checks
exported method CustomerPaymentProfile.Add should have comment or be unexported Open
Open
func (payment CustomerPaymentProfile) Add() (*CustomerPaymentProfileResponse, error) {
- Exclude checks
exported type Profile should have comment or be unexported Open
Open
type Profile struct {
- Exclude checks
exported type GetCustomerProfileResponse should have comment or be unexported Open
Open
type GetCustomerProfileResponse struct {
- Exclude checks
exported type DeleteCustomerShippingProfileRequest should have comment or be unexported Open
Open
type DeleteCustomerShippingProfileRequest struct {
- Exclude checks
exported type GetCustomerProfileIdsRequest should have comment or be unexported Open
Open
type GetCustomerProfileIdsRequest struct {
- Exclude checks
exported method Customer.Validate should have comment or be unexported Open
Open
func (customer Customer) Validate() (*ValidateCustomerPaymentProfileResponse, error) {
- Exclude checks
exported type ValidateCustomerPaymentProfile should have comment or be unexported Open
Open
type ValidateCustomerPaymentProfile struct {
- Exclude checks
exported type UpdateCustomerPaymentProfileRequest should have comment or be unexported Open
Open
type UpdateCustomerPaymentProfileRequest struct {
- Exclude checks
exported function CreateShipping should have comment or be unexported Open
Open
func CreateShipping(profile Profile) (*CreateCustomerShippingAddressResponse, error) {
- Exclude checks
exported type CreateCustomerProfileRequest should have comment or be unexported Open
Open
type CreateCustomerProfileRequest struct {
- Exclude checks
exported type CreateCustomerProfile should have comment or be unexported Open
Open
type CreateCustomerProfile struct {
- Exclude checks
exported type CustomerProfiler should have comment or be unexported Open
Open
type CustomerProfiler struct {
- Exclude checks
exported type UpdateCustomerProfileRequest should have comment or be unexported Open
Open
type UpdateCustomerProfileRequest struct {
- Exclude checks
exported type UpPaymentProfile should have comment or be unexported Open
Open
type UpPaymentProfile struct {
- Exclude checks
exported method Profile.UpdateProfile should have comment or be unexported Open
Open
func (profile Profile) UpdateProfile() (*MessagesResponse, error) {
- Exclude checks
exported function CreateProfile should have comment or be unexported Open
Open
func CreateProfile(profile Profile) (*CustomProfileResponse, error) {
- Exclude checks
exported type CustomProfileResponse should have comment or be unexported Open
Open
type CustomProfileResponse struct {
- Exclude checks
exported type GetShippingProfiles should have comment or be unexported Open
Open
type GetShippingProfiles struct {
- Exclude checks
exported type GetCustomerPaymentProfileList should have comment or be unexported Open
Open
type GetCustomerPaymentProfileList struct {
- Exclude checks
exported function GetProfileIds should have comment or be unexported Open
Open
func GetProfileIds() ([]string, error) {
- Exclude checks
exported type CustomerProfileIdsResponse should have comment or be unexported Open
Open
type CustomerProfileIdsResponse struct {
- Exclude checks
exported method Profile.CreateShipping should have comment or be unexported Open
Open
func (profile Profile) CreateShipping() (*CreateCustomerShippingAddressResponse, error) {
- Exclude checks
exported type ValidateCustomerPaymentProfileRequest should have comment or be unexported Open
Open
type ValidateCustomerPaymentProfileRequest struct {
- Exclude checks
exported method Customer.Info should have comment or be unexported Open
Open
func (customer Customer) Info() (*GetCustomerProfileResponse, error) {
- Exclude checks
exported type ValidateCustomerPaymentProfileResponse should have comment or be unexported Open
Open
type ValidateCustomerPaymentProfileResponse struct {
- Exclude checks
exported method Customer.DeleteProfile should have comment or be unexported Open
Open
func (customer Customer) DeleteProfile() (*MessagesResponse, error) {
- Exclude checks
exported method Profile.UpdatePaymentProfile should have comment or be unexported Open
Open
func (profile Profile) UpdatePaymentProfile() (*MessagesResponse, error) {
- Exclude checks
exported function MessageResponder should have comment or be unexported Open
Open
func MessageResponder(d interface{}) (*MessagesResponse, error) {
- Exclude checks
struct field CustomerAddressId should be CustomerAddressID Open
Open
CustomerAddressId string `json:"customerAddressId,omitempty"`
- Exclude checks
exported type DeleteCustomerProfile should have comment or be unexported Open
Open
type DeleteCustomerProfile struct {
- Exclude checks
exported type UpdateCustomerPaymentProfile should have comment or be unexported Open
Open
type UpdateCustomerPaymentProfile struct {
- Exclude checks
exported type UpdateCustomerShippingAddress should have comment or be unexported Open
Open
type UpdateCustomerShippingAddress struct {
- Exclude checks
don't use MixedCaps in package name; AuthorizeCIM should be authorizecim Open
Open
package AuthorizeCIM
- Exclude checks
exported method Profile.CreateProfile should have comment or be unexported Open
Open
func (profile Profile) CreateProfile() (*CustomProfileResponse, error) {
- Exclude checks
exported function CreatePaymentProfile should have comment or be unexported Open
Open
func CreatePaymentProfile(profile CustomerPaymentProfile) (*CustomerPaymentProfileResponse, error) {
- Exclude checks
exported type CreateCustomerPaymentProfileRequest should have comment or be unexported Open
Open
type CreateCustomerPaymentProfileRequest struct {
- Exclude checks
exported type CustomerPaymentProfileResponse should have comment or be unexported Open
Open
type CustomerPaymentProfileResponse struct {
- Exclude checks
exported type GetCustomerPaymentProfileListRequest should have comment or be unexported Open
Open
type GetCustomerPaymentProfileListRequest struct {
- Exclude checks
exported method Customer.DeleteShippingProfile should have comment or be unexported Open
Open
func (customer Customer) DeleteShippingProfile() (*MessagesResponse, error) {
- Exclude checks
exported function UpdateShippingProfile should have comment or be unexported Open
Open
func UpdateShippingProfile(profile Profile) (*MessagesResponse, error) {
- Exclude checks
exported function DeleteProfile should have comment or be unexported Open
Open
func DeleteProfile(customer Customer) (*MessagesResponse, error) {
- Exclude checks
exported function DeleteShippingProfile should have comment or be unexported Open
Open
func DeleteShippingProfile(customer Customer) (*MessagesResponse, error) {
- Exclude checks
struct field CustomerProfileId should be CustomerProfileID Open
Open
CustomerProfileId string `json:"customerProfileId,omitempty"`
- Exclude checks
struct field PaymentProfileId should be PaymentProfileID Open
Open
PaymentProfileId string `json:"paymentProfileId,omitempty"`
- Exclude checks
exported method Customer.DeletePaymentProfile should have comment or be unexported Open
Open
func (customer Customer) DeletePaymentProfile() (*MessagesResponse, error) {
- Exclude checks
exported function DeletePaymentProfile should have comment or be unexported Open
Open
func DeletePaymentProfile(customer Customer) (*MessagesResponse, error) {
- Exclude checks
exported type DeleteCustomerPaymentProfileRequest should have comment or be unexported Open
Open
type DeleteCustomerPaymentProfileRequest struct {
- Exclude checks
exported type DeleteCustomerPaymentProfile should have comment or be unexported Open
Open
type DeleteCustomerPaymentProfile struct {
- Exclude checks
exported type CustomerProfileIdsRequest should have comment or be unexported Open
Open
type CustomerProfileIdsRequest struct {
- Exclude checks
exported type GetCustomerPaymentProfileListResponse should have comment or be unexported Open
Open
type GetCustomerPaymentProfileListResponse struct {
- Exclude checks
exported function GetPaymentProfileIds should have comment or be unexported Open
Open
func GetPaymentProfileIds(month string, method string) (*GetCustomerPaymentProfileListResponse, error) {
- Exclude checks
exported type GetPaymentProfiles should have comment or be unexported Open
Open
type GetPaymentProfiles struct {
- Exclude checks
struct field CustomerProfileId should be CustomerProfileID Open
Open
CustomerProfileId string `json:"customerProfileId"`
- Exclude checks
exported method GetCustomerProfileResponse.ShippingProfiles should have comment or be unexported Open
Open
func (response GetCustomerProfileResponse) ShippingProfiles() []GetShippingProfiles {
- Exclude checks
exported method Profile.UpdateShippingProfile should have comment or be unexported Open
Open
func (profile Profile) UpdateShippingProfile() (*MessagesResponse, error) {
- Exclude checks
struct field PaymentId should be PaymentID Open
Open
PaymentId string `json:"paymentProfileId,omitempty"`
- Exclude checks
exported type CustomerProfileRequest should have comment or be unexported Open
Open
type CustomerProfileRequest struct {
- Exclude checks
exported type GetCustomerProfile should have comment or be unexported Open
Open
type GetCustomerProfile struct {
- Exclude checks
exported type MessageResponse should have comment or be unexported Open
Open
type MessageResponse struct {
- Exclude checks
exported type UpdateCustomerShippingAddressRequest should have comment or be unexported Open
Open
type UpdateCustomerShippingAddressRequest struct {
- Exclude checks
exported type UpdateCustomerProfile should have comment or be unexported Open
Open
type UpdateCustomerProfile struct {
- Exclude checks
exported type CreateCustomerPaymentProfile should have comment or be unexported Open
Open
type CreateCustomerPaymentProfile struct {
- Exclude checks
exported type PaymentProfile should have comment or be unexported Open
Open
type PaymentProfile struct {
- Exclude checks
exported type CreateCustomerShippingAddressRequest should have comment or be unexported Open
Open
type CreateCustomerShippingAddressRequest struct {
- Exclude checks