/// <summary>Snippet for ListInvoicesAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task ListInvoicesAsync()
        {
            // Create client
            InvoiceServiceClient invoiceServiceClient = await InvoiceServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId   = "";
            string billingSetup = "";
            string issueYear    = "";

            MonthOfYearEnum.Types.MonthOfYear issueMonth = MonthOfYearEnum.Types.MonthOfYear.Unspecified;
            // Make the request
            ListInvoicesResponse response = await invoiceServiceClient.ListInvoicesAsync(customerId, billingSetup, issueYear, issueMonth);
        }
Пример #2
0
        /// <summary>Snippet for ListInvoicesAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task ListInvoicesRequestObjectAsync()
        {
            // Create client
            InvoiceServiceClient invoiceServiceClient = await InvoiceServiceClient.CreateAsync();

            // Initialize request argument(s)
            ListInvoicesRequest request = new ListInvoicesRequest
            {
                CustomerId   = "",
                BillingSetup = "",
                IssueYear    = "",
                IssueMonth   = MonthOfYearEnum.Types.MonthOfYear.Unspecified,
            };
            // Make the request
            ListInvoicesResponse response = await invoiceServiceClient.ListInvoicesAsync(request);
        }
Пример #3
0
        /// <summary>Snippet for ListInvoicesAsync</summary>
        public async Task ListInvoicesAsync()
        {
            // Snippet: ListInvoicesAsync(string, string, string, MonthOfYearEnum.Types.MonthOfYear, CallSettings)
            // Additional: ListInvoicesAsync(string, string, string, MonthOfYearEnum.Types.MonthOfYear, CancellationToken)
            // Create client
            InvoiceServiceClient invoiceServiceClient = await InvoiceServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId   = "";
            string billingSetup = "";
            string issueYear    = "";

            MonthOfYearEnum.Types.MonthOfYear issueMonth = MonthOfYearEnum.Types.MonthOfYear.Unspecified;
            // Make the request
            ListInvoicesResponse response = await invoiceServiceClient.ListInvoicesAsync(customerId, billingSetup, issueYear, issueMonth);

            // End snippet
        }
Пример #4
0
        /// <summary>Snippet for ListInvoicesAsync</summary>
        public async Task ListInvoicesRequestObjectAsync()
        {
            // Snippet: ListInvoicesAsync(ListInvoicesRequest, CallSettings)
            // Additional: ListInvoicesAsync(ListInvoicesRequest, CancellationToken)
            // Create client
            InvoiceServiceClient invoiceServiceClient = await InvoiceServiceClient.CreateAsync();

            // Initialize request argument(s)
            ListInvoicesRequest request = new ListInvoicesRequest
            {
                CustomerId   = "",
                BillingSetup = "",
                IssueYear    = "",
                IssueMonth   = MonthOfYearEnum.Types.MonthOfYear.Unspecified,
            };
            // Make the request
            ListInvoicesResponse response = await invoiceServiceClient.ListInvoicesAsync(request);

            // End snippet
        }