

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

# Connexion à Stripe dans AWS Glue Studio
<a name="connecting-to-data-stripe"></a>

 Stripe est une plateforme de traitement des paiements en ligne et de traitement des cartes de crédit destinée aux entreprises. La plateforme Stripe permet aux entreprises d’accepter des paiements en ligne, de créer des abonnements (facturation récurrente) pour leur commerce électronique et de configurer un compte bancaire pour recevoir les paiements. Stripe prend également en charge les paiements multipartites, dans lesquels il permet aux entreprises de configurer leur site de vente et de collecter les paiements, puis d’effectuer des paiements aux vendeurs ou aux fournisseurs de services via un compte « connecté ». 

**Topics**
+ [AWS Glue support pour Stripe](stripe-support.md)
+ [Politiques contenant les opérations API pour la création et l’utilisation des connexions](stripe-configuring-iam-permissions.md)
+ [Configuration de Stripe](stripe-configuring.md)
+ [Configuration de connexions Stripe](stripe-configuring-connections.md)
+ [Lecture à partir d’entités Stripe](stripe-reading-from-entities.md)
+ [Options de connexion Stripe](stripe-connection-options.md)
+ [Limitations](stripe-limitations.md)
+ [Création d’un compte Stripe et configuration de l’application client](stripe-new-account-creation.md)

# AWS Glue support pour Stripe
<a name="stripe-support"></a>

AWS Glue prend en charge Stripe comme suit :

**Prise en charge en tant que source ?**  
Oui. Vous pouvez utiliser les tâches AWS Glue ETL pour interroger les données de Stripe.

**Prise en charge en tant que cible ?**  
Non.

**Versions de l’API Slack prises en charge**  
 v1. 

# Politiques contenant les opérations API pour la création et l’utilisation des connexions
<a name="stripe-configuring-iam-permissions"></a>

 L’exemple de politique suivant décrit les autorisations IAM requises pour créer et utiliser des connexions. Si vous créez un rôle, créez une politique contenant les éléments suivants : 

------
#### [ JSON ]

****  

```
{
  "Version":"2012-10-17",		 	 	 
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "glue:ListConnectionTypes",
        "glue:DescribeConnectionType",
        "glue:RefreshOAuth2Tokens",
        "glue:ListEntities",
        "glue:DescribeEntity"
      ],
      "Resource": "*"
    }
  ]
}
```

------

Vous pouvez également utiliser les politiques IAM gérées suivantes pour autoriser l’accès :
+  [ AWSGlueServiceRole](https://console.aws.amazon.com/iam/home#policies/arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole)— Accorde l'accès aux ressources dont AWS Glue les différents processus ont besoin pour s'exécuter en votre nom. Ces ressources incluent AWS Glue Amazon S3, IAM et Amazon EC2. Amazon CloudWatch Logs Si vous suivez la convention de dénomination des ressources spécifiée dans cette politique, AWS Glue les processus disposent des autorisations requises. Cette politique est généralement attachée aux rôles spécifiés lorsque vous définissez les crawlers, les tâches et les points de terminaison de développement. 
+  [ AWSGlueConsoleFullAccess](https://console.aws.amazon.com/iam/home#policies/arn:aws:iam::aws:policy/AWSGlueConsoleFullAccess)— Accorde un accès complet aux AWS Glue ressources lorsqu'une identité à laquelle la politique est attachée utilise la console AWS de gestion. Si vous suivez la convention de dénomination pour les ressources spécifiées dans la politique, les utilisateurs bénéficient des capacités totales de la console. Cette politique s'applique généralement aux utilisateurs de la AWS Glue console. 

# Configuration de Stripe
<a name="stripe-configuring"></a>

Avant de pouvoir AWS Glue transférer des données depuis Stripe, vous devez satisfaire aux exigences suivantes :

## Configuration requise
<a name="stripe-configuring-min-requirements"></a>
+  Vous disposez d’un compte Stripe avec e-mail et mot de passe. Pour de plus amples informations, veuillez consulter [Création d’un compte Stripe et configuration de l’application client](stripe-new-account-creation.md). 
+  Votre compte Stripe est activé pour accéder à l’API. Toute utilisation de l’API Stripe est disponible sans frais supplémentaires. 

 Si vous répondez à ces exigences, vous êtes prêt à vous connecter AWS Glue à votre compte Stripe. 

# Configuration de connexions Stripe
<a name="stripe-configuring-connections"></a>

 Stripe prend en charge l’authentification personnalisée. Pour plus d’informations sur la génération des clés d’API requises pour l’autorisation personnalisée, consultez la [documentation de l’API REST STRIPE](https://docs.stripe.com/api/authentication). 

Pour configurer une connexion Stripe :

1.  Dans AWS Secrets Manager, créez un secret avec les informations suivantes. Il est nécessaire de créer un secret pour chaque connexion dans AWS Glue. 

   1.  Pour l’application connectée gérée par le client : le secret doit contenir le secret du consommateur de l’application connectée avec `USER_MANAGED_CLIENT_APPLICATION_CLIENT_SECRET` comme clé. 

1. Dans AWS Glue Glue Studio, créez une connexion sous **Data Connections** en suivant les étapes ci-dessous : 

   1. Lorsque vous sélectionnez un **type de connexion**, sélectionnez Stripe.

   1.  Sélectionnez le rôle IAM qui AWS Glue peut assumer et dispose des autorisations nécessaires pour les actions suivantes : 

------
#### [ JSON ]

****  

      ```
      {
        "Version":"2012-10-17",		 	 	 
        "Statement": [
          {
            "Effect": "Allow",
            "Action": [
              "secretsmanager:DescribeSecret",
              "secretsmanager:GetSecretValue",
              "secretsmanager:PutSecretValue",
              "ec2:CreateNetworkInterface",
              "ec2:DescribeNetworkInterfaces",
              "ec2:DeleteNetworkInterface"
            ],
            "Resource": "*"
          }
        ]
      }
      ```

------

   1.  Sélectionnez celui `secretName` que vous souhaitez utiliser pour cette connexion AWS Glue afin d'y placer les jetons. 

   1.  Sélectionnez les options réseau si vous souhaitez utiliser votre réseau. 

1.  Accordez au rôle IAM associé à votre AWS Glue travail l'autorisation de lire`secretName`. 

# Lecture à partir d’entités Stripe
<a name="stripe-reading-from-entities"></a>

 **Conditions préalables** 
+  Un objet Stripe à partir duquel vous souhaitez lire. 

 **Entités prises en charge** 


| Entité | Peut être filtré | Limit prise en charge | Order by prise en charge | Select prise en charge\$1 | Partitionnement pris en charge | 
| --- | --- | --- | --- | --- | --- | 
| Balance | Non | Non | Non | Oui | Non | 
| Balance Transactions | Oui | Oui | Non | Oui | Oui | 
| Frais | Oui | Oui | Non | Oui | Oui | 
| Disputes | Oui | Oui | Non | Oui | Oui | 
| File Links | Oui | Oui | Non | Oui | Oui | 
| PaymentIntents | Oui | Oui | Non | Oui | Oui | 
| SetupIntents | Oui | Oui | Non | Oui | Oui | 
| Payouts | Oui | Oui | Non | Oui | Oui | 
| Remboursements | Oui | Oui | Non | Oui | Oui | 
| Produits | Oui | Oui | Non | Oui | Oui | 
| Prices | Oui | Oui | Non | Oui | Oui | 
| Coupons | Oui | Oui | Non | Oui | Oui | 
| Promotion Codes | Oui | Oui | Non | Oui | Oui | 
| Tax Codes | Non | Oui | Non | Oui | Non | 
| Tax Rates | Oui | Oui | Non | Oui | Oui | 
| Shipping Rates | Oui | Oui | Non | Oui | Oui | 
| Séances | Oui | Oui | Non | Oui | Oui | 
| Credit Notes | Oui | Oui | Non | Oui | Oui | 
| Client | Oui | Oui | Non | Oui | Oui | 
| Factures | Oui | Oui | Non | Oui | Oui | 
| Invoice Items | Oui | Oui | Non | Oui | Non | 
| Plans | Oui | Oui | Non | Oui | Oui | 
| Quotes | Oui | Oui | Non | Oui | Non | 
| Abonnements | Oui | Oui | Non | Oui |  | 
| Subscription Items | Non | Oui | Non | Oui | Non | 
| Subscription Schedules | Oui | Oui | Non | Oui | Oui | 
| Comptes | Non | Oui | Non | Oui | Oui | 
| Application Fees | Oui | Oui | Non | Oui | Oui | 
| Country Specs | Non | Oui | Non | Oui | Non | 
| Transferts | Oui | Oui | Non | Oui | Oui | 
| Early Fraud Warnings | Oui | Oui | Non | Oui | Oui | 
| Types de rapport | Non | Non | Non | Oui | Non | 

 **Exemple** 

```
stripe_read = glueContext.create_dynamic_frame.from_options(
    connection_type="stripe",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "coupons",
        "API_VERSION": "v1"
    }
)
```

 **Détails des entités et des champs Stripe** 


| Entité | Champ | Type de données | Opérateurs pris en charge | 
| --- | --- | --- | --- | 
| Balance |  |  |  | 
|  | available | List |  | 
|  | connect\$1reserved | List |  | 
|  | en suspens | List |  | 
|  | livemode | Booléen |  | 
|  | objet | String |  | 
|  | instant\$1available | List |  | 
|  | issuing | Struct |  | 
| Balance Transactions |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | montant | Entier |  | 
|  | available\$1on | DateTime | =, >=, <=,<,> | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | currency | String |  | 
|  | description | String |  | 
|  | exchange\$1rate | BigDecimal |  | 
|  | fee | Entier |  | 
|  | fee\$1details | List |  | 
|  | net | Entier |  | 
|  | reporting\$1category | String |  | 
|  | source | String | = | 
|  | status | String |  | 
|  | type | String | = | 
|  | cross\$1border\$1classification | String |  | 
| Frais |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | montant | Entier | =, <, > | 
|  | amount\$1captured | Entier |  | 
|  | amount\$1refunded | Entier |  | 
|  | vigie | String |  | 
|  | application\$1fee | String |  | 
|  | application\$1fee\$1amount | Entier |  | 
|  | balance\$1transaction | String |  | 
|  | billing\$1details | Struct |  | 
|  | calculated\$1statement\$1descriptor | String |  | 
|  | captured | Booléen |  | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | currency | String |  | 
|  | customer | String | = | 
|  | description | String |  | 
|  | destination | String |  | 
|  | dispute | String |  | 
|  | disputed | Booléen | = | 
|  | failure\$1balance\$1transaction | String |  | 
|  | failure\$1code | String |  | 
|  | failure\$1message | String |  | 
|  | fraud\$1details | Struct |  | 
|  | facture | String |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | on\$1behalf\$1of | String |  | 
|  | order | String |  | 
|  | outcome | Struct |  | 
|  | paid | Booléen |  | 
|  | payment\$1intent | String | = | 
|  | payment\$1method | String |  | 
|  | payment\$1method\$1details | Struct |  | 
|  | receipt\$1email | String |  | 
|  | receipt\$1number | String |  | 
|  | receipt\$1url | String |  | 
|  | refunded | Booléen | = | 
|  | refunds | Struct |  | 
|  | review | String |  | 
|  | shipping | Struct |  | 
|  | source | Struct |  | 
|  | source\$1transfer | String |  | 
|  | statement\$1descriptor | String |  | 
|  | statement\$1descriptor\$1suffix | String |  | 
|  | status | String |  | 
|  | transfert | String |  | 
|  | transfer\$1data | Struct |  | 
|  | transfer\$1group | String | = | 
| Disputes |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | montant | Entier | =, <, > | 
|  | balance\$1transaction | String |  | 
|  | balance\$1transactions | List |  | 
|  | charge | String | = | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | currency | String |  | 
|  | evidence | Struct |  | 
|  | evidence\$1details | Struct |  | 
|  | is\$1charge\$1refundable | Booléen |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | payment\$1intent | String | = | 
|  | raison | String | = | 
|  | status | String |  | 
|  | payment\$1method\$1details | Struct |  | 
| File Links |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | expired | Booléen | = | 
|  | expires\$1at | DateTime |  | 
|  | dans le fichier | String | = | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | url | String |  | 
| PaymentIntents |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | montant | Entier |  | 
|  | amount\$1capturable | Entier |  | 
|  | amount\$1details | Struct |  | 
|  | amount\$1received | Entier |  | 
|  | vigie | String |  | 
|  | application\$1fee\$1amount | Entier |  | 
|  | automatic\$1payment\$1methods | Struct |  | 
|  | canceled\$1at | DateTime |  | 
|  | cancellation\$1reason | String |  | 
|  | capture\$1method | String |  | 
|  | client\$1secret | String |  | 
|  | confirmation\$1method | String |  | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | currency | String |  | 
|  | customer | String | = | 
|  | description | String |  | 
|  | facture | String |  | 
|  | last\$1payment\$1error | Struct |  | 
|  | latest\$1charge | String |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | next\$1action | Struct |  | 
|  | on\$1behalf\$1of | String |  | 
|  | payment\$1method | String |  | 
|  | payment\$1method\$1options | Struct |  | 
|  | payment\$1method\$1types | List |  | 
|  | payment\$1method\$1configuration\$1details | Struct |  | 
|  | traitement | Struct |  | 
|  | receipt\$1email | String |  | 
|  | review | String |  | 
|  | setup\$1future\$1usage | String |  | 
|  | shipping | Struct |  | 
|  | source | String |  | 
|  | statement\$1descriptor | String |  | 
|  | statement\$1descriptor\$1suffix | String |  | 
|  | status | String |  | 
|  | transfer\$1data | Struct |  | 
|  | transfer\$1group | String |  | 
| SetupIntents |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | vigie | String |  | 
|  | cancellation\$1reason | String |  | 
|  | client\$1secret | String |  | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | customer | String | = | 
|  | description | String |  | 
|  | flow\$1directions | List |  | 
|  | last\$1setup\$1error | Struct |  | 
|  | latest\$1attempt | String |  | 
|  | livemode | Booléen |  | 
|  | mandate | String |  | 
|  | metadata | Struct |  | 
|  | next\$1action | Struct |  | 
|  | on\$1behalf\$1of | String |  | 
|  | payment\$1method | String |  | 
|  | payment\$1method\$1options | Struct |  | 
|  | payment\$1method\$1types | List |  | 
|  | single\$1use\$1mandate | String |  | 
|  | status | String |  | 
|  | utilisation | String |  | 
|  | automatic\$1payment\$1methods | Struct |  | 
| Payouts |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | montant | Entier | =, <, > | 
|  | arrival\$1date | DateTime | =, >=, <=,<,> | 
|  | automatic | Booléen |  | 
|  | balance\$1transaction | String |  | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | currency | String |  | 
|  | description | String | = | 
|  | destination | String |  | 
|  | failure\$1balance\$1transaction | String |  | 
|  | failure\$1code | String |  | 
|  | failure\$1message | String |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | méthode | String |  | 
|  | original\$1payout | String |  | 
|  | reversed\$1by | String |  | 
|  | reconciliation\$1status | String |  | 
|  | source\$1type | String |  | 
|  | statement\$1descriptor | String |  | 
|  | status | String |  | 
|  | type | String |  | 
|  | application\$1fee | String |  | 
|  | application\$1fee\$1amount | Entier |  | 
| Remboursements |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | montant | Entier |  | 
|  | balance\$1transaction | String |  | 
|  | charge | String | = | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | currency | String |  | 
|  | metadata | Struct |  | 
|  | destination\$1details | Struct |  | 
|  | payment\$1intent | String | = | 
|  | raison | String |  | 
|  | receipt\$1number | String |  | 
|  | source\$1transfer\$1reversal | String |  | 
|  | status | String |  | 
|  | transfer\$1reversal | String |  | 
| Produits |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | actif | Booléen | = | 
|  | attributs | List |  | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | default\$1price | String |  | 
|  | description | String |  | 
|  | images | List |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | name | String |  | 
|  | package\$1dimensions | Struct |  | 
|  | shippable | Booléen |  | 
|  | statement\$1descriptor | String |  | 
|  | tax\$1code | String |  | 
|  | type | String | = | 
|  | unit\$1label | String |  | 
|  | updated | DateTime |  | 
|  | url | String |  | 
|  | fonctionnalités | List |  | 
| Prices |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | actif | Booléen | = | 
|  | billing\$1scheme | String |  | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | currency | String | = | 
|  | custom\$1unit\$1amount | Struct |  | 
|  | livemode | Booléen |  | 
|  | lookup\$1key | String |  | 
|  | metadata | Struct |  | 
|  | nickname | String |  | 
|  | product | String | = | 
|  | recurring | Struct |  | 
|  | tax\$1behavior | String |  | 
|  | tiers\$1mode | String |  | 
|  | transform\$1quantity | Struct |  | 
|  | type | String | = | 
|  | unit\$1amount | Entier |  | 
|  | unit\$1montant\$1decimal | String |  | 
| Coupons |  |  |  | 
|  | Id | String |  | 
|  | objet | String |  | 
|  | amount\$1off | Entier |  | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | currency | String | = | 
|  | duration | String | = | 
|  | duration\$1in\$1months | Entier | =,<,> | 
|  | livemode | Booléen |  | 
|  | max\$1redemptions | Entier | =, <, > | 
|  | metadata | Struct |  | 
|  | name | String |  | 
|  | percent\$1off | Double | = | 
|  | redeem\$1by | DateTime | =, >=, <=, <, > | 
|  | times\$1redeemed | Entier |  | 
|  | valid | Booléen |  | 
| Promotion Codes |  |  |  | 
|  | Id | String |  | 
|  | objet | String |  | 
|  | actif | Booléen | = | 
|  | code | String | = | 
|  | coupon | Struct |  | 
|  | créé | DateTime | =,>=,<=,<,> | 
|  | customer | String |  | 
|  | expires\$1at | DateTime |  | 
|  | livemode | Booléen |  | 
|  | max\$1redemptions | Entier |  | 
|  | metadata | Struct |  | 
|  | restrictions | Struct |  | 
|  | times\$1redeemed | Entier |  | 
| Tax Codes |  |  |  | 
|  | Id | String |  | 
|  | objet | String |  | 
|  | description | String |  | 
|  | name | String |  | 
| Tax Rates |  |  |  | 
|  | Id | String |  | 
|  | objet | String |  | 
|  | actif | Booléen | = | 
|  | country | String |  | 
|  | créé | DateTime | =, >=, <=, <, > | 
|  | description | String |  | 
|  | display\$1name | String |  | 
|  | inclusive | Booléen | = | 
|  | jurisdiction | String |  | 
|  | jurisdiction\$1level | String |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | percentage | Double |  | 
|  | effective\$1percentage | Double |  | 
|  | state | String |  | 
|  | tax\$1type | String |  | 
| Shipping Rates |  |  |  | 
|  | Id | String |  | 
|  | objet | String |  | 
|  | actif | Booléen | = | 
|  | créé | DateTime | =, >=, <=, <, > | 
|  | delivery\$1estimate | Struct |  | 
|  | display\$1name | String |  | 
|  | fixed\$1amount | Struct |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | tax\$1behavior | String |  | 
|  | tax\$1code | String |  | 
|  | type | String |  | 
| Séances |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | after\$1expiration | Struct |  | 
|  | allow\$1promotion\$1codes | Booléen |  | 
|  | amount\$1subtotal | Entier |  | 
|  | amount\$1total | Entier |  | 
|  | automatic\$1tax | Struct |  | 
|  | billing\$1address\$1collection | String |  | 
|  | cancel\$1url | String |  | 
|  | client\$1reference\$1id | String |  | 
|  | consent | Struct |  | 
|  | consent\$1collection | Struct |  | 
|  | créé | DateTime | =, >=, <=, <, > | 
|  | currency | String |  | 
|  | custom\$1text | Struct |  | 
|  | customer | String |  | 
|  | customer\$1creation | String |  | 
|  | customer\$1details | Struct |  | 
|  | customer\$1email | String |  | 
|  | expires\$1at | DateTime |  | 
|  | facture | String |  | 
|  | invoice\$1creation | Struct |  | 
|  | livemode | Booléen |  | 
|  | locale | String |  | 
|  | metadata | Struct |  | 
|  | mode | String |  | 
|  | payment\$1intent | String | = | 
|  | payment\$1link | String |  | 
|  | payment\$1method\$1collection | String |  | 
|  | payment\$1method\$1options | Struct |  | 
|  | payment\$1method\$1types | List |  | 
|  | payment\$1status | String |  | 
|  | phone\$1number\$1collection | Struct |  | 
|  | recovered\$1from | String |  | 
|  | setup\$1intent | String |  | 
|  | shipping\$1address\$1collection | Struct |  | 
|  | shipping\$1cost | Struct |  | 
|  | shipping\$1details | Struct |  | 
|  | shipping\$1options | List |  | 
|  | status | String |  | 
|  | submit\$1type | String |  | 
|  | abonnement | String |  | 
|  | success\$1url | String |  | 
|  | tax\$1id\$1collection | Struct |  | 
|  | total\$1details | Struct |  | 
|  | url | String |  | 
|  | ui\$1mode | String |  | 
| Credit Notes |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | montant | Entier |  | 
|  | créé | DateTime | =, >=, <=, <, > | 
|  | currency | String |  | 
|  | customer | String | = | 
|  | customer\$1balance\$1transaction | String |  | 
|  | discount\$1amount | Entier |  | 
|  | discount\$1amounts | List |  | 
|  | facture | String | = | 
|  | lines | Struct |  | 
|  | livemode | Booléen |  | 
|  | memo | String |  | 
|  | metadata | Struct |  | 
|  | number | String |  | 
|  | out\$1of\$1band\$1amount | Entier |  | 
|  | pdf | String |  | 
|  | raison | String |  | 
|  | refund | String |  | 
|  | status | String |  | 
|  | subtotal | Entier |  | 
|  | subtotal\$1excluding\$1tax | Entier |  | 
|  | tax\$1amounts | List |  | 
|  | total | Entier |  | 
|  | total\$1excluding\$1tax | Entier |  | 
|  | type | String |  | 
|  | voided\$1at | DateTime |  | 
|  | amount\$1shipping | Entier |  | 
|  | effective\$1at | DateTime |  | 
|  | shipping\$1cost | Struct |  | 
| Client |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | adresse | Struct |  | 
|  | balance | Entier |  | 
|  | créé | DateTime |  | 
|  | currency | String | =, >=, <=, <, > | 
|  | default\$1source | String |  | 
|  | delinquent | Booléen | = | 
|  | description | String |  | 
|  | discount | Struct |  | 
|  | e-mail | String | = | 
|  | invoice\$1prefix | String |  | 
|  | invoice\$1settings | Struct |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | name | String |  | 
|  | next\$1invoice\$1sequence | Entier |  | 
|  | phone | String |  | 
|  | preferred\$1locales | List |  | 
|  | shipping | Struct |  | 
|  | tax\$1exempt | String |  | 
|  | test\$1clock | String |  | 
| Factures |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | account\$1country | String |  | 
|  | account\$1name | String |  | 
|  | account\$1tax\$1ids | List |  | 
|  | amount\$1due | Entier |  | 
|  | amount\$1paid | Entier |  | 
|  | amount\$1remaining | Entier |  | 
|  | vigie | String |  | 
|  | application\$1fee\$1amount | Entier |  | 
|  | attempt\$1count | Entier |  | 
|  | attempted | Booléen | = | 
|  | auto\$1advance | Booléen | = | 
|  | automatic\$1tax | Struct |  | 
|  | billing\$1reason | String |  | 
|  | charge | String |  | 
|  | collection\$1method | String | = | 
|  | créé | DateTime | =, >=, <=, <, > | 
|  | currency | String |  | 
|  | custom\$1fields | List |  | 
|  | customer | String | = | 
|  | customer\$1address | Struct |  | 
|  | customer\$1email | String |  | 
|  | customer\$1name | String |  | 
|  | customer\$1phone | String |  | 
|  | customer\$1shipping | Struct |  | 
|  | customer\$1tax\$1exempt | String |  | 
|  | customer\$1tax\$1ids | List |  | 
|  | default\$1payment\$1method | String |  | 
|  | default\$1source | String |  | 
|  | default\$1tax\$1rates | List |  | 
|  | description | String |  | 
|  | discount | Struct |  | 
|  | discounts | List |  | 
|  | due\$1date | DateTime | =, >=, <=, <, > | 
|  | ending\$1balance | Entier |  | 
|  | footer | String |  | 
|  | from\$1invoice | Struct |  | 
|  | hosted\$1invoice\$1url | String |  | 
|  | invoice\$1pdf | String |  | 
|  | last\$1finalization\$1error | Struct |  | 
|  | latest\$1revision | String |  | 
|  | lines | Struct |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | next\$1payment\$1attempt | DateTime |  | 
|  | number | String |  | 
|  | on\$1behalf\$1of | String |  | 
|  | paid | Booléen | = | 
|  | paid\$1out\$1of\$1band | Booléen |  | 
|  | payment\$1intent | String |  | 
|  | payment\$1settings | Struct |  | 
|  | period\$1end | DateTime | =, >=, <=, <, > | 
|  | period\$1start | DateTime | =, >=, <=, <, > | 
|  | post\$1payment\$1credit\$1notes\$1amount | Entier |  | 
|  | pre\$1payment\$1credit\$1notes\$1amount | Entier |  | 
|  | quote | String |  | 
|  | receipt\$1number | String |  | 
|  | rendering | Struct |  | 
|  | rendering\$1options | Struct |  | 
|  | starting\$1balance | Entier |  | 
|  | statement\$1descriptor | String |  | 
|  | status | String | = | 
|  | status\$1transitions | Struct |  | 
|  | abonnement | String |  | 
|  | subscription\$1details | Struct |  | 
|  | subtotal | Entier | =, <, > | 
|  | subtotal\$1excluding\$1tax | Entier |  | 
|  | tax | Entier |  | 
|  | test\$1clock | String |  | 
|  | total | Entier | =, <, > | 
|  | total\$1discount\$1amounts | List |  | 
|  | total\$1excluding\$1tax | Entier |  | 
|  | total\$1tax\$1amounts | List |  | 
|  | transfer\$1data | Struct |  | 
|  | webhooks\$1delivered\$1at | DateTime |  | 
|  | automatically\$1finalizes\$1at | DateTime |  | 
|  | effective\$1at | DateTime |  | 
|  | émetteur | Struct |  | 
| Invoice Items |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | montant | Entier | =, <, > | 
|  | currency | String |  | 
|  | customer | String | = | 
|  | date | DateTime |  | 
|  | description | String |  | 
|  | discountable | Booléen |  | 
|  | discounts | List |  | 
|  | facture | String | = | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | point | Struct |  | 
|  | plan | Struct |  | 
|  | prix | Struct |  | 
|  | proration | Booléen | = | 
|  | quantity | Entier |  | 
|  | abonnement | String |  | 
|  | subscription\$1item | String |  | 
|  | tax\$1rates | List |  | 
|  | test\$1clock | String |  | 
|  | unit\$1amount | Entier |  | 
|  | unit\$1montant\$1decimal | String |  | 
| Plans |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | actif | Booléen | = | 
|  | aggregate\$1usage | String |  | 
|  | montant | Entier |  | 
|  | amount\$1decimal | String |  | 
|  | billing\$1scheme | String |  | 
|  | créé | DateTime | =, >=, <=, <, > | 
|  | currency | String | = | 
|  | interval | String | = | 
|  | interval\$1count | Entier |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | nickname | String |  | 
|  | product | String | = | 
|  | tiers\$1mode | String |  | 
|  | transform\$1usage | Struct |  | 
|  | trial\$1period\$1days | Entier | =, <, > | 
|  | usage\$1type | String |  | 
|  | meter | String |  | 
| Quotes |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | amount\$1subtotal | Entier |  | 
|  | amount\$1total | Entier |  | 
|  | vigie | String |  | 
|  | application\$1fee\$1amount | Entier |  | 
|  | application\$1fee\$1percent | Double |  | 
|  | automatic\$1tax | Struct |  | 
|  | collection\$1method | String |  | 
|  | computed | Struct |  | 
|  | créé | DateTime |  | 
|  | currency | String |  | 
|  | customer | String | = | 
|  | default\$1tax\$1rates | List |  | 
|  | description | String |  | 
|  | discounts | List |  | 
|  | expires\$1at | DateTime |  | 
|  | footer | String |  | 
|  | from\$1quote | Struct |  | 
|  | header | String |  | 
|  | facture | String |  | 
|  | invoice\$1settings | Struct |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | number | String |  | 
|  | on\$1behalf\$1of | String |  | 
|  | status | String | = | 
|  | status\$1transitions | Struct |  | 
|  | abonnement | String |  | 
|  | subscription\$1data | Struct |  | 
|  | subscription\$1schedule | String |  | 
|  | test\$1clock | String |  | 
|  | total\$1details | Struct |  | 
|  | transfer\$1data | Struct |  | 
| Abonnements |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | vigie | String |  | 
|  | application\$1fee\$1percent | Double |  | 
|  | automatic\$1tax | Struct |  | 
|  | billing\$1cycle\$1anchor | DateTime |  | 
|  | billing\$1thresholds | Struct |  | 
|  | cancel\$1at | DateTime |  | 
|  | cancel\$1at\$1period\$1end | Booléen |  | 
|  | canceled\$1at | DateTime |  | 
|  | collection\$1method | String | = | 
|  | créé | DateTime | =, >=, <=,<,> | 
|  | currency | String |  | 
|  | current\$1period\$1end | DateTime | =, >=, <= | 
|  | current\$1period\$1start | DateTime | =, >=, <= | 
|  | customer | String | = | 
|  | days\$1until\$1due | Entier |  | 
|  | default\$1payment\$1method | String |  | 
|  | default\$1source | String |  | 
|  | default\$1tax\$1rates | List |  | 
|  | description | String |  | 
|  | discount | Struct |  | 
|  | ended\$1at | DateTime |  | 
|  | items | Struct |  | 
|  | latest\$1invoice | String |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | next\$1pending\$1invoice\$1item\$1invoice | DateTime |  | 
|  | pause\$1collection | Struct |  | 
|  | payment\$1settings | Struct |  | 
|  | pending\$1invoice\$1item\$1interval | Struct |  | 
|  | pending\$1setup\$1intent | String |  | 
|  | pending\$1update | Struct |  | 
|  | plan | Struct |  | 
|  | quantity | Entier |  | 
|  | schedule | String |  | 
|  | start\$1date | DateTime |  | 
|  | status | String | = | 
|  | test\$1clock | String |  | 
|  | transfer\$1data | Struct |  | 
|  | trial\$1end | DateTime |  | 
|  | trial\$1start | DateTime |  | 
| Subscription Items |  |  |  | 
|  | Id | String |  | 
|  | objet | String |  | 
|  | billing\$1thresholds | Struct |  | 
|  | créé | DateTime | =, >=, <=, <, > | 
|  | metadata | Struct |  | 
|  | plan | Struct |  | 
|  | prix | Struct |  | 
|  | abonnement | String |  | 
|  | tax\$1rates | List |  | 
|  | discounts | List |  | 
| Subscription Schedules |  |  |  | 
|  | objet | String |  | 
|  | vigie | String |  | 
|  | canceled\$1at | DateTime |  | 
|  | completed\$1at | DateTime |  | 
|  | créé | DateTime |  | 
|  | current\$1phase | Struct |  | 
|  | customer | String | = | 
|  | default\$1settings | Struct |  | 
|  | end\$1behavior | String |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | phases | List |  | 
|  | released\$1at | DateTime |  | 
|  | released\$1subscription | String |  | 
|  | renewal\$1interval | String |  | 
|  | status | String |  | 
|  | abonnement | String |  | 
|  | test\$1clock | String |  | 
| Comptes |  |  |  | 
|  | details\$1submitted | Booléen |  | 
|  | tos\$1acceptance | Struct |  | 
|  | type | String |  | 
|  | metadata | Struct |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | default\$1currency | String |  | 
|  | caractéristiques | Struct |  | 
|  | charges\$1enabled | Booléen |  | 
|  | paramètres | Struct |  | 
|  | requirements | Struct |  | 
|  | payouts\$1enabled | Booléen |  | 
|  | future\$1requirements | Struct |  | 
|  | external\$1accounts | Struct |  | 
|  | contrôleur | Struct |  | 
|  | country | String |  | 
|  | e-mail | String |  | 
|  | créé | DateTime | =, >=, <=, <, > | 
|  | business\$1profile | Struct |  | 
|  | business\$1type | String |  | 
|  | company | Struct |  | 
| Application Fees |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | compte | String |  | 
|  | montant | Entier | =, <, > | 
|  | amount\$1refunded | Entier | =, <, > | 
|  | vigie | String |  | 
|  | balance\$1transaction | String |  | 
|  | charge | String | = | 
|  | créé | DateTime |  | 
|  | currency | String |  | 
|  | livemode | Booléen |  | 
|  | originating\$1transaction | String |  | 
|  | refunded | Booléen | = | 
|  | refunds | Struct |  | 
|  | fee\$1source | Struct |  | 
| Country Specs |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | default\$1currency | String |  | 
|  | supported\$1bank\$1account\$1currencies | Struct |  | 
|  | supported\$1payment\$1currencies | List |  | 
|  | supported\$1payment\$1methods | List |  | 
|  | supported\$1transfer\$1countries | List |  | 
|  | verification\$1fields | Struct |  | 
| Transferts |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | montant | Entier | =, <, > | 
|  | amount\$1reversed | Entier |  | 
|  | balance\$1transaction | String |  | 
|  | créé | DateTime | =, >=, <=, <, > | 
|  | currency | String | = | 
|  | description | String |  | 
|  | destination | String | = | 
|  | destination\$1payment | String |  | 
|  | livemode | Booléen |  | 
|  | metadata | Struct |  | 
|  | reversals | Struct |  | 
|  | reversed | Booléen |  | 
|  | source\$1transaction | String |  | 
|  | source\$1type | String |  | 
|  | transfer\$1group | String | = | 
| Early Fraud Warnings |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | actionable | Booléen |  | 
|  | charge | String | = | 
|  | créé | DateTime | =, >=, <=, <, > | 
|  | fraud\$1type | String |  | 
|  | livemode | Booléen |  | 
|  | payment\$1intent | String | = | 
| Types de rapport |  |  |  | 
|  | id | String |  | 
|  | objet | String |  | 
|  | data\$1available\$1end | DateTime |  | 
|  | data\$1available\$1start | DateTime |  | 
|  | default\$1columns | List |  | 
|  | livemode | Booléen |  | 
|  | name | String |  | 
|  | updated | DateTime |  | 
|  | version | Entier |  | 

 **Requêtes de partitionnement** 

 Les options Spark supplémentaires `PARTITION_FIELD`, `LOWER_BOUND`, `UPPER_BOUND` et `NUM_PARTITIONS` peuvent être indiquées si vous souhaitez utiliser la simultanéité dans Spark. Avec ces paramètres, la requête d’origine serait divisée en `NUM_PARTITIONS` nombres de sous-requêtes pouvant être exécutées simultanément par les tâches Spark. 
+  `PARTITION_FIELD` : le nom du champ à utiliser pour partitionner la requête. 
+  `LOWER_BOUND` : une valeur limite inférieure inclusive du champ de partition choisi. 

   Pour le champ Date, nous acceptons le format de date Spark utilisé dans les requêtes SQL Spark. Exemple de valeur valide : `"2024-07-01T00:00:00.000Z"`. 
+  `UPPER_BOUND` : une valeur limite supérieure exclusive du champ de partition choisi. 
+  `NUM_PARTITIONS` : nombre de partitions. 

 Les détails relatifs à la prise en charge des champs de partitionnement par entité sont présentés dans le tableau ci-dessous. 


| Nom de l'entité | Champ de partitionnement | Type de données | 
| --- | --- | --- | 
| Balance Transactions | créé | DateTime | 
| Frais | créé | DateTime | 
| Disputes | créé | DateTime | 
| File Links | créé | DateTime | 
| PaymentIntents | créé | DateTime | 
| SetupIntents | créé | DateTime | 
| Payouts | créé | DateTime | 
| Remboursements | créé | DateTime | 
| Produits | créé | DateTime | 
| Prices | créé | DateTime | 
| Coupons | créé | DateTime | 
| Promotion Codes | créé | DateTime | 
| Tax Rates | créé | DateTime | 
| Shipping Rates | créé | DateTime | 
| Séances | créé | DateTime | 
| Credit Notes | créé | DateTime | 
| Client | créé | DateTime | 
| Factures | créé | DateTime | 
| Plans | créé | DateTime | 
| Abonnements | créé | DateTime | 
| Subscription Schedules | créé | DateTime | 
| Comptes | créé | DateTime | 
| Application Fees | créé | DateTime | 
| Transferts | créé | DateTime | 
| Early Fraud Warnings | créé | DateTime | 

 **Exemple** 

```
stripe_read = glueContext.create_dynamic_frame.from_options(
    connection_type="stripe",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "coupons",
        "API_VERSION": "v1",
        "PARTITION_FIELD": "created"
        "LOWER_BOUND": "2024-05-01T20:55:02.000Z"
        "UPPER_BOUND": "2024-07-11T20:55:02.000Z"
        "NUM_PARTITIONS": "10"
    }
)
```

# Options de connexion Stripe
<a name="stripe-connection-options"></a>

Les options de connexion pour Stripe sont les suivantes :
+  `ENTITY_NAME`(Chaîne) - (Obligatoire) Utilisé pour la lecture/l’écriture. Le nom de votre objet dans Stripe. 
+  `API_VERSION`(Chaîne) - (Obligatoire) Utilisé pour la lecture/l’écriture. Version d’API Rest Stripe que vous souhaitez utiliser. Exemple : v1. 
+  `SELECTED_FIELDS`(Liste<Chaîne>) - Par défaut : vide (SELECT \$1). Utilisé pour la lecture. Colonnes que vous souhaitez sélectionner pour l’objet. 
+  `FILTER_PREDICATE`(Chaîne) - Par défaut : vide. Utilisé pour la lecture. Doit être au format SQL Spark. 
+  `QUERY`(Chaîne) - Par défaut : vide. Utilisé pour la lecture. Requête Spark SQL complète. 
+  `PARTITION_FIELD`(Chaîne) - Utilisé pour la lecture. Champ à utiliser pour partitionner la requête. 
+  `LOWER_BOUND`(Chaîne) - Utilisé pour la lecture. Une valeur limite inférieure inclusive du champ de partition choisi. 
+  `UPPER_BOUND`(Chaîne) - Utilisé pour la lecture. Une valeur limite supérieure exclusive du champ de partition choisi. 
+  `NUM_PARTITIONS`(Entier) - Par défaut : 1. Utilisé pour la lecture. Nombre de partitions pour la lecture. 

# Limitations
<a name="stripe-limitations"></a>

Les restrictions du connecteur Stripe sont les suivantes :
+  Seul le partitionnement basé sur les champs est pris en charge par le connecteur. 
+  Le partitionnement basé sur les enregistrements n’est pas pris en charge par le connecteur, aucune disposition ne permet de récupérer le nombre total d’enregistrements. 
+  Le type de données de clé primaire étant String, le partitionnement basé sur l’identifiant n’est donc pas pris en charge par le connecteur. 

# Création d’un compte Stripe et configuration de l’application client
<a name="stripe-new-account-creation"></a>

**Création d’un compte Stripe**

1. Choisissez sur le lien **https://dashboard.stripe.com/enregistrement.**

1. Saisissez votre e-mail, votre nom complet, votre mot de passe et choisissez **Créer un compte**.

1. Après vous être connecté avec le compte, vérifiez le compte en choisissant **Ouvrir Gmail**.

1. Vérifiez le compte en cliquant sur le lien de vérification reçu par e-mail.

1. Après avoir cliqué sur Vérifier l’adresse e-mail, vous serez redirigé vers une autre page.

1. Après avoir cliqué sur **Activer les paiements** pour activer le compte, il sera redirigé vers la page Activer les paiements (**https://dashboard.stripe.com/bienvenue**). Assurez-vous de renseigner toutes vos informations valides, puis de choisir le bouton **Continuer**.



**Création d’une application pour développeurs Slack**

1. Connectez-vous à [Stripe](https://dashboard.stripe.com/login).

1. Choisissez **Développeurs** comme indiqué tout en haut de l’image ci-dessous.

1. Choisissez **Clés d’API** sous Développeurs.

1. Choisissez **Révéler la clé de test** pour obtenir les clés d’API.