github.com/twilio/twilio-go@v1.20.1/rest/trusthub/v1/compliance_inquiries_registration_regulatory_compliance_gb_initialize.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Trusthub
     8   * This is the public Twilio REST API.
     9   *
    10   * NOTE: This class is auto generated by OpenAPI Generator.
    11   * https://openapi-generator.tech
    12   * Do not edit the class manually.
    13   */
    14  
    15  package openapi
    16  
    17  import (
    18  	"encoding/json"
    19  	"fmt"
    20  	"net/url"
    21  	"strings"
    22  )
    23  
    24  // Optional parameters for the method 'CreateComplianceRegistration'
    25  type CreateComplianceRegistrationParams struct {
    26  	//
    27  	EndUserType *string `json:"EndUserType,omitempty"`
    28  	//
    29  	PhoneNumberType *string `json:"PhoneNumberType,omitempty"`
    30  	//
    31  	BusinessIdentityType *string `json:"BusinessIdentityType,omitempty"`
    32  	//
    33  	BusinessRegistrationAuthority *string `json:"BusinessRegistrationAuthority,omitempty"`
    34  	// he name of the business or organization using the Tollfree number.
    35  	BusinessLegalName *string `json:"BusinessLegalName,omitempty"`
    36  	// he email address to receive the notification about the verification result.
    37  	NotificationEmail *string `json:"NotificationEmail,omitempty"`
    38  	// The email address to receive the notification about the verification result.
    39  	AcceptedNotificationReceipt *bool `json:"AcceptedNotificationReceipt,omitempty"`
    40  	// Business registration number of the business
    41  	BusinessRegistrationNumber *string `json:"BusinessRegistrationNumber,omitempty"`
    42  	// The URL of the business website
    43  	BusinessWebsiteUrl *string `json:"BusinessWebsiteUrl,omitempty"`
    44  	// Friendly name for your business information
    45  	FriendlyName *string `json:"FriendlyName,omitempty"`
    46  	// First name of the authorized representative
    47  	AuthorizedRepresentative1FirstName *string `json:"AuthorizedRepresentative1FirstName,omitempty"`
    48  	// Last name of the authorized representative
    49  	AuthorizedRepresentative1LastName *string `json:"AuthorizedRepresentative1LastName,omitempty"`
    50  	// Phone number of the authorized representative
    51  	AuthorizedRepresentative1Phone *string `json:"AuthorizedRepresentative1Phone,omitempty"`
    52  	// Email address of the authorized representative
    53  	AuthorizedRepresentative1Email *string `json:"AuthorizedRepresentative1Email,omitempty"`
    54  	// Birthdate of the authorized representative
    55  	AuthorizedRepresentative1DateOfBirth *string `json:"AuthorizedRepresentative1DateOfBirth,omitempty"`
    56  	// Street address of the business
    57  	AddressStreet *string `json:"AddressStreet,omitempty"`
    58  	// Street address of the business
    59  	AddressStreetSecondary *string `json:"AddressStreetSecondary,omitempty"`
    60  	// City of the business
    61  	AddressCity *string `json:"AddressCity,omitempty"`
    62  	// State or province of the business
    63  	AddressSubdivision *string `json:"AddressSubdivision,omitempty"`
    64  	// Postal code of the business
    65  	AddressPostalCode *string `json:"AddressPostalCode,omitempty"`
    66  	// Country code of the business
    67  	AddressCountryCode *string `json:"AddressCountryCode,omitempty"`
    68  	// Street address of the business
    69  	EmergencyAddressStreet *string `json:"EmergencyAddressStreet,omitempty"`
    70  	// Street address of the business
    71  	EmergencyAddressStreetSecondary *string `json:"EmergencyAddressStreetSecondary,omitempty"`
    72  	// City of the business
    73  	EmergencyAddressCity *string `json:"EmergencyAddressCity,omitempty"`
    74  	// State or province of the business
    75  	EmergencyAddressSubdivision *string `json:"EmergencyAddressSubdivision,omitempty"`
    76  	// Postal code of the business
    77  	EmergencyAddressPostalCode *string `json:"EmergencyAddressPostalCode,omitempty"`
    78  	// Country code of the business
    79  	EmergencyAddressCountryCode *string `json:"EmergencyAddressCountryCode,omitempty"`
    80  	// Use the business address as the emergency address
    81  	UseAddressAsEmergencyAddress *bool `json:"UseAddressAsEmergencyAddress,omitempty"`
    82  	// The name of the verification document to upload
    83  	FileName *string `json:"FileName,omitempty"`
    84  	// The verification document to upload
    85  	File *string `json:"File,omitempty"`
    86  	// The first name of the Individual User.
    87  	FirstName *string `json:"FirstName,omitempty"`
    88  	// The last name of the Individual User.
    89  	LastName *string `json:"LastName,omitempty"`
    90  	// The date of birth of the Individual User.
    91  	DateOfBirth *string `json:"DateOfBirth,omitempty"`
    92  	// The email address of the Individual User.
    93  	IndividualEmail *string `json:"IndividualEmail,omitempty"`
    94  	// The phone number of the Individual User.
    95  	IndividualPhone *string `json:"IndividualPhone,omitempty"`
    96  	// Indicates if the inquiry is being started from an ISV embedded component.
    97  	IsIsvEmbed *bool `json:"IsIsvEmbed,omitempty"`
    98  	// Indicates if the isv registering for self or tenant.
    99  	IsvRegisteringForSelfOrTenant *string `json:"IsvRegisteringForSelfOrTenant,omitempty"`
   100  	// The url we call to inform you of bundle changes.
   101  	StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"`
   102  	// Theme id for styling the inquiry form.
   103  	ThemeSetId *string `json:"ThemeSetId,omitempty"`
   104  }
   105  
   106  func (params *CreateComplianceRegistrationParams) SetEndUserType(EndUserType string) *CreateComplianceRegistrationParams {
   107  	params.EndUserType = &EndUserType
   108  	return params
   109  }
   110  func (params *CreateComplianceRegistrationParams) SetPhoneNumberType(PhoneNumberType string) *CreateComplianceRegistrationParams {
   111  	params.PhoneNumberType = &PhoneNumberType
   112  	return params
   113  }
   114  func (params *CreateComplianceRegistrationParams) SetBusinessIdentityType(BusinessIdentityType string) *CreateComplianceRegistrationParams {
   115  	params.BusinessIdentityType = &BusinessIdentityType
   116  	return params
   117  }
   118  func (params *CreateComplianceRegistrationParams) SetBusinessRegistrationAuthority(BusinessRegistrationAuthority string) *CreateComplianceRegistrationParams {
   119  	params.BusinessRegistrationAuthority = &BusinessRegistrationAuthority
   120  	return params
   121  }
   122  func (params *CreateComplianceRegistrationParams) SetBusinessLegalName(BusinessLegalName string) *CreateComplianceRegistrationParams {
   123  	params.BusinessLegalName = &BusinessLegalName
   124  	return params
   125  }
   126  func (params *CreateComplianceRegistrationParams) SetNotificationEmail(NotificationEmail string) *CreateComplianceRegistrationParams {
   127  	params.NotificationEmail = &NotificationEmail
   128  	return params
   129  }
   130  func (params *CreateComplianceRegistrationParams) SetAcceptedNotificationReceipt(AcceptedNotificationReceipt bool) *CreateComplianceRegistrationParams {
   131  	params.AcceptedNotificationReceipt = &AcceptedNotificationReceipt
   132  	return params
   133  }
   134  func (params *CreateComplianceRegistrationParams) SetBusinessRegistrationNumber(BusinessRegistrationNumber string) *CreateComplianceRegistrationParams {
   135  	params.BusinessRegistrationNumber = &BusinessRegistrationNumber
   136  	return params
   137  }
   138  func (params *CreateComplianceRegistrationParams) SetBusinessWebsiteUrl(BusinessWebsiteUrl string) *CreateComplianceRegistrationParams {
   139  	params.BusinessWebsiteUrl = &BusinessWebsiteUrl
   140  	return params
   141  }
   142  func (params *CreateComplianceRegistrationParams) SetFriendlyName(FriendlyName string) *CreateComplianceRegistrationParams {
   143  	params.FriendlyName = &FriendlyName
   144  	return params
   145  }
   146  func (params *CreateComplianceRegistrationParams) SetAuthorizedRepresentative1FirstName(AuthorizedRepresentative1FirstName string) *CreateComplianceRegistrationParams {
   147  	params.AuthorizedRepresentative1FirstName = &AuthorizedRepresentative1FirstName
   148  	return params
   149  }
   150  func (params *CreateComplianceRegistrationParams) SetAuthorizedRepresentative1LastName(AuthorizedRepresentative1LastName string) *CreateComplianceRegistrationParams {
   151  	params.AuthorizedRepresentative1LastName = &AuthorizedRepresentative1LastName
   152  	return params
   153  }
   154  func (params *CreateComplianceRegistrationParams) SetAuthorizedRepresentative1Phone(AuthorizedRepresentative1Phone string) *CreateComplianceRegistrationParams {
   155  	params.AuthorizedRepresentative1Phone = &AuthorizedRepresentative1Phone
   156  	return params
   157  }
   158  func (params *CreateComplianceRegistrationParams) SetAuthorizedRepresentative1Email(AuthorizedRepresentative1Email string) *CreateComplianceRegistrationParams {
   159  	params.AuthorizedRepresentative1Email = &AuthorizedRepresentative1Email
   160  	return params
   161  }
   162  func (params *CreateComplianceRegistrationParams) SetAuthorizedRepresentative1DateOfBirth(AuthorizedRepresentative1DateOfBirth string) *CreateComplianceRegistrationParams {
   163  	params.AuthorizedRepresentative1DateOfBirth = &AuthorizedRepresentative1DateOfBirth
   164  	return params
   165  }
   166  func (params *CreateComplianceRegistrationParams) SetAddressStreet(AddressStreet string) *CreateComplianceRegistrationParams {
   167  	params.AddressStreet = &AddressStreet
   168  	return params
   169  }
   170  func (params *CreateComplianceRegistrationParams) SetAddressStreetSecondary(AddressStreetSecondary string) *CreateComplianceRegistrationParams {
   171  	params.AddressStreetSecondary = &AddressStreetSecondary
   172  	return params
   173  }
   174  func (params *CreateComplianceRegistrationParams) SetAddressCity(AddressCity string) *CreateComplianceRegistrationParams {
   175  	params.AddressCity = &AddressCity
   176  	return params
   177  }
   178  func (params *CreateComplianceRegistrationParams) SetAddressSubdivision(AddressSubdivision string) *CreateComplianceRegistrationParams {
   179  	params.AddressSubdivision = &AddressSubdivision
   180  	return params
   181  }
   182  func (params *CreateComplianceRegistrationParams) SetAddressPostalCode(AddressPostalCode string) *CreateComplianceRegistrationParams {
   183  	params.AddressPostalCode = &AddressPostalCode
   184  	return params
   185  }
   186  func (params *CreateComplianceRegistrationParams) SetAddressCountryCode(AddressCountryCode string) *CreateComplianceRegistrationParams {
   187  	params.AddressCountryCode = &AddressCountryCode
   188  	return params
   189  }
   190  func (params *CreateComplianceRegistrationParams) SetEmergencyAddressStreet(EmergencyAddressStreet string) *CreateComplianceRegistrationParams {
   191  	params.EmergencyAddressStreet = &EmergencyAddressStreet
   192  	return params
   193  }
   194  func (params *CreateComplianceRegistrationParams) SetEmergencyAddressStreetSecondary(EmergencyAddressStreetSecondary string) *CreateComplianceRegistrationParams {
   195  	params.EmergencyAddressStreetSecondary = &EmergencyAddressStreetSecondary
   196  	return params
   197  }
   198  func (params *CreateComplianceRegistrationParams) SetEmergencyAddressCity(EmergencyAddressCity string) *CreateComplianceRegistrationParams {
   199  	params.EmergencyAddressCity = &EmergencyAddressCity
   200  	return params
   201  }
   202  func (params *CreateComplianceRegistrationParams) SetEmergencyAddressSubdivision(EmergencyAddressSubdivision string) *CreateComplianceRegistrationParams {
   203  	params.EmergencyAddressSubdivision = &EmergencyAddressSubdivision
   204  	return params
   205  }
   206  func (params *CreateComplianceRegistrationParams) SetEmergencyAddressPostalCode(EmergencyAddressPostalCode string) *CreateComplianceRegistrationParams {
   207  	params.EmergencyAddressPostalCode = &EmergencyAddressPostalCode
   208  	return params
   209  }
   210  func (params *CreateComplianceRegistrationParams) SetEmergencyAddressCountryCode(EmergencyAddressCountryCode string) *CreateComplianceRegistrationParams {
   211  	params.EmergencyAddressCountryCode = &EmergencyAddressCountryCode
   212  	return params
   213  }
   214  func (params *CreateComplianceRegistrationParams) SetUseAddressAsEmergencyAddress(UseAddressAsEmergencyAddress bool) *CreateComplianceRegistrationParams {
   215  	params.UseAddressAsEmergencyAddress = &UseAddressAsEmergencyAddress
   216  	return params
   217  }
   218  func (params *CreateComplianceRegistrationParams) SetFileName(FileName string) *CreateComplianceRegistrationParams {
   219  	params.FileName = &FileName
   220  	return params
   221  }
   222  func (params *CreateComplianceRegistrationParams) SetFile(File string) *CreateComplianceRegistrationParams {
   223  	params.File = &File
   224  	return params
   225  }
   226  func (params *CreateComplianceRegistrationParams) SetFirstName(FirstName string) *CreateComplianceRegistrationParams {
   227  	params.FirstName = &FirstName
   228  	return params
   229  }
   230  func (params *CreateComplianceRegistrationParams) SetLastName(LastName string) *CreateComplianceRegistrationParams {
   231  	params.LastName = &LastName
   232  	return params
   233  }
   234  func (params *CreateComplianceRegistrationParams) SetDateOfBirth(DateOfBirth string) *CreateComplianceRegistrationParams {
   235  	params.DateOfBirth = &DateOfBirth
   236  	return params
   237  }
   238  func (params *CreateComplianceRegistrationParams) SetIndividualEmail(IndividualEmail string) *CreateComplianceRegistrationParams {
   239  	params.IndividualEmail = &IndividualEmail
   240  	return params
   241  }
   242  func (params *CreateComplianceRegistrationParams) SetIndividualPhone(IndividualPhone string) *CreateComplianceRegistrationParams {
   243  	params.IndividualPhone = &IndividualPhone
   244  	return params
   245  }
   246  func (params *CreateComplianceRegistrationParams) SetIsIsvEmbed(IsIsvEmbed bool) *CreateComplianceRegistrationParams {
   247  	params.IsIsvEmbed = &IsIsvEmbed
   248  	return params
   249  }
   250  func (params *CreateComplianceRegistrationParams) SetIsvRegisteringForSelfOrTenant(IsvRegisteringForSelfOrTenant string) *CreateComplianceRegistrationParams {
   251  	params.IsvRegisteringForSelfOrTenant = &IsvRegisteringForSelfOrTenant
   252  	return params
   253  }
   254  func (params *CreateComplianceRegistrationParams) SetStatusCallbackUrl(StatusCallbackUrl string) *CreateComplianceRegistrationParams {
   255  	params.StatusCallbackUrl = &StatusCallbackUrl
   256  	return params
   257  }
   258  func (params *CreateComplianceRegistrationParams) SetThemeSetId(ThemeSetId string) *CreateComplianceRegistrationParams {
   259  	params.ThemeSetId = &ThemeSetId
   260  	return params
   261  }
   262  
   263  // Create a new Compliance Registration Inquiry for the authenticated account. This is necessary to start a new embedded session.
   264  func (c *ApiService) CreateComplianceRegistration(params *CreateComplianceRegistrationParams) (*TrusthubV1ComplianceRegistration, error) {
   265  	path := "/v1/ComplianceInquiries/Registration/RegulatoryCompliance/GB/Initialize"
   266  
   267  	data := url.Values{}
   268  	headers := make(map[string]interface{})
   269  
   270  	if params != nil && params.EndUserType != nil {
   271  		data.Set("EndUserType", *params.EndUserType)
   272  	}
   273  	if params != nil && params.PhoneNumberType != nil {
   274  		data.Set("PhoneNumberType", *params.PhoneNumberType)
   275  	}
   276  	if params != nil && params.BusinessIdentityType != nil {
   277  		data.Set("BusinessIdentityType", *params.BusinessIdentityType)
   278  	}
   279  	if params != nil && params.BusinessRegistrationAuthority != nil {
   280  		data.Set("BusinessRegistrationAuthority", *params.BusinessRegistrationAuthority)
   281  	}
   282  	if params != nil && params.BusinessLegalName != nil {
   283  		data.Set("BusinessLegalName", *params.BusinessLegalName)
   284  	}
   285  	if params != nil && params.NotificationEmail != nil {
   286  		data.Set("NotificationEmail", *params.NotificationEmail)
   287  	}
   288  	if params != nil && params.AcceptedNotificationReceipt != nil {
   289  		data.Set("AcceptedNotificationReceipt", fmt.Sprint(*params.AcceptedNotificationReceipt))
   290  	}
   291  	if params != nil && params.BusinessRegistrationNumber != nil {
   292  		data.Set("BusinessRegistrationNumber", *params.BusinessRegistrationNumber)
   293  	}
   294  	if params != nil && params.BusinessWebsiteUrl != nil {
   295  		data.Set("BusinessWebsiteUrl", *params.BusinessWebsiteUrl)
   296  	}
   297  	if params != nil && params.FriendlyName != nil {
   298  		data.Set("FriendlyName", *params.FriendlyName)
   299  	}
   300  	if params != nil && params.AuthorizedRepresentative1FirstName != nil {
   301  		data.Set("AuthorizedRepresentative1FirstName", *params.AuthorizedRepresentative1FirstName)
   302  	}
   303  	if params != nil && params.AuthorizedRepresentative1LastName != nil {
   304  		data.Set("AuthorizedRepresentative1LastName", *params.AuthorizedRepresentative1LastName)
   305  	}
   306  	if params != nil && params.AuthorizedRepresentative1Phone != nil {
   307  		data.Set("AuthorizedRepresentative1Phone", *params.AuthorizedRepresentative1Phone)
   308  	}
   309  	if params != nil && params.AuthorizedRepresentative1Email != nil {
   310  		data.Set("AuthorizedRepresentative1Email", *params.AuthorizedRepresentative1Email)
   311  	}
   312  	if params != nil && params.AuthorizedRepresentative1DateOfBirth != nil {
   313  		data.Set("AuthorizedRepresentative1DateOfBirth", *params.AuthorizedRepresentative1DateOfBirth)
   314  	}
   315  	if params != nil && params.AddressStreet != nil {
   316  		data.Set("AddressStreet", *params.AddressStreet)
   317  	}
   318  	if params != nil && params.AddressStreetSecondary != nil {
   319  		data.Set("AddressStreetSecondary", *params.AddressStreetSecondary)
   320  	}
   321  	if params != nil && params.AddressCity != nil {
   322  		data.Set("AddressCity", *params.AddressCity)
   323  	}
   324  	if params != nil && params.AddressSubdivision != nil {
   325  		data.Set("AddressSubdivision", *params.AddressSubdivision)
   326  	}
   327  	if params != nil && params.AddressPostalCode != nil {
   328  		data.Set("AddressPostalCode", *params.AddressPostalCode)
   329  	}
   330  	if params != nil && params.AddressCountryCode != nil {
   331  		data.Set("AddressCountryCode", *params.AddressCountryCode)
   332  	}
   333  	if params != nil && params.EmergencyAddressStreet != nil {
   334  		data.Set("EmergencyAddressStreet", *params.EmergencyAddressStreet)
   335  	}
   336  	if params != nil && params.EmergencyAddressStreetSecondary != nil {
   337  		data.Set("EmergencyAddressStreetSecondary", *params.EmergencyAddressStreetSecondary)
   338  	}
   339  	if params != nil && params.EmergencyAddressCity != nil {
   340  		data.Set("EmergencyAddressCity", *params.EmergencyAddressCity)
   341  	}
   342  	if params != nil && params.EmergencyAddressSubdivision != nil {
   343  		data.Set("EmergencyAddressSubdivision", *params.EmergencyAddressSubdivision)
   344  	}
   345  	if params != nil && params.EmergencyAddressPostalCode != nil {
   346  		data.Set("EmergencyAddressPostalCode", *params.EmergencyAddressPostalCode)
   347  	}
   348  	if params != nil && params.EmergencyAddressCountryCode != nil {
   349  		data.Set("EmergencyAddressCountryCode", *params.EmergencyAddressCountryCode)
   350  	}
   351  	if params != nil && params.UseAddressAsEmergencyAddress != nil {
   352  		data.Set("UseAddressAsEmergencyAddress", fmt.Sprint(*params.UseAddressAsEmergencyAddress))
   353  	}
   354  	if params != nil && params.FileName != nil {
   355  		data.Set("FileName", *params.FileName)
   356  	}
   357  	if params != nil && params.File != nil {
   358  		data.Set("File", *params.File)
   359  	}
   360  	if params != nil && params.FirstName != nil {
   361  		data.Set("FirstName", *params.FirstName)
   362  	}
   363  	if params != nil && params.LastName != nil {
   364  		data.Set("LastName", *params.LastName)
   365  	}
   366  	if params != nil && params.DateOfBirth != nil {
   367  		data.Set("DateOfBirth", *params.DateOfBirth)
   368  	}
   369  	if params != nil && params.IndividualEmail != nil {
   370  		data.Set("IndividualEmail", *params.IndividualEmail)
   371  	}
   372  	if params != nil && params.IndividualPhone != nil {
   373  		data.Set("IndividualPhone", *params.IndividualPhone)
   374  	}
   375  	if params != nil && params.IsIsvEmbed != nil {
   376  		data.Set("IsIsvEmbed", fmt.Sprint(*params.IsIsvEmbed))
   377  	}
   378  	if params != nil && params.IsvRegisteringForSelfOrTenant != nil {
   379  		data.Set("IsvRegisteringForSelfOrTenant", *params.IsvRegisteringForSelfOrTenant)
   380  	}
   381  	if params != nil && params.StatusCallbackUrl != nil {
   382  		data.Set("StatusCallbackUrl", *params.StatusCallbackUrl)
   383  	}
   384  	if params != nil && params.ThemeSetId != nil {
   385  		data.Set("ThemeSetId", *params.ThemeSetId)
   386  	}
   387  
   388  	resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
   389  	if err != nil {
   390  		return nil, err
   391  	}
   392  
   393  	defer resp.Body.Close()
   394  
   395  	ps := &TrusthubV1ComplianceRegistration{}
   396  	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
   397  		return nil, err
   398  	}
   399  
   400  	return ps, err
   401  }
   402  
   403  // Optional parameters for the method 'UpdateComplianceRegistration'
   404  type UpdateComplianceRegistrationParams struct {
   405  	// Indicates if the inquiry is being started from an ISV embedded component.
   406  	IsIsvEmbed *bool `json:"IsIsvEmbed,omitempty"`
   407  	// Theme id for styling the inquiry form.
   408  	ThemeSetId *string `json:"ThemeSetId,omitempty"`
   409  }
   410  
   411  func (params *UpdateComplianceRegistrationParams) SetIsIsvEmbed(IsIsvEmbed bool) *UpdateComplianceRegistrationParams {
   412  	params.IsIsvEmbed = &IsIsvEmbed
   413  	return params
   414  }
   415  func (params *UpdateComplianceRegistrationParams) SetThemeSetId(ThemeSetId string) *UpdateComplianceRegistrationParams {
   416  	params.ThemeSetId = &ThemeSetId
   417  	return params
   418  }
   419  
   420  // Resume a specific Regulatory Compliance Inquiry that has expired, or re-open a rejected Compliance Inquiry for editing.
   421  func (c *ApiService) UpdateComplianceRegistration(RegistrationId string, params *UpdateComplianceRegistrationParams) (*TrusthubV1ComplianceRegistration, error) {
   422  	path := "/v1/ComplianceInquiries/Registration/{RegistrationId}/RegulatoryCompliance/GB/Initialize"
   423  	path = strings.Replace(path, "{"+"RegistrationId"+"}", RegistrationId, -1)
   424  
   425  	data := url.Values{}
   426  	headers := make(map[string]interface{})
   427  
   428  	if params != nil && params.IsIsvEmbed != nil {
   429  		data.Set("IsIsvEmbed", fmt.Sprint(*params.IsIsvEmbed))
   430  	}
   431  	if params != nil && params.ThemeSetId != nil {
   432  		data.Set("ThemeSetId", *params.ThemeSetId)
   433  	}
   434  
   435  	resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
   436  	if err != nil {
   437  		return nil, err
   438  	}
   439  
   440  	defer resp.Body.Close()
   441  
   442  	ps := &TrusthubV1ComplianceRegistration{}
   443  	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
   444  		return nil, err
   445  	}
   446  
   447  	return ps, err
   448  }