Show / Hide Table of Contents

Class LfpProvidersServiceClient

LfpProvidersService client wrapper, for convenient use.

Inheritance
object
LfpProvidersServiceClient
LfpProvidersServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
public abstract class LfpProvidersServiceClient
Remarks

The service facilitates the management of a merchant's LFP provider settings. This API defines the following resource model:

  • [LfpProvider][google.shopping.merchant.accounts.v1.LfpProvider]

Properties

DefaultEndpoint

The default endpoint for the LfpProvidersService service, which is a host of "merchantapi.googleapis.com" and a port of 443.

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
string

DefaultScopes

The default LfpProvidersService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default LfpProvidersService scopes are:

  • https://www.googleapis.com/auth/content

GrpcClient

The underlying gRPC LfpProvidersService client

Declaration
public virtual LfpProvidersService.LfpProvidersServiceClient GrpcClient { get; }
Property Value
Type Description
LfpProvidersService.LfpProvidersServiceClient

ServiceMetadata

The service metadata associated with this client type.

Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type Description
ServiceMetadata

Methods

Create()

Synchronously creates a LfpProvidersServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LfpProvidersServiceClientBuilder.

Declaration
public static LfpProvidersServiceClient Create()
Returns
Type Description
LfpProvidersServiceClient

The created LfpProvidersServiceClient.

CreateAsync(CancellationToken)

Asynchronously creates a LfpProvidersServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LfpProvidersServiceClientBuilder.

Declaration
public static Task<LfpProvidersServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<LfpProvidersServiceClient>

The task representing the created LfpProvidersServiceClient.

FindLfpProviders(FindLfpProvidersRequest, CallSettings)

Find the LFP provider candidates in a given country.

Declaration
public virtual PagedEnumerable<FindLfpProvidersResponse, LfpProvider> FindLfpProviders(FindLfpProvidersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
FindLfpProvidersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<FindLfpProvidersResponse, LfpProvider>

A pageable sequence of LfpProvider resources.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = LfpProvidersServiceClient.Create();
// Initialize request argument(s)
FindLfpProvidersRequest request = new FindLfpProvidersRequest
{
    ParentAsOmnichannelSettingName = OmnichannelSettingName.FromAccountOmnichannelSetting("[ACCOUNT]", "[OMNICHANNEL_SETTING]"),
};
// Make the request
PagedEnumerable<FindLfpProvidersResponse, LfpProvider> response = lfpProvidersServiceClient.FindLfpProviders(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (LfpProvider item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FindLfpProvidersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LfpProvider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LfpProvider> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LfpProvider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FindLfpProviders(OmnichannelSettingName, string, int?, CallSettings)

Find the LFP provider candidates in a given country.

Declaration
public virtual PagedEnumerable<FindLfpProvidersResponse, LfpProvider> FindLfpProviders(OmnichannelSettingName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
OmnichannelSettingName parent

Required. The name of the parent resource under which the LFP providers are found. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}.

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<FindLfpProvidersResponse, LfpProvider>

A pageable sequence of LfpProvider resources.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = LfpProvidersServiceClient.Create();
// Initialize request argument(s)
OmnichannelSettingName parent = OmnichannelSettingName.FromAccountOmnichannelSetting("[ACCOUNT]", "[OMNICHANNEL_SETTING]");
// Make the request
PagedEnumerable<FindLfpProvidersResponse, LfpProvider> response = lfpProvidersServiceClient.FindLfpProviders(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LfpProvider item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FindLfpProvidersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LfpProvider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LfpProvider> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LfpProvider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FindLfpProviders(string, string, int?, CallSettings)

Find the LFP provider candidates in a given country.

Declaration
public virtual PagedEnumerable<FindLfpProvidersResponse, LfpProvider> FindLfpProviders(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The name of the parent resource under which the LFP providers are found. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}.

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<FindLfpProvidersResponse, LfpProvider>

A pageable sequence of LfpProvider resources.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = LfpProvidersServiceClient.Create();
// Initialize request argument(s)
string parent = "accounts/[ACCOUNT]/omnichannelSettings/[OMNICHANNEL_SETTING]";
// Make the request
PagedEnumerable<FindLfpProvidersResponse, LfpProvider> response = lfpProvidersServiceClient.FindLfpProviders(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (LfpProvider item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FindLfpProvidersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LfpProvider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LfpProvider> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LfpProvider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FindLfpProvidersAsync(FindLfpProvidersRequest, CallSettings)

Find the LFP provider candidates in a given country.

Declaration
public virtual PagedAsyncEnumerable<FindLfpProvidersResponse, LfpProvider> FindLfpProvidersAsync(FindLfpProvidersRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
FindLfpProvidersRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<FindLfpProvidersResponse, LfpProvider>

A pageable asynchronous sequence of LfpProvider resources.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = await LfpProvidersServiceClient.CreateAsync();
// Initialize request argument(s)
FindLfpProvidersRequest request = new FindLfpProvidersRequest
{
    ParentAsOmnichannelSettingName = OmnichannelSettingName.FromAccountOmnichannelSetting("[ACCOUNT]", "[OMNICHANNEL_SETTING]"),
};
// Make the request
PagedAsyncEnumerable<FindLfpProvidersResponse, LfpProvider> response = lfpProvidersServiceClient.FindLfpProvidersAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LfpProvider item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FindLfpProvidersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LfpProvider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LfpProvider> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LfpProvider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FindLfpProvidersAsync(OmnichannelSettingName, string, int?, CallSettings)

Find the LFP provider candidates in a given country.

Declaration
public virtual PagedAsyncEnumerable<FindLfpProvidersResponse, LfpProvider> FindLfpProvidersAsync(OmnichannelSettingName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
OmnichannelSettingName parent

Required. The name of the parent resource under which the LFP providers are found. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}.

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<FindLfpProvidersResponse, LfpProvider>

A pageable asynchronous sequence of LfpProvider resources.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = await LfpProvidersServiceClient.CreateAsync();
// Initialize request argument(s)
OmnichannelSettingName parent = OmnichannelSettingName.FromAccountOmnichannelSetting("[ACCOUNT]", "[OMNICHANNEL_SETTING]");
// Make the request
PagedAsyncEnumerable<FindLfpProvidersResponse, LfpProvider> response = lfpProvidersServiceClient.FindLfpProvidersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LfpProvider item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FindLfpProvidersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LfpProvider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LfpProvider> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LfpProvider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FindLfpProvidersAsync(string, string, int?, CallSettings)

Find the LFP provider candidates in a given country.

Declaration
public virtual PagedAsyncEnumerable<FindLfpProvidersResponse, LfpProvider> FindLfpProvidersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The name of the parent resource under which the LFP providers are found. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}.

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<FindLfpProvidersResponse, LfpProvider>

A pageable asynchronous sequence of LfpProvider resources.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = await LfpProvidersServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "accounts/[ACCOUNT]/omnichannelSettings/[OMNICHANNEL_SETTING]";
// Make the request
PagedAsyncEnumerable<FindLfpProvidersResponse, LfpProvider> response = lfpProvidersServiceClient.FindLfpProvidersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((LfpProvider item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FindLfpProvidersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LfpProvider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LfpProvider> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LfpProvider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

LinkLfpProvider(LfpProviderName, CallSettings)

Link the specified merchant to a LFP provider for the specified country.

Declaration
public virtual LinkLfpProviderResponse LinkLfpProvider(LfpProviderName name, CallSettings callSettings = null)
Parameters
Type Name Description
LfpProviderName name

Required. The name of the LFP provider resource to link. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}. The lfp_provider is the LFP provider ID.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LinkLfpProviderResponse

The RPC response.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = LfpProvidersServiceClient.Create();
// Initialize request argument(s)
LfpProviderName name = LfpProviderName.FromAccountOmnichannelSettingLfpProvider("[ACCOUNT]", "[OMNICHANNEL_SETTING]", "[LFP_PROVIDER]");
// Make the request
LinkLfpProviderResponse response = lfpProvidersServiceClient.LinkLfpProvider(name);

LinkLfpProvider(LinkLfpProviderRequest, CallSettings)

Link the specified merchant to a LFP provider for the specified country.

Declaration
public virtual LinkLfpProviderResponse LinkLfpProvider(LinkLfpProviderRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
LinkLfpProviderRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LinkLfpProviderResponse

The RPC response.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = LfpProvidersServiceClient.Create();
// Initialize request argument(s)
LinkLfpProviderRequest request = new LinkLfpProviderRequest
{
    LfpProviderName = LfpProviderName.FromAccountOmnichannelSettingLfpProvider("[ACCOUNT]", "[OMNICHANNEL_SETTING]", "[LFP_PROVIDER]"),
    ExternalAccountId = "",
};
// Make the request
LinkLfpProviderResponse response = lfpProvidersServiceClient.LinkLfpProvider(request);

LinkLfpProvider(string, CallSettings)

Link the specified merchant to a LFP provider for the specified country.

Declaration
public virtual LinkLfpProviderResponse LinkLfpProvider(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The name of the LFP provider resource to link. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}. The lfp_provider is the LFP provider ID.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LinkLfpProviderResponse

The RPC response.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = LfpProvidersServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/omnichannelSettings/[OMNICHANNEL_SETTING]/lfpProviders/[LFP_PROVIDER]";
// Make the request
LinkLfpProviderResponse response = lfpProvidersServiceClient.LinkLfpProvider(name);

LinkLfpProviderAsync(LfpProviderName, CallSettings)

Link the specified merchant to a LFP provider for the specified country.

Declaration
public virtual Task<LinkLfpProviderResponse> LinkLfpProviderAsync(LfpProviderName name, CallSettings callSettings = null)
Parameters
Type Name Description
LfpProviderName name

Required. The name of the LFP provider resource to link. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}. The lfp_provider is the LFP provider ID.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<LinkLfpProviderResponse>

A Task containing the RPC response.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = await LfpProvidersServiceClient.CreateAsync();
// Initialize request argument(s)
LfpProviderName name = LfpProviderName.FromAccountOmnichannelSettingLfpProvider("[ACCOUNT]", "[OMNICHANNEL_SETTING]", "[LFP_PROVIDER]");
// Make the request
LinkLfpProviderResponse response = await lfpProvidersServiceClient.LinkLfpProviderAsync(name);

LinkLfpProviderAsync(LfpProviderName, CancellationToken)

Link the specified merchant to a LFP provider for the specified country.

Declaration
public virtual Task<LinkLfpProviderResponse> LinkLfpProviderAsync(LfpProviderName name, CancellationToken cancellationToken)
Parameters
Type Name Description
LfpProviderName name

Required. The name of the LFP provider resource to link. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}. The lfp_provider is the LFP provider ID.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LinkLfpProviderResponse>

A Task containing the RPC response.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = await LfpProvidersServiceClient.CreateAsync();
// Initialize request argument(s)
LfpProviderName name = LfpProviderName.FromAccountOmnichannelSettingLfpProvider("[ACCOUNT]", "[OMNICHANNEL_SETTING]", "[LFP_PROVIDER]");
// Make the request
LinkLfpProviderResponse response = await lfpProvidersServiceClient.LinkLfpProviderAsync(name);

LinkLfpProviderAsync(LinkLfpProviderRequest, CallSettings)

Link the specified merchant to a LFP provider for the specified country.

Declaration
public virtual Task<LinkLfpProviderResponse> LinkLfpProviderAsync(LinkLfpProviderRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
LinkLfpProviderRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<LinkLfpProviderResponse>

A Task containing the RPC response.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = await LfpProvidersServiceClient.CreateAsync();
// Initialize request argument(s)
LinkLfpProviderRequest request = new LinkLfpProviderRequest
{
    LfpProviderName = LfpProviderName.FromAccountOmnichannelSettingLfpProvider("[ACCOUNT]", "[OMNICHANNEL_SETTING]", "[LFP_PROVIDER]"),
    ExternalAccountId = "",
};
// Make the request
LinkLfpProviderResponse response = await lfpProvidersServiceClient.LinkLfpProviderAsync(request);

LinkLfpProviderAsync(LinkLfpProviderRequest, CancellationToken)

Link the specified merchant to a LFP provider for the specified country.

Declaration
public virtual Task<LinkLfpProviderResponse> LinkLfpProviderAsync(LinkLfpProviderRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
LinkLfpProviderRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LinkLfpProviderResponse>

A Task containing the RPC response.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = await LfpProvidersServiceClient.CreateAsync();
// Initialize request argument(s)
LinkLfpProviderRequest request = new LinkLfpProviderRequest
{
    LfpProviderName = LfpProviderName.FromAccountOmnichannelSettingLfpProvider("[ACCOUNT]", "[OMNICHANNEL_SETTING]", "[LFP_PROVIDER]"),
    ExternalAccountId = "",
};
// Make the request
LinkLfpProviderResponse response = await lfpProvidersServiceClient.LinkLfpProviderAsync(request);

LinkLfpProviderAsync(string, CallSettings)

Link the specified merchant to a LFP provider for the specified country.

Declaration
public virtual Task<LinkLfpProviderResponse> LinkLfpProviderAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The name of the LFP provider resource to link. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}. The lfp_provider is the LFP provider ID.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<LinkLfpProviderResponse>

A Task containing the RPC response.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = await LfpProvidersServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/omnichannelSettings/[OMNICHANNEL_SETTING]/lfpProviders/[LFP_PROVIDER]";
// Make the request
LinkLfpProviderResponse response = await lfpProvidersServiceClient.LinkLfpProviderAsync(name);

LinkLfpProviderAsync(string, CancellationToken)

Link the specified merchant to a LFP provider for the specified country.

Declaration
public virtual Task<LinkLfpProviderResponse> LinkLfpProviderAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The name of the LFP provider resource to link. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}. The lfp_provider is the LFP provider ID.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<LinkLfpProviderResponse>

A Task containing the RPC response.

Sample code
// Create client
LfpProvidersServiceClient lfpProvidersServiceClient = await LfpProvidersServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/omnichannelSettings/[OMNICHANNEL_SETTING]/lfpProviders/[LFP_PROVIDER]";
// Make the request
LinkLfpProviderResponse response = await lfpProvidersServiceClient.LinkLfpProviderAsync(name);

ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

In this article
Back to top Generated by DocFX