Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AdvancedBilling.Standard/AdvancedBilling.Standard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Maxio.AdvancedBillingSdk</AssemblyName>
<Version>7.0.0.0</Version>
<Version>7.0.1.0</Version>
<Authors>MaxioSdk</Authors>
<Owners></Owners>
<Product>AdvancedBilling.Standard</Product>
<Copyright>Copyright © 2019</Copyright>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<FileVersion>7.0.0.0</FileVersion>
<AssemblyVersion>7.0.1.0</AssemblyVersion>
<FileVersion>7.0.1.0</FileVersion>
<Description>Ultimate billing and pricing flexibility for B2B SaaS.
Maxio integrates directly into your product, so you can seamlessly manage your product catalog, bill customers, and collect payments.</Description>
<LangVersion>7.3</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion AdvancedBilling.Standard/AdvancedBillingClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public sealed class AdvancedBillingClient : IConfiguration
};

private readonly GlobalConfiguration globalConfiguration;
private const string userAgent = "AB SDK DotNet:7.0.0 on OS {os-info}";
private const string userAgent = "AB SDK DotNet:7.0.1 on OS {os-info}";
private readonly HttpCallback httpCallback;
private readonly Lazy<APIExportsController> aPIExports;
private readonly Lazy<AdvanceInvoiceController> advanceInvoice;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Models.ComponentResponse PromoteComponentPricePointToDefault(
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// This endpoint can be used to create a new price point for an existing component.
/// Creates a price point for an existing component.
/// </summary>
/// <param name="componentId">Required parameter: The Advanced Billing id of the component.</param>
/// <param name="body">Optional parameter: .</param>
Expand All @@ -83,7 +83,7 @@ public Models.ComponentPricePointResponse CreateComponentPricePoint(
=> CoreHelper.RunTask(CreateComponentPricePointAsync(componentId, body));

/// <summary>
/// This endpoint can be used to create a new price point for an existing component.
/// Creates a price point for an existing component.
/// </summary>
/// <param name="componentId">Required parameter: The Advanced Billing id of the component.</param>
/// <param name="body">Optional parameter: .</param>
Expand Down
8 changes: 4 additions & 4 deletions AdvancedBilling.Standard/Controllers/ComponentsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ public Models.ComponentResponse FindComponent(
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// This request will return information regarding a component from a specific product family.
/// You may read the component by either the component's id or handle. When using the handle, it must be prefixed with `handle:`.
/// Returns information regarding a component from a specific product family.
/// You can read the component by either the component's id or handle. When using the handle, it must be prefixed with `handle:`.
/// </summary>
/// <param name="productFamilyId">Required parameter: The Advanced Billing id of the product family to which the component belongs.</param>
/// <param name="componentId">Required parameter: Either the Advanced Billing id of the component or the handle for the component prefixed with `handle:`.</param>
Expand All @@ -283,8 +283,8 @@ public Models.ComponentResponse ReadComponent(
=> CoreHelper.RunTask(ReadComponentAsync(productFamilyId, componentId));

/// <summary>
/// This request will return information regarding a component from a specific product family.
/// You may read the component by either the component's id or handle. When using the handle, it must be prefixed with `handle:`.
/// Returns information regarding a component from a specific product family.
/// You can read the component by either the component's id or handle. When using the handle, it must be prefixed with `handle:`.
/// </summary>
/// <param name="productFamilyId">Required parameter: The Advanced Billing id of the product family to which the component belongs.</param>
/// <param name="componentId">Required parameter: Either the Advanced Billing id of the component or the handle for the component prefixed with `handle:`.</param>
Expand Down
4 changes: 2 additions & 2 deletions AdvancedBilling.Standard/Controllers/CustomersController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public Models.CustomerResponse CreateCustomer(
.ExecuteAsync(cancellationToken).ConfigureAwait(false);

/// <summary>
/// This method allows to retrieve the Customer properties by Advanced Billing-generated Customer ID.
/// Retrieves the Customer properties by Advanced Billing-generated Customer ID.
/// </summary>
/// <param name="id">Required parameter: The Advanced Billing id of the customer.</param>
/// <returns>Returns the Models.CustomerResponse response from the API call.</returns>
Expand All @@ -150,7 +150,7 @@ public Models.CustomerResponse ReadCustomer(
=> CoreHelper.RunTask(ReadCustomerAsync(id));

/// <summary>
/// This method allows to retrieve the Customer properties by Advanced Billing-generated Customer ID.
/// Retrieves the Customer properties by Advanced Billing-generated Customer ID.
/// </summary>
/// <param name="id">Required parameter: The Advanced Billing id of the customer.</param>
/// <param name="cancellationToken"> cancellationToken. </param>
Expand Down
20 changes: 10 additions & 10 deletions AdvancedBilling.Standard/Controllers/PaymentProfilesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ internal PaymentProfilesController(GlobalConfiguration globalConfiguration) : ba
/// ## GoCardless.
/// For more information on GoCardless, please view the following resources:.
/// + [Full documentation on GoCardless](https://maxio.zendesk.com/hc/en-us/articles/24176159136909-GoCardless).
/// + [Using Chargify.js with GoCardless - minimal example](https://developers.chargify.com/docs/developer-docs/ZG9jOjE0NjAzNDIy-examples#minimal-example-with-direct-debit-gocardless-gateway).
/// + [Using Chargify.js with GoCardless - full example](https://developers.chargify.com/docs/developer-docs/ZG9jOjE0NjAzNDIy-examples#full-example-with-direct-debit-gocardless-gateway).
/// + [Using Chargify.js with GoCardless - minimal example](https://docs.maxio.com/hc/en-us/articles/38206331271693-Examples#h_01K0PJ15QQZKCER8CFK40MR6XJ).
/// + [Using Chargify.js with GoCardless - full example](https://docs.maxio.com/hc/en-us/articles/38206331271693-Examples#h_01K0PJ15QR09JVHWW0MCA7HVJV).
/// ### GoCardless with Local Bank Details.
/// Following examples create customer, bank account and mandate in GoCardless:.
/// ```json.
Expand Down Expand Up @@ -144,8 +144,8 @@ internal PaymentProfilesController(GlobalConfiguration globalConfiguration) : ba
/// ## SEPA Direct Debit.
/// For more information on Stripe SEPA Direct Debit, please view the following resources:.
/// + [Full documentation on Stripe SEPA Direct Debit](https://maxio.zendesk.com/hc/en-us/articles/24176170430093-Stripe-SEPA-and-BECS-Direct-Debit).
/// + [Using Chargify.js with Stripe Direct Debit - minimal example](https://developers.chargify.com/docs/developer-docs/ZG9jOjE0NjAzNDIy-examples#minimal-example-with-sepa-or-becs-direct-debit-stripe-gateway).
/// + [Using Chargify.js with Stripe Direct Debit - full example](https://developers.chargify.com/docs/developer-docs/ZG9jOjE0NjAzNDIy-examples#full-example-with-sepa-direct-debit-stripe-gateway).
/// + [Using Chargify.js with Stripe Direct Debit - minimal example](https://docs.maxio.com/hc/en-us/articles/38206331271693-Examples#h_01K0PJ15QQFKKN8Z7B7DZ9AJS5).
/// + [Using Chargify.js with Stripe Direct Debit - full example](https://docs.maxio.com/hc/en-us/articles/38206331271693-Examples#h_01K0PJ15QRECQQ4ECS3ZA55GY7).
/// ### Stripe SEPA Direct Debit Payment Profiles.
/// The following example creates a customer, bank account and mandate in Stripe:.
/// ```json.
Expand Down Expand Up @@ -299,8 +299,8 @@ public Models.PaymentProfileResponse CreatePaymentProfile(
/// ## GoCardless.
/// For more information on GoCardless, please view the following resources:.
/// + [Full documentation on GoCardless](https://maxio.zendesk.com/hc/en-us/articles/24176159136909-GoCardless).
/// + [Using Chargify.js with GoCardless - minimal example](https://developers.chargify.com/docs/developer-docs/ZG9jOjE0NjAzNDIy-examples#minimal-example-with-direct-debit-gocardless-gateway).
/// + [Using Chargify.js with GoCardless - full example](https://developers.chargify.com/docs/developer-docs/ZG9jOjE0NjAzNDIy-examples#full-example-with-direct-debit-gocardless-gateway).
/// + [Using Chargify.js with GoCardless - minimal example](https://docs.maxio.com/hc/en-us/articles/38206331271693-Examples#h_01K0PJ15QQZKCER8CFK40MR6XJ).
/// + [Using Chargify.js with GoCardless - full example](https://docs.maxio.com/hc/en-us/articles/38206331271693-Examples#h_01K0PJ15QR09JVHWW0MCA7HVJV).
/// ### GoCardless with Local Bank Details.
/// Following examples create customer, bank account and mandate in GoCardless:.
/// ```json.
Expand Down Expand Up @@ -360,8 +360,8 @@ public Models.PaymentProfileResponse CreatePaymentProfile(
/// ## SEPA Direct Debit.
/// For more information on Stripe SEPA Direct Debit, please view the following resources:.
/// + [Full documentation on Stripe SEPA Direct Debit](https://maxio.zendesk.com/hc/en-us/articles/24176170430093-Stripe-SEPA-and-BECS-Direct-Debit).
/// + [Using Chargify.js with Stripe Direct Debit - minimal example](https://developers.chargify.com/docs/developer-docs/ZG9jOjE0NjAzNDIy-examples#minimal-example-with-sepa-or-becs-direct-debit-stripe-gateway).
/// + [Using Chargify.js with Stripe Direct Debit - full example](https://developers.chargify.com/docs/developer-docs/ZG9jOjE0NjAzNDIy-examples#full-example-with-sepa-direct-debit-stripe-gateway).
/// + [Using Chargify.js with Stripe Direct Debit - minimal example](https://docs.maxio.com/hc/en-us/articles/38206331271693-Examples#h_01K0PJ15QQFKKN8Z7B7DZ9AJS5).
/// + [Using Chargify.js with Stripe Direct Debit - full example](https://docs.maxio.com/hc/en-us/articles/38206331271693-Examples#h_01K0PJ15QRECQQ4ECS3ZA55GY7).
/// ### Stripe SEPA Direct Debit Payment Profiles.
/// The following example creates a customer, bank account and mandate in Stripe:.
/// ```json.
Expand Down Expand Up @@ -887,7 +887,7 @@ public Models.PaymentProfileResponse ChangeSubscriptionGroupDefaultPaymentProfil
/// <summary>
/// One Time Tokens aka Advanced Billing Tokens house the credit card or ACH (Authorize.Net or Stripe only) data for a customer.
/// You can use One Time Tokens while creating a subscription or payment profile instead of passing all bank account or credit card data directly to a given API endpoint.
/// To obtain a One Time Token you have to use [Chargify.js](https://developers.chargify.com/docs/developer-docs/ZG9jOjE0NjAzNDI0-overview).
/// To obtain a One Time Token you have to use [Chargify.js](https://docs.maxio.com/hc/en-us/articles/38163190843789-Chargify-js-Overview#chargify-js-overview-0-0).
/// </summary>
/// <param name="chargifyToken">Required parameter: Advanced Billing Token.</param>
/// <returns>Returns the Models.GetOneTimeTokenRequest response from the API call.</returns>
Expand All @@ -898,7 +898,7 @@ public Models.GetOneTimeTokenRequest ReadOneTimeToken(
/// <summary>
/// One Time Tokens aka Advanced Billing Tokens house the credit card or ACH (Authorize.Net or Stripe only) data for a customer.
/// You can use One Time Tokens while creating a subscription or payment profile instead of passing all bank account or credit card data directly to a given API endpoint.
/// To obtain a One Time Token you have to use [Chargify.js](https://developers.chargify.com/docs/developer-docs/ZG9jOjE0NjAzNDI0-overview).
/// To obtain a One Time Token you have to use [Chargify.js](https://docs.maxio.com/hc/en-us/articles/38163190843789-Chargify-js-Overview#chargify-js-overview-0-0).
/// </summary>
/// <param name="chargifyToken">Required parameter: Advanced Billing Token.</param>
/// <param name="cancellationToken"> cancellationToken. </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,15 +576,15 @@ public async Task DeletePrepaidUsageAllocationAsync(
/// Q. Is it possible to record metered usage for more than one component at a time?.
/// A. No. Usage should be reported as one API call per component on a single subscription. For example, to record that a subscriber has sent both an SMS Message and an Email, send an API call for each.
/// </summary>
/// <param name="subscriptionId">Required parameter: The Chargify id of the subscription.</param>
/// <param name="subscriptionIdOrReference">Required parameter: Either the Advanced Billing subscription ID (integer) or the subscription reference (string). Important: In cases where a numeric string value matches both an existing subscription ID and an existing subscription reference, the system will prioritize the subscription ID lookup. For example, if both subscription ID 123 and subscription reference "123" exist, passing "123" will return the subscription with ID 123..</param>
/// <param name="componentId">Required parameter: Either the Advanced Billing id for the component or the component's handle prefixed by `handle:`.</param>
/// <param name="body">Optional parameter: .</param>
/// <returns>Returns the Models.UsageResponse response from the API call.</returns>
public Models.UsageResponse CreateUsage(
int subscriptionId,
CreateUsageSubscriptionIdOrReference subscriptionIdOrReference,
CreateUsageComponentId componentId,
Models.CreateUsageRequest body = null)
=> CoreHelper.RunTask(CreateUsageAsync(subscriptionId, componentId, body));
=> CoreHelper.RunTask(CreateUsageAsync(subscriptionIdOrReference, componentId, body));

/// <summary>
/// ## Documentation.
Expand Down Expand Up @@ -624,23 +624,23 @@ public Models.UsageResponse CreateUsage(
/// Q. Is it possible to record metered usage for more than one component at a time?.
/// A. No. Usage should be reported as one API call per component on a single subscription. For example, to record that a subscriber has sent both an SMS Message and an Email, send an API call for each.
/// </summary>
/// <param name="subscriptionId">Required parameter: The Chargify id of the subscription.</param>
/// <param name="subscriptionIdOrReference">Required parameter: Either the Advanced Billing subscription ID (integer) or the subscription reference (string). Important: In cases where a numeric string value matches both an existing subscription ID and an existing subscription reference, the system will prioritize the subscription ID lookup. For example, if both subscription ID 123 and subscription reference "123" exist, passing "123" will return the subscription with ID 123..</param>
/// <param name="componentId">Required parameter: Either the Advanced Billing id for the component or the component's handle prefixed by `handle:`.</param>
/// <param name="body">Optional parameter: .</param>
/// <param name="cancellationToken"> cancellationToken. </param>
/// <returns>Returns the Models.UsageResponse response from the API call.</returns>
public async Task<Models.UsageResponse> CreateUsageAsync(
int subscriptionId,
CreateUsageSubscriptionIdOrReference subscriptionIdOrReference,
CreateUsageComponentId componentId,
Models.CreateUsageRequest body = null,
CancellationToken cancellationToken = default)
=> await CreateApiCall<Models.UsageResponse>()
.RequestBuilder(_requestBuilder => _requestBuilder
.Setup(HttpMethod.Post, "/subscriptions/{subscription_id}/components/{component_id}/usages.json")
.Setup(HttpMethod.Post, "/subscriptions/{subscription_id_or_reference}/components/{component_id}/usages.json")
.WithAuth("BasicAuth")
.Parameters(_parameters => _parameters
.Body(_bodyParameter => _bodyParameter.Setup(body))
.Template(_template => _template.Setup("subscription_id", subscriptionId))
.Template(_template => _template.Setup("subscription_id_or_reference", subscriptionIdOrReference).Required())
.Template(_template => _template.Setup("component_id", componentId).Required())
.Header(_header => _header.Setup("Content-Type", "application/json"))))
.ResponseHandler(_responseHandler => _responseHandler
Expand Down Expand Up @@ -687,10 +687,10 @@ public Models.UsageResponse CreateUsage(
CancellationToken cancellationToken = default)
=> await CreateApiCall<List<Models.UsageResponse>>()
.RequestBuilder(_requestBuilder => _requestBuilder
.Setup(HttpMethod.Get, "/subscriptions/{subscription_id}/components/{component_id}/usages.json")
.Setup(HttpMethod.Get, "/subscriptions/{subscription_id_or_reference}/components/{component_id}/usages.json")
.WithAuth("BasicAuth")
.Parameters(_parameters => _parameters
.Template(_template => _template.Setup("subscription_id", input.SubscriptionId))
.Template(_template => _template.Setup("subscription_id_or_reference", input.SubscriptionIdOrReference).Required())
.Template(_template => _template.Setup("component_id", input.ComponentId).Required())
.Query(_query => _query.Setup("since_id", input.SinceId))
.Query(_query => _query.Setup("max_id", input.MaxId))
Expand Down
Loading
Loading