/// <summary> /// Returns a Restricted Data Token (RDT) for one or more restricted resources /// that you specify. A restricted resource is the HTTP method and path from a /// restricted operation that returns Personally Identifiable Information /// (PII). See the Tokens API Use Case Guide for a list of restricted /// operations. Use the RDT returned here as the access token in subsequent /// calls to the corresponding restricted operations. /// /// The path of a restricted resource can be: /// - A specific path containing a seller's order ID, for example /// ```/orders/v0/orders/902-3159896-1390916/address```. The returned RDT /// authorizes a subsequent call to the getOrderAddress operation of the Orders /// API for that specific order only. For example, ```GET /// /orders/v0/orders/902-3159896-1390916/address```. /// - A generic path that does not contain a seller's order ID, for /// example```/orders/v0/orders/{orderId}/address```). The returned RDT /// authorizes subsequent calls to the getOrderAddress operation for *any* of a /// seller's order IDs. For example, ```GET /// /orders/v0/orders/902-3159896-1390916/address``` and ```GET /// /orders/v0/orders/483-3488972-0896720/address``` /// /// **Usage Plans:** /// /// | Plan type | Rate (requests per second) | Burst | /// | ---- | ---- | ---- | /// |Default| 1 | 10 | /// |Selling partner specific| Variable | Variable | /// /// The x-amzn-RateLimit-Limit response header returns the usage plan rate /// limits that were applied to the requested operation. Rate limits for some /// selling partners will vary from the default rate and burst shown in the /// table above. For more information, see "Usage Plans and Rate Limits" in the /// Selling Partner API documentation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// The restricted data token request details. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> CreateRestrictedDataTokenAsync(this ITokensClient operations, CreateRestrictedDataTokenRequest body, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateRestrictedDataTokenWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public LocksTagsService( ILocksTagsRepository locksTagsRepository, IGateway gateway, ITokensClient tokensClient, IEventPublisher eventPublisher) { _locksTagsRepository = locksTagsRepository; _gateway = gateway; _tokensClient = tokensClient; _eventPublisher = eventPublisher; }
public CheckoutApi(CheckoutConfiguration configuration) : base(configuration) { var apiClient = new ApiClient(configuration.HttpClientFactory, configuration.Environment.GetAttribute <EnvironmentAttribute>().ApiUri); _tokensClient = new TokensClient(apiClient, configuration); _customersClient = new CustomersClient(apiClient, configuration); _sourcesClient = new SourcesClient(apiClient, configuration); _paymentsClient = new PaymentsClient(apiClient, configuration); _instrumentsClient = new InstrumentsClient(apiClient, configuration); _disputesClient = new DisputesClient(apiClient, configuration); _webhooksClient = new WebhooksClient(apiClient, configuration); _eventsClient = new EventsClient(apiClient, configuration); _riskClient = new RiskClient(apiClient, configuration); _paymentLinksClient = new PaymentLinksClient(apiClient, configuration); _reconciliationClient = new ReconciliationClient(apiClient, configuration); _hostedPaymentsClient = new HostedPaymentsClient(apiClient, configuration); }
public CheckoutApi(CheckoutConfiguration configuration) { var baseApiClient = BaseApiClient(configuration); _tokensClient = new TokensClient(baseApiClient, configuration); _customersClient = new CustomersClient(baseApiClient, configuration); _paymentsClient = new PaymentsClient(baseApiClient, configuration); _instrumentsClient = new InstrumentsClient(baseApiClient, configuration); _disputesClient = new DisputesClient(baseApiClient, configuration); _riskClient = new RiskClient(baseApiClient, configuration); _forexClient = new ForexClient(baseApiClient, configuration); _workflowsClient = new WorkflowsClient(baseApiClient, configuration); _sessionsClient = new SessionsClient(baseApiClient, configuration); _accountsClient = new AccountsClient( baseApiClient, FilesApiClient(configuration), configuration); _paymentLinksClient = new PaymentLinksClient(baseApiClient, configuration); _hostedPaymentsClient = new HostedPaymentsClient(baseApiClient, configuration); _balancesClient = new BalancesClient(BalancesApiClient(configuration), configuration); _transfersClient = new TransfersClient(TransfersApiClient(configuration), configuration); }
/// <summary> /// Returns a Restricted Data Token (RDT) for one or more restricted resources /// that you specify. A restricted resource is the HTTP method and path from a /// restricted operation that returns Personally Identifiable Information /// (PII). See the Tokens API Use Case Guide for a list of restricted /// operations. Use the RDT returned here as the access token in subsequent /// calls to the corresponding restricted operations. /// /// The path of a restricted resource can be: /// - A specific path containing a seller's order ID, for example /// ```/orders/v0/orders/902-3159896-1390916/address```. The returned RDT /// authorizes a subsequent call to the getOrderAddress operation of the Orders /// API for that specific order only. For example, ```GET /// /orders/v0/orders/902-3159896-1390916/address```. /// - A generic path that does not contain a seller's order ID, for /// example```/orders/v0/orders/{orderId}/address```). The returned RDT /// authorizes subsequent calls to the getOrderAddress operation for *any* of a /// seller's order IDs. For example, ```GET /// /orders/v0/orders/902-3159896-1390916/address``` and ```GET /// /orders/v0/orders/483-3488972-0896720/address``` /// /// **Usage Plans:** /// /// | Plan type | Rate (requests per second) | Burst | /// | ---- | ---- | ---- | /// |Default| 1 | 10 | /// |Selling partner specific| Variable | Variable | /// /// The x-amzn-RateLimit-Limit response header returns the usage plan rate /// limits that were applied to the requested operation. Rate limits for some /// selling partners will vary from the default rate and burst shown in the /// table above. For more information, see "Usage Plans and Rate Limits" in the /// Selling Partner API documentation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// The restricted data token request details. /// </param> public static object CreateRestrictedDataToken(this ITokensClient operations, CreateRestrictedDataTokenRequest body) { return(operations.CreateRestrictedDataTokenAsync(body).GetAwaiter().GetResult()); }
public TagsService(ITagsRepository tagsRepository, IGateway gateway, ITokensClient tokensClient) { _tagsRepository = tagsRepository; _gateway = gateway; _tokensClient = tokensClient; }
public VmsHub(IVmsLogger <VmsHub> logger, ITokensClient client) { _logger = logger; _client = client; }