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 }); }
/// <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()); }