/// <summary>
        /// create
        /// </summary>
        /// <param name="customerProfileBundleSid"> Customer Profile Bundle Sid </param>
        /// <param name="a2PProfileBundleSid"> A2P Messaging Profile Bundle Sid </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of BrandRegistration </returns>
        public static async System.Threading.Tasks.Task <BrandRegistrationResource> CreateAsync(string customerProfileBundleSid,
                                                                                                string a2PProfileBundleSid,
                                                                                                ITwilioRestClient client = null)
        {
            var options = new CreateBrandRegistrationOptions(customerProfileBundleSid, a2PProfileBundleSid);

            return(await CreateAsync(options, client));
        }
        /// <summary>
        /// create
        /// </summary>
        /// <param name="customerProfileBundleSid"> Customer Profile Bundle Sid </param>
        /// <param name="a2PProfileBundleSid"> A2P Messaging Profile Bundle Sid </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of BrandRegistration </returns>
        public static BrandRegistrationResource Create(string customerProfileBundleSid,
                                                       string a2PProfileBundleSid,
                                                       ITwilioRestClient client = null)
        {
            var options = new CreateBrandRegistrationOptions(customerProfileBundleSid, a2PProfileBundleSid);

            return(Create(options, client));
        }
        /// <summary>
        /// create
        /// </summary>
        /// <param name="options"> Create BrandRegistration parameters </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of BrandRegistration </returns>
        public static BrandRegistrationResource Create(CreateBrandRegistrationOptions options,
                                                       ITwilioRestClient client = null)
        {
            client = client ?? TwilioClient.GetRestClient();
            var response = client.Request(BuildCreateRequest(options, client));

            return(FromJson(response.Content));
        }
 private static Request BuildCreateRequest(CreateBrandRegistrationOptions options, ITwilioRestClient client)
 {
     return(new Request(
                HttpMethod.Post,
                Rest.Domain.Messaging,
                "/v1/a2p/BrandRegistrations",
                postParams: options.GetParams(),
                headerParams: null
                ));
 }
        /// <summary>
        /// create
        /// </summary>
        /// <param name="options"> Create BrandRegistration parameters </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of BrandRegistration </returns>
        public static async System.Threading.Tasks.Task <BrandRegistrationResource> CreateAsync(CreateBrandRegistrationOptions options,
                                                                                                ITwilioRestClient client = null)
        {
            client = client ?? TwilioClient.GetRestClient();
            var response = await client.RequestAsync(BuildCreateRequest(options, client));

            return(FromJson(response.Content));
        }