예제 #1
0
        public async Task <ApiResponse <ManagedMerchant> > CreateManagedMerchant(ManagedMerchantCreateOptions options)
        {
            var response = await PostHttp <ManagedMerchant>("merchants/managed", options);

            return(new ApiResponse <ManagedMerchant>()
            {
                Data = response.Data,
                Errors = response.Errors
            });
        }
예제 #2
0
        /// <summary>
        /// Create a new Managed Merchant. Managed Merchants are identical to regular Merchants,
        /// except they can be completely controlled by their parent.
        /// </summary>
        /// <param name="options">The new Merchant's information</param>
        /// <returns></returns>
        public async Task <ApiResponse <ManagedMerchant> > CreateManagedMerchant(ManagedMerchantCreateOptions options)
        {
            var response = await PostHttp <ManagedMerchant>("merchants/managed", options);

            return(response.ToApiResponse());
        }