././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4384158
stripe-5.0.0/ 0000755 0001751 0000171 00000000000 14335240452 012423 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/.coveragerc 0000644 0001751 0000171 00000000176 14335240430 014544 0 ustar 00runner docker [paths]
source =
stripe
*/site-packages
[run]
branch = true
parallel = true
source = stripe
omit =
stripe/six.py
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/.flake8 0000644 0001751 0000171 00000000551 14335240430 013573 0 ustar 00runner docker [flake8]
exclude =
stripe/six.py
# E501 is the "Line too long" error. We disable it because we use Black for
# code formatting. Black makes a best effort to keep lines under the max
# length, but can go over in some cases.
# W503 goes against PEP8 rules. It's disabled by default, but must be disabled
# explicitly when using `ignore`.
ignore = E501, W503
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/CHANGELOG.md 0000644 0001751 0000171 00000122225 14335240430 014234 0 ustar 00runner docker # Changelog
## 5.0.0 - 2022-11-16
Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.
"⚠️" symbol highlights breaking changes.
* [#895](https://github.com/stripe/stripe-python/pull/895) Next major release changes
* [#889](https://github.com/stripe/stripe-python/pull/889) API Updates
* [#888](https://github.com/stripe/stripe-python/pull/888) Do not run Coveralls if secret token is not available
* [#875](https://github.com/stripe/stripe-python/pull/875) hide misleading ssl security warning in python>=2.7.9
### ⚠️ Changed
- Dropped support for Python version 3.4 and 3.5 (#881). We now support Python 2.7 or 3.6+.
- Fixed mixtyped names for two OAuth exceptions: `UnsupportedGrantTypError`->`UnsupportedGrantTypeError` and `UnsupportedResponseTypError`->`UnsupportedResponseTypeError` (#872).
### Deprecated
- Deprecate `save` method on resources (#887). Use `modify` instead.
```python
# Before
customer = stripe.Customer.retrieve("cus_123")
customer.email = "example@test.com"
customer.save()
# After
stripe.Customer.modify("cus_123", email="example@test.com")
```
### ⚠️ Removed
- Removed `Orders` resource (#882).
- Removed `SKU` resource (#883).
## 4.2.0 - 2022-09-23
* [#877](https://github.com/stripe/stripe-python/pull/877) API Updates
* Add `upcoming_lines` method to the `Invoice` resource.
* [#873](https://github.com/stripe/stripe-python/pull/873) Add abstract methods for SearchableAPIResource
* [#867](https://github.com/stripe/stripe-python/pull/867) API Updates
* Update links in documentation to be absolute.
## 4.1.0 - 2022-08-19
* [#861](https://github.com/stripe/stripe-python/pull/861) API Updates
* Add support for new resource `CustomerCashBalanceTransaction`
* [#860](https://github.com/stripe/stripe-python/pull/860) Add a support section to the readme
* [#717](https://github.com/stripe/stripe-python/pull/717) Fix test TestCharge.test_is_saveable().
## 4.0.2 - 2022-08-03
* [#855](https://github.com/stripe/stripe-python/pull/855) Fix issue where auto_paging_iter failed on nested list objects.
## 4.0.1 - 2022-08-02
* [#850](https://github.com/stripe/stripe-python/pull/850) Fix incorrect handling of additional request parameters
* Fixes issue where using special parameter like `api_key`, `idempotency_key`, `stripe_version`, `stripe_account`, `headers` can cause a `Received unknown parameter error`.
## 4.0.0 - 2022-08-02
Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v4. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.
"⚠️" symbol highlights breaking changes.
* [#847](https://github.com/stripe/stripe-python/pull/847) API Updates
* [#845](https://github.com/stripe/stripe-python/pull/845) Next major release changes
* [#836](https://github.com/stripe/stripe-python/pull/836) API Updates. Add Price.create tests.
* [#835](https://github.com/stripe/stripe-python/pull/835) API Updates. Use auto-generation for credit_note and invoice methods.
### ⚠️ Removed
- Removed deprecated `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `IssuerFraudRecord`, `Recipient`, `RecipientTransfer`, and `ThreeDSecure` classes.
- Removed deprecated `Charge.update_dispute` and `Charge.close_dispute` methods that were using legacy REST API endpoint. Prefer [Dispute.modify](https://stripe.com/docs/api/disputes/update?lang=python) and [Dispute.close](https://stripe.com/docs/api/disputes/close?lang=python)
- Removed deprecated `Card.details` method and `CardDetails` resource. The REST API endpoint is not longer supported.
- Removed the deprecated `Source.source_transactions` method. Prefer `SubscriptionItem.list_source_transactions`
- Removed the deprecated `SubscriptionItem.usage_record_summaries` method. Prefer `SubscriptionItem.list_usage_record_summaries`
- Removed the deprecated `Charge.refund` method. Prefer [Refund.create](https://stripe.com/docs/api/refunds/create)
### ⚠️ Changed
- To be consistent with other resource methods, `ApplicationFee.refund` returns an instance of `ApplicationFee` and doesn't mutate the instance of `ApplicationFee`.
- To be consistent with other resource methods, the `Customer.delete_discount` no longer resets the `discount` property to `None` and returns the deleted discount instead. If you were relying on this behavior, reset the discount property manually:
- The `LineItem` resource now inherits from `StripeObject` as it has no methods of it's own.
- To be consistent with other resource methods, the `Subscription.delete_discount` returns an instance of deleted discount and doesn't mutate the instance of `Subscription`.
- Update the CA certificate bundle.
- Request sending logic unified across standard and custom methods (https://github.com/stripe/stripe-python/pull/832)
## 3.5.0 - 2022-06-30
* [#831](https://github.com/stripe/stripe-python/pull/831) API Updates
* Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card`
* Switch from using `instance_url` to computing method path in place for custom methods.
* Switch from using explicit class methods for test helpers instead of using meta-programming.
## 3.4.0 - 2022-06-17
* [#824](https://github.com/stripe/stripe-python/pull/824) API Updates
* Add support for `fund_cash_balance` test helper method on resource `Customer`
* [#823](https://github.com/stripe/stripe-python/pull/823) Trigger workflows on beta branches
## 3.3.0 - 2022-06-08
* [#818](https://github.com/stripe/stripe-python/pull/818) fix: Update cash balance methods to no longer require nested ID.
## 3.2.0 - 2022-05-23
* [#812](https://github.com/stripe/stripe-python/pull/812) API Updates
* Add support for new resource `Apps.Secret`
## 3.1.0 - 2022-05-19
* [#810](https://github.com/stripe/stripe-python/pull/810) API Updates
* Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction`
* Add support for `retrieve_payment_method` method on resource `Customer`
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
* [#719](https://github.com/stripe/stripe-python/pull/719) Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10
* [#767](https://github.com/stripe/stripe-python/pull/767) Bump vendored six to 1.16.0
* [#806](https://github.com/stripe/stripe-python/pull/806) Start testing on pypy-3.8
* [#811](https://github.com/stripe/stripe-python/pull/811) Add sanitize_id method
## 3.0.0 - 2022-05-09
* [#809](https://github.com/stripe/stripe-python/pull/809) Release of major version v3.0.0. The [migration guide](https://github.com/stripe/stripe-python/wiki/Migration-Guide-for-v3) contains more information.
(⚠️ = breaking changes):
* ⚠️ Replace the legacy `Order` API with the new `Order` API.
* New methods: `cancel`, `list_line_items`, `reopen`, and `submit`
* Removed methods: `pay` and `return_order`
* Removed resources: `OrderItem` and `OrderReturn`
* ⚠️ Rename `financial_connections.account.refresh` to `financial_connections.refresh_account`
* Add support for `amount_discount`, `amount_tax`, and `product` on `LineItem`
## 2.76.0 - 2022-05-05
* [#808](https://github.com/stripe/stripe-python/pull/808) API Updates
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
## 2.75.0 - 2022-05-03
* [#805](https://github.com/stripe/stripe-python/pull/805) API Updates
* Add support for new resource `CashBalance`
## 2.74.0 - 2022-04-21
* [#796](https://github.com/stripe/stripe-python/pull/796) API Updates
* Add support for `expire` test helper method on resource `Refund`
## 2.73.0 - 2022-04-18
* [#792](https://github.com/stripe/stripe-python/pull/792) [#794](https://github.com/stripe/stripe-python/pull/794) [#795](https://github.com/stripe/stripe-python/pull/795) API Updates
* Add support for new resources `FundingInstructions` and `Terminal.Configuration`
## 2.72.0 - 2022-04-13
* [#791](https://github.com/stripe/stripe-python/pull/791) API Updates
* Add support for `increment_authorization` method on resource `PaymentIntent`
## 2.71.0 - 2022-04-08
* [#788](https://github.com/stripe/stripe-python/pull/788) API Updates
* Add support for `apply_customer_balance` method on resource `PaymentIntent`
## 2.70.0 - 2022-03-30
* [#785](https://github.com/stripe/stripe-python/pull/785) API Updates
* Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader`
## 2.69.0 - 2022-03-29
* [#783](https://github.com/stripe/stripe-python/pull/783) API Updates
* Add support for Search API
* Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription`
* [#784](https://github.com/stripe/stripe-python/pull/784) Pin click dependency to 8.0.4 to avoid breakage in black
* [#773](https://github.com/stripe/stripe-python/pull/773) Add infrastructure for test-helper methods
* [#782](https://github.com/stripe/stripe-python/pull/782) Revert Orders to use qualified name for upload_api_base
## 2.68.0 - 2022-03-23
* [#781](https://github.com/stripe/stripe-python/pull/781) API Updates
* Add support for `cancel` method on resource `Refund`
* [#777](https://github.com/stripe/stripe-python/pull/777) Add support for SearchResult.
## 2.67.0 - 2022-03-01
* [#774](https://github.com/stripe/stripe-python/pull/774) API Updates
* Add support for new resource `TestHelpers.TestClock`
## 2.66.0 - 2022-02-16
* [#771](https://github.com/stripe/stripe-python/pull/771) API Updates
* Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent`
## 2.65.0 - 2022-01-20
* [#766](https://github.com/stripe/stripe-python/pull/766) API Updates
* Add support for new resource `PaymentLink`
* [#763](https://github.com/stripe/stripe-python/pull/763) Start testing Python 3.10
## 2.64.0 - 2021-12-21
* [#757](https://github.com/stripe/stripe-python/pull/757) Update class custom methods to save list object parameters.
* [#756](https://github.com/stripe/stripe-python/pull/756) Introduce custom listing methods on objects.
* [#754](https://github.com/stripe/stripe-python/pull/754) Clarify metadata deletion message.
## 2.63.0 - 2021-11-16
* [#748](https://github.com/stripe/stripe-python/pull/748) API Updates
* Add support for new resource `ShippingRate`
## 2.62.0 - 2021-11-11
* [#745](https://github.com/stripe/stripe-python/pull/745) API Updates
* Add support for `expire` method on resource `Checkout.Session`
## 2.61.0 - 2021-10-11
* [#738](https://github.com/stripe/stripe-python/pull/738) API Updates
* Add support for `list_payment_methods` method on resource `Customer`
* [#736](https://github.com/stripe/stripe-python/pull/736) Stop sending raw exception message as part of Stripe user agent.
## 2.60.0 - 2021-07-14
* [#728](https://github.com/stripe/stripe-python/pull/728) API Updates
* Add support for `list_computed_upfront_line_items` method on resource `Quote`
## 2.59.0 - 2021-07-09
* [#727](https://github.com/stripe/stripe-python/pull/727) [#725](https://github.com/stripe/stripe-python/pull/725) Add support for new `Quote` API.
## 2.58.0 - 2021-06-04
* [#722](https://github.com/stripe/stripe-python/pull/722) API Updates
* Add support for new `TaxCode` API.
## 2.57.0 - 2021-05-19
* [#720](https://github.com/stripe/stripe-python/pull/720) Add support for Identity VerificationSession and VerificationReport APIs
## 2.56.0 - 2021-02-22
* [#713](https://github.com/stripe/stripe-python/pull/713) Add support for the Billing Portal Configuration API
## 2.55.2 - 2021-02-05
* [#704](https://github.com/stripe/stripe-python/pull/704) Fix CA bundle path issue
## 2.55.1 - 2020-12-01
* [#698](https://github.com/stripe/stripe-python/pull/698) Fix issue where StripeObjects in lists would not be converted to dicts
* [#699](https://github.com/stripe/stripe-python/pull/699) Start testing Python 3.9
* [#691](https://github.com/stripe/stripe-python/pull/691) Include the examples in the built sources
## 2.55.0 - 2020-10-14
* [#684](https://github.com/stripe/stripe-python/pull/684) Add support for the Payout Reverse API
## 2.54.0 - 2020-09-29
* [#681](https://github.com/stripe/stripe-python/pull/681) Add support for the `SetupAttempt` resource and List API
* 2.52.0 and 2.53.0 were empty releases that contained no additional changes.
## 2.51.0 - 2020-09-02
* [#676](https://github.com/stripe/stripe-python/pull/676) Add support for the Issuing Dispute Submit API
## 2.50.0 - 2020-08-05
* [#669](https://github.com/stripe/stripe-python/pull/669) Add support for the `PromotionCode` resource and APIs
## 2.49.0 - 2020-07-17
* [#665](https://github.com/stripe/stripe-python/pull/665) Support stripe.File.create(stripe_version='...')
## 2.48.0 - 2020-05-11
* [#655](https://github.com/stripe/stripe-python/pull/655) Add support for the `LineItem` resource and APIs
## 2.47.0 - 2020-04-29
* [#652](https://github.com/stripe/stripe-python/pull/652) Add support for the `Price` resource and APIs
## 2.46.0 - 2020-04-22
* [#651](https://github.com/stripe/stripe-python/pull/651) Add support for `billing_portal` namespace and `Session` resource and APIs
## 2.45.0 - 2020-04-06
* [#648](https://github.com/stripe/stripe-python/pull/648) Add support for Express links in `authorize_url` for `OAuth`
## 2.44.0 - 2020-03-23
* [#646](https://github.com/stripe/stripe-python/pull/646) Allow overriding API key in OAuth methods
## 2.43.0 - 2020-02-26
* [#644](https://github.com/stripe/stripe-python/pull/644) Add support for listing Checkout `Session`
## 2.42.0 - 2020-01-14
* [#640](https://github.com/stripe/stripe-python/pull/640) Add support for `CreditNoteLineItem`
* [#639](https://github.com/stripe/stripe-python/pull/639) Pin black version
* [#637](https://github.com/stripe/stripe-python/pull/637) Start testing Python 3.8
## 2.41.1 - 2019-12-30
* [#636](https://github.com/stripe/stripe-python/pull/636) Fix uploading files with Unicode names (Python 2.7)
* [#635](https://github.com/stripe/stripe-python/pull/635) Update Python API docs inline link
* [#631](https://github.com/stripe/stripe-python/pull/631) Update `proxy.py`
## 2.41.0 - 2019-11-26
* [#630](https://github.com/stripe/stripe-python/pull/630) Add support for `CreditNote` preview
## 2.40.0 - 2019-11-08
* [#627](https://github.com/stripe/stripe-python/pull/627) Add list_usage_record_summaries and list_source_transactions
## 2.39.0 - 2019-11-06
* [#625](https://github.com/stripe/stripe-python/pull/625) Add support for `Mandate`
## 2.38.0 - 2019-10-29
* [#623](https://github.com/stripe/stripe-python/pull/623) Add support for reverse pagination
* [#624](https://github.com/stripe/stripe-python/pull/624) Contributor Convenant
## 2.37.2 - 2019-10-04
* [#621](https://github.com/stripe/stripe-python/pull/621) Implement support for stripe-should-retry and retry-after headers
## 2.37.1 - 2019-09-26
* [#620](https://github.com/stripe/stripe-python/pull/620) Check that `error` is a dict before trying to use it to create a `StripeError`
## 2.37.0 - 2019-09-26
* [#619](https://github.com/stripe/stripe-python/pull/619) Add `ErrorObject` to `StripeError` exceptions
* [#616](https://github.com/stripe/stripe-python/pull/616) Pass `CFLAGS` and `LDFLAGS` when running tests
## 2.36.2 - 2019-09-12
* [#614](https://github.com/stripe/stripe-python/pull/614) Use `OrderedDict` to maintain key order in API requests and responses
## 2.36.1 - 2019-09-11
* [#612](https://github.com/stripe/stripe-python/pull/612) Use `ListObject` properties as default values in request methods
## 2.36.0 - 2019-09-10
* [#610](https://github.com/stripe/stripe-python/pull/610) Add support for header parameters in `ListObject` request methods
## 2.35.1 - 2019-08-20
* [#605](https://github.com/stripe/stripe-python/pull/605) Fix automatic retries of failed requests
* [#606](https://github.com/stripe/stripe-python/pull/606) Clarify what `max_network_retries` does
## 2.35.0 - 2019-08-12
* [#607](https://github.com/stripe/stripe-python/pull/607) Add `SubscriptionItem.create_usage_record` method
## 2.34.0 - 2019-08-09
* [#604](https://github.com/stripe/stripe-python/pull/604) Remove subscription schedule revisions
- This is technically a breaking change. We've chosen to release it as a minor vesion bump because the associated API is unused.
## 2.33.2 - 2019-08-06
* [#601](https://github.com/stripe/stripe-python/pull/601) Add support for passing full objects instead of IDs to custom methods
* [#603](https://github.com/stripe/stripe-python/pull/603) Bump vendored six to latest version
## 2.33.1 - 2019-08-06
* [#599](https://github.com/stripe/stripe-python/pull/599) Fix `del` statement to not raise `KeyError`
## 2.33.0 - 2019-07-30
* [#595](https://github.com/stripe/stripe-python/pull/595) Listing `BalanceTransaction` objects now uses `/v1/balance_transactions` instead of `/v1/balance/history`
## 2.32.1 - 2019-07-08
* [#592](https://github.com/stripe/stripe-python/pull/592) Fix argument name conflict
## 2.32.0 - 2019-06-27
* [#590](https://github.com/stripe/stripe-python/pull/590) Add support for the `SetupIntent` resource and APIs
## 2.31.0 - 2019-06-24
* [#587](https://github.com/stripe/stripe-python/pull/587) Enable request latency telemetry by default
## 2.30.1 - 2019-06-20
* [#589](https://github.com/stripe/stripe-python/pull/589) Fix support for `CustomerBalanceTransaction`
## 2.30.0 - 2019-06-17
* [#564](https://github.com/stripe/stripe-python/pull/564) Add support for `CustomerBalanceTransaction` resource and APIs
## 2.29.4 - 2019-06-03
* [#583](https://github.com/stripe/stripe-python/pull/583) Remove Poetry and reinstate `setup.py`
## 2.29.3 - 2019-05-31
Version 2.29.2 was non-functional due to a bugged `version.py` file. This release is identical to 2.29.2 save for the version number.
## 2.29.2 - 2019-05-31
* [#561](https://github.com/stripe/stripe-python/pull/561) Replace pipenv with poetry
## 2.29.1 - 2019-05-31
* [#578](https://github.com/stripe/stripe-python/pull/578) Verify signatures before deserializing events
## 2.29.0 - 2019-05-23
* [#575](https://github.com/stripe/stripe-python/pull/575) Add support for `radar.early_fraud_warning` resource
## 2.28.2 - 2019-05-23
* [#574](https://github.com/stripe/stripe-python/pull/574) Fix a few more code quality issues
## 2.28.1 - 2019-05-20
* [#572](https://github.com/stripe/stripe-python/pull/572) Fix a few code quality issues
## 2.28.0 - 2019-05-14
* [#566](https://github.com/stripe/stripe-python/pull/566) Add support for the `Capability` resource and APIs
## 2.27.0 - 2019-04-24
* [#554](https://github.com/stripe/stripe-python/pull/554) Add support for the `TaxRate` resource and APIs
## 2.26.0 - 2019-04-22
* [#555](https://github.com/stripe/stripe-python/pull/555) Add support for the `TaxId` resource and APIs
## 2.25.0 - 2019-04-18
* [#551](https://github.com/stripe/stripe-python/pull/551) Add support for the `CreditNote` resource and APIs
## 2.24.1 - 2019-04-08
* [#550](https://github.com/stripe/stripe-python/pull/550) Fix encoding of nested parameters in multipart requests
## 2.24.0 - 2019-04-03
* [#543](https://github.com/stripe/stripe-python/pull/543) Add `delete` class method on deletable API resources
* [#547](https://github.com/stripe/stripe-python/pull/547) Add class methods for all custom API requests (e.g. `Charge.capture`)
## 2.23.0 - 2019-03-18
* [#537](https://github.com/stripe/stripe-python/pull/537) Add support for the `PaymentMethod` resource and APIs
* [#540](https://github.com/stripe/stripe-python/pull/540) Add support for retrieving a Checkout `Session`
* [#542](https://github.com/stripe/stripe-python/pull/542) Add support for deleting a Terminal `Location` and `Reader`
## 2.22.0 - 2019-03-14
* [#541](https://github.com/stripe/stripe-python/pull/541) Add `stripe.util.convert_to_dict` method for converting `StripeObject` instances to regular `dict`s
## 2.21.0 - 2019-02-12
* [#532](https://github.com/stripe/stripe-python/pull/532) Add support for subscription schedules
## 2.20.3 - 2019-01-30
* [#530](https://github.com/stripe/stripe-python/pull/530) Fix client telemetry implementation
## 2.20.2 - 2019-01-30
* [#534](https://github.com/stripe/stripe-python/pull/534) Fix session initialization for multi-threaded environments
## 2.20.1 - 2019-01-30
* [#531](https://github.com/stripe/stripe-python/pull/531) Make `RequestsClient` thread-safe
## 2.20.0 - 2019-01-29
* [#526](https://github.com/stripe/stripe-python/pull/526) Reuse the default HTTP client by default
## 2.19.0 - 2019-01-23
* [#524](https://github.com/stripe/stripe-python/pull/524) Rename `CheckoutSession` to `Session` and move it under the `checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach.
## 2.18.1 - 2019-01-21
* [#525](https://github.com/stripe/stripe-python/pull/525) Properly serialize `individual` on `Account` objects
## 2.18.0 - 2019-01-15
* [#518](https://github.com/stripe/stripe-python/pull/518) Add configurable telemetry to gather information on client-side request latency
## 2.17.0 - 2018-12-21
* [#510](https://github.com/stripe/stripe-python/pull/510) Add support for Checkout sessions
## 2.16.0 - 2018-12-10
* [#507](https://github.com/stripe/stripe-python/pull/507) Add support for account links
## 2.15.0 - 2018-11-30
* [#503](https://github.com/stripe/stripe-python/pull/503) Add support for providing custom CA certificate bundle
## 2.14.0 - 2018-11-28
* [#500](https://github.com/stripe/stripe-python/pull/500) Add support for `Review` for Radar
## 2.13.0 - 2018-11-27
* [#489](https://github.com/stripe/stripe-python/pull/489) Add support for `ValueList` and `ValueListItem` for Radar
## 2.12.1 - 2018-11-22
* [#495](https://github.com/stripe/stripe-python/pull/495) Make `StripeResponse` a new-style class
## 2.12.0 - 2018-11-08
* [#483](https://github.com/stripe/stripe-python/pull/483) Add new API endpoints for the `Invoice` resource.
## 2.11.1 - 2018-11-08
* [#491](https://github.com/stripe/stripe-python/pull/491) Bump minimum requests version to 2.20.0 (for [CVE-2018-18074](https://nvd.nist.gov/vuln/detail/CVE-2018-18074))
## 2.11.0 - 2018-10-30
* [#482](https://github.com/stripe/stripe-python/pull/482) Add support for the `Person` resource
* [#484](https://github.com/stripe/stripe-python/pull/484) Add support for the `WebhookEndpoint` resource
## 2.10.1 - 2018-10-02
* [#481](https://github.com/stripe/stripe-python/pull/481) Correct behavior of `stripe.max_network_retries` if it's reset after initial use
## 2.10.0 - 2018-09-24
* [#478](https://github.com/stripe/stripe-python/pull/478) Add support for Stripe Terminal
## 2.9.0 - 2018-09-24
* [#477](https://github.com/stripe/stripe-python/pull/477) Rename `FileUpload` to `File`
## 2.8.1 - 2018-09-13
* [#474](https://github.com/stripe/stripe-python/pull/474) Don't URL-encode square brackets
* [#473](https://github.com/stripe/stripe-python/pull/473) Integer-index encode all arrays
## 2.8.0 - 2018-09-10
* [#470](https://github.com/stripe/stripe-python/pull/470) Add support for automatic network retries
## 2.7.0 - 2018-09-05
* [#469](https://github.com/stripe/stripe-python/pull/469) Add support for reporting resources
## 2.6.0 - 2018-08-23
* [#467](https://github.com/stripe/stripe-python/pull/467) Add support for usage record summaries
## 2.5.0 - 2018-08-16
* [#463](https://github.com/stripe/stripe-python/pull/463) Remove unsupported Bitcoin endpoints (this is technically a breaking change, but we're releasing as a minor version because none of these APIs were usable anyway)
## 2.4.0 - 2018-08-03
* [#460](https://github.com/stripe/stripe-python/pull/460) Add cancel support for topups
* [#461](https://github.com/stripe/stripe-python/pull/461) Add support for file links
## 2.3.0 - 2018-07-27
* [#456](https://github.com/stripe/stripe-python/pull/456) Add support for Sigma scheduled query run objects
## 2.2.0 - 2018-07-26
* [#455](https://github.com/stripe/stripe-python/pull/455) Add support for Stripe Issuing
## 2.1.0 - 2018-07-25
* [#452](https://github.com/stripe/stripe-python/pull/452) Add `InvoiceLineItem` class
## 2.0.3 - 2018-07-19
* [#450](https://github.com/stripe/stripe-python/pull/450) Internal improvements to `ApiResource.class_url`
## 2.0.2 - 2018-07-18
* [#448](https://github.com/stripe/stripe-python/pull/448) Avoid duplicate dependency on `requests` with Python 2.7
## 2.0.1 - 2018-07-10
* [#445](https://github.com/stripe/stripe-python/pull/445) Fix `setup.py`
## 2.0.0 - 2018-07-10
Major version release. List of backwards incompatible changes to watch out for:
* The minimum Python versions are now 2.7 / 3.4. If you're using Python 2.6 or 3.3, consider upgrading to a more recent version.
* Stripe exception classes should now be accessed via `stripe.error` rather than just `stripe`
* Some older deprecated methods have been removed
* Trying to detach an unattached source will now raise a `stripe.error.InvalidRequestError` exception instead of a `NotImplementedError` exception
For more information, check out the [migration guide for v2](https://github.com/stripe/stripe-python/wiki/Migration-guide-for-v2)
Pull requests included in this release:
* [#385](https://github.com/stripe/stripe-python/pull/385) Drop support for Python 2.6 and 3.3
* [#384](https://github.com/stripe/stripe-python/pull/384) Use py.test for tests
* [#399](https://github.com/stripe/stripe-python/pull/399) Remove deprecated code
* [#402](https://github.com/stripe/stripe-python/pull/402) Remove `util.json` and use `json` module directly everywhere
* [#403](https://github.com/stripe/stripe-python/pull/403) Update setup.py and test flow
* [#410](https://github.com/stripe/stripe-python/pull/410) Use pipenv
* [#415](https://github.com/stripe/stripe-python/pull/415) Change exception when detaching unattached sources from `NotImplementedError` to `stripe.error.InvalidRequestError`
## 1.84.2 - 2018-07-06
* [#441](https://github.com/stripe/stripe-python/pull/441) Better (hopefully) fix for serialization of empty `ListObject`s
## 1.84.1 - 2018-07-04
* [#439](https://github.com/stripe/stripe-python/pull/439) Fix serialization of empty `ListObject`s
## 1.84.0 - 2018-06-29
* [#436](https://github.com/stripe/stripe-python/pull/436) Add support for payment intents
## 1.83.0 - 2018-06-28
* [#437](https://github.com/stripe/stripe-python/pull/437) Add support for `partner_id` in `stripe.set_app_info()`
## 1.82.2 - 2018-06-19
* [#365](https://github.com/stripe/stripe-python/pull/365) Add `__repr__` methods to `StripeError` exception classes
## 1.82.1 - 2018-05-14
* [#430](https://github.com/stripe/stripe-python/pull/430) Handle the case where request ID is `None` when formatting errors
## 1.82.0 - 2018-05-13
* [#422](https://github.com/stripe/stripe-python/pull/422) Add `user_mesage` to `StripeError` for a way in Python 3 to avoid the "Request req_...:" string normally appended to error messages
## 1.81.0 - 2018-05-10
* [#425](https://github.com/stripe/stripe-python/pull/425) Add support for issuer fraud records
## 1.80.0 - 2018-04-24
* [#421](https://github.com/stripe/stripe-python/pull/421) Add support for flexible billing and usage records
## 1.79.1 - 2018-02-27
* [#401](https://github.com/stripe/stripe-python/pull/401) Drop conditional dependencies that incorrectly led to an added `simplejson` dependency in Python 3+ after switching to universal wheel
## 1.79.0 - 2018-02-23
* [#397](https://github.com/stripe/stripe-python/pull/397) Build universal wheels by default
* [#398](https://github.com/stripe/stripe-python/pull/398) Add support for `code` attribute on all Stripe exceptions
## 1.78.0 - 2018-02-21
* [#396](https://github.com/stripe/stripe-python/pull/396) Add support for topups
## 1.77.2 - 2018-02-08
* [#394](https://github.com/stripe/stripe-python/pull/394) Make `last_response` available after calling `save()`
## 1.77.1 - 2018-01-12
* [#389](https://github.com/stripe/stripe-python/pull/389) Register unsaved attributes on assignment regardless of new value
## 1.77.0 - 2017-12-21
* [#371](https://github.com/stripe/stripe-python/pull/371) Add accessor `last_response` on `StripeObject` for accessing request ID and other metadata
## 1.76.0 - 2017-12-21
* [#382](https://github.com/stripe/stripe-python/pull/382) Add new `IdempotencyError` type
## 1.75.3 - 2017-12-05
* [#378](https://github.com/stripe/stripe-python/pull/378) Log encoded version of parameters instead of raw POST data
## 1.75.2 - 2017-12-05
* (Accidental no-op release. See 1.75.3.)
## 1.75.1 - 2017-11-29
* [#372](https://github.com/stripe/stripe-python/pull/372) Add only changed values to `_unsaved_values` in `StripeObject`
* [#375](https://github.com/stripe/stripe-python/pull/375) Use a custom JSON encoder to handle `datetime` objects when serializing `StripeObject`s
## 1.75.0 - 2017-11-08
* [#369](https://github.com/stripe/stripe-python/pull/369) Make custom actions on various resources (e.g. `Account.reject`) more consistent with other APIs
## 1.74.0 - 2017-11-07
* [#368](https://github.com/stripe/stripe-python/pull/368) Remove API that allowed the creation of new disputes (this was an erroneous addition; it never worked because the API would not allow it)
## 1.73.0 - 2017-11-02
* [#364](https://github.com/stripe/stripe-python/pull/364) Switch to vendored version of the `six` package for compatibility between Python 2 and 3
## 1.72.0 - 2017-10-31
* [#361](https://github.com/stripe/stripe-python/pull/361) Support for exchange rates APIs
## 1.71.2 - 2017-10-31
* [#362](https://github.com/stripe/stripe-python/pull/362) Fix balance transaction and invoice item conversion into `StripeObject`s
## 1.71.1 - 2017-10-27
* [#360](https://github.com/stripe/stripe-python/pull/360) Fix `BytesWarning` being issued on logging in Python 3
## 1.71.0 - 2017-10-26
* [#359](https://github.com/stripe/stripe-python/pull/359) Support for listing source transactions
## 1.70.0 - 2017-10-23
* [#356](https://github.com/stripe/stripe-python/pull/356) Support uploading files with `StringIO` in addition to a file on disk
## 1.69.0 - 2017-10-20
* [#351](https://github.com/stripe/stripe-python/pull/351) Break resource.py module into separate ones for each type of resource
* Classes are still into resource.py for backwards compatibility
* [#353](https://github.com/stripe/stripe-python/pull/353) Fix unpickling `StripeObject` in Python 3
## 1.68.0 - 2017-10-19
* [#350](https://github.com/stripe/stripe-python/pull/350) Add static methods to manipulate resources from parent
* `Account` gains methods for external accounts and login links (e.g. `.create_account`, `create_login_link`)
* `ApplicationFee` gains methods for refunds
* `Customer` gains methods for sources
* `Transfer` gains methods for reversals
## 1.67.0 - 2017-10-11
* [#349](https://github.com/stripe/stripe-python/pull/349) Rename source `delete` to `detach` (and deprecate the former)
## 1.66.0 - 2017-09-29
* Support length reads on list objects
## 1.65.1 - 2017-09-21
* Handle `bytearray` and `bytes` (in addition to string) in `Webhook.construct_event`
## 1.65.0 - 2017-09-07
* Add support for passing a `stripe_version` argument to all API requests
## 1.64.0 - 2017-09-01
* Error when an invalid type (i.e. non-string) passed as an API method argument
## 1.63.1 - 2017-09-01
* Fix serialization of `items` on Relay order creation and order return
## 1.63.0 - 2017-08-29
* Add support for `InvalidClientError` OAuth error
## 1.62.1 - 2017-08-07
* Change serialization of subscription items on update to encoded as an integer-indexed map
## 1.62.0 - 2017-06-27
* `pay` on invoice can now take parameter
## 1.61.0 - 2017-06-24
* Expose `code` on `InvalidRequestError`
## 1.60.0 - 2017-06-19
* Add support for ephemeral keys
## 1.59.0 - 2017-06-07
* Refactor OAuth implementation to have dedicated classes for errors
## 1.58.0 - 2017-06-02
* Re-use connections with Pycurl
## 1.57.1 - 2017-05-31
* Fix the pycurl client
## 1.57.0 - 2017-05-26
* Add `api_key` parameter to webhook's `construct_event`
## 1.56.0 - 2017-05-25
* Add support for account login links
## 1.55.2 - 2017-05-11
* Remove Requests constraint from 1.55.1 now that they've patched (as of 2.14.2)
## 1.55.1 - 2017-05-10
* Constrain Requests to < 2.13.0 if on setuptools < 18.0.0
## 1.55.0 - 2017-04-28
* Support for checking webhook signatures
## 1.54.0 - 2017-04-28
* Add `stripe.set_app_info` for use by plugin creators
## 1.53.0 - 2017-04-06
* Add support for payouts and recipient transfers
## 1.52.0 - 2017-04-06
* No-op release: peg test suite to a specific API version
## 1.51.0 - 2017-03-20
* Support OAuth operations (getting a token and deauthorizing)
## 1.50.0 - 2017-03-17
* Support for detaching sources from customers
## 1.49.0 - 2017-03-13
* Accept `session` argument for `RequestsClient`
## 1.48.1 - 2017-02-21
* Fix encoding of parameters when fetching upcoming invoices
## 1.48.0 - 2017-02-21
* Add `Account.modify_external_account` to modify an account in one API call
* Add `Customer.modify_source` to modify a source in one API call
## 1.47.0 - 2017-01-18
* Allow sources to be updated
## 1.46.0 - 2017-01-06
* Use internal session for Requests for connection pooling
## 1.45.0 - 2017-01-06
* request logging goes to stderr now
* Logs properly handle unicode
* Format is now the same between logging logs, and console logs
## 1.44.0 - 2016-12-16
* Add request logging and some mechanisms to enable it when debugging
## 1.43.0 - 2016-11-30
* Add support for verifying sources
## 1.42.0 - 2016-11-21
* Add retrieve method for 3-D Secure resources
## 1.41.1 - 2016-10-26
* Implement __copy__ and __deepcopy__ on StripeObject to fix these operations
## 1.41.0 - 2016-10-12
* Add `Source` model for generic payment sources
## 1.40.1 - 2016-10-10
* Return subscription model instance on subscription create/modify
## 1.40.0 - 2016-10-07
* Add configurable timeout for Requests HTTP library
## 1.39.0 - 2016-10-06
* Add support for subscription items
* Add proxy support for pycurl, Requests, urlfetch, and urllib2 libraries
## 1.38.0 - 2016-09-15
* Add support for Apple Pay domains
## 1.37.0 - 2016-07-12
* Add `ThreeDSecure` model for 3-D secure payments
## 1.36.0 - 2016-06-29
* Add `update` class method to resources that can be updated
## 1.35.0 - 2016-05-24
* Add support for returning Relay orders
## 1.34.0 - 2016-05-20
* Add support for Alipay accounts
## 1.33.0 - 2016-05-04
* Add support for the new `/v1/subscriptions` endpoint
* `stripe.Subscription.retrieve`
* `stripe.Subscription.update`
* `stripe.Subscription.create`
* `stripe.Subscription.list`
## 1.32.2 - 2016-04-12
* Fix bug where file uploads could not be properly listed
## 1.32.1 - 2016-04-11
* Fix bug where request parameters were not passed between pages with `auto_paging_iter`
## 1.32.0 - 2016-03-31
* Update CA cert bundle for compatibility with OpenSSL versions below 1.0.1
## 1.31.1 - 2016-03-24
* Fix uploading of binary files in Python 3
## 1.31.0 - 2016-03-15
* Add `reject` on `Account` to support the new API feature
## 1.30.0 - 2016-02-27
* Add `CountrySpec` model for looking up country payment information
## 1.29.1 - 2016-02-01
* Update bundled CA certs
## 1.29.0 - 2016-01-26
* Add support for deleting Relay products and SKUs
## 1.28.0 - 2016-01-04
* Add an automatic paginating iterator to lists available via `auto_paging_iter`
* List objects are now iterable
* Error messages set to `None` are now handled properly
* The `all` method on list objects has been deprecated in favor of `list`
* Calls to `instance_url` are now side effect free
## 1.27.1 - 2015-10-02
* Official Python 3.4 & 3.5 compatibility
* Add configurable HTTP client
* Add ability to delete attributes
## 1.27.0 - 2015-09-14
* Products, SKUs, Orders resources
## 1.26.0 - 2015-09-11
* Add support for new 429 rate limit response
## 1.25.0 - 2015-08-17
* Added refund listing, creation and retrieval
## 1.24.1 - 2015-08-05
* Fix error handling for Python 2.6
## 1.24.0 - 2015-08-03
* Managed accounts can now be deleted
* Added dispute listing and retrieval
## 1.23.0 - 2015-07-06
* Include response headers in exceptions
## 1.22.3 - 2015-06-04
* Fix saving `additional_owners` on managed accounts
## 1.22.2 - 2015-04-08
* Fix saving manage accounts
## 1.22.1 - 2015-03-30
* Pass `stripe_account` to Balance.retrieve
## 1.22.0 - 2015-03-22
* Added methods for updating and saving arrays of objects
## 1.21.0 - 2015-02-19
* Added Bitcoin Receiver update and delete methods
## 1.20.2 - 2015-01-21
* Remove support for top-level bitcoin transactions
## 1.20.1 - 2015-01-07
* Adding bitcoin receiver and transaction objects
## 1.20.0 - 2014-12-23
* Adding support for file uploads resource
## 1.19.1 - 2014-10-23
* Remove redundant manual SSL blacklist preflight check
## 1.19.0 - 2014-07-26
* Application Fee refunds now a list instead of array
## 1.18.0 - 2014-06-17
* Add metadata for disputes and refunds
## 1.17.0 - 2014-06-10
* Remove official support for Python 2.5
## 1.16.0 - 2014-05-28
* Support for canceling transfers
## 1.15.1 - 2014-05-21
* Support cards for recipients.
## 1.14.1 - 2014-05-19
* Disable loading the ssl module on the Google App Engine dev server.
## 1.14.0 - 2014-04-09
* Use DER encoded certificate for checksumming
* Don't rely on SNI support in integration tests
## 1.13.0 - 2014-04-09
* Update bundled ca-certificates
* Add certificate blacklist for CVE-2014-0160 mitigation
## 1.12.2 - 2014-03-13
* Fix syntax errors in setup.py metadata
## 1.12.1 - 2014-03-13
* Added license and other metadata in setup.py
* Fix `__repr__` in Python 3
* Support pickling of responses
## 1.12.0 - 2014-01-29
* Added support for multiple subscriptions per customer
## 1.11.0 - 2013-12-05
* Added extensive unit tests
* Extended functional test coverage
* Refactored code into modules and out of stripe/__init__.py
* Abstracted http library selection and use from the `APIRequestor` into `stripe.http_client`
* Refactored `StripeObject` to inherit from `dict` and avoid direct access of `__dict__`.
* PEP8ified the codebase and enforced with a test.
* Proper encoding of timezone aware datetimes
### Backwards incompatible changes
* The `to_dict` and `values` methods on resources no longer recursively convert objects to plain `dict`s. All resources now inherit from `dict` but are functionally different in that you cannot set a value to an empty string and cannot delete items.
* The `previous_metadata` attribute on resources is now protected.
* Timezone aware `datetime` objects passed to the API will now be encoded in a way that does not depend on the local system time. If you are passing timezone-aware datetimes to our API and your server time is not already in UTC, this will change the value passed to our API.
## 1.10.8 - 2013-12-02
* Add stripe.ApplicationFee resource
## 1.9.8 - 2013-10-17
* Removed incorrect test.
## 1.9.7 - 2013-10-10
* Add support for metadata.
## 1.9.6 - 2013-10-08
* Fix issue with support for closing disputes.
## 1.9.5 - 2013-09-18
* Add support for closing disputes.
## 1.9.4 - 2013-08-13
* Add stripe.Balance and stripe.BalanceTransaction resources
## 1.9.3 - 2013-08-12
* Add support for unsetting attributes by setting to None.
Setting properties to a blank string is now an error.
## 1.9.2 - 2013-07-12
* Add support for multiple cards API
## 1.9.1 - 2013-05-03
* Remove 'id' from the list of permanent attributes
## 1.9.0 - 2013-04-25
* Support for Python 3 (github issue #32)
## 1.8.0 - 2013-04-11
* Allow transfers to be creatable
* Add new stripe.Recipient resource
## 1.7.10 - 2013-02-21
* Add 'id' to the list of permanent attributes
## 1.7.9 - 2013-02-01
* Add support for passing options when retrieving Stripe objects; e.g., stripe.Charge.retrieve("foo", params={"expand":["customer"]})
## 1.7.8 - 2013-01-15
* Add support for setting a Stripe API version override
## 1.7.7 - 2012-12-18
* Update requests version check to work with requests 1.x.x (github issue #24)
## 1.7.6 - 2012-11-08
* Add support for updating charge disputes
## 1.7.5 - 2012-10-30
* Add support for creating invoices
* Add support for new invoice lines return format
* Add support for new List objects
## 1.7.4 - 2012-08-31
* Add update and pay methods for Invoice resource
## 1.7.3 - 2012-08-15
* Add new stripe.Account resource
* Remove uncaptured_charge tests (this has been deprecated from the API).
## 1.7.2 - 2012-05-31
* Fix a bug that would cause nested objects to be mis-rendered in __str__ and __repr__ methods (github issues #17, #18)
## 1.7.1 - 2012-05-21
* Prefer App Engine's urlfetch over requests, as that's the only thing that will work in App Engine's environment. Previously, if requests was available in the App Engine environment, we would attempt to use it.
## 1.7.0 - 2012-05-17
* Add new delete_discount method to stripe.Customer
* Add new stripe.Transfer resource
* Switch from using HTTP Basic auth to Bearer auth. (Note: Stripe will support Basic auth for the indefinite future, but recommends Bearer auth when possible going forward)
* Numerous test suite improvements
## 1.6.1 - 2011-09-14
* Parameters with value None are no longer included in API requests
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/LICENSE 0000644 0001751 0000171 00000002104 14335240430 013421 0 ustar 00runner docker The MIT License
Copyright (c) 2010-2018 Stripe (http://stripe.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/LONG_DESCRIPTION.rst 0000644 0001751 0000171 00000001646 14335240430 015562 0 ustar 00runner docker Official Stripe Bindings for Python
===================================
A Python library for Stripe's API.
Setup
-----
You can install this package by using the pip tool and installing:
$ pip install stripe
Or:
$ easy_install stripe
Setting up a Stripe Account
---------------------------
Sign up for Stripe at https://dashboard.stripe.com/register.
Using the Stripe API
--------------------
Documentation for the python bindings can be found alongside Stripe's other bindings here:
- https://stripe.com/docs
- https://stripe.com/docs/api/?lang=python
In the standard documentation (the first link), most of the reference pages will have examples in Stripe's official bindings (including Python). Just click on the Python tab to get the relevant documentation.
In the full API reference for python (the second link), the right half of the page will provide example requests and responses for various API calls.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/MANIFEST.in 0000644 0001751 0000171 00000000256 14335240430 014160 0 ustar 00runner docker include .coveragerc .flake8 CHANGELOG.md LICENSE LONG_DESCRIPTION.rst README.md VERSION pytest.ini tox.ini
recursive-include tests *.py
recursive-include examples *.txt *.py
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4384158
stripe-5.0.0/PKG-INFO 0000644 0001751 0000171 00000004640 14335240452 013524 0 ustar 00runner docker Metadata-Version: 2.1
Name: stripe
Version: 5.0.0
Summary: Python bindings for the Stripe API
Home-page: https://github.com/stripe/stripe-python
Author: Stripe
Author-email: support@stripe.com
License: MIT
Project-URL: Bug Tracker, https://github.com/stripe/stripe-python/issues
Project-URL: Changes, https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md
Project-URL: Documentation, https://stripe.com/docs/api/?lang=python
Project-URL: Source Code, https://github.com/stripe/stripe-python
Keywords: stripe api payments
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Description-Content-Type: text/x-rst
License-File: LICENSE
Official Stripe Bindings for Python
===================================
A Python library for Stripe's API.
Setup
-----
You can install this package by using the pip tool and installing:
$ pip install stripe
Or:
$ easy_install stripe
Setting up a Stripe Account
---------------------------
Sign up for Stripe at https://dashboard.stripe.com/register.
Using the Stripe API
--------------------
Documentation for the python bindings can be found alongside Stripe's other bindings here:
- https://stripe.com/docs
- https://stripe.com/docs/api/?lang=python
In the standard documentation (the first link), most of the reference pages will have examples in Stripe's official bindings (including Python). Just click on the Python tab to get the relevant documentation.
In the full API reference for python (the second link), the right half of the page will provide example requests and responses for various API calls.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/README.md 0000644 0001751 0000171 00000020315 14335240430 013677 0 ustar 00runner docker # Stripe Python Library
[](https://pypi.python.org/pypi/stripe)
[](https://github.com/stripe/stripe-python/actions?query=branch%3Amaster)
[](https://coveralls.io/github/stripe/stripe-python?branch=master)
The Stripe Python library provides convenient access to the Stripe API from
applications written in the Python language. It includes a pre-defined set of
classes for API resources that initialize themselves dynamically from API
responses which makes it compatible with a wide range of versions of the Stripe
API.
## Documentation
See the [Python API docs](https://stripe.com/docs/api?lang=python).
See [video demonstrations][youtube-playlist] covering how to use the library.
## Installation
You don't need this source code unless you want to modify the package. If you just
want to use the package, just run:
```sh
pip install --upgrade stripe
```
Install from source with:
```sh
python setup.py install
```
### Requirements
- Python 2.7+ or Python 3.6+ (PyPy supported)
## Usage
The library needs to be configured with your account's secret key which is
available in your [Stripe Dashboard][api-keys]. Set `stripe.api_key` to its
value:
```python
import stripe
stripe.api_key = "sk_test_..."
# list customers
customers = stripe.Customer.list()
# print the first customer's email
print(customers.data[0].email)
# retrieve specific Customer
customer = stripe.Customer.retrieve("cus_123456789")
# print that customer's email
print(customer.email)
```
### Handling exceptions
Unsuccessful requests raise exceptions. The class of the exception will reflect
the sort of error that occurred. Please see the [Api
Reference](https://stripe.com/docs/api/errors/handling) for a description of
the error classes you should handle, and for information on how to inspect
these errors.
### Per-request Configuration
Configure individual requests with keyword arguments. For example, you can make
requests with a specific [Stripe Version](https://stripe.com/docs/api#versioning)
or as a [connected account](https://stripe.com/docs/connect/authentication#authentication-via-the-stripe-account-header):
```python
import stripe
# list customers
stripe.Customer.list(
api_key="sk_test_...",
stripe_account="acct_...",
stripe_version="2019-02-19"
)
# retrieve single customer
stripe.Customer.retrieve(
"cus_123456789",
api_key="sk_test_...",
stripe_account="acct_...",
stripe_version="2019-02-19"
)
```
### Configuring a Client
The library can be configured to use `urlfetch`, `requests`, `pycurl`, or
`urllib2` with `stripe.default_http_client`:
```python
client = stripe.http_client.UrlFetchClient()
client = stripe.http_client.RequestsClient()
client = stripe.http_client.PycurlClient()
client = stripe.http_client.Urllib2Client()
stripe.default_http_client = client
```
Without a configured client, by default the library will attempt to load
libraries in the order above (i.e. `urlfetch` is preferred with `urllib2` used
as a last resort). We usually recommend that people use `requests`.
### Configuring a Proxy
A proxy can be configured with `stripe.proxy`:
```python
stripe.proxy = "https://user:pass@example.com:1234"
```
### Configuring Automatic Retries
You can enable automatic retries on requests that fail due to a transient
problem by configuring the maximum number of retries:
```python
stripe.max_network_retries = 2
```
Various errors can trigger a retry, like a connection error or a timeout, and
also certain API responses like HTTP status `409 Conflict`.
[Idempotency keys][idempotency-keys] are automatically generated and added to
requests, when not given, to guarantee that retries are safe.
### Logging
The library can be configured to emit logging that will give you better insight
into what it's doing. The `info` logging level is usually most appropriate for
production use, but `debug` is also available for more verbosity.
There are a few options for enabling it:
1. Set the environment variable `STRIPE_LOG` to the value `debug` or `info`
```sh
$ export STRIPE_LOG=debug
```
2. Set `stripe.log`:
```python
import stripe
stripe.log = 'debug'
```
3. Enable it through Python's logging module:
```python
import logging
logging.basicConfig()
logging.getLogger('stripe').setLevel(logging.DEBUG)
```
### Writing a Plugin
If you're writing a plugin that uses the library, we'd appreciate it if you
identified using `stripe.set_app_info()`:
```py
stripe.set_app_info("MyAwesomePlugin", version="1.2.34", url="https://myawesomeplugin.info")
```
This information is passed along when the library makes calls to the Stripe
API.
### Request latency telemetry
By default, the library sends request latency telemetry to Stripe. These
numbers help Stripe improve the overall latency of its API for all users.
You can disable this behavior if you prefer:
```python
stripe.enable_telemetry = False
```
### Beta SDKs
Stripe has features in the beta phase that can be accessed via the beta version of this package.
We would love for you to try these and share feedback with us before these features reach the stable phase.
To install a beta version use `pip install` with the exact version you'd like to use:
```
pip install stripe==4.1.0b2
```
> **Note**
> There can be breaking changes between beta versions. Therefore we recommend pinning the package version to a specific beta version in your [requirements file](https://pip.pypa.io/en/stable/user_guide/#requirements-files) or `setup.py`. This way you can install the same version each time without breaking changes unless you are intentionally looking for the latest beta version.
We highly recommend keeping an eye on when the beta feature you are interested in goes from beta to stable so that you can move from using a beta version of the SDK to the stable version.
If your beta feature requires a `Stripe-Version` header to be sent, use the `stripe.api_version` field to set it:
```python
stripe.api_version += "; feature_beta=v3"
```
## Support
New features and bug fixes are released on the latest major version of the Stripe Python library. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
## Development
The test suite depends on [stripe-mock], so make sure to fetch and run it from a
background terminal ([stripe-mock's README][stripe-mock] also contains
instructions for installing via Homebrew and other methods):
```sh
go install github.com/stripe/stripe-mock@latest
stripe-mock
```
Run the following command to set up the development virtualenv:
```sh
make
```
Run all tests on all supported Python versions:
```sh
make test
```
Run all tests for a specific Python version (modify `-e` according to your Python target):
```sh
TOX_ARGS="-e py37" make test
```
Run all tests in a single file:
```sh
TOX_ARGS="-e py37 -- tests/api_resources/abstract/test_updateable_api_resource.py" make test
```
Run a single test suite:
```sh
TOX_ARGS="-e py37 -- tests/api_resources/abstract/test_updateable_api_resource.py::TestUpdateableAPIResource" make test
```
Run a single test:
```sh
TOX_ARGS="-e py37 -- tests/api_resources/abstract/test_updateable_api_resource.py::TestUpdateableAPIResource::test_save" make test
```
Run the linter with:
```sh
make lint
```
The library uses [Black][black] for code formatting. Code must be formatted
with Black before PRs are submitted, otherwise CI will fail. Run the formatter
with:
```sh
make fmt
```
[api-keys]: https://dashboard.stripe.com/account/apikeys
[black]: https://github.com/ambv/black
[connect]: https://stripe.com/connect
[poetry]: https://github.com/sdispater/poetry
[stripe-mock]: https://github.com/stripe/stripe-mock
[idempotency-keys]: https://stripe.com/docs/api/idempotent_requests?lang=python
[youtube-playlist]: https://www.youtube.com/playlist?list=PLy1nL-pvL2M55YVn0mGoQ5r-39A1-ZypO
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/VERSION 0000644 0001751 0000171 00000000006 14335240430 013463 0 ustar 00runner docker 5.0.0
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4104154
stripe-5.0.0/examples/ 0000755 0001751 0000171 00000000000 14335240452 014241 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/examples/charge.py 0000644 0001751 0000171 00000000517 14335240430 016043 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import os
import stripe
stripe.api_key = os.environ.get("STRIPE_SECRET_KEY")
print("Attempting charge...")
resp = stripe.Charge.create(
amount=200,
currency="usd",
card="tok_visa",
description="customer@gmail.com",
)
print("Success: %r" % (resp))
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/examples/oauth.py 0000644 0001751 0000171 00000002767 14335240430 015743 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import os
import stripe
from flask import Flask, request, redirect
stripe.api_key = os.environ.get("STRIPE_SECRET_KEY")
stripe.client_id = os.environ.get("STRIPE_CLIENT_ID")
app = Flask(__name__)
@app.route("/")
def index():
return 'Connect with Stripe'
@app.route("/authorize")
def authorize():
url = stripe.OAuth.authorize_url(scope="read_only")
return redirect(url)
@app.route("/oauth/callback")
def callback():
code = request.args.get("code")
try:
resp = stripe.OAuth.token(grant_type="authorization_code", code=code)
except stripe.oauth_error.OAuthError as e:
return "Error: " + str(e)
return """
Success! Account {stripe_user_id}
is connected.
Click here to
disconnect the account.
""".format(
stripe_user_id=resp["stripe_user_id"]
)
@app.route("/deauthorize")
def deauthorize():
stripe_user_id = request.args.get("stripe_user_id")
try:
stripe.OAuth.deauthorize(stripe_user_id=stripe_user_id)
except stripe.oauth_error.OAuthError as e:
return "Error: " + str(e)
return """
Success! Account {stripe_user_id}
is disconnected.
Click here to restart the OAuth flow.
""".format(
stripe_user_id=stripe_user_id
)
if __name__ == "__main__":
app.run(port=int(os.environ.get("PORT", 5000)))
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/examples/proxy.py 0000644 0001751 0000171 00000001557 14335240430 016000 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import os
import stripe
stripe.api_key = os.environ.get("STRIPE_SECRET_KEY")
print("Attempting charge...")
proxy = {
"http": "http://:@:",
"https": "http://:@:",
}
clients = (
stripe.http_client.RequestsClient(
verify_ssl_certs=stripe.verify_ssl_certs, proxy=proxy
),
stripe.http_client.PycurlClient(
verify_ssl_certs=stripe.verify_ssl_certs, proxy=proxy
),
stripe.http_client.Urllib2Client(
verify_ssl_certs=stripe.verify_ssl_certs, proxy=proxy
),
)
for c in clients:
stripe.default_http_client = c
resp = stripe.Charge.create(
amount=200,
currency="usd",
card="tok_visa",
description="customer@gmail.com",
)
print("Success: %s, %r" % (c.name, resp))
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/examples/webhooks.py 0000644 0001751 0000171 00000001735 14335240430 016436 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import os
import stripe
from flask import Flask, request
stripe.api_key = os.environ.get("STRIPE_SECRET_KEY")
webhook_secret = os.environ.get("WEBHOOK_SECRET")
app = Flask(__name__)
@app.route("/webhooks", methods=["POST"])
def webhooks():
payload = request.data.decode("utf-8")
received_sig = request.headers.get("Stripe-Signature", None)
try:
event = stripe.Webhook.construct_event(
payload, received_sig, webhook_secret
)
except ValueError:
print("Error while decoding event!")
return "Bad payload", 400
except stripe.error.SignatureVerificationError:
print("Invalid signature!")
return "Bad signature", 400
print(
"Received event: id={id}, type={type}".format(
id=event.id, type=event.type
)
)
return "", 200
if __name__ == "__main__":
app.run(port=int(os.environ.get("PORT", 5000)))
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/pyproject.toml 0000644 0001751 0000171 00000000404 14335240430 015331 0 ustar 00runner docker [tool.black]
line-length=79
target-version = [
"py27",
"py34",
"py35",
"py36",
"py37",
"py38",
"py39",
"py310",
]
exclude = '''
/(
\.eggs/
| \.git/
| \.tox/
| \.venv/
| _build/
| build/
| dist/
| venv/
| stripe/six.py
)
'''
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4384158
stripe-5.0.0/setup.cfg 0000644 0001751 0000171 00000000146 14335240452 014245 0 ustar 00runner docker [bdist_wheel]
universal = 1
[metadata]
license_file = LICENSE
[egg_info]
tag_build =
tag_date = 0
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/setup.py 0000644 0001751 0000171 00000004503 14335240430 014133 0 ustar 00runner docker import os
from codecs import open
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
os.chdir(here)
with open(
os.path.join(here, "LONG_DESCRIPTION.rst"), "r", encoding="utf-8"
) as fp:
long_description = fp.read()
version_contents = {}
with open(os.path.join(here, "stripe", "version.py"), encoding="utf-8") as f:
exec(f.read(), version_contents)
setup(
name="stripe",
version=version_contents["VERSION"],
description="Python bindings for the Stripe API",
long_description=long_description,
long_description_content_type="text/x-rst",
author="Stripe",
author_email="support@stripe.com",
url="https://github.com/stripe/stripe-python",
license="MIT",
keywords="stripe api payments",
packages=find_packages(exclude=["tests", "tests.*"]),
package_data={"stripe": ["data/ca-certificates.crt"]},
zip_safe=False,
install_requires=[
'requests >= 2.20; python_version >= "3.0"',
'requests[security] >= 2.20; python_version < "3.0"',
],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
project_urls={
"Bug Tracker": "https://github.com/stripe/stripe-python/issues",
"Changes": "https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md",
"Documentation": "https://stripe.com/docs/api/?lang=python",
"Source Code": "https://github.com/stripe/stripe-python",
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
],
setup_requires=["wheel"],
)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4144154
stripe-5.0.0/stripe/ 0000755 0001751 0000171 00000000000 14335240452 013731 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/__init__.py 0000644 0001751 0000171 00000002567 14335240430 016050 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import os
# Stripe Python bindings
# API docs at http://stripe.com/docs/api
# Authors:
# Patrick Collison
# Greg Brockman
# Andrew Metcalf
# Configuration variables
api_key = None
client_id = None
api_base = "https://api.stripe.com"
connect_api_base = "https://connect.stripe.com"
upload_api_base = "https://files.stripe.com"
api_version = None
verify_ssl_certs = True
proxy = None
default_http_client = None
app_info = None
enable_telemetry = True
max_network_retries = 0
ca_bundle_path = os.path.join(
os.path.dirname(__file__), "data", "ca-certificates.crt"
)
# Set to either 'debug' or 'info', controls console logging
log = None
# API resources
from stripe.api_resources import * # noqa
# OAuth
from stripe.oauth import OAuth # noqa
# Webhooks
from stripe.webhook import Webhook, WebhookSignature # noqa
# Sets some basic information about the running application that's sent along
# with API requests. Useful for plugin authors to identify their plugin when
# communicating with Stripe.
#
# Takes a name and optional version and plugin URL.
def set_app_info(name, partner_id=None, url=None, version=None):
global app_info
app_info = {
"name": name,
"partner_id": partner_id,
"url": url,
"version": version,
}
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_requestor.py 0000644 0001751 0000171 00000035104 14335240430 017164 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import calendar
import datetime
import json
import platform
import time
import uuid
import warnings
from collections import OrderedDict
import stripe
from stripe import error, oauth_error, http_client, version, util, six
from stripe.multipart_data_generator import MultipartDataGenerator
from stripe.six.moves.urllib.parse import urlencode, urlsplit, urlunsplit
from stripe.stripe_response import StripeResponse, StripeStreamResponse
def _encode_datetime(dttime):
if dttime.tzinfo and dttime.tzinfo.utcoffset(dttime) is not None:
utc_timestamp = calendar.timegm(dttime.utctimetuple())
else:
utc_timestamp = time.mktime(dttime.timetuple())
return int(utc_timestamp)
def _encode_nested_dict(key, data, fmt="%s[%s]"):
d = OrderedDict()
for subkey, subvalue in six.iteritems(data):
d[fmt % (key, subkey)] = subvalue
return d
def _api_encode(data):
for key, value in six.iteritems(data):
key = util.utf8(key)
if value is None:
continue
elif hasattr(value, "stripe_id"):
yield (key, value.stripe_id)
elif isinstance(value, list) or isinstance(value, tuple):
for i, sv in enumerate(value):
if isinstance(sv, dict):
subdict = _encode_nested_dict("%s[%d]" % (key, i), sv)
for k, v in _api_encode(subdict):
yield (k, v)
else:
yield ("%s[%d]" % (key, i), util.utf8(sv))
elif isinstance(value, dict):
subdict = _encode_nested_dict(key, value)
for subkey, subvalue in _api_encode(subdict):
yield (subkey, subvalue)
elif isinstance(value, datetime.datetime):
yield (key, _encode_datetime(value))
else:
yield (key, util.utf8(value))
def _build_api_url(url, query):
scheme, netloc, path, base_query, fragment = urlsplit(url)
if base_query:
query = "%s&%s" % (base_query, query)
return urlunsplit((scheme, netloc, path, query, fragment))
class APIRequestor(object):
def __init__(
self,
key=None,
client=None,
api_base=None,
api_version=None,
account=None,
):
self.api_base = api_base or stripe.api_base
self.api_key = key
self.api_version = api_version or stripe.api_version
self.stripe_account = account
self._default_proxy = None
from stripe import verify_ssl_certs as verify
from stripe import proxy
if client:
self._client = client
elif stripe.default_http_client:
self._client = stripe.default_http_client
if proxy != self._default_proxy:
warnings.warn(
"stripe.proxy was updated after sending a "
"request - this is a no-op. To use a different proxy, "
"set stripe.default_http_client to a new client "
"configured with the proxy."
)
else:
# If the stripe.default_http_client has not been set by the user
# yet, we'll set it here. This way, we aren't creating a new
# HttpClient for every request.
stripe.default_http_client = http_client.new_default_http_client(
verify_ssl_certs=verify, proxy=proxy
)
self._client = stripe.default_http_client
self._default_proxy = proxy
@classmethod
def format_app_info(cls, info):
str = info["name"]
if info["version"]:
str += "/%s" % (info["version"],)
if info["url"]:
str += " (%s)" % (info["url"],)
return str
def request(self, method, url, params=None, headers=None):
rbody, rcode, rheaders, my_api_key = self.request_raw(
method.lower(), url, params, headers, is_streaming=False
)
resp = self.interpret_response(rbody, rcode, rheaders)
return resp, my_api_key
def request_stream(self, method, url, params=None, headers=None):
stream, rcode, rheaders, my_api_key = self.request_raw(
method.lower(), url, params, headers, is_streaming=True
)
resp = self.interpret_streaming_response(stream, rcode, rheaders)
return resp, my_api_key
def handle_error_response(self, rbody, rcode, resp, rheaders):
try:
error_data = resp["error"]
except (KeyError, TypeError):
raise error.APIError(
"Invalid response object from API: %r (HTTP response code "
"was %d)" % (rbody, rcode),
rbody,
rcode,
resp,
)
err = None
# OAuth errors are a JSON object where `error` is a string. In
# contrast, in API errors, `error` is a hash with sub-keys. We use
# this property to distinguish between OAuth and API errors.
if isinstance(error_data, six.string_types):
err = self.specific_oauth_error(
rbody, rcode, resp, rheaders, error_data
)
if err is None:
err = self.specific_api_error(
rbody, rcode, resp, rheaders, error_data
)
raise err
def specific_api_error(self, rbody, rcode, resp, rheaders, error_data):
util.log_info(
"Stripe API error received",
error_code=error_data.get("code"),
error_type=error_data.get("type"),
error_message=error_data.get("message"),
error_param=error_data.get("param"),
)
# Rate limits were previously coded as 400's with code 'rate_limit'
if rcode == 429 or (
rcode == 400 and error_data.get("code") == "rate_limit"
):
return error.RateLimitError(
error_data.get("message"), rbody, rcode, resp, rheaders
)
elif rcode in [400, 404]:
if error_data.get("type") == "idempotency_error":
return error.IdempotencyError(
error_data.get("message"), rbody, rcode, resp, rheaders
)
else:
return error.InvalidRequestError(
error_data.get("message"),
error_data.get("param"),
error_data.get("code"),
rbody,
rcode,
resp,
rheaders,
)
elif rcode == 401:
return error.AuthenticationError(
error_data.get("message"), rbody, rcode, resp, rheaders
)
elif rcode == 402:
return error.CardError(
error_data.get("message"),
error_data.get("param"),
error_data.get("code"),
rbody,
rcode,
resp,
rheaders,
)
elif rcode == 403:
return error.PermissionError(
error_data.get("message"), rbody, rcode, resp, rheaders
)
else:
return error.APIError(
error_data.get("message"), rbody, rcode, resp, rheaders
)
def specific_oauth_error(self, rbody, rcode, resp, rheaders, error_code):
description = resp.get("error_description", error_code)
util.log_info(
"Stripe OAuth error received",
error_code=error_code,
error_description=description,
)
args = [error_code, description, rbody, rcode, resp, rheaders]
if error_code == "invalid_client":
return oauth_error.InvalidClientError(*args)
elif error_code == "invalid_grant":
return oauth_error.InvalidGrantError(*args)
elif error_code == "invalid_request":
return oauth_error.InvalidRequestError(*args)
elif error_code == "invalid_scope":
return oauth_error.InvalidScopeError(*args)
elif error_code == "unsupported_grant_type":
return oauth_error.UnsupportedGrantTypeError(*args)
elif error_code == "unsupported_response_type":
return oauth_error.UnsupportedResponseTypeError(*args)
return None
def request_headers(self, api_key, method):
user_agent = "Stripe/v1 PythonBindings/%s" % (version.VERSION,)
if stripe.app_info:
user_agent += " " + self.format_app_info(stripe.app_info)
ua = {
"bindings_version": version.VERSION,
"lang": "python",
"publisher": "stripe",
"httplib": self._client.name,
}
for attr, func in [
["lang_version", platform.python_version],
["platform", platform.platform],
["uname", lambda: " ".join(platform.uname())],
]:
try:
val = func()
except Exception:
val = "(disabled)"
ua[attr] = val
if stripe.app_info:
ua["application"] = stripe.app_info
headers = {
"X-Stripe-Client-User-Agent": json.dumps(ua),
"User-Agent": user_agent,
"Authorization": "Bearer %s" % (api_key,),
}
if self.stripe_account:
headers["Stripe-Account"] = self.stripe_account
if method == "post":
headers["Content-Type"] = "application/x-www-form-urlencoded"
headers.setdefault("Idempotency-Key", str(uuid.uuid4()))
if self.api_version is not None:
headers["Stripe-Version"] = self.api_version
return headers
def request_raw(
self,
method,
url,
params=None,
supplied_headers=None,
is_streaming=False,
):
"""
Mechanism for issuing an API call
"""
if self.api_key:
my_api_key = self.api_key
else:
from stripe import api_key
my_api_key = api_key
if my_api_key is None:
raise error.AuthenticationError(
"No API key provided. (HINT: set your API key using "
'"stripe.api_key = "). You can generate API keys '
"from the Stripe web interface. See https://stripe.com/api "
"for details, or email support@stripe.com if you have any "
"questions."
)
abs_url = "%s%s" % (self.api_base, url)
encoded_params = urlencode(list(_api_encode(params or {})))
# Don't use strict form encoding by changing the square bracket control
# characters back to their literals. This is fine by the server, and
# makes these parameter strings easier to read.
encoded_params = encoded_params.replace("%5B", "[").replace("%5D", "]")
if method == "get" or method == "delete":
if params:
abs_url = _build_api_url(abs_url, encoded_params)
post_data = None
elif method == "post":
if (
supplied_headers is not None
and supplied_headers.get("Content-Type")
== "multipart/form-data"
):
generator = MultipartDataGenerator()
generator.add_params(params or {})
post_data = generator.get_post_data()
supplied_headers[
"Content-Type"
] = "multipart/form-data; boundary=%s" % (generator.boundary,)
else:
post_data = encoded_params
else:
raise error.APIConnectionError(
"Unrecognized HTTP method %r. This may indicate a bug in the "
"Stripe bindings. Please contact support@stripe.com for "
"assistance." % (method,)
)
headers = self.request_headers(my_api_key, method)
if supplied_headers is not None:
for key, value in six.iteritems(supplied_headers):
headers[key] = value
util.log_info("Request to Stripe api", method=method, path=abs_url)
util.log_debug(
"Post details",
post_data=encoded_params,
api_version=self.api_version,
)
if is_streaming:
(
rcontent,
rcode,
rheaders,
) = self._client.request_stream_with_retries(
method, abs_url, headers, post_data
)
else:
rcontent, rcode, rheaders = self._client.request_with_retries(
method, abs_url, headers, post_data
)
util.log_info("Stripe API response", path=abs_url, response_code=rcode)
util.log_debug("API response body", body=rcontent)
if "Request-Id" in rheaders:
request_id = rheaders["Request-Id"]
util.log_debug(
"Dashboard link for request",
link=util.dashboard_link(request_id),
)
return rcontent, rcode, rheaders, my_api_key
def _should_handle_code_as_error(self, rcode):
return not 200 <= rcode < 300
def interpret_response(self, rbody, rcode, rheaders):
try:
if hasattr(rbody, "decode"):
rbody = rbody.decode("utf-8")
resp = StripeResponse(rbody, rcode, rheaders)
except Exception:
raise error.APIError(
"Invalid response body from API: %s "
"(HTTP response code was %d)" % (rbody, rcode),
rbody,
rcode,
rheaders,
)
if self._should_handle_code_as_error(rcode):
self.handle_error_response(rbody, rcode, resp.data, rheaders)
return resp
def interpret_streaming_response(self, stream, rcode, rheaders):
# Streaming response are handled with minimal processing for the success
# case (ie. we don't want to read the content). When an error is
# received, we need to read from the stream and parse the received JSON,
# treating it like a standard JSON response.
if self._should_handle_code_as_error(rcode):
if hasattr(stream, "getvalue"):
json_content = stream.getvalue()
elif hasattr(stream, "read"):
json_content = stream.read()
else:
raise NotImplementedError(
"HTTP client %s does not return an IOBase object which "
"can be consumed when streaming a response."
)
return self.interpret_response(json_content, rcode, rheaders)
else:
return StripeStreamResponse(stream, rcode, rheaders)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4184155
stripe-5.0.0/stripe/api_resources/ 0000755 0001751 0000171 00000000000 14335240452 016574 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/__init__.py 0000644 0001751 0000171 00000010557 14335240430 020711 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.error_object import ErrorObject, OAuthErrorObject
from stripe.api_resources.list_object import ListObject
from stripe.api_resources.search_result_object import SearchResultObject
from stripe.api_resources import apps
from stripe.api_resources import billing_portal
from stripe.api_resources import checkout
from stripe.api_resources import financial_connections
from stripe.api_resources import identity
from stripe.api_resources import issuing
from stripe.api_resources import radar
from stripe.api_resources import reporting
from stripe.api_resources import sigma
from stripe.api_resources import terminal
from stripe.api_resources import test_helpers
from stripe.api_resources import treasury
from stripe.api_resources.account import Account
from stripe.api_resources.account_link import AccountLink
from stripe.api_resources.apple_pay_domain import ApplePayDomain
from stripe.api_resources.application_fee import ApplicationFee
from stripe.api_resources.application_fee_refund import ApplicationFeeRefund
from stripe.api_resources.balance import Balance
from stripe.api_resources.balance_transaction import BalanceTransaction
from stripe.api_resources.bank_account import BankAccount
from stripe.api_resources.capability import Capability
from stripe.api_resources.card import Card
from stripe.api_resources.cash_balance import CashBalance
from stripe.api_resources.charge import Charge
from stripe.api_resources.country_spec import CountrySpec
from stripe.api_resources.coupon import Coupon
from stripe.api_resources.credit_note import CreditNote
from stripe.api_resources.credit_note_line_item import CreditNoteLineItem
from stripe.api_resources.customer import Customer
from stripe.api_resources.customer_balance_transaction import (
CustomerBalanceTransaction,
)
from stripe.api_resources.customer_cash_balance_transaction import (
CustomerCashBalanceTransaction,
)
from stripe.api_resources.dispute import Dispute
from stripe.api_resources.ephemeral_key import EphemeralKey
from stripe.api_resources.event import Event
from stripe.api_resources.exchange_rate import ExchangeRate
from stripe.api_resources.file import File
from stripe.api_resources.file import FileUpload
from stripe.api_resources.file_link import FileLink
from stripe.api_resources.funding_instructions import FundingInstructions
from stripe.api_resources.invoice import Invoice
from stripe.api_resources.invoice_item import InvoiceItem
from stripe.api_resources.invoice_line_item import InvoiceLineItem
from stripe.api_resources.line_item import LineItem
from stripe.api_resources.login_link import LoginLink
from stripe.api_resources.mandate import Mandate
from stripe.api_resources.payment_intent import PaymentIntent
from stripe.api_resources.payment_link import PaymentLink
from stripe.api_resources.payment_method import PaymentMethod
from stripe.api_resources.payout import Payout
from stripe.api_resources.person import Person
from stripe.api_resources.plan import Plan
from stripe.api_resources.price import Price
from stripe.api_resources.product import Product
from stripe.api_resources.promotion_code import PromotionCode
from stripe.api_resources.quote import Quote
from stripe.api_resources.refund import Refund
from stripe.api_resources.reversal import Reversal
from stripe.api_resources.review import Review
from stripe.api_resources.setup_attempt import SetupAttempt
from stripe.api_resources.setup_intent import SetupIntent
from stripe.api_resources.shipping_rate import ShippingRate
from stripe.api_resources.source import Source
from stripe.api_resources.source_transaction import SourceTransaction
from stripe.api_resources.subscription import Subscription
from stripe.api_resources.subscription_item import SubscriptionItem
from stripe.api_resources.subscription_schedule import SubscriptionSchedule
from stripe.api_resources.tax_code import TaxCode
from stripe.api_resources.tax_id import TaxId
from stripe.api_resources.tax_rate import TaxRate
from stripe.api_resources.token import Token
from stripe.api_resources.topup import Topup
from stripe.api_resources.transfer import Transfer
from stripe.api_resources.usage_record import UsageRecord
from stripe.api_resources.usage_record_summary import UsageRecordSummary
from stripe.api_resources.webhook_endpoint import WebhookEndpoint
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4224155
stripe-5.0.0/stripe/api_resources/abstract/ 0000755 0001751 0000171 00000000000 14335240452 020377 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/__init__.py 0000644 0001751 0000171 00000002070 14335240430 022503 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.abstract.api_resource import APIResource
from stripe.api_resources.abstract.singleton_api_resource import (
SingletonAPIResource,
)
from stripe.api_resources.abstract.createable_api_resource import (
CreateableAPIResource,
)
from stripe.api_resources.abstract.updateable_api_resource import (
UpdateableAPIResource,
)
from stripe.api_resources.abstract.deletable_api_resource import (
DeletableAPIResource,
)
from stripe.api_resources.abstract.listable_api_resource import (
ListableAPIResource,
)
from stripe.api_resources.abstract.searchable_api_resource import (
SearchableAPIResource,
)
from stripe.api_resources.abstract.verify_mixin import VerifyMixin
from stripe.api_resources.abstract.custom_method import custom_method
from stripe.api_resources.abstract.test_helpers import (
test_helpers,
APIResourceTestHelpers,
)
from stripe.api_resources.abstract.nested_resource_class_methods import (
nested_resource_class_methods,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/api_resource.py 0000644 0001751 0000171 00000013163 14335240430 023431 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe import api_requestor, error, util, six
from stripe.stripe_object import StripeObject
from stripe.six.moves.urllib.parse import quote_plus
class APIResource(StripeObject):
@classmethod
def retrieve(cls, id, api_key=None, **params):
instance = cls(id, api_key, **params)
instance.refresh()
return instance
def refresh(self):
return self._request_and_refresh("get", self.instance_url())
@classmethod
def class_url(cls):
if cls == APIResource:
raise NotImplementedError(
"APIResource is an abstract class. You should perform "
"actions on its subclasses (e.g. Charge, Customer)"
)
# Namespaces are separated in object names with periods (.) and in URLs
# with forward slashes (/), so replace the former with the latter.
base = cls.OBJECT_NAME.replace(".", "/")
return "/v1/%ss" % (base,)
def instance_url(self):
id = self.get("id")
if not isinstance(id, six.string_types):
raise error.InvalidRequestError(
"Could not determine which URL to request: %s instance "
"has invalid ID: %r, %s. ID should be of type `str` (or"
" `unicode`)" % (type(self).__name__, id, type(id)),
"id",
)
id = util.utf8(id)
base = self.class_url()
extn = quote_plus(id)
return "%s/%s" % (base, extn)
# The `method_` and `url_` arguments are suffixed with an underscore to
# avoid conflicting with actual request parameters in `params`.
def _request(
self,
method_,
url_,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
headers=None,
params=None,
):
obj = StripeObject._request(
self,
method_,
url_,
api_key,
idempotency_key,
stripe_version,
stripe_account,
headers,
params,
)
if type(self) is type(obj):
self.refresh_from(obj)
return self
else:
return obj
# The `method_` and `url_` arguments are suffixed with an underscore to
# avoid conflicting with actual request parameters in `params`.
def _request_and_refresh(
self,
method_,
url_,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
headers=None,
params=None,
):
obj = StripeObject._request(
self,
method_,
url_,
api_key,
idempotency_key,
stripe_version,
stripe_account,
headers,
params,
)
self.refresh_from(obj)
return self
# The `method_` and `url_` arguments are suffixed with an underscore to
# avoid conflicting with actual request parameters in `params`.
@classmethod
def _static_request(
cls,
method_,
url_,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
params=None,
):
params = None if params is None else params.copy()
api_key = util.read_special_variable(params, "api_key", api_key)
idempotency_key = util.read_special_variable(
params, "idempotency_key", idempotency_key
)
stripe_version = util.read_special_variable(
params, "stripe_version", stripe_version
)
stripe_account = util.read_special_variable(
params, "stripe_account", stripe_account
)
headers = util.read_special_variable(params, "headers", None)
requestor = api_requestor.APIRequestor(
api_key, api_version=stripe_version, account=stripe_account
)
if idempotency_key is not None:
headers = {} if headers is None else headers.copy()
headers.update(util.populate_headers(idempotency_key))
response, api_key = requestor.request(method_, url_, params, headers)
return util.convert_to_stripe_object(
response, api_key, stripe_version, stripe_account, params
)
# The `method_` and `url_` arguments are suffixed with an underscore to
# avoid conflicting with actual request parameters in `params`.
@classmethod
def _static_request_stream(
cls,
method_,
url_,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
params=None,
):
params = None if params is None else params.copy()
api_key = util.read_special_variable(params, "api_key", api_key)
idempotency_key = util.read_special_variable(
params, "idempotency_key", idempotency_key
)
stripe_version = util.read_special_variable(
params, "stripe_version", stripe_version
)
stripe_account = util.read_special_variable(
params, "stripe_account", stripe_account
)
headers = util.read_special_variable(params, "headers", None)
requestor = api_requestor.APIRequestor(
api_key, api_version=stripe_version, account=stripe_account
)
if idempotency_key is not None:
headers = {} if headers is None else headers.copy()
headers.update(util.populate_headers(idempotency_key))
response, _ = requestor.request_stream(method_, url_, params, headers)
return response
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/createable_api_resource.py 0000644 0001751 0000171 00000001102 14335240430 025566 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract.api_resource import APIResource
class CreateableAPIResource(APIResource):
@classmethod
def create(
cls,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
cls.class_url(),
api_key,
idempotency_key,
stripe_version,
stripe_account,
params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/custom_method.py 0000644 0001751 0000171 00000004462 14335240430 023625 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.six.moves.urllib.parse import quote_plus
def custom_method(name, http_verb, http_path=None, is_streaming=False):
if http_verb not in ["get", "post", "delete"]:
raise ValueError(
"Invalid http_verb: %s. Must be one of 'get', 'post' or 'delete'"
% http_verb
)
if http_path is None:
http_path = name
def wrapper(cls):
def custom_method_request(cls, sid, **params):
url = "%s/%s/%s" % (
cls.class_url(),
quote_plus(util.utf8(sid)),
http_path,
)
obj = cls._static_request(http_verb, url, params=params)
# For list objects, we have to attach the parameters so that they
# can be referenced in auto-pagination and ensure consistency.
if "object" in obj and obj.object == "list":
obj._retrieve_params = params
return obj
def custom_method_request_stream(cls, sid, **params):
url = "%s/%s/%s" % (
cls.class_url(),
quote_plus(util.utf8(sid)),
http_path,
)
return cls._static_request_stream(http_verb, url, params=params)
if is_streaming:
class_method_impl = classmethod(custom_method_request_stream)
else:
class_method_impl = classmethod(custom_method_request)
existing_method = getattr(cls, name, None)
if existing_method is None:
setattr(cls, name, class_method_impl)
else:
# If a method with the same name we want to use already exists on
# the class, we assume it's an instance method. In this case, the
# new class method is prefixed with `_cls_`, and the original
# instance method is decorated with `util.class_method_variant` so
# that the new class method is called when the original method is
# called as a class method.
setattr(cls, "_cls_" + name, class_method_impl)
instance_method = util.class_method_variant("_cls_" + name)(
existing_method
)
setattr(cls, name, instance_method)
return cls
return wrapper
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/deletable_api_resource.py 0000644 0001751 0000171 00000001172 14335240430 025427 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract.api_resource import APIResource
from stripe.six.moves.urllib.parse import quote_plus
class DeletableAPIResource(APIResource):
@classmethod
def _cls_delete(cls, sid, **params):
url = "%s/%s" % (cls.class_url(), quote_plus(util.utf8(sid)))
return cls._static_request("delete", url, params=params)
@util.class_method_variant("_cls_delete")
def delete(self, **params):
return self._request_and_refresh(
"delete", self.instance_url(), params=params
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/listable_api_resource.py 0000644 0001751 0000171 00000001215 14335240430 025303 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract.api_resource import APIResource
class ListableAPIResource(APIResource):
@classmethod
def auto_paging_iter(cls, *args, **params):
return cls.list(*args, **params).auto_paging_iter()
@classmethod
def list(
cls, api_key=None, stripe_version=None, stripe_account=None, **params
):
return cls._static_request(
"get",
cls.class_url(),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/nested_resource_class_methods.py 0000644 0001751 0000171 00000010262 14335240430 027047 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe.six.moves.urllib.parse import quote_plus
from stripe.api_resources.abstract import APIResource
def nested_resource_class_methods(
resource, path=None, operations=None, resource_plural=None
):
if resource_plural is None:
resource_plural = "%ss" % resource
if path is None:
path = resource_plural
if operations is None:
raise ValueError("operations list required")
def wrapper(cls):
def nested_resource_url(cls, id, nested_id=None):
url = "%s/%s/%s" % (
cls.class_url(),
quote_plus(id),
quote_plus(path),
)
if nested_id is not None:
url += "/%s" % quote_plus(nested_id)
return url
resource_url_method = "%ss_url" % resource
setattr(cls, resource_url_method, classmethod(nested_resource_url))
def nested_resource_request(
cls,
method,
url,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return APIResource._static_request(
method,
url,
api_key=api_key,
idempotency_key=idempotency_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
resource_request_method = "%ss_request" % resource
setattr(
cls, resource_request_method, classmethod(nested_resource_request)
)
for operation in operations:
if operation == "create":
def create_nested_resource(cls, id, **params):
url = getattr(cls, resource_url_method)(id)
return getattr(cls, resource_request_method)(
"post", url, **params
)
create_method = "create_%s" % resource
setattr(
cls, create_method, classmethod(create_nested_resource)
)
elif operation == "retrieve":
def retrieve_nested_resource(cls, id, nested_id, **params):
url = getattr(cls, resource_url_method)(id, nested_id)
return getattr(cls, resource_request_method)(
"get", url, **params
)
retrieve_method = "retrieve_%s" % resource
setattr(
cls, retrieve_method, classmethod(retrieve_nested_resource)
)
elif operation == "update":
def modify_nested_resource(cls, id, nested_id, **params):
url = getattr(cls, resource_url_method)(id, nested_id)
return getattr(cls, resource_request_method)(
"post", url, **params
)
modify_method = "modify_%s" % resource
setattr(
cls, modify_method, classmethod(modify_nested_resource)
)
elif operation == "delete":
def delete_nested_resource(cls, id, nested_id, **params):
url = getattr(cls, resource_url_method)(id, nested_id)
return getattr(cls, resource_request_method)(
"delete", url, **params
)
delete_method = "delete_%s" % resource
setattr(
cls, delete_method, classmethod(delete_nested_resource)
)
elif operation == "list":
def list_nested_resources(cls, id, **params):
url = getattr(cls, resource_url_method)(id)
return getattr(cls, resource_request_method)(
"get", url, **params
)
list_method = "list_%s" % resource_plural
setattr(cls, list_method, classmethod(list_nested_resources))
else:
raise ValueError("Unknown operation: %s" % operation)
return cls
return wrapper
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/searchable_api_resource.py 0000644 0001751 0000171 00000001410 14335240430 025572 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract.api_resource import APIResource
class SearchableAPIResource(APIResource):
@classmethod
def _search(
cls,
search_url,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
search_url,
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@classmethod
def search(cls, *args, **kwargs):
raise NotImplementedError
@classmethod
def search_auto_paging_iter(cls, *args, **kwargs):
raise NotImplementedError
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/singleton_api_resource.py 0000644 0001751 0000171 00000001552 14335240430 025512 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract.api_resource import APIResource
class SingletonAPIResource(APIResource):
@classmethod
def retrieve(cls, **params):
return super(SingletonAPIResource, cls).retrieve(None, **params)
@classmethod
def class_url(cls):
if cls == SingletonAPIResource:
raise NotImplementedError(
"SingletonAPIResource is an abstract class. You should "
"perform actions on its subclasses (e.g. Balance)"
)
# Namespaces are separated in object names with periods (.) and in URLs
# with forward slashes (/), so replace the former with the latter.
base = cls.OBJECT_NAME.replace(".", "/")
return "/v1/%s" % (base,)
def instance_url(self):
return self.class_url()
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/test_helpers.py 0000644 0001751 0000171 00000004771 14335240430 023457 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe import error, util, six
from stripe.six.moves.urllib.parse import quote_plus
from stripe.api_resources.abstract import APIResource
class APIResourceTestHelpers:
"""
The base type for the TestHelper nested classes.
Handles request URL generation for test_helper custom methods.
Should be used in combination with the @test_helpers decorator.
@test_helpers
class Foo(APIResource):
class TestHelpers(APIResourceTestHelpers):
"""
def __init__(self, resource):
self.resource = resource
@classmethod
def class_url(cls):
if cls == APIResourceTestHelpers:
raise NotImplementedError(
"APIResourceTestHelpers is an abstract class. You should perform "
"actions on its subclasses (e.g. Charge, Customer)"
)
# Namespaces are separated in object names with periods (.) and in URLs
# with forward slashes (/), so replace the former with the latter.
base = cls._resource_cls.OBJECT_NAME.replace(".", "/")
return "/v1/test_helpers/%ss" % (base,)
def instance_url(self):
id = self.resource.get("id")
if not isinstance(id, six.string_types):
raise error.InvalidRequestError(
"Could not determine which URL to request: %s instance "
"has invalid ID: %r, %s. ID should be of type `str` (or"
" `unicode`)" % (type(self).__name__, id, type(id)),
"id",
)
id = util.utf8(id)
base = self.class_url()
extn = quote_plus(id)
return "%s/%s" % (base, extn)
def test_helpers(cls):
"""
test_helpers decorator adds a test_helpers property and
wires the parent resource class to the nested TestHelpers class.
Should only be used on types that inherit from APIResource.
@test_helpers
class Foo(APIResource):
class TestHelpers(APIResourceTestHelpers):
"""
def test_helpers_getter(self):
return self.TestHelpers(self)
if not issubclass(cls, APIResource):
raise ValueError(
"Could not apply @test_helpers decorator to %r."
" The class should a subclass of APIResource." % cls
)
cls.TestHelpers._resource_cls = cls
cls.TestHelpers._static_request = cls._static_request
cls.TestHelpers._static_request_stream = cls._static_request_stream
cls.test_helpers = property(test_helpers_getter)
return cls
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/updateable_api_resource.py 0000644 0001751 0000171 00000002044 14335240430 025613 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract.api_resource import APIResource
from stripe.six.moves.urllib.parse import quote_plus
class UpdateableAPIResource(APIResource):
@classmethod
def modify(cls, sid, **params):
url = "%s/%s" % (cls.class_url(), quote_plus(util.utf8(sid)))
return cls._static_request("post", url, params=params)
def save(self, idempotency_key=None):
"""
The `save` method is deprecated and will be removed in a future major version of the library.
Use the class method `modify` on the resource instead.
"""
updated_params = self.serialize(None)
if updated_params:
self._request_and_refresh(
"post",
self.instance_url(),
idempotency_key=idempotency_key,
params=updated_params,
)
else:
util.logger.debug("Trying to save already saved object %r", self)
return self
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/abstract/verify_mixin.py 0000644 0001751 0000171 00000000462 14335240430 023457 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
class VerifyMixin(object):
def verify(self, idempotency_key=None, **params):
url = self.instance_url() + "/verify"
return self._request(
"post", url, idempotency_key=idempotency_key, params=params
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/account.py 0000644 0001751 0000171 00000011106 14335240430 020575 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
import stripe
from stripe import oauth, six
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.abstract import nested_resource_class_methods
from stripe.six.moves.urllib.parse import quote_plus
@nested_resource_class_methods(
"capability",
operations=["retrieve", "update", "list"],
resource_plural="capabilities",
)
@nested_resource_class_methods(
"external_account",
operations=["create", "retrieve", "update", "delete", "list"],
)
@nested_resource_class_methods("login_link", operations=["create"])
@nested_resource_class_methods(
"person",
operations=["create", "retrieve", "update", "delete", "list"],
)
class Account(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
This is an object representing a Stripe account. You can retrieve it to see
properties on the account like its current e-mail address or if the account is
enabled yet to make live charges.
Some properties, marked below, are available only to platforms that want to
[create and manage Express or Custom accounts](https://stripe.com/docs/connect/accounts).
"""
OBJECT_NAME = "account"
@classmethod
def _cls_persons(
cls,
account,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/accounts/{account}/persons".format(
account=util.sanitize_id(account)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_persons")
def persons(self, idempotency_key=None, **params):
return self._request(
"get",
"/v1/accounts/{account}/persons".format(
account=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_reject(
cls,
account,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/accounts/{account}/reject".format(
account=util.sanitize_id(account)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_reject")
def reject(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/accounts/{account}/reject".format(
account=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
# We are not adding a helper for capabilities here as the Account object already has a
# capabilities property which is a hash and not the sub-list of capabilities.
@classmethod
def retrieve(cls, id=None, api_key=None, **params):
instance = cls(id, api_key, **params)
instance.refresh()
return instance
@classmethod
def modify(cls, id=None, **params):
url = cls._build_instance_url(id)
return cls._static_request("post", url, params=params)
@classmethod
def _build_instance_url(cls, sid):
if not sid:
return "/v1/account"
sid = util.utf8(sid)
base = cls.class_url()
extn = quote_plus(sid)
return "%s/%s" % (base, extn)
def instance_url(self):
return self._build_instance_url(self.get("id"))
def deauthorize(self, **params):
params["stripe_user_id"] = self.id
return oauth.OAuth.deauthorize(**params)
def serialize(self, previous):
params = super(Account, self).serialize(previous)
previous = previous or self._previous or {}
for k, v in six.iteritems(self):
if (
k == "individual"
and isinstance(v, stripe.api_resources.Person)
and k not in params
):
params[k] = v.serialize(previous.get(k, None))
return params
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/account_link.py 0000644 0001751 0000171 00000001045 14335240430 021613 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
class AccountLink(CreateableAPIResource):
"""
Account Links are the means by which a Connect platform grants a connected account permission to access
Stripe-hosted applications, such as Connect Onboarding.
Related guide: [Connect Onboarding](https://stripe.com/docs/connect/connect-onboarding).
"""
OBJECT_NAME = "account_link"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/apple_pay_domain.py 0000644 0001751 0000171 00000001035 14335240430 022442 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
class ApplePayDomain(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
):
OBJECT_NAME = "apple_pay_domain"
@classmethod
def class_url(cls):
return "/v1/apple_pay/domains"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/application_fee.py 0000644 0001751 0000171 00000002444 14335240430 022270 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import nested_resource_class_methods
@nested_resource_class_methods(
"refund",
operations=["create", "retrieve", "update", "list"],
)
class ApplicationFee(ListableAPIResource):
OBJECT_NAME = "application_fee"
@classmethod
def _cls_refund(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/application_fees/{id}/refunds".format(
id=util.sanitize_id(id)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_refund")
def refund(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/application_fees/{id}/refunds".format(
id=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/application_fee_refund.py 0000644 0001751 0000171 00000003045 14335240430 023631 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources import ApplicationFee
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.six.moves.urllib.parse import quote_plus
class ApplicationFeeRefund(UpdateableAPIResource):
"""
`Application Fee Refund` objects allow you to refund an application fee that
has previously been created but not yet refunded. Funds will be refunded to
the Stripe account from which the fee was originally collected.
Related guide: [Refunding Application Fees](https://stripe.com/docs/connect/destination-charges#refunding-app-fee).
"""
OBJECT_NAME = "fee_refund"
@classmethod
def _build_instance_url(cls, fee, sid):
fee = util.utf8(fee)
sid = util.utf8(sid)
base = ApplicationFee.class_url()
cust_extn = quote_plus(fee)
extn = quote_plus(sid)
return "%s/%s/refunds/%s" % (base, cust_extn, extn)
@classmethod
def modify(cls, fee, sid, **params):
url = cls._build_instance_url(fee, sid)
return cls._static_request("post", url, params=params)
def instance_url(self):
return self._build_instance_url(self.fee, self.id)
@classmethod
def retrieve(cls, id, api_key=None, **params):
raise NotImplementedError(
"Can't retrieve a refund without an application fee ID. "
"Use application_fee.refunds.retrieve('refund_id') instead."
)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4224155
stripe-5.0.0/stripe/api_resources/apps/ 0000755 0001751 0000171 00000000000 14335240452 017537 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/apps/__init__.py 0000644 0001751 0000171 00000000305 14335240430 021642 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.apps.secret import Secret
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/apps/secret.py 0000644 0001751 0000171 00000003600 14335240430 021371 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
class Secret(CreateableAPIResource, ListableAPIResource):
"""
Secret Store is an API that allows Stripe Apps developers to securely persist secrets for use by UI Extensions and app backends.
The primary resource in Secret Store is a `secret`. Other apps can't view secrets created by an app. Additionally, secrets are scoped to provide further permission control.
All Dashboard users and the app backend share `account` scoped secrets. Use the `account` scope for secrets that don't change per-user, like a third-party API key.
A `user` scoped secret is accessible by the app backend and one specific Dashboard user. Use the `user` scope for per-user secrets like per-user OAuth tokens, where different users might have different permissions.
Related guide: [Store data between page reloads](https://stripe.com/docs/stripe-apps/store-auth-data-custom-objects).
"""
OBJECT_NAME = "apps.secret"
@classmethod
def delete_where(
cls, api_key=None, stripe_version=None, stripe_account=None, **params
):
return cls._static_request(
"post",
"/v1/apps/secrets/delete",
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@classmethod
def find(
cls, api_key=None, stripe_version=None, stripe_account=None, **params
):
return cls._static_request(
"get",
"/v1/apps/secrets/find",
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/balance.py 0000644 0001751 0000171 00000001635 14335240430 020534 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import SingletonAPIResource
class Balance(SingletonAPIResource):
"""
This is an object representing your Stripe balance. You can retrieve it to see
the balance currently on your Stripe account.
You can also retrieve the balance history, which contains a list of
[transactions](https://stripe.com/docs/reporting/balance-transaction-types) that contributed to the balance
(charges, payouts, and so forth).
The available and pending amounts for each currency are broken down further by
payment source types.
Related guide: [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances).
"""
OBJECT_NAME = "balance"
@classmethod
def class_url(cls):
return "/v1/balance"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/balance_transaction.py 0000644 0001751 0000171 00000001121 14335240430 023127 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class BalanceTransaction(ListableAPIResource):
"""
Balance transactions represent funds moving through your Stripe account.
They're created for every type of transaction that comes into or flows out of your Stripe account balance.
Related guide: [Balance Transaction Types](https://stripe.com/docs/reports/balance-transaction-types).
"""
OBJECT_NAME = "balance_transaction"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/bank_account.py 0000644 0001751 0000171 00000006035 14335240430 021575 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import error
from stripe import util
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.abstract import VerifyMixin
from stripe.api_resources.account import Account
from stripe.api_resources.customer import Customer
from stripe.six.moves.urllib.parse import quote_plus
class BankAccount(DeletableAPIResource, UpdateableAPIResource, VerifyMixin):
"""
These bank accounts are payment methods on `Customer` objects.
On the other hand [External Accounts](https://stripe.com/docs/api#external_accounts) are transfer
destinations on `Account` objects for [Custom accounts](https://stripe.com/docs/connect/custom-accounts).
They can be bank accounts or debit cards as well, and are documented in the links above.
Related guide: [Bank Debits and Transfers](https://stripe.com/docs/payments/bank-debits-transfers).
"""
OBJECT_NAME = "bank_account"
def instance_url(self):
token = util.utf8(self.id)
extn = quote_plus(token)
if hasattr(self, "customer"):
customer = util.utf8(self.customer)
base = Customer.class_url()
owner_extn = quote_plus(customer)
class_base = "sources"
elif hasattr(self, "account"):
account = util.utf8(self.account)
base = Account.class_url()
owner_extn = quote_plus(account)
class_base = "external_accounts"
else:
raise error.InvalidRequestError(
"Could not determine whether bank_account_id %s is "
"attached to a customer or an account." % token,
"id",
)
return "%s/%s/%s/%s" % (base, owner_extn, class_base, extn)
@classmethod
def modify(cls, sid, **params):
raise NotImplementedError(
"Can't modify a bank account without a customer or account ID. "
"Use stripe.Customer.modify_source('customer_id', 'bank_account_id', ...) "
"(see https://stripe.com/docs/api/customer_bank_accounts/update) or "
"stripe.Account.modify_external_account('customer_id', 'bank_account_id', ...) "
"(see https://stripe.com/docs/api/external_account_bank_accounts/update)."
)
@classmethod
def retrieve(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
raise NotImplementedError(
"Can't retrieve a bank account without a customer or account ID. "
"Use stripe.customer.retrieve_source('customer_id', 'bank_account_id') "
"(see https://stripe.com/docs/api/customer_bank_accounts/retrieve) or "
"stripe.Account.retrieve_external_account('account_id', 'bank_account_id') "
"(see https://stripe.com/docs/api/external_account_bank_accounts/retrieve)."
)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4224155
stripe-5.0.0/stripe/api_resources/billing_portal/ 0000755 0001751 0000171 00000000000 14335240452 021575 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/billing_portal/__init__.py 0000644 0001751 0000171 00000000435 14335240430 023704 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.billing_portal.configuration import Configuration
from stripe.api_resources.billing_portal.session import Session
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/billing_portal/configuration.py 0000644 0001751 0000171 00000001103 14335240430 025005 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Configuration(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A portal configuration describes the functionality and behavior of a portal session.
"""
OBJECT_NAME = "billing_portal.configuration"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/billing_portal/session.py 0000644 0001751 0000171 00000002051 14335240430 023624 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
class Session(CreateableAPIResource):
"""
The Billing customer portal is a Stripe-hosted UI for subscription and
billing management.
A portal configuration describes the functionality and features that you
want to provide to your customers through the portal.
A portal session describes the instantiation of the customer portal for
a particular customer. By visiting the session's URL, the customer
can manage their subscriptions and billing details. For security reasons,
sessions are short-lived and will expire if the customer does not visit the URL.
Create sessions on-demand when customers intend to manage their subscriptions
and billing details.
Learn more in the [integration guide](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal).
"""
OBJECT_NAME = "billing_portal.session"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/capability.py 0000644 0001751 0000171 00000002560 14335240430 021266 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.account import Account
from stripe.six.moves.urllib.parse import quote_plus
class Capability(UpdateableAPIResource):
"""
This is an object representing a capability for a Stripe account.
Related guide: [Account capabilities](https://stripe.com/docs/connect/account-capabilities).
"""
OBJECT_NAME = "capability"
def instance_url(self):
token = util.utf8(self.id)
account = util.utf8(self.account)
base = Account.class_url()
acct_extn = quote_plus(account)
extn = quote_plus(token)
return "%s/%s/capabilities/%s" % (base, acct_extn, extn)
@classmethod
def modify(cls, sid, **params):
raise NotImplementedError(
"Can't update a capability without an account ID. Update a capability using "
"account.modify_capability('acct_123', 'acap_123', params)"
)
@classmethod
def retrieve(cls, id, api_key=None, **params):
raise NotImplementedError(
"Can't retrieve a capability without an account ID. Retrieve a capability using "
"account.retrieve_capability('acct_123', 'acap_123')"
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/card.py 0000644 0001751 0000171 00000005254 14335240430 020061 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import error
from stripe import util
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.account import Account
from stripe.api_resources.customer import Customer
from stripe.six.moves.urllib.parse import quote_plus
class Card(DeletableAPIResource, UpdateableAPIResource):
"""
You can store multiple cards on a customer in order to charge the customer
later. You can also store multiple debit cards on a recipient in order to
transfer to those cards later.
Related guide: [Card Payments with Sources](https://stripe.com/docs/sources/cards).
"""
OBJECT_NAME = "card"
def instance_url(self):
token = util.utf8(self.id)
extn = quote_plus(token)
if hasattr(self, "customer"):
customer = util.utf8(self.customer)
base = Customer.class_url()
owner_extn = quote_plus(customer)
class_base = "sources"
elif hasattr(self, "account"):
account = util.utf8(self.account)
base = Account.class_url()
owner_extn = quote_plus(account)
class_base = "external_accounts"
else:
raise error.InvalidRequestError(
"Could not determine whether card_id %s is "
"attached to a customer, or "
"account." % token,
"id",
)
return "%s/%s/%s/%s" % (base, owner_extn, class_base, extn)
@classmethod
def modify(cls, sid, **params):
raise NotImplementedError(
"Can't modify a card without a customer or account ID. "
"Use stripe.Customer.modify_source('customer_id', 'card_id', ...) "
"(see https://stripe.com/docs/api/cards/update) or "
"stripe.Account.modify_external_account('account_id', 'card_id', ...) "
"(see https://stripe.com/docs/api/external_account_cards/update)."
)
@classmethod
def retrieve(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
raise NotImplementedError(
"Can't retrieve a card without a customer or account ID. "
"Use stripe.Customer.retrieve_source('customer_id', 'card_id') "
"(see https://stripe.com/docs/api/cards/retrieve) or "
"stripe.Account.retrieve_external_account('account_id', 'card_id') "
"(see https://stripe.com/docs/api/external_account_cards/retrieve)."
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/cash_balance.py 0000644 0001751 0000171 00000002056 14335240430 021530 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import APIResource
from stripe.api_resources.customer import Customer
from stripe.six.moves.urllib.parse import quote_plus
class CashBalance(APIResource):
"""
A customer's `Cash balance` represents real funds. Customers can add funds to their cash balance by sending a bank transfer. These funds can be used for payment and can eventually be paid out to your bank account.
"""
OBJECT_NAME = "cash_balance"
def instance_url(self):
customer = util.utf8(self.customer)
base = Customer.class_url()
cust_extn = quote_plus(customer)
return "%s/%s/cash_balance" % (base, cust_extn)
@classmethod
def retrieve(cls, id, api_key=None, **params):
raise NotImplementedError(
"Can't retrieve a Customer Cash Balance without a Customer ID. "
"Use Customer.retrieve_cash_balance('cus_123')"
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/charge.py 0000644 0001751 0000171 00000005065 14335240430 020401 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import SearchableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Charge(
CreateableAPIResource,
ListableAPIResource,
SearchableAPIResource,
UpdateableAPIResource,
):
"""
To charge a credit or a debit card, you create a `Charge` object. You can
retrieve and refund individual charges as well as list all charges. Charges
are identified by a unique, random ID.
Related guide: [Accept a payment with the Charges API](https://stripe.com/docs/payments/accept-a-payment-charges).
"""
OBJECT_NAME = "charge"
@classmethod
def _cls_capture(
cls,
charge,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/charges/{charge}/capture".format(
charge=util.sanitize_id(charge)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_capture")
def capture(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/charges/{charge}/capture".format(
charge=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def search(cls, *args, **kwargs):
return cls._search(search_url="/v1/charges/search", *args, **kwargs)
@classmethod
def search_auto_paging_iter(cls, *args, **kwargs):
return cls.search(*args, **kwargs).auto_paging_iter()
def mark_as_fraudulent(self, idempotency_key=None):
params = {"fraud_details": {"user_report": "fraudulent"}}
url = self.instance_url()
headers = util.populate_headers(idempotency_key)
self.refresh_from(self.request("post", url, params, headers))
return self
def mark_as_safe(self, idempotency_key=None):
params = {"fraud_details": {"user_report": "safe"}}
url = self.instance_url()
headers = util.populate_headers(idempotency_key)
self.refresh_from(self.request("post", url, params, headers))
return self
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4224155
stripe-5.0.0/stripe/api_resources/checkout/ 0000755 0001751 0000171 00000000000 14335240452 020401 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/checkout/__init__.py 0000644 0001751 0000171 00000000313 14335240430 022503 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.checkout.session import Session
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/checkout/session.py 0000644 0001751 0000171 00000005675 14335240430 022447 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
class Session(CreateableAPIResource, ListableAPIResource):
"""
A Checkout Session represents your customer's session as they pay for
one-time purchases or subscriptions through [Checkout](https://stripe.com/docs/payments/checkout)
or [Payment Links](https://stripe.com/docs/payments/payment-links). We recommend creating a
new Session each time your customer attempts to pay.
Once payment is successful, the Checkout Session will contain a reference
to the [Customer](https://stripe.com/docs/api/customers), and either the successful
[PaymentIntent](https://stripe.com/docs/api/payment_intents) or an active
[Subscription](https://stripe.com/docs/api/subscriptions).
You can create a Checkout Session on your server and pass its ID to the
client to begin Checkout.
Related guide: [Checkout Quickstart](https://stripe.com/docs/checkout/quickstart).
"""
OBJECT_NAME = "checkout.session"
@classmethod
def _cls_expire(
cls,
session,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/checkout/sessions/{session}/expire".format(
session=util.sanitize_id(session)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_expire")
def expire(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/checkout/sessions/{session}/expire".format(
session=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_list_line_items(
cls,
session,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/checkout/sessions/{session}/line_items".format(
session=util.sanitize_id(session)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_list_line_items")
def list_line_items(self, idempotency_key=None, **params):
return self._request(
"get",
"/v1/checkout/sessions/{session}/line_items".format(
session=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/country_spec.py 0000644 0001751 0000171 00000001231 14335240430 021654 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class CountrySpec(ListableAPIResource):
"""
Stripe needs to collect certain pieces of information about each account
created. These requirements can differ depending on the account's country. The
Country Specs API makes these rules available to your integration.
You can also view the information from this API call as [an online
guide](https://stripe.com/docs/connect/required-verification-information).
"""
OBJECT_NAME = "country_spec"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/coupon.py 0000644 0001751 0000171 00000002114 14335240430 020443 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Coupon(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A coupon contains information about a percent-off or amount-off discount you
might want to apply to a customer. Coupons may be applied to [subscriptions](https://stripe.com/docs/api#subscriptions), [invoices](https://stripe.com/docs/api#invoices),
[checkout sessions](https://stripe.com/docs/api/checkout/sessions), [quotes](https://stripe.com/docs/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge) or [payment intents](https://stripe.com/docs/api/payment_intents).
"""
OBJECT_NAME = "coupon"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/credit_note.py 0000644 0001751 0000171 00000003513 14335240430 021443 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class CreditNote(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
Issue a credit note to adjust an invoice's amount after the invoice is finalized.
Related guide: [Credit Notes](https://stripe.com/docs/billing/invoices/credit-notes).
"""
OBJECT_NAME = "credit_note"
@classmethod
def preview(
cls, api_key=None, stripe_version=None, stripe_account=None, **params
):
return cls._static_request(
"get",
"/v1/credit_notes/preview",
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@classmethod
def _cls_void_credit_note(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/credit_notes/{id}/void".format(id=util.sanitize_id(id)),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_void_credit_note")
def void_credit_note(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/credit_notes/{id}/void".format(
id=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/credit_note_line_item.py 0000644 0001751 0000171 00000000403 14335240430 023463 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.stripe_object import StripeObject
class CreditNoteLineItem(StripeObject):
OBJECT_NAME = "credit_note_line_item"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/customer.py 0000644 0001751 0000171 00000017357 14335240430 021020 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import APIResourceTestHelpers
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import SearchableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.abstract import nested_resource_class_methods
from stripe.api_resources.abstract import test_helpers
@test_helpers
@nested_resource_class_methods(
"balance_transaction",
operations=["create", "retrieve", "update", "list"],
)
@nested_resource_class_methods(
"cash_balance_transaction",
operations=["retrieve", "list"],
)
@nested_resource_class_methods(
"source",
operations=["create", "retrieve", "update", "delete", "list"],
)
@nested_resource_class_methods(
"tax_id",
operations=["create", "retrieve", "delete", "list"],
)
class Customer(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
SearchableAPIResource,
UpdateableAPIResource,
):
"""
This object represents a customer of your business. It lets you create recurring charges and track payments that belong to the same customer.
Related guide: [Save a card during payment](https://stripe.com/docs/payments/save-during-payment).
"""
OBJECT_NAME = "customer"
@classmethod
def _cls_create_funding_instructions(
cls,
customer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/customers/{customer}/funding_instructions".format(
customer=util.sanitize_id(customer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_create_funding_instructions")
def create_funding_instructions(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/customers/{customer}/funding_instructions".format(
customer=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_delete_discount(
cls,
customer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"delete",
"/v1/customers/{customer}/discount".format(
customer=util.sanitize_id(customer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_delete_discount")
def delete_discount(self, idempotency_key=None, **params):
return self._request(
"delete",
"/v1/customers/{customer}/discount".format(
customer=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_list_payment_methods(
cls,
customer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/customers/{customer}/payment_methods".format(
customer=util.sanitize_id(customer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_list_payment_methods")
def list_payment_methods(self, idempotency_key=None, **params):
return self._request(
"get",
"/v1/customers/{customer}/payment_methods".format(
customer=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_retrieve_payment_method(
cls,
customer,
payment_method,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/customers/{customer}/payment_methods/{payment_method}".format(
customer=util.sanitize_id(customer),
payment_method=util.sanitize_id(payment_method),
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_retrieve_payment_method")
def retrieve_payment_method(
self, payment_method, idempotency_key=None, **params
):
return self._request(
"get",
"/v1/customers/{customer}/payment_methods/{payment_method}".format(
customer=util.sanitize_id(self.get("id")),
payment_method=util.sanitize_id(payment_method),
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def search(cls, *args, **kwargs):
return cls._search(search_url="/v1/customers/search", *args, **kwargs)
@classmethod
def search_auto_paging_iter(cls, *args, **kwargs):
return cls.search(*args, **kwargs).auto_paging_iter()
@classmethod
def retrieve_cash_balance(
cls,
customer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/customers/{customer}/cash_balance".format(
customer=util.sanitize_id(customer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@classmethod
def modify_cash_balance(
cls,
customer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/customers/{customer}/cash_balance".format(
customer=util.sanitize_id(customer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
class TestHelpers(APIResourceTestHelpers):
@classmethod
def _cls_fund_cash_balance(
cls,
customer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/customers/{customer}/fund_cash_balance".format(
customer=util.sanitize_id(customer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_fund_cash_balance")
def fund_cash_balance(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/customers/{customer}/fund_cash_balance".format(
customer=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/customer_balance_transaction.py 0000644 0001751 0000171 00000003055 14335240430 025060 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import APIResource
from stripe.api_resources.customer import Customer
from stripe.six.moves.urllib.parse import quote_plus
class CustomerBalanceTransaction(APIResource):
"""
Each customer has a [`balance`](https://stripe.com/docs/api/customers/object#customer_object-balance) value,
which denotes a debit or credit that's automatically applied to their next invoice upon finalization.
You may modify the value directly by using the [update customer API](https://stripe.com/docs/api/customers/update),
or by creating a Customer Balance Transaction, which increments or decrements the customer's `balance` by the specified `amount`.
Related guide: [Customer Balance](https://stripe.com/docs/billing/customer/balance) to learn more.
"""
OBJECT_NAME = "customer_balance_transaction"
def instance_url(self):
token = util.utf8(self.id)
customer = util.utf8(self.customer)
base = Customer.class_url()
cust_extn = quote_plus(customer)
extn = quote_plus(token)
return "%s/%s/balance_transactions/%s" % (base, cust_extn, extn)
@classmethod
def retrieve(cls, id, api_key=None, **params):
raise NotImplementedError(
"Can't retrieve a Customer Balance Transaction without a Customer ID. "
"Use Customer.retrieve_customer_balance_transaction('cus_123', 'cbtxn_123')"
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/customer_cash_balance_transaction.py 0000644 0001751 0000171 00000001261 14335240430 026053 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class CustomerCashBalanceTransaction(ListableAPIResource):
"""
Customers with certain payments enabled have a cash balance, representing funds that were paid
by the customer to a merchant, but have not yet been allocated to a payment. Cash Balance Transactions
represent when funds are moved into or out of this balance. This includes funding by the customer, allocation
to payments, and refunds to the customer.
"""
OBJECT_NAME = "customer_cash_balance_transaction"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/dispute.py 0000644 0001751 0000171 00000003211 14335240430 020614 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Dispute(ListableAPIResource, UpdateableAPIResource):
"""
A dispute occurs when a customer questions your charge with their card issuer.
When this happens, you're given the opportunity to respond to the dispute with
evidence that shows that the charge is legitimate. You can find more
information about the dispute process in our [Disputes and
Fraud](https://stripe.com/docs/disputes) documentation.
Related guide: [Disputes and Fraud](https://stripe.com/docs/disputes).
"""
OBJECT_NAME = "dispute"
@classmethod
def _cls_close(
cls,
dispute,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/disputes/{dispute}/close".format(
dispute=util.sanitize_id(dispute)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_close")
def close(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/disputes/{dispute}/close".format(
dispute=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/ephemeral_key.py 0000644 0001751 0000171 00000002111 14335240430 021747 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import api_requestor
from stripe import util
from stripe.api_resources.abstract import DeletableAPIResource
class EphemeralKey(DeletableAPIResource):
OBJECT_NAME = "ephemeral_key"
@classmethod
def create(
cls,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
**params
):
if stripe_version is None:
raise ValueError(
"stripe_version must be specified to create an ephemeral "
"key"
)
requestor = api_requestor.APIRequestor(
api_key, api_version=stripe_version, account=stripe_account
)
url = cls.class_url()
headers = util.populate_headers(idempotency_key)
response, api_key = requestor.request("post", url, params, headers)
return util.convert_to_stripe_object(
response, api_key, stripe_version, stripe_account
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/error_object.py 0000644 0001751 0000171 00000003743 14335240430 021630 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe.util import merge_dicts
from stripe.stripe_object import StripeObject
class ErrorObject(StripeObject):
def refresh_from(
self,
values,
api_key=None,
partial=False,
stripe_version=None,
stripe_account=None,
last_response=None,
):
# Unlike most other API resources, the API will omit attributes in
# error objects when they have a null value. We manually set default
# values here to facilitate generic error handling.
values = merge_dicts(
{
"charge": None,
"code": None,
"decline_code": None,
"doc_url": None,
"message": None,
"param": None,
"payment_intent": None,
"payment_method": None,
"setup_intent": None,
"source": None,
"type": None,
},
values,
)
return super(ErrorObject, self).refresh_from(
values,
api_key,
partial,
stripe_version,
stripe_account,
last_response,
)
class OAuthErrorObject(StripeObject):
def refresh_from(
self,
values,
api_key=None,
partial=False,
stripe_version=None,
stripe_account=None,
last_response=None,
):
# Unlike most other API resources, the API will omit attributes in
# error objects when they have a null value. We manually set default
# values here to facilitate generic error handling.
values = merge_dicts(
{"error": None, "error_description": None}, values
)
return super(OAuthErrorObject, self).refresh_from(
values,
api_key,
partial,
stripe_version,
stripe_account,
last_response,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/event.py 0000644 0001751 0000171 00000004112 14335240430 020261 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class Event(ListableAPIResource):
"""
Events are our way of letting you know when something interesting happens in
your account. When an interesting event occurs, we create a new `Event`
object. For example, when a charge succeeds, we create a `charge.succeeded`
event; and when an invoice payment attempt fails, we create an
`invoice.payment_failed` event. Note that many API requests may cause multiple
events to be created. For example, if you create a new subscription for a
customer, you will receive both a `customer.subscription.created` event and a
`charge.succeeded` event.
Events occur when the state of another API resource changes. The state of that
resource at the time of the change is embedded in the event's data field. For
example, a `charge.succeeded` event will contain a charge, and an
`invoice.payment_failed` event will contain an invoice.
As with other API resources, you can use endpoints to retrieve an
[individual event](https://stripe.com/docs/api#retrieve_event) or a [list of events](https://stripe.com/docs/api#list_events)
from the API. We also have a separate
[webhooks](http://en.wikipedia.org/wiki/Webhook) system for sending the
`Event` objects directly to an endpoint on your server. Webhooks are managed
in your
[account settings](https://dashboard.stripe.com/account/webhooks),
and our [Using Webhooks](https://stripe.com/docs/webhooks) guide will help you get set up.
When using [Connect](https://stripe.com/docs/connect), you can also receive notifications of
events that occur in connected accounts. For these events, there will be an
additional `account` attribute in the received `Event` object.
**NOTE:** Right now, access to events through the [Retrieve Event API](https://stripe.com/docs/api#retrieve_event) is
guaranteed only for 30 days.
"""
OBJECT_NAME = "event"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/exchange_rate.py 0000644 0001751 0000171 00000001752 14335240430 021744 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class ExchangeRate(ListableAPIResource):
"""
`Exchange Rate` objects allow you to determine the rates that Stripe is
currently using to convert from one currency to another. Since this number is
variable throughout the day, there are various reasons why you might want to
know the current rate (for example, to dynamically price an item for a user
with a default payment in a foreign currency).
If you want a guarantee that the charge is made with a certain exchange rate
you expect is current, you can pass in `exchange_rate` to charges endpoints.
If the value is no longer up to date, the charge won't go through. Please
refer to our [Exchange Rates API](https://stripe.com/docs/exchange-rates) guide for more
details.
"""
OBJECT_NAME = "exchange_rate"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/file.py 0000644 0001751 0000171 00000004051 14335240430 020061 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
import stripe
from stripe import api_requestor
from stripe import util
from stripe.api_resources.abstract import ListableAPIResource
class File(ListableAPIResource):
"""
This is an object representing a file hosted on Stripe's servers. The
file may have been uploaded by yourself using the [create file](https://stripe.com/docs/api#create_file)
request (for example, when uploading dispute evidence) or it may have
been created by Stripe (for example, the results of a [Sigma scheduled
query](https://stripe.com/docs/api#scheduled_queries)).
Related guide: [File Upload Guide](https://stripe.com/docs/file-upload).
"""
OBJECT_NAME = "file"
# This resource can have two different object names. In latter API
# versions, only `file` is used, but since stripe-python may be used with
# any API version, we need to support deserializing the older
# `file_upload` object into the same class.
OBJECT_NAME_ALT = "file_upload"
@classmethod
def class_url(cls):
return "/v1/files"
@classmethod
def create(
# 'api_version' is deprecated, please use 'stripe_version'
cls,
api_key=None,
api_version=None,
stripe_version=None,
stripe_account=None,
**params
):
version = api_version or stripe_version
requestor = api_requestor.APIRequestor(
api_key,
api_base=stripe.upload_api_base,
api_version=version,
account=stripe_account,
)
url = cls.class_url()
supplied_headers = {"Content-Type": "multipart/form-data"}
response, api_key = requestor.request(
"post", url, params=params, headers=supplied_headers
)
return util.convert_to_stripe_object(
response, api_key, version, stripe_account
)
# For backwards compatibility, the `File` class is aliased to `FileUpload`.
FileUpload = File
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/file_link.py 0000644 0001751 0000171 00000001243 14335240430 021076 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class FileLink(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
To share the contents of a `File` object with non-Stripe users, you can
create a `FileLink`. `FileLink`s contain a URL that can be used to
retrieve the contents of the file without authentication.
"""
OBJECT_NAME = "file_link"
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4224155
stripe-5.0.0/stripe/api_resources/financial_connections/ 0000755 0001751 0000171 00000000000 14335240452 023122 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/financial_connections/__init__.py 0000644 0001751 0000171 00000000735 14335240430 025234 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.financial_connections.account import Account
from stripe.api_resources.financial_connections.account_owner import (
AccountOwner,
)
from stripe.api_resources.financial_connections.account_ownership import (
AccountOwnership,
)
from stripe.api_resources.financial_connections.session import Session
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/financial_connections/account.py 0000644 0001751 0000171 00000006226 14335240430 025132 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import ListableAPIResource
class Account(ListableAPIResource):
"""
A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access.
"""
OBJECT_NAME = "financial_connections.account"
@classmethod
def _cls_disconnect(
cls,
account,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/financial_connections/accounts/{account}/disconnect".format(
account=util.sanitize_id(account)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_disconnect")
def disconnect(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/financial_connections/accounts/{account}/disconnect".format(
account=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_list_owners(
cls,
account,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/financial_connections/accounts/{account}/owners".format(
account=util.sanitize_id(account)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_list_owners")
def list_owners(self, idempotency_key=None, **params):
return self._request(
"get",
"/v1/financial_connections/accounts/{account}/owners".format(
account=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_refresh_account(
cls,
account,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/financial_connections/accounts/{account}/refresh".format(
account=util.sanitize_id(account)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_refresh_account")
def refresh_account(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/financial_connections/accounts/{account}/refresh".format(
account=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/financial_connections/account_owner.py 0000644 0001751 0000171 00000000413 14335240430 026334 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.stripe_object import StripeObject
class AccountOwner(StripeObject):
OBJECT_NAME = "financial_connections.account_owner"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/financial_connections/account_ownership.py 0000644 0001751 0000171 00000000570 14335240430 027224 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.stripe_object import StripeObject
class AccountOwnership(StripeObject):
"""
Describes a snapshot of the owners of an account at a particular point in time.
"""
OBJECT_NAME = "financial_connections.account_ownership"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/financial_connections/session.py 0000644 0001751 0000171 00000000707 14335240430 025157 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
class Session(CreateableAPIResource):
"""
A Financial Connections Session is the secure way to programmatically launch the client-side Stripe.js modal that lets your users link their accounts.
"""
OBJECT_NAME = "financial_connections.session"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/funding_instructions.py 0000644 0001751 0000171 00000001371 14335240430 023422 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.stripe_object import StripeObject
class FundingInstructions(StripeObject):
"""
Each customer has a [`balance`](https://stripe.com/docs/api/customers/object#customer_object-balance) that is
automatically applied to future invoices and payments using the `customer_balance` payment method.
Customers can fund this balance by initiating a bank transfer to any account in the
`financial_addresses` field.
Related guide: [Customer Balance - Funding Instructions](https://stripe.com/docs/payments/customer-balance/funding-instructions) to learn more
"""
OBJECT_NAME = "funding_instructions"
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4224155
stripe-5.0.0/stripe/api_resources/identity/ 0000755 0001751 0000171 00000000000 14335240452 020425 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/identity/__init__.py 0000644 0001751 0000171 00000000507 14335240430 022534 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.identity.verification_report import (
VerificationReport,
)
from stripe.api_resources.identity.verification_session import (
VerificationSession,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/identity/verification_report.py 0000644 0001751 0000171 00000002156 14335240430 025054 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class VerificationReport(ListableAPIResource):
"""
A VerificationReport is the result of an attempt to collect and verify data from a user.
The collection of verification checks performed is determined from the `type` and `options`
parameters used. You can find the result of each verification check performed in the
appropriate sub-resource: `document`, `id_number`, `selfie`.
Each VerificationReport contains a copy of any data collected by the user as well as
reference IDs which can be used to access collected images through the [FileUpload](https://stripe.com/docs/api/files)
API. To configure and create VerificationReports, use the
[VerificationSession](https://stripe.com/docs/api/identity/verification_sessions) API.
Related guides: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results).
"""
OBJECT_NAME = "identity.verification_report"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/identity/verification_session.py 0000644 0001751 0000171 00000006011 14335240430 025216 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class VerificationSession(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A VerificationSession guides you through the process of collecting and verifying the identities
of your users. It contains details about the type of verification, such as what [verification
check](https://stripe.com/docs/identity/verification-checks) to perform. Only create one VerificationSession for
each verification in your system.
A VerificationSession transitions through [multiple
statuses](https://stripe.com/docs/identity/how-sessions-work) throughout its lifetime as it progresses through
the verification flow. The VerificationSession contains the user's verified data after
verification checks are complete.
Related guide: [The Verification Sessions API](https://stripe.com/docs/identity/verification-sessions)
"""
OBJECT_NAME = "identity.verification_session"
@classmethod
def _cls_cancel(
cls,
session,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/identity/verification_sessions/{session}/cancel".format(
session=util.sanitize_id(session)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/identity/verification_sessions/{session}/cancel".format(
session=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_redact(
cls,
session,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/identity/verification_sessions/{session}/redact".format(
session=util.sanitize_id(session)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_redact")
def redact(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/identity/verification_sessions/{session}/redact".format(
session=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/invoice.py 0000644 0001751 0000171 00000017475 14335240430 020614 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import SearchableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Invoice(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
SearchableAPIResource,
UpdateableAPIResource,
):
"""
Invoices are statements of amounts owed by a customer, and are either
generated one-off, or generated periodically from a subscription.
They contain [invoice items](https://stripe.com/docs/api#invoiceitems), and proration adjustments
that may be caused by subscription upgrades/downgrades (if necessary).
If your invoice is configured to be billed through automatic charges,
Stripe automatically finalizes your invoice and attempts payment. Note
that finalizing the invoice,
[when automatic](https://stripe.com/docs/billing/invoices/workflow/#auto_advance), does
not happen immediately as the invoice is created. Stripe waits
until one hour after the last webhook was successfully sent (or the last
webhook timed out after failing). If you (and the platforms you may have
connected to) have no webhooks configured, Stripe waits one hour after
creation to finalize the invoice.
If your invoice is configured to be billed by sending an email, then based on your
[email settings](https://dashboard.stripe.com/account/billing/automatic),
Stripe will email the invoice to your customer and await payment. These
emails can contain a link to a hosted page to pay the invoice.
Stripe applies any customer credit on the account before determining the
amount due for the invoice (i.e., the amount that will be actually
charged). If the amount due for the invoice is less than Stripe's [minimum allowed charge
per currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts), the
invoice is automatically marked paid, and we add the amount due to the
customer's credit balance which is applied to the next invoice.
More details on the customer's credit balance are
[here](https://stripe.com/docs/billing/customer/balance).
Related guide: [Send Invoices to Customers](https://stripe.com/docs/billing/invoices/sending).
"""
OBJECT_NAME = "invoice"
@classmethod
def _cls_finalize_invoice(
cls,
invoice,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/invoices/{invoice}/finalize".format(
invoice=util.sanitize_id(invoice)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_finalize_invoice")
def finalize_invoice(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/invoices/{invoice}/finalize".format(
invoice=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_mark_uncollectible(
cls,
invoice,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/invoices/{invoice}/mark_uncollectible".format(
invoice=util.sanitize_id(invoice)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_mark_uncollectible")
def mark_uncollectible(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/invoices/{invoice}/mark_uncollectible".format(
invoice=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_pay(
cls,
invoice,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/invoices/{invoice}/pay".format(
invoice=util.sanitize_id(invoice)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_pay")
def pay(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/invoices/{invoice}/pay".format(
invoice=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_send_invoice(
cls,
invoice,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/invoices/{invoice}/send".format(
invoice=util.sanitize_id(invoice)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_send_invoice")
def send_invoice(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/invoices/{invoice}/send".format(
invoice=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def upcoming(
cls, api_key=None, stripe_version=None, stripe_account=None, **params
):
return cls._static_request(
"get",
"/v1/invoices/upcoming",
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@classmethod
def upcoming_lines(
cls, api_key=None, stripe_version=None, stripe_account=None, **params
):
return cls._static_request(
"get",
"/v1/invoices/upcoming/lines",
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@classmethod
def _cls_void_invoice(
cls,
invoice,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/invoices/{invoice}/void".format(
invoice=util.sanitize_id(invoice)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_void_invoice")
def void_invoice(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/invoices/{invoice}/void".format(
invoice=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def search(cls, *args, **kwargs):
return cls._search(search_url="/v1/invoices/search", *args, **kwargs)
@classmethod
def search_auto_paging_iter(cls, *args, **kwargs):
return cls.search(*args, **kwargs).auto_paging_iter()
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/invoice_item.py 0000644 0001751 0000171 00000001760 14335240430 021620 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class InvoiceItem(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
Sometimes you want to add a charge or credit to a customer, but actually
charge or credit the customer's card only at the end of a regular billing
cycle. This is useful for combining several charges (to minimize
per-transaction fees), or for having Stripe tabulate your usage-based billing
totals.
Related guide: [Subscription Invoices](https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items).
"""
OBJECT_NAME = "invoiceitem"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/invoice_line_item.py 0000644 0001751 0000171 00000000364 14335240430 022626 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.stripe_object import StripeObject
class InvoiceLineItem(StripeObject):
OBJECT_NAME = "line_item"
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4224155
stripe-5.0.0/stripe/api_resources/issuing/ 0000755 0001751 0000171 00000000000 14335240452 020255 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/issuing/__init__.py 0000644 0001751 0000171 00000000702 14335240430 022361 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.issuing.authorization import Authorization
from stripe.api_resources.issuing.card import Card
from stripe.api_resources.issuing.cardholder import Cardholder
from stripe.api_resources.issuing.dispute import Dispute
from stripe.api_resources.issuing.transaction import Transaction
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/issuing/authorization.py 0000644 0001751 0000171 00000005121 14335240430 023522 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Authorization(ListableAPIResource, UpdateableAPIResource):
"""
When an [issued card](https://stripe.com/docs/issuing) is used to make a purchase, an Issuing `Authorization`
object is created. [Authorizations](https://stripe.com/docs/issuing/purchases/authorizations) must be approved for the
purchase to be completed successfully.
Related guide: [Issued Card Authorizations](https://stripe.com/docs/issuing/purchases/authorizations).
"""
OBJECT_NAME = "issuing.authorization"
@classmethod
def _cls_approve(
cls,
authorization,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/issuing/authorizations/{authorization}/approve".format(
authorization=util.sanitize_id(authorization)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_approve")
def approve(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/issuing/authorizations/{authorization}/approve".format(
authorization=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_decline(
cls,
authorization,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/issuing/authorizations/{authorization}/decline".format(
authorization=util.sanitize_id(authorization)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_decline")
def decline(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/issuing/authorizations/{authorization}/decline".format(
authorization=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/issuing/card.py 0000644 0001751 0000171 00000011466 14335240430 021544 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import APIResourceTestHelpers
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.abstract import test_helpers
@test_helpers
class Card(CreateableAPIResource, ListableAPIResource, UpdateableAPIResource):
"""
You can [create physical or virtual cards](https://stripe.com/docs/issuing/cards) that are issued to cardholders.
"""
OBJECT_NAME = "issuing.card"
class TestHelpers(APIResourceTestHelpers):
@classmethod
def _cls_deliver_card(
cls,
card,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/issuing/cards/{card}/shipping/deliver".format(
card=util.sanitize_id(card)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_deliver_card")
def deliver_card(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/issuing/cards/{card}/shipping/deliver".format(
card=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_fail_card(
cls,
card,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/issuing/cards/{card}/shipping/fail".format(
card=util.sanitize_id(card)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_fail_card")
def fail_card(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/issuing/cards/{card}/shipping/fail".format(
card=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_return_card(
cls,
card,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/issuing/cards/{card}/shipping/return".format(
card=util.sanitize_id(card)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_return_card")
def return_card(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/issuing/cards/{card}/shipping/return".format(
card=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_ship_card(
cls,
card,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/issuing/cards/{card}/shipping/ship".format(
card=util.sanitize_id(card)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_ship_card")
def ship_card(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/issuing/cards/{card}/shipping/ship".format(
card=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/issuing/cardholder.py 0000644 0001751 0000171 00000001316 14335240430 022733 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Cardholder(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards.
Related guide: [How to create a Cardholder](https://stripe.com/docs/issuing/cards#create-cardholder)
"""
OBJECT_NAME = "issuing.cardholder"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/issuing/dispute.py 0000644 0001751 0000171 00000003152 14335240430 022301 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Dispute(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
As a [card issuer](https://stripe.com/docs/issuing), you can dispute transactions that the cardholder does not recognize, suspects to be fraudulent, or has other issues with.
Related guide: [Disputing Transactions](https://stripe.com/docs/issuing/purchases/disputes)
"""
OBJECT_NAME = "issuing.dispute"
@classmethod
def _cls_submit(
cls,
dispute,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/issuing/disputes/{dispute}/submit".format(
dispute=util.sanitize_id(dispute)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_submit")
def submit(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/issuing/disputes/{dispute}/submit".format(
dispute=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/issuing/transaction.py 0000644 0001751 0000171 00000001304 14335240430 023146 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Transaction(ListableAPIResource, UpdateableAPIResource):
"""
Any use of an [issued card](https://stripe.com/docs/issuing) that results in funds entering or leaving
your Stripe account, such as a completed purchase or refund, is represented by an Issuing
`Transaction` object.
Related guide: [Issued Card Transactions](https://stripe.com/docs/issuing/purchases/transactions).
"""
OBJECT_NAME = "issuing.transaction"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/line_item.py 0000644 0001751 0000171 00000000412 14335240430 021104 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.stripe_object import StripeObject
class LineItem(StripeObject):
"""
A line item.
"""
OBJECT_NAME = "item"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/list_object.py 0000644 0001751 0000171 00000010627 14335240430 021451 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe import six, util
from stripe.stripe_object import StripeObject
from stripe.six.moves.urllib.parse import quote_plus
class ListObject(StripeObject):
OBJECT_NAME = "list"
def list(
self, api_key=None, stripe_version=None, stripe_account=None, **params
):
return self._request(
"get",
self.get("url"),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
def create(
self,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return self._request(
"post",
self.get("url"),
api_key=api_key,
idempotency_key=idempotency_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
def retrieve(
self,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
url = "%s/%s" % (self.get("url"), quote_plus(util.utf8(id)))
return self._request(
"get",
url,
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
def __getitem__(self, k):
if isinstance(k, six.string_types):
return super(ListObject, self).__getitem__(k)
else:
raise KeyError(
"You tried to access the %s index, but ListObject types only "
"support string keys. (HINT: List calls return an object with "
"a 'data' (which is the data array). You likely want to call "
".data[%s])" % (repr(k), repr(k))
)
def __iter__(self):
return getattr(self, "data", []).__iter__()
def __len__(self):
return getattr(self, "data", []).__len__()
def __reversed__(self):
return getattr(self, "data", []).__reversed__()
def auto_paging_iter(self):
page = self
while True:
if (
"ending_before" in self._retrieve_params
and "starting_after" not in self._retrieve_params
):
for item in reversed(page):
yield item
page = page.previous_page()
else:
for item in page:
yield item
page = page.next_page()
if page.is_empty:
break
@classmethod
def empty_list(
cls, api_key=None, stripe_version=None, stripe_account=None
):
return cls.construct_from(
{"data": []},
key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
last_response=None,
)
@property
def is_empty(self):
return not self.data
def next_page(
self, api_key=None, stripe_version=None, stripe_account=None, **params
):
if not self.has_more:
return self.empty_list(
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
)
last_id = self.data[-1].id
params_with_filters = self._retrieve_params.copy()
params_with_filters.update({"starting_after": last_id})
params_with_filters.update(params)
return self.list(
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
**params_with_filters
)
def previous_page(
self, api_key=None, stripe_version=None, stripe_account=None, **params
):
if not self.has_more:
return self.empty_list(
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
)
first_id = self.data[0].id
params_with_filters = self._retrieve_params.copy()
params_with_filters.update({"ending_before": first_id})
params_with_filters.update(params)
return self.list(
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
**params_with_filters
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/login_link.py 0000644 0001751 0000171 00000000357 14335240430 021274 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.stripe_object import StripeObject
class LoginLink(StripeObject):
OBJECT_NAME = "login_link"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/mandate.py 0000644 0001751 0000171 00000000546 14335240430 020560 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import APIResource
class Mandate(APIResource):
"""
A Mandate is a record of the permission a customer has given you to debit their payment method.
"""
OBJECT_NAME = "mandate"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/payment_intent.py 0000644 0001751 0000171 00000015526 14335240430 022211 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import SearchableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class PaymentIntent(
CreateableAPIResource,
ListableAPIResource,
SearchableAPIResource,
UpdateableAPIResource,
):
"""
A PaymentIntent guides you through the process of collecting a payment from your customer.
We recommend that you create exactly one PaymentIntent for each order or
customer session in your system. You can reference the PaymentIntent later to
see the history of payment attempts for a particular session.
A PaymentIntent transitions through
[multiple statuses](https://stripe.com/docs/payments/intents#intent-statuses)
throughout its lifetime as it interfaces with Stripe.js to perform
authentication flows and ultimately creates at most one successful charge.
Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents).
"""
OBJECT_NAME = "payment_intent"
@classmethod
def _cls_apply_customer_balance(
cls,
intent,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/payment_intents/{intent}/apply_customer_balance".format(
intent=util.sanitize_id(intent)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_apply_customer_balance")
def apply_customer_balance(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/payment_intents/{intent}/apply_customer_balance".format(
intent=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_cancel(
cls,
intent,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/payment_intents/{intent}/cancel".format(
intent=util.sanitize_id(intent)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/payment_intents/{intent}/cancel".format(
intent=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_capture(
cls,
intent,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/payment_intents/{intent}/capture".format(
intent=util.sanitize_id(intent)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_capture")
def capture(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/payment_intents/{intent}/capture".format(
intent=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_confirm(
cls,
intent,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/payment_intents/{intent}/confirm".format(
intent=util.sanitize_id(intent)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_confirm")
def confirm(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/payment_intents/{intent}/confirm".format(
intent=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_increment_authorization(
cls,
intent,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/payment_intents/{intent}/increment_authorization".format(
intent=util.sanitize_id(intent)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_increment_authorization")
def increment_authorization(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/payment_intents/{intent}/increment_authorization".format(
intent=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_verify_microdeposits(
cls,
intent,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/payment_intents/{intent}/verify_microdeposits".format(
intent=util.sanitize_id(intent)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_verify_microdeposits")
def verify_microdeposits(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/payment_intents/{intent}/verify_microdeposits".format(
intent=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def search(cls, *args, **kwargs):
return cls._search(
search_url="/v1/payment_intents/search", *args, **kwargs
)
@classmethod
def search_auto_paging_iter(cls, *args, **kwargs):
return cls.search(*args, **kwargs).auto_paging_iter()
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/payment_link.py 0000644 0001751 0000171 00000003673 14335240430 021645 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class PaymentLink(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A payment link is a shareable URL that will take your customers to a hosted payment page. A payment link can be shared and used multiple times.
When a customer opens a payment link it will open a new [checkout session](https://stripe.com/docs/api/checkout/sessions) to render the payment page. You can use [checkout session events](https://stripe.com/docs/api/events/types#event_types-checkout.session.completed) to track payments through payment links.
Related guide: [Payment Links API](https://stripe.com/docs/payments/payment-links/api)
"""
OBJECT_NAME = "payment_link"
@classmethod
def _cls_list_line_items(
cls,
payment_link,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/payment_links/{payment_link}/line_items".format(
payment_link=util.sanitize_id(payment_link)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_list_line_items")
def list_line_items(self, idempotency_key=None, **params):
return self._request(
"get",
"/v1/payment_links/{payment_link}/line_items".format(
payment_link=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/payment_method.py 0000644 0001751 0000171 00000005322 14335240430 022161 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class PaymentMethod(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
PaymentMethod objects represent your customer's payment instruments.
You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
Customer objects to store instrument details for future payments.
Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
"""
OBJECT_NAME = "payment_method"
@classmethod
def _cls_attach(
cls,
payment_method,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/payment_methods/{payment_method}/attach".format(
payment_method=util.sanitize_id(payment_method)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_attach")
def attach(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/payment_methods/{payment_method}/attach".format(
payment_method=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_detach(
cls,
payment_method,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/payment_methods/{payment_method}/detach".format(
payment_method=util.sanitize_id(payment_method)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_detach")
def detach(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/payment_methods/{payment_method}/detach".format(
payment_method=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/payout.py 0000644 0001751 0000171 00000005214 14335240430 020465 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Payout(
CreateableAPIResource, ListableAPIResource, UpdateableAPIResource
):
"""
A `Payout` object is created when you receive funds from Stripe, or when you
initiate a payout to either a bank account or debit card of a [connected
Stripe account](https://stripe.com/docs/connect/bank-debit-card-payouts). You can retrieve individual payouts,
as well as list all payouts. Payouts are made on [varying
schedules](https://stripe.com/docs/connect/manage-payout-schedule), depending on your country and
industry.
Related guide: [Receiving Payouts](https://stripe.com/docs/payouts).
"""
OBJECT_NAME = "payout"
@classmethod
def _cls_cancel(
cls,
payout,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/payouts/{payout}/cancel".format(
payout=util.sanitize_id(payout)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/payouts/{payout}/cancel".format(
payout=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_reverse(
cls,
payout,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/payouts/{payout}/reverse".format(
payout=util.sanitize_id(payout)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_reverse")
def reverse(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/payouts/{payout}/reverse".format(
payout=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/person.py 0000644 0001751 0000171 00000003614 14335240430 020454 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.account import Account
from stripe.six.moves.urllib.parse import quote_plus
class Person(UpdateableAPIResource):
"""
This is an object representing a person associated with a Stripe account.
A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform pre-filling and account onboarding steps.
Related guide: [Handling Identity Verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information).
"""
OBJECT_NAME = "person"
def instance_url(self):
token = util.utf8(self.id)
account = util.utf8(self.account)
base = Account.class_url()
acct_extn = quote_plus(account)
extn = quote_plus(token)
return "%s/%s/persons/%s" % (base, acct_extn, extn)
@classmethod
def modify(cls, sid, **params):
raise NotImplementedError(
"Can't modify a person without an account ID. "
"Use stripe.Account.modify_person('account_id', 'person_id', ...) "
"(see https://stripe.com/docs/api/persons/update)."
)
@classmethod
def retrieve(cls, id, api_key=None, **params):
raise NotImplementedError(
"Can't retrieve a person without an account ID. "
"Use stripe.Account.retrieve_person('account_id', 'person_id') "
"(see https://stripe.com/docs/api/persons/retrieve)."
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/plan.py 0000644 0001751 0000171 00000002751 14335240430 020101 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Plan(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/docs/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
Plans define the base price, currency, and billing cycle for recurring purchases of products.
[Products](https://stripe.com/docs/api#products) help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) and more about [products and prices](https://stripe.com/docs/products-prices/overview).
"""
OBJECT_NAME = "plan"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/price.py 0000644 0001751 0000171 00000003227 14335240430 020250 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import SearchableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Price(
CreateableAPIResource,
ListableAPIResource,
SearchableAPIResource,
UpdateableAPIResource,
):
"""
Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products.
[Products](https://stripe.com/docs/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.
Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription), [create an invoice](https://stripe.com/docs/billing/invoices/create), and more about [products and prices](https://stripe.com/docs/products-prices/overview).
"""
OBJECT_NAME = "price"
@classmethod
def search(cls, *args, **kwargs):
return cls._search(search_url="/v1/prices/search", *args, **kwargs)
@classmethod
def search_auto_paging_iter(cls, *args, **kwargs):
return cls.search(*args, **kwargs).auto_paging_iter()
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/product.py 0000644 0001751 0000171 00000003227 14335240430 020626 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import SearchableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Product(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
SearchableAPIResource,
UpdateableAPIResource,
):
"""
Products describe the specific goods or services you offer to your customers.
For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product.
They can be used in conjunction with [Prices](https://stripe.com/docs/api#prices) to configure pricing in Payment Links, Checkout, and Subscriptions.
Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription),
[share a Payment Link](https://stripe.com/docs/payments/payment-links/overview),
[accept payments with Checkout](https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront),
and more about [Products and Prices](https://stripe.com/docs/products-prices/overview)
"""
OBJECT_NAME = "product"
@classmethod
def search(cls, *args, **kwargs):
return cls._search(search_url="/v1/products/search", *args, **kwargs)
@classmethod
def search_auto_paging_iter(cls, *args, **kwargs):
return cls.search(*args, **kwargs).auto_paging_iter()
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/promotion_code.py 0000644 0001751 0000171 00000001215 14335240430 022161 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class PromotionCode(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A Promotion Code represents a customer-redeemable code for a [coupon](https://stripe.com/docs/api#coupons). It can be used to
create multiple codes for a single coupon.
"""
OBJECT_NAME = "promotion_code"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/quote.py 0000644 0001751 0000171 00000014224 14335240430 020302 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
import stripe
from stripe import api_requestor
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.six.moves.urllib.parse import quote_plus
class Quote(CreateableAPIResource, ListableAPIResource, UpdateableAPIResource):
"""
A Quote is a way to model prices that you'd like to provide to a customer.
Once accepted, it will automatically create an invoice, subscription or subscription schedule.
"""
OBJECT_NAME = "quote"
@classmethod
def _cls_accept(
cls,
quote,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/quotes/{quote}/accept".format(quote=util.sanitize_id(quote)),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_accept")
def accept(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/quotes/{quote}/accept".format(
quote=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_cancel(
cls,
quote,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/quotes/{quote}/cancel".format(quote=util.sanitize_id(quote)),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/quotes/{quote}/cancel".format(
quote=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_finalize_quote(
cls,
quote,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/quotes/{quote}/finalize".format(
quote=util.sanitize_id(quote)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_finalize_quote")
def finalize_quote(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/quotes/{quote}/finalize".format(
quote=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_list_computed_upfront_line_items(
cls,
quote,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/quotes/{quote}/computed_upfront_line_items".format(
quote=util.sanitize_id(quote)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_list_computed_upfront_line_items")
def list_computed_upfront_line_items(self, idempotency_key=None, **params):
return self._request(
"get",
"/v1/quotes/{quote}/computed_upfront_line_items".format(
quote=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_list_line_items(
cls,
quote,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/quotes/{quote}/line_items".format(
quote=util.sanitize_id(quote)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_list_line_items")
def list_line_items(self, idempotency_key=None, **params):
return self._request(
"get",
"/v1/quotes/{quote}/line_items".format(
quote=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_pdf(
cls,
sid,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
**params
):
url = "%s/%s/%s" % (
cls.class_url(),
quote_plus(util.utf8(sid)),
"pdf",
)
requestor = api_requestor.APIRequestor(
api_key,
api_base=stripe.upload_api_base,
api_version=stripe_version,
account=stripe_account,
)
headers = util.populate_headers(idempotency_key)
response, _ = requestor.request_stream("get", url, params, headers)
return response
@util.class_method_variant("_cls_pdf")
def pdf(
self,
api_key=None,
api_version=None,
stripe_version=None,
stripe_account=None,
**params
):
version = api_version or stripe_version
requestor = api_requestor.APIRequestor(
api_key,
api_base=stripe.upload_api_base,
api_version=version,
account=stripe_account,
)
url = self.instance_url() + "/pdf"
return requestor.request_stream("get", url, params=params)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4224155
stripe-5.0.0/stripe/api_resources/radar/ 0000755 0001751 0000171 00000000000 14335240452 017665 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/radar/__init__.py 0000644 0001751 0000171 00000000537 14335240430 021777 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.radar.early_fraud_warning import EarlyFraudWarning
from stripe.api_resources.radar.value_list import ValueList
from stripe.api_resources.radar.value_list_item import ValueListItem
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/radar/early_fraud_warning.py 0000644 0001751 0000171 00000001012 14335240430 024247 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class EarlyFraudWarning(ListableAPIResource):
"""
An early fraud warning indicates that the card issuer has notified us that a
charge may be fraudulent.
Related guide: [Early Fraud Warnings](https://stripe.com/docs/disputes/measuring#early-fraud-warnings).
"""
OBJECT_NAME = "radar.early_fraud_warning"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/radar/value_list.py 0000644 0001751 0000171 00000001362 14335240430 022404 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class ValueList(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
Value lists allow you to group values together which can then be referenced in rules.
Related guide: [Default Stripe Lists](https://stripe.com/docs/radar/lists#managing-list-items).
"""
OBJECT_NAME = "radar.value_list"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/radar/value_list_item.py 0000644 0001751 0000171 00000001271 14335240430 023421 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
class ValueListItem(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
):
"""
Value list items allow you to add specific values to a given Radar value list, which can then be used in rules.
Related guide: [Managing List Items](https://stripe.com/docs/radar/lists#managing-list-items).
"""
OBJECT_NAME = "radar.value_list_item"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/recipient_transfer.py 0000644 0001751 0000171 00000000417 14335240430 023032 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe.stripe_object import StripeObject
# This resource can only be instantiated when expanded on a BalanceTransaction
class RecipientTransfer(StripeObject):
OBJECT_NAME = "recipient_transfer"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/refund.py 0000644 0001751 0000171 00000005320 14335240430 020425 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import APIResourceTestHelpers
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.abstract import test_helpers
@test_helpers
class Refund(
CreateableAPIResource, ListableAPIResource, UpdateableAPIResource
):
"""
`Refund` objects allow you to refund a charge that has previously been created
but not yet refunded. Funds will be refunded to the credit or debit card that
was originally charged.
Related guide: [Refunds](https://stripe.com/docs/refunds).
"""
OBJECT_NAME = "refund"
@classmethod
def _cls_cancel(
cls,
refund,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/refunds/{refund}/cancel".format(
refund=util.sanitize_id(refund)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/refunds/{refund}/cancel".format(
refund=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
class TestHelpers(APIResourceTestHelpers):
@classmethod
def _cls_expire(
cls,
refund,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/refunds/{refund}/expire".format(
refund=util.sanitize_id(refund)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_expire")
def expire(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/refunds/{refund}/expire".format(
refund=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4224155
stripe-5.0.0/stripe/api_resources/reporting/ 0000755 0001751 0000171 00000000000 14335240452 020605 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/reporting/__init__.py 0000644 0001751 0000171 00000000423 14335240430 022711 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.reporting.report_run import ReportRun
from stripe.api_resources.reporting.report_type import ReportType
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/reporting/report_run.py 0000644 0001751 0000171 00000001731 14335240430 023354 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
class ReportRun(CreateableAPIResource, ListableAPIResource):
"""
The Report Run object represents an instance of a report type generated with
specific run parameters. Once the object is created, Stripe begins processing the report.
When the report has finished running, it will give you a reference to a file
where you can retrieve your results. For an overview, see
[API Access to Reports](https://stripe.com/docs/reporting/statements/api).
Note that certain report types can only be run based on your live-mode data (not test-mode
data), and will error when queried without a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).
"""
OBJECT_NAME = "reporting.report_run"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/reporting/report_type.py 0000644 0001751 0000171 00000001601 14335240430 023525 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class ReportType(ListableAPIResource):
"""
The Report Type resource corresponds to a particular type of report, such as
the "Activity summary" or "Itemized payouts" reports. These objects are
identified by an ID belonging to a set of enumerated values. See
[API Access to Reports documentation](https://stripe.com/docs/reporting/statements/api)
for those Report Type IDs, along with required and optional parameters.
Note that certain report types can only be run based on your live-mode data (not test-mode
data), and will error when queried without a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).
"""
OBJECT_NAME = "reporting.report_type"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/reversal.py 0000644 0001751 0000171 00000004207 14335240430 020770 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.transfer import Transfer
from stripe.six.moves.urllib.parse import quote_plus
class Reversal(UpdateableAPIResource):
"""
[Stripe Connect](https://stripe.com/docs/connect) platforms can reverse transfers made to a
connected account, either entirely or partially, and can also specify whether
to refund any related application fees. Transfer reversals add to the
platform's balance and subtract from the destination account's balance.
Reversing a transfer that was made for a [destination
charge](https://stripe.com/docs/connect/destination-charges) is allowed only up to the amount of
the charge. It is possible to reverse a
[transfer_group](https://stripe.com/docs/connect/charges-transfers#transfer-options)
transfer only if the destination account has enough balance to cover the
reversal.
Related guide: [Reversing Transfers](https://stripe.com/docs/connect/charges-transfers#reversing-transfers).
"""
OBJECT_NAME = "transfer_reversal"
def instance_url(self):
token = util.utf8(self.id)
transfer = util.utf8(self.transfer)
base = Transfer.class_url()
cust_extn = quote_plus(transfer)
extn = quote_plus(token)
return "%s/%s/reversals/%s" % (base, cust_extn, extn)
@classmethod
def modify(cls, sid, **params):
raise NotImplementedError(
"Can't modify a reversal without a transfer ID. "
"Use stripe.Transfer.modify_reversal('transfer_id', 'reversal_id', ...) "
"(see https://stripe.com/docs/api/transfer_reversals/update)."
)
@classmethod
def retrieve(cls, id, api_key=None, **params):
raise NotImplementedError(
"Can't retrieve a reversal without a transfer ID. "
"Use stripe.Transfer.retrieve_reversal('transfer_id', 'reversal_id') "
"(see https://stripe.com/docs/api/transfer_reversals/retrieve)."
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/review.py 0000644 0001751 0000171 00000002524 14335240430 020446 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import ListableAPIResource
class Review(ListableAPIResource):
"""
Reviews can be used to supplement automated fraud detection with human expertise.
Learn more about [Radar](https://stripe.com/radar) and reviewing payments
[here](https://stripe.com/docs/radar/reviews).
"""
OBJECT_NAME = "review"
@classmethod
def _cls_approve(
cls,
review,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/reviews/{review}/approve".format(
review=util.sanitize_id(review)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_approve")
def approve(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/reviews/{review}/approve".format(
review=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/search_result_object.py 0000644 0001751 0000171 00000004774 14335240430 023347 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe import six
from stripe.stripe_object import StripeObject
class SearchResultObject(StripeObject):
OBJECT_NAME = "search_result"
def search(
self, api_key=None, stripe_version=None, stripe_account=None, **params
):
return self._request(
"get",
self.get("url"),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
def __getitem__(self, k):
if isinstance(k, six.string_types):
return super(SearchResultObject, self).__getitem__(k)
else:
raise KeyError(
"You tried to access the %s index, but SearchResultObject types "
"only support string keys. (HINT: Search calls return an object "
"with a 'data' (which is the data array). You likely want to "
"call .data[%s])" % (repr(k), repr(k))
)
def __iter__(self):
return getattr(self, "data", []).__iter__()
def __len__(self):
return getattr(self, "data", []).__len__()
def auto_paging_iter(self):
page = self
while True:
for item in page:
yield item
page = page.next_search_result_page()
if page.is_empty:
break
@classmethod
def empty_search_result(
cls, api_key=None, stripe_version=None, stripe_account=None
):
return cls.construct_from(
{"data": [], "has_more": False, "next_page": None},
key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
last_response=None,
)
@property
def is_empty(self):
return not self.data
def next_search_result_page(
self, api_key=None, stripe_version=None, stripe_account=None, **params
):
if not self.has_more:
return self.empty_search_result(
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
)
params_with_filters = self._retrieve_params.copy()
params_with_filters.update({"page": self.next_page})
params_with_filters.update(params)
return self.search(
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
**params_with_filters
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/setup_attempt.py 0000644 0001751 0000171 00000001044 14335240430 022037 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class SetupAttempt(ListableAPIResource):
"""
A SetupAttempt describes one attempted confirmation of a SetupIntent,
whether that confirmation was successful or unsuccessful. You can use
SetupAttempts to inspect details of a specific attempt at setting up a
payment method using a SetupIntent.
"""
OBJECT_NAME = "setup_attempt"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/setup_intent.py 0000644 0001751 0000171 00000011646 14335240430 021673 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class SetupIntent(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
Later, you can use [PaymentIntents](https://stripe.com/docs/api#payment_intents) to drive the payment flow.
Create a SetupIntent as soon as you're ready to collect your customer's payment credentials.
Do not maintain long-lived, unconfirmed SetupIntents as they may no longer be valid.
The SetupIntent then transitions through multiple [statuses](https://stripe.com/docs/payments/intents#intent-statuses) as it guides
you through the setup process.
Successful SetupIntents result in payment credentials that are optimized for future payments.
For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) may need to be run through
[Strong Customer Authentication](https://stripe.com/docs/strong-customer-authentication) at the time of payment method collection
in order to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents).
If the SetupIntent is used with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer), upon success,
it will automatically attach the resulting payment method to that Customer.
We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
PaymentIntents to save payment methods in order to prevent saving invalid or unoptimized payment methods.
By using SetupIntents, you ensure that your customers experience the minimum set of required friction,
even as regulations change over time.
Related guide: [Setup Intents API](https://stripe.com/docs/payments/setup-intents).
"""
OBJECT_NAME = "setup_intent"
@classmethod
def _cls_cancel(
cls,
intent,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/setup_intents/{intent}/cancel".format(
intent=util.sanitize_id(intent)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/setup_intents/{intent}/cancel".format(
intent=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_confirm(
cls,
intent,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/setup_intents/{intent}/confirm".format(
intent=util.sanitize_id(intent)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_confirm")
def confirm(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/setup_intents/{intent}/confirm".format(
intent=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_verify_microdeposits(
cls,
intent,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/setup_intents/{intent}/verify_microdeposits".format(
intent=util.sanitize_id(intent)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_verify_microdeposits")
def verify_microdeposits(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/setup_intents/{intent}/verify_microdeposits".format(
intent=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/shipping_rate.py 0000644 0001751 0000171 00000001337 14335240430 022002 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class ShippingRate(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
Shipping rates describe the price of shipping presented to your customers and can be
applied to [Checkout Sessions](https://stripe.com/docs/payments/checkout/shipping)
and [Orders](https://stripe.com/docs/orders/shipping) to collect shipping costs.
"""
OBJECT_NAME = "shipping_rate"
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4224155
stripe-5.0.0/stripe/api_resources/sigma/ 0000755 0001751 0000171 00000000000 14335240452 017674 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/sigma/__init__.py 0000644 0001751 0000171 00000000336 14335240430 022003 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.sigma.scheduled_query_run import ScheduledQueryRun
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/sigma/scheduled_query_run.py 0000644 0001751 0000171 00000001245 14335240430 024315 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class ScheduledQueryRun(ListableAPIResource):
"""
If you have [scheduled a Sigma query](https://stripe.com/docs/sigma/scheduled-queries), you'll
receive a `sigma.scheduled_query_run.created` webhook each time the query
runs. The webhook contains a `ScheduledQueryRun` object, which you can use to
retrieve the query results.
"""
OBJECT_NAME = "scheduled_query_run"
@classmethod
def class_url(cls):
return "/v1/sigma/scheduled_query_runs"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/source.py 0000644 0001751 0000171 00000007223 14335240430 020446 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import error
from stripe import util
from stripe.api_resources import Customer
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.six.moves.urllib.parse import quote_plus
class Source(CreateableAPIResource, UpdateableAPIResource):
"""
`Source` objects allow you to accept a variety of payment methods. They
represent a customer's payment instrument, and can be used with the Stripe API
just like a `Card` object: once chargeable, they can be charged, or can be
attached to customers.
Stripe doesn't recommend using the deprecated [Sources API](https://stripe.com/docs/api/sources).
We recommend that you adopt the [PaymentMethods API](https://stripe.com/docs/api/payment_methods).
This newer API provides access to our latest features and payment method types.
Related guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers).
"""
OBJECT_NAME = "source"
@classmethod
def _cls_list_source_transactions(
cls,
source,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/sources/{source}/source_transactions".format(
source=util.sanitize_id(source)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_list_source_transactions")
def list_source_transactions(self, idempotency_key=None, **params):
return self._request(
"get",
"/v1/sources/{source}/source_transactions".format(
source=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_verify(
cls,
source,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/sources/{source}/verify".format(
source=util.sanitize_id(source)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_verify")
def verify(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/sources/{source}/verify".format(
source=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
def detach(self, idempotency_key=None, **params):
token = util.utf8(self.id)
if hasattr(self, "customer") and self.customer:
extn = quote_plus(token)
customer = util.utf8(self.customer)
base = Customer.class_url()
owner_extn = quote_plus(customer)
url = "%s/%s/sources/%s" % (base, owner_extn, extn)
headers = util.populate_headers(idempotency_key)
self.refresh_from(self.request("delete", url, params, headers))
return self
else:
raise error.InvalidRequestError(
"Source %s does not appear to be currently attached "
"to a customer object." % token,
"id",
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/source_transaction.py 0000644 0001751 0000171 00000001004 14335240430 023042 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.stripe_object import StripeObject
class SourceTransaction(StripeObject):
"""
Some payment methods have no required amount that a customer must send.
Customers can be instructed to send any amount, and it can be made up of
multiple transactions. As such, sources can have multiple associated
transactions.
"""
OBJECT_NAME = "source_transaction"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/subscription.py 0000644 0001751 0000171 00000006141 14335240430 021670 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import SearchableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Subscription(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
SearchableAPIResource,
UpdateableAPIResource,
):
"""
Subscriptions allow you to charge a customer on a recurring basis.
Related guide: [Creating Subscriptions](https://stripe.com/docs/billing/subscriptions/creating).
"""
OBJECT_NAME = "subscription"
@classmethod
def _cls_cancel(
cls,
subscription_exposed_id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"delete",
"/v1/subscriptions/{subscription_exposed_id}".format(
subscription_exposed_id=util.sanitize_id(
subscription_exposed_id
)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"delete",
"/v1/subscriptions/{subscription_exposed_id}".format(
subscription_exposed_id=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_delete_discount(
cls,
subscription_exposed_id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"delete",
"/v1/subscriptions/{subscription_exposed_id}/discount".format(
subscription_exposed_id=util.sanitize_id(
subscription_exposed_id
)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_delete_discount")
def delete_discount(self, idempotency_key=None, **params):
return self._request(
"delete",
"/v1/subscriptions/{subscription_exposed_id}/discount".format(
subscription_exposed_id=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def search(cls, *args, **kwargs):
return cls._search(
search_url="/v1/subscriptions/search", *args, **kwargs
)
@classmethod
def search_auto_paging_iter(cls, *args, **kwargs):
return cls.search(*args, **kwargs).auto_paging_iter()
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/subscription_item.py 0000644 0001751 0000171 00000001750 14335240430 022707 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.abstract import nested_resource_class_methods
@nested_resource_class_methods("usage_record", operations=["create"])
@nested_resource_class_methods(
"usage_record_summary",
operations=["list"],
resource_plural="usage_record_summaries",
)
class SubscriptionItem(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
Subscription items allow you to create customer subscriptions with more than
one plan, making it easy to represent complex billing relationships.
"""
OBJECT_NAME = "subscription_item"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/subscription_schedule.py 0000644 0001751 0000171 00000004752 14335240430 023552 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class SubscriptionSchedule(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A subscription schedule allows you to create and manage the lifecycle of a subscription by predefining expected changes.
Related guide: [Subscription Schedules](https://stripe.com/docs/billing/subscriptions/subscription-schedules).
"""
OBJECT_NAME = "subscription_schedule"
@classmethod
def _cls_cancel(
cls,
schedule,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/subscription_schedules/{schedule}/cancel".format(
schedule=util.sanitize_id(schedule)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/subscription_schedules/{schedule}/cancel".format(
schedule=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_release(
cls,
schedule,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/subscription_schedules/{schedule}/release".format(
schedule=util.sanitize_id(schedule)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_release")
def release(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/subscription_schedules/{schedule}/release".format(
schedule=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/tax_code.py 0000644 0001751 0000171 00000000575 14335240430 020737 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class TaxCode(ListableAPIResource):
"""
[Tax codes](https://stripe.com/docs/tax/tax-categories) classify goods and services for tax purposes.
"""
OBJECT_NAME = "tax_code"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/tax_id.py 0000644 0001751 0000171 00000002222 14335240430 020410 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import APIResource
from stripe.api_resources.customer import Customer
from stripe.six.moves.urllib.parse import quote_plus
class TaxId(APIResource):
"""
You can add one or multiple tax IDs to a [customer](https://stripe.com/docs/api/customers).
A customer's tax IDs are displayed on invoices and credit notes issued for the customer.
Related guide: [Customer Tax Identification Numbers](https://stripe.com/docs/billing/taxes/tax-ids).
"""
OBJECT_NAME = "tax_id"
def instance_url(self):
token = util.utf8(self.id)
customer = util.utf8(self.customer)
base = Customer.class_url()
cust_extn = quote_plus(customer)
extn = quote_plus(token)
return "%s/%s/tax_ids/%s" % (base, cust_extn, extn)
@classmethod
def retrieve(cls, id, api_key=None, **params):
raise NotImplementedError(
"Can't retrieve a tax id without a customer ID. Use customer.retrieve_tax_id('tax_id')"
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/tax_rate.py 0000644 0001751 0000171 00000001472 14335240430 020755 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class TaxRate(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
Related guide: [Tax Rates](https://stripe.com/docs/billing/taxes/tax-rates).
"""
OBJECT_NAME = "tax_rate"
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4264154
stripe-5.0.0/stripe/api_resources/terminal/ 0000755 0001751 0000171 00000000000 14335240452 020407 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/terminal/__init__.py 0000644 0001751 0000171 00000000626 14335240430 022520 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.terminal.configuration import Configuration
from stripe.api_resources.terminal.connection_token import ConnectionToken
from stripe.api_resources.terminal.location import Location
from stripe.api_resources.terminal.reader import Reader
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/terminal/configuration.py 0000644 0001751 0000171 00000001234 14335240430 023624 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Configuration(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A Configurations object represents how features should be configured for terminal readers.
"""
OBJECT_NAME = "terminal.configuration"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/terminal/connection_token.py 0000644 0001751 0000171 00000000734 14335240430 024320 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
class ConnectionToken(CreateableAPIResource):
"""
A Connection Token is used by the Stripe Terminal SDK to connect to a reader.
Related guide: [Fleet Management](https://stripe.com/docs/terminal/fleet/locations).
"""
OBJECT_NAME = "terminal.connection_token"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/terminal/location.py 0000644 0001751 0000171 00000001276 14335240430 022573 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Location(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A Location represents a grouping of readers.
Related guide: [Fleet Management](https://stripe.com/docs/terminal/fleet/locations).
"""
OBJECT_NAME = "terminal.location"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/terminal/reader.py 0000644 0001751 0000171 00000013167 14335240430 022227 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import APIResourceTestHelpers
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.abstract import test_helpers
@test_helpers
class Reader(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A Reader represents a physical device for accepting payment details.
Related guide: [Connecting to a Reader](https://stripe.com/docs/terminal/payments/connect-reader).
"""
OBJECT_NAME = "terminal.reader"
@classmethod
def _cls_cancel_action(
cls,
reader,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/terminal/readers/{reader}/cancel_action".format(
reader=util.sanitize_id(reader)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel_action")
def cancel_action(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/terminal/readers/{reader}/cancel_action".format(
reader=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_process_payment_intent(
cls,
reader,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/terminal/readers/{reader}/process_payment_intent".format(
reader=util.sanitize_id(reader)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_process_payment_intent")
def process_payment_intent(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/terminal/readers/{reader}/process_payment_intent".format(
reader=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_process_setup_intent(
cls,
reader,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/terminal/readers/{reader}/process_setup_intent".format(
reader=util.sanitize_id(reader)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_process_setup_intent")
def process_setup_intent(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/terminal/readers/{reader}/process_setup_intent".format(
reader=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_set_reader_display(
cls,
reader,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/terminal/readers/{reader}/set_reader_display".format(
reader=util.sanitize_id(reader)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_set_reader_display")
def set_reader_display(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/terminal/readers/{reader}/set_reader_display".format(
reader=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
class TestHelpers(APIResourceTestHelpers):
@classmethod
def _cls_present_payment_method(
cls,
reader,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/terminal/readers/{reader}/present_payment_method".format(
reader=util.sanitize_id(reader)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_present_payment_method")
def present_payment_method(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/terminal/readers/{reader}/present_payment_method".format(
reader=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4264154
stripe-5.0.0/stripe/api_resources/test_helpers/ 0000755 0001751 0000171 00000000000 14335240452 021275 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/test_helpers/__init__.py 0000644 0001751 0000171 00000000324 14335240430 023401 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.test_helpers.test_clock import TestClock
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/test_helpers/test_clock.py 0000644 0001751 0000171 00000003527 14335240430 024004 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
class TestClock(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
):
"""
A test clock enables deterministic control over objects in testmode. With a test clock, you can create
objects at a frozen time in the past or future, and advance to a specific future time to observe webhooks and state changes. After the clock advances,
you can either validate the current state of your scenario (and test your assumptions), change the current state of your scenario (and test more complex scenarios), or keep advancing forward in time.
"""
OBJECT_NAME = "test_helpers.test_clock"
@classmethod
def _cls_advance(
cls,
test_clock,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/test_clocks/{test_clock}/advance".format(
test_clock=util.sanitize_id(test_clock)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_advance")
def advance(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/test_helpers/test_clocks/{test_clock}/advance".format(
test_clock=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/token.py 0000644 0001751 0000171 00000003461 14335240430 020266 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
class Token(CreateableAPIResource):
"""
Tokenization is the process Stripe uses to collect sensitive card or bank
account details, or personally identifiable information (PII), directly from
your customers in a secure manner. A token representing this information is
returned to your server to use. You should use our
[recommended payments integrations](https://stripe.com/docs/payments) to perform this process
client-side. This ensures that no sensitive card data touches your server,
and allows your integration to operate in a PCI-compliant way.
If you cannot use client-side tokenization, you can also create tokens using
the API with either your publishable or secret API key. Keep in mind that if
your integration uses this method, you are responsible for any PCI compliance
that may be required, and you must keep your secret API key safe. Unlike with
client-side tokenization, your customer's information is not sent directly to
Stripe, so we cannot determine how it is handled or stored.
Tokens cannot be stored or used more than once. To store card or bank account
information for later use, you can create [Customer](https://stripe.com/docs/api#customers)
objects or [Custom accounts](https://stripe.com/docs/api#external_accounts). Note that
[Radar](https://stripe.com/docs/radar), our integrated solution for automatic fraud protection,
performs best with integrations that use client-side tokenization.
Related guide: [Accept a payment](https://stripe.com/docs/payments/accept-a-payment-charges#web-create-token)
"""
OBJECT_NAME = "token"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/topup.py 0000644 0001751 0000171 00000003026 14335240430 020312 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class Topup(CreateableAPIResource, ListableAPIResource, UpdateableAPIResource):
"""
To top up your Stripe balance, you create a top-up object. You can retrieve
individual top-ups, as well as list all top-ups. Top-ups are identified by a
unique, random ID.
Related guide: [Topping Up your Platform Account](https://stripe.com/docs/connect/top-ups).
"""
OBJECT_NAME = "topup"
@classmethod
def _cls_cancel(
cls,
topup,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/topups/{topup}/cancel".format(topup=util.sanitize_id(topup)),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/topups/{topup}/cancel".format(
topup=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/transfer.py 0000644 0001751 0000171 00000002342 14335240430 020767 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.abstract import nested_resource_class_methods
@nested_resource_class_methods(
"reversal",
operations=["create", "retrieve", "update", "list"],
)
class Transfer(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
A `Transfer` object is created when you move funds between Stripe accounts as
part of Connect.
Before April 6, 2017, transfers also represented movement of funds from a
Stripe account to a card or bank account. This behavior has since been split
out into a [Payout](https://stripe.com/docs/api#payout_object) object, with corresponding payout endpoints. For more
information, read about the
[transfer/payout split](https://stripe.com/docs/transfer-payout-split).
Related guide: [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/charges-transfers).
"""
OBJECT_NAME = "transfer"
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4264154
stripe-5.0.0/stripe/api_resources/treasury/ 0000755 0001751 0000171 00000000000 14335240452 020452 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/__init__.py 0000644 0001751 0000171 00000001560 14335240430 022561 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
# flake8: noqa
from stripe.api_resources.treasury.credit_reversal import CreditReversal
from stripe.api_resources.treasury.debit_reversal import DebitReversal
from stripe.api_resources.treasury.financial_account import FinancialAccount
from stripe.api_resources.treasury.inbound_transfer import InboundTransfer
from stripe.api_resources.treasury.outbound_payment import OutboundPayment
from stripe.api_resources.treasury.outbound_transfer import OutboundTransfer
from stripe.api_resources.treasury.received_credit import ReceivedCredit
from stripe.api_resources.treasury.received_debit import ReceivedDebit
from stripe.api_resources.treasury.transaction import Transaction
from stripe.api_resources.treasury.transaction_entry import TransactionEntry
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/credit_reversal.py 0000644 0001751 0000171 00000001142 14335240430 024173 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
class CreditReversal(CreateableAPIResource, ListableAPIResource):
"""
You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal.
"""
OBJECT_NAME = "treasury.credit_reversal"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/debit_reversal.py 0000644 0001751 0000171 00000001134 14335240430 024011 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
class DebitReversal(CreateableAPIResource, ListableAPIResource):
"""
You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal.
"""
OBJECT_NAME = "treasury.debit_reversal"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/financial_account.py 0000644 0001751 0000171 00000005232 14335240430 024462 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class FinancialAccount(
CreateableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance.
FinancialAccounts serve as the source and destination of Treasury's money movement APIs.
"""
OBJECT_NAME = "treasury.financial_account"
@classmethod
def _cls_retrieve_features(
cls,
financial_account,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"get",
"/v1/treasury/financial_accounts/{financial_account}/features".format(
financial_account=util.sanitize_id(financial_account)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_retrieve_features")
def retrieve_features(self, idempotency_key=None, **params):
return self._request(
"get",
"/v1/treasury/financial_accounts/{financial_account}/features".format(
financial_account=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_update_features(
cls,
financial_account,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/treasury/financial_accounts/{financial_account}/features".format(
financial_account=util.sanitize_id(financial_account)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_update_features")
def update_features(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/treasury/financial_accounts/{financial_account}/features".format(
financial_account=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/inbound_transfer.py 0000644 0001751 0000171 00000011514 14335240430 024364 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import APIResourceTestHelpers
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import test_helpers
@test_helpers
class InboundTransfer(CreateableAPIResource, ListableAPIResource):
"""
Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
"""
OBJECT_NAME = "treasury.inbound_transfer"
@classmethod
def _cls_cancel(
cls,
inbound_transfer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/treasury/inbound_transfers/{inbound_transfer}/cancel".format(
inbound_transfer=util.sanitize_id(inbound_transfer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/treasury/inbound_transfers/{inbound_transfer}/cancel".format(
inbound_transfer=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
class TestHelpers(APIResourceTestHelpers):
@classmethod
def _cls_fail(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/inbound_transfers/{id}/fail".format(
id=util.sanitize_id(id)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_fail")
def fail(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/treasury/inbound_transfers/{id}/fail".format(
id=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_return_inbound_transfer(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/inbound_transfers/{id}/return".format(
id=util.sanitize_id(id)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_return_inbound_transfer")
def return_inbound_transfer(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/treasury/inbound_transfers/{id}/return".format(
id=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_succeed(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/inbound_transfers/{id}/succeed".format(
id=util.sanitize_id(id)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_succeed")
def succeed(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/treasury/inbound_transfers/{id}/succeed".format(
id=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/outbound_payment.py 0000644 0001751 0000171 00000011602 14335240430 024414 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import APIResourceTestHelpers
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import test_helpers
@test_helpers
class OutboundPayment(CreateableAPIResource, ListableAPIResource):
"""
Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
"""
OBJECT_NAME = "treasury.outbound_payment"
@classmethod
def _cls_cancel(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/treasury/outbound_payments/{id}/cancel".format(
id=util.sanitize_id(id)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/treasury/outbound_payments/{id}/cancel".format(
id=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
class TestHelpers(APIResourceTestHelpers):
@classmethod
def _cls_fail(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/outbound_payments/{id}/fail".format(
id=util.sanitize_id(id)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_fail")
def fail(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/treasury/outbound_payments/{id}/fail".format(
id=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_post(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/outbound_payments/{id}/post".format(
id=util.sanitize_id(id)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_post")
def post(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/treasury/outbound_payments/{id}/post".format(
id=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_return_outbound_payment(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/outbound_payments/{id}/return".format(
id=util.sanitize_id(id)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_return_outbound_payment")
def return_outbound_payment(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/treasury/outbound_payments/{id}/return".format(
id=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/outbound_transfer.py 0000644 0001751 0000171 00000012546 14335240430 024573 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import APIResourceTestHelpers
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import test_helpers
@test_helpers
class OutboundTransfer(CreateableAPIResource, ListableAPIResource):
"""
Use OutboundTransfers to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.
"""
OBJECT_NAME = "treasury.outbound_transfer"
@classmethod
def _cls_cancel(
cls,
outbound_transfer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel".format(
outbound_transfer=util.sanitize_id(outbound_transfer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_cancel")
def cancel(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel".format(
outbound_transfer=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
class TestHelpers(APIResourceTestHelpers):
@classmethod
def _cls_fail(
cls,
outbound_transfer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail".format(
outbound_transfer=util.sanitize_id(outbound_transfer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_fail")
def fail(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail".format(
outbound_transfer=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_post(
cls,
outbound_transfer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post".format(
outbound_transfer=util.sanitize_id(outbound_transfer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_post")
def post(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post".format(
outbound_transfer=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
@classmethod
def _cls_return_outbound_transfer(
cls,
outbound_transfer,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return".format(
outbound_transfer=util.sanitize_id(outbound_transfer)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_return_outbound_transfer")
def return_outbound_transfer(self, idempotency_key=None, **params):
return self.resource._request(
"post",
"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return".format(
outbound_transfer=util.sanitize_id(self.resource.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/received_credit.py 0000644 0001751 0000171 00000002224 14335240430 024140 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import APIResourceTestHelpers
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import test_helpers
@test_helpers
class ReceivedCredit(ListableAPIResource):
"""
ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount.
"""
OBJECT_NAME = "treasury.received_credit"
class TestHelpers(APIResourceTestHelpers):
@classmethod
def create(
cls,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/received_credits",
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/received_debit.py 0000644 0001751 0000171 00000002145 14335240430 023757 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import APIResourceTestHelpers
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import test_helpers
@test_helpers
class ReceivedDebit(ListableAPIResource):
"""
ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount.
"""
OBJECT_NAME = "treasury.received_debit"
class TestHelpers(APIResourceTestHelpers):
@classmethod
def create(
cls,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/test_helpers/treasury/received_debits",
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/transaction.py 0000644 0001751 0000171 00000000631 14335240430 023345 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class Transaction(ListableAPIResource):
"""
Transactions represent changes to a [FinancialAccount's](https://stripe.com/docs/api#financial_accounts) balance.
"""
OBJECT_NAME = "treasury.transaction"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/treasury/transaction_entry.py 0000644 0001751 0000171 00000001030 14335240430 024560 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import ListableAPIResource
class TransactionEntry(ListableAPIResource):
"""
TransactionEntries represent individual units of money movements within a single [Transaction](https://stripe.com/docs/api#transactions).
"""
OBJECT_NAME = "treasury.transaction_entry"
@classmethod
def class_url(cls):
return "/v1/treasury/transaction_entries"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/usage_record.py 0000644 0001751 0000171 00000002507 14335240430 021610 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import api_requestor, util
from stripe.api_resources.abstract import APIResource
class UsageRecord(APIResource):
"""
Usage records allow you to report customer usage and metrics to Stripe for
metered billing of subscription prices.
Related guide: [Metered Billing](https://stripe.com/docs/billing/subscriptions/metered-billing).
"""
OBJECT_NAME = "usage_record"
@classmethod
def create(
cls,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
**params
):
if "subscription_item" not in params:
raise ValueError("Params must have a subscription_item key")
subscription_item = params.pop("subscription_item")
requestor = api_requestor.APIRequestor(
api_key, api_version=stripe_version, account=stripe_account
)
url = "/v1/subscription_items/%s/usage_records" % subscription_item
headers = util.populate_headers(idempotency_key)
response, api_key = requestor.request("post", url, params, headers)
return util.convert_to_stripe_object(
response, api_key, stripe_version, stripe_account
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/usage_record_summary.py 0000644 0001751 0000171 00000000402 14335240430 023355 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.stripe_object import StripeObject
class UsageRecordSummary(StripeObject):
OBJECT_NAME = "usage_record_summary"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_resources/webhook_endpoint.py 0000644 0001751 0000171 00000001773 14335240430 022510 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import DeletableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
class WebhookEndpoint(
CreateableAPIResource,
DeletableAPIResource,
ListableAPIResource,
UpdateableAPIResource,
):
"""
You can configure [webhook endpoints](https://stripe.com/docs/webhooks/) via the API to be
notified about events that happen in your Stripe account or connected
accounts.
Most users configure webhooks from [the dashboard](https://dashboard.stripe.com/webhooks), which provides a user interface for registering and testing your webhook endpoints.
Related guide: [Setting up Webhooks](https://stripe.com/docs/webhooks/configure).
"""
OBJECT_NAME = "webhook_endpoint"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/api_version.py 0000644 0001751 0000171 00000000157 14335240430 016620 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
CURRENT = "2022-11-15"
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4264154
stripe-5.0.0/stripe/data/ 0000755 0001751 0000171 00000000000 14335240452 014642 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/data/ca-certificates.crt 0000644 0001751 0000171 00000644470 14335240430 020415 0 ustar 00runner docker ##
## Bundle of CA Root Certificates
##
## Certificate data from Mozilla as of: Tue Apr 26 03:12:05 2022 GMT
##
## This is a bundle of X.509 certificates of public Certificate Authorities
## (CA). These were automatically extracted from Mozilla's root certificates
## file (certdata.txt). This file can be found in the mozilla source tree:
## https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
##
## It contains the certificates in PEM format and therefore
## can be directly used with curl / libcurl / php_curl, or with
## an Apache+mod_ssl webserver for SSL client authentication.
## Just configure this file as the SSLCACertificateFile.
##
## Conversion done with mk-ca-bundle.pl version 1.29.
## SHA256: 34a54d5191775c1bd37be6cfd3f09e831e072555dc3a2e51f4a2c4b0f8ada5cc
##
GlobalSign Root CA
==================
-----BEGIN CERTIFICATE-----
MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkGA1UEBhMCQkUx
GTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jvb3QgQ0ExGzAZBgNVBAMTEkds
b2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAwMDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNV
BAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYD
VQQDExJHbG9iYWxTaWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDa
DuaZjc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavpxy0Sy6sc
THAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp1Wrjsok6Vjk4bwY8iGlb
Kk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdGsnUOhugZitVtbNV4FpWi6cgKOOvyJBNP
c1STE4U6G7weNLWLBYy5d4ux2x8gkasJU26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrX
gzT/LCrBbBlDSgeF59N89iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV
HRMBAf8EBTADAQH/MB0GA1UdDgQWBBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0BAQUF
AAOCAQEA1nPnfE920I2/7LqivjTFKDK1fPxsnCwrvQmeU79rXqoRSLblCKOzyj1hTdNGCbM+w6Dj
Y1Ub8rrvrTnhQ7k4o+YviiY776BQVvnGCv04zcQLcFGUl5gE38NflNUVyRRBnMRddWQVDf9VMOyG
j/8N7yy5Y0b2qvzfvGn9LhJIZJrglfCm7ymPAbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhH
hm4qxFYxldBniYUr+WymXUadDKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveC
X4XSQRjbgbMEHMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A==
-----END CERTIFICATE-----
Entrust.net Premium 2048 Secure Server CA
=========================================
-----BEGIN CERTIFICATE-----
MIIEKjCCAxKgAwIBAgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChMLRW50cnVzdC5u
ZXQxQDA+BgNVBAsUN3d3dy5lbnRydXN0Lm5ldC9DUFNfMjA0OCBpbmNvcnAuIGJ5IHJlZi4gKGxp
bWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNV
BAMTKkVudHJ1c3QubmV0IENlcnRpZmljYXRpb24gQXV0aG9yaXR5ICgyMDQ4KTAeFw05OTEyMjQx
NzUwNTFaFw0yOTA3MjQxNDE1MTJaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFAMD4GA1UECxQ3
d3d3LmVudHJ1c3QubmV0L0NQU18yMDQ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bWsa
Y71k5h+3zvDyny67G7fyUIhzksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9H
RCwBXbsdtTLSR9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp
-----END CERTIFICATE-----
Entrust Root Certification Authority
====================================
-----BEGIN CERTIFICATE-----
MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMCVVMxFjAUBgNV
BAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0Lm5ldC9DUFMgaXMgaW5jb3Jw
b3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMWKGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsG
A1UEAxMkRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA2MTEyNzIwMjM0
MloXDTI2MTEyNzIwNTM0MlowgbAxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMu
MTkwNwYDVQQLEzB3d3cuZW50cnVzdC5uZXQvQ1BTIGlzIGluY29ycG9yYXRlZCBieSByZWZlcmVu
Y2UxHzAdBgNVBAsTFihjKSAyMDA2IEVudHJ1c3QsIEluYy4xLTArBgNVBAMTJEVudHJ1c3QgUm9v
dCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
ALaVtkNC+sZtKm9I35RMOVcF7sN5EUFoNu3s/poBj6E4KPz3EEZmLk0eGrEaTsbRwJWIsMn/MYsz
A9u3g3s+IIRe7bJWKKf44LlAcTfFy0cOlypowCKVYhXbR9n10Cv/gkvJrT7eTNuQgFA/CYqEAOww
Cj0Yzfv9KlmaI5UXLEWeH25DeW0MXJj+SKfFI0dcXv1u5x609mhF0YaDW6KKjbHjKYD+JXGIrb68
j6xSlkuqUY3kEzEZ6E5Nn9uss2rVvDlUccp6en+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d/s7j2G4aSgWQgRecCocIdiP4b0jWy10QJLZYxkNc91p
vGJHvOB0K7Lrfb5BG7XARsWhIstfTsEokt4YutUqKLsRixeTmJlglFwjz1onl14LBQaTNx47aTbr
qZ5hHY8y2o4M1nQ+ewkk2gF3R8Q7zTSMmfXK4SVhM7JZG+Ju1zdXtg2pEto=
-----END CERTIFICATE-----
Security Communication Root CA
==============================
-----BEGIN CERTIFICATE-----
MIIDWjCCAkKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP
U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw
HhcNMDMwOTMwMDQyMDQ5WhcNMjMwOTMwMDQyMDQ5WjBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP
U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzs/5/022x7xZ8V6UMbXaKL0u/ZPtM7orw
8yl89f/uKuDp6bpbZCKamm8sOiZpUQWZJtzVHGpxxpp9Hp3dfGzGjGdnSj74cbAZJ6kJDKaVv0uM
DPpVmDvY6CKhS3E4eayXkmmziX7qIWgGmBSWh9JhNrxtJ1aeV+7AwFb9Ms+k2Y7CI9eNqPPYJayX
5HA49LY6tJ07lyZDo6G8SVlyTCMwhwFY9k6+HGhWZq/NQV3Is00qVUarH9oe4kA92819uZKAnDfd
DJZkndwi92SL32HeFZRSFaB9UslLqCHJxrHty8OVYNEP8Ktw+N/LTX7s1vqr2b1/VPKl6Xn62dZ2
JChzAgMBAAGjPzA9MB0GA1UdDgQWBBSgc0mZaNyFW2XjmygvV5+9M7wHSDALBgNVHQ8EBAMCAQYw
DwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAaECpqLvkT115swW1F7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AhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5CufReYNnyicsbkqWletNw+vHX/b
vZ8=
-----END CERTIFICATE-----
Starfield Class 2 CA
====================
-----BEGIN CERTIFICATE-----
MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJVUzElMCMGA1UEChMc
U3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMpU3RhcmZpZWxkIENsYXNzIDIg
Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQwNjI5MTczOTE2WhcNMzQwNjI5MTczOTE2WjBo
MQswCQYDVQQGEwJVUzElMCMGA1UEChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAG
A1UECxMpU3RhcmZpZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEgMA0GCSqG
SIb3DQEBAQUAA4IBDQAwggEIAoIBAQC3Msj+6XGmBIWtDBFk385N78gDGIc/oav7PKaf8MOh2tTY
bitTkPskpD6E8J7oX+zlJ0T1KKY/e97gKvDIr1MvnsoFAZMej2YcOadN+lq2cwQlZut3f+dZxkqZ
JRRU6ybH838Z1TBwj6+wRir/resp7defqgSHo9T5iaU0X9tDkYI22WY8sbi5gv2cOj4QyDvvBmVm
epsZGD3/cVE8MC5fvj13c7JdBmzDI1aaK4UmkhynArPkPw2vCHmCuDY96pzTNbO8acr1zJ3o/WSN
F4Azbl5KXZnJHoe0nRrA1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HF
MIHCMB0GA1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fRzt0f
hvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNo
bm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBDbGFzcyAyIENlcnRpZmljYXRpb24g
QXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGs
afPzWdqbAYcaT1epoXkJKtv3L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLM
PUxA2IGvd56Deruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl
xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynpVSJYACPq4xJD
KVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEYWQPJIrSPnNVeKtelttQKbfi3
QBFGmh95DmK/D5fs4C8fF5Q=
-----END CERTIFICATE-----
DigiCert Assured ID Root CA
===========================
-----BEGIN CERTIFICATE-----
MIIDtzCCAp+gAwIBAgIQDOfg5RfYRv6P5WD8G/AwOTANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQG
EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw
IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0EwHhcNMDYxMTEwMDAwMDAwWhcNMzEx
MTEwMDAwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL
ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0Ew
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtDhXO5EOAXLGH87dg+XESpa7cJpSIqvTO
9SA5KFhgDPiA2qkVlTJhPLWxKISKityfCgyDF3qPkKyK53lTXDGEKvYPmDI2dsze3Tyoou9q+yHy
UmHfnyDXH+Kx2f4YZNISW1/5WBg1vEfNoTb5a3/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
dy5kaWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IENBMIIBIjANBgkq
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4jvhEXLeqKTTo1eqUKKPC3eQyaKl7hLOllsBCSDMAZOn
TjC3U/dDxGkAV53ijSLdhwZAAIEJzs4bg7/fzTtxRuLWZscFs3YnFo97nh6Vfe63SKMI2tavegw5
BmV/Sl0fvBf4q77uKNd0f3p4mVmFaG5cIzJLv07A6Fpt43C/dxC//AH2hdmoRBBYMql1GNXRor5H
4idq9Joz+EkIYIvUX7Q6hL+hqkpMfT7PT19sdl6gSzeRntwi5m3OFBqOasv+zbMUZBfHWymeMr/y
7vrTC0LUq7dBMtoM1O/4gdW7jVg/tRvoSSiicNoxBN33shbyTApOB6jtSj1etX+jkMOvJwIDAQAB
o2MwYTAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUA95QNVbRTLtm
8KPiGxvDl7I90VUwHwYDVR0jBBgwFoAUA95QNVbRTLtm8KPiGxvDl7I90VUwDQYJKoZIhvcNAQEF
BQADggEBAMucN6pIExIK+t1EnE9SsPTfrgT1eXkIoyQY/EsrhMAtudXH/vTBH1jLuG2cenTnmCmr
EbXjcKChzUyImZOMkXDiqw8cvpOp/2PV5Adg06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIt
tep3Sp+dWOIrWcBAI+0tKIJFPnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886
UAb3LujEV0lsYSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk
CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4=
-----END CERTIFICATE-----
DigiCert High Assurance EV Root CA
==================================
-----BEGIN CERTIFICATE-----
MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBg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DAEEwCwYDVR0PBAQDAgGGMA8GA1Ud
EwEB/wQFMAMBAf8wHQYDVR0OBBYEFK9EBMJBfkiD2045AuzshHrmzsmkMDQGA1UdHwQtMCswKaAn
oCWGI2h0dHA6Ly9jcmwuc2VjdXJldHJ1c3QuY29tL1NHQ0EuY3JsMBAGCSsGAQQBgjcVAQQDAgEA
MA0GCSqGSIb3DQEBBQUAA4IBAQBjGghAfaReUw132HquHw0LURYD7xh8yOOvaliTFGCRsoTciE6+
OYo68+aCiV0BN7OrJKQVDpI1WkpEXk5X+nXOH0jOZvQ8QCaSmGwb7iRGDBezUqXbpZGRzzfTb+cn
CDpOGR86p1hcF895P4vkp9MmI50mD1hp/Ed+stCNi5O/KU9DaXR2Z0vPB4zmAve14bRDtUstFJ/5
3CYNv6ZHdAbYiNE6KTCEztI5gGIbqMdXSbxqVVFnFUq+NQfk1XWYN3kwFNspnWzFacxHVaIw98xc
f8LDmBxrThaA63p4ZUWiABqvDA1VZDRIuJK58bRQKfJPIx/abKwfROHdI3hRW8cW
-----END CERTIFICATE-----
COMODO Certification Authority
==============================
-----BEGIN CERTIFICATE-----
MIIEHTCCAwWgAwIBAgIQToEtioJl4AsC7j41AkblPTANBgkqhkiG9w0BAQUFADCBgTELMAkGA1UE
BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxJzAlBgNVBAMTHkNPTU9ETyBDZXJ0aWZpY2F0aW9uIEF1
dGhvcml0eTAeFw0wNjEyMDEwMDAwMDBaFw0yOTEyMzEyMzU5NTlaMIGBMQswCQYDVQQGEwJHQjEb
MBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFD
T01PRE8gQ0EgTGltaXRlZDEnMCUGA1UEAxMeQ09NT0RPIENlcnRpZmljYXRpb24gQXV0aG9yaXR5
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ECLi3LjkRv3UcEbVASY06m/weaKXTuH
+7uIzg3jLz8GlvCiKVCZrts7oVewdFFxze1CkU1B/qnI2GqGd0S7WWaXUF601CxwRM/aN5VCaTww
xHGzUvAhTaHYujl8HJ6jJJ3ygxaYqhZ8Q5sVW7euNJH+1GImGEaaP+vB+fGQV+useg2L23IwambV
4EajcNxo2f8ESIl33rXp+2dtQem8Ob0y2WIC8bGoPW43nOIv4tOiJovGuFVDiOEjPqXSJDlqR6sA
1KGzqSX+DT+nHbrTUcELpNqsOO9VUCQFZUaTNE8tja3G1CEZ0o7KBWFxB3NH5YoZEr0ETc5OnKVI
rLsm9wIDAQABo4GOMIGLMB0GA1UdDgQWBBQLWOWLxkwVN6RAqTCpIb5HNlpW/zAOBgNVHQ8BAf8E
BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zBJBgNVHR8EQjBAMD6gPKA6hjhodHRwOi8vY3JsLmNvbW9k
b2NhLmNvbS9DT01PRE9DZXJ0aWZpY2F0aW9uQXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQUFAAOC
AQEAPpiem/Yb6dc5t3iuHXIYSdOH5EOC6z/JqvWote9VfCFSZfnVDeFs9D6Mk3ORLgLETgdxb8CP
OGEIqB6BCsAvIC9Bi5HcSEW88cbeunZrM8gALTFGTO3nnc+IlP8zwFboJIYmuNg4ON8qa90SzMc/
RxdMosIGlgnW2/4/PEZB31jiVg88O8EckzXZOFKs7sjsLjBOlDW0JB9LeGna8gI4zJVSk/BwJVmc
IGfE7vmLV2H0knZ9P4SNVbfo5azV8fUZVqZa+5Acr5Pr5RzUZ5ddBA6+C4OmF4O5MBKgxTMVBbkN
+8cFduPYSo38NBejxiEovjBFMR7HeL5YYTisO+IBZQ==
-----END CERTIFICATE-----
Network Solutions Certificate Authority
=======================================
-----BEGIN CERTIFICATE-----
MIID5jCCAs6gAwIBAgIQV8szb8JcFuZHFhfjkDFo4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wduIj/h1AcgsLj4DKAv6ALR8jDMe+ZZzKATxcheQxpXN5eNK4CtSbqUN9/
GGUsyfJj4akH/nxxH2szJGoeBfcFaMBqEssuXmHLrijTfsK0ZpEmXzwuJF/LWA/rKOyvEZbz3Htv
wKeI8lN3s2Berq4o2jUsbzRF0ybh3uxbTydrFny9RAQYgrOJeRcQcT16ohZO9QHNpGxlaKFJdlxD
ydi8NmdspZS11My5vWo1ViHe2MPr+8ukYEywVaCge1ey
-----END CERTIFICATE-----
COMODO ECC Certification Authority
==================================
-----BEGIN CERTIFICATE-----
MIICiTCCAg+gAwIBAgIQH0evqmIAcFBUTAGem2OZKjAKBggqhkjOPQQDAzCBhTELMAkGA1UEBhMC
R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE
ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBB
dXRob3JpdHkwHhcNMDgwMzA2MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0Ix
GzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR
Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRo
b3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQDR3svdcmCFYX7deSRFtSrYpn1PlILBs5BAH+X
4QokPB0BBO490o0JlwzgdeT6+3eKKvUDYEs2ixYjFq0JcfRK9ChQtP6IHG4/bC8vCVlbpVsLM5ni
wz2J+Wos77LTBumjQjBAMB0GA1UdDgQWBBR1cacZSBm8nZ3qQUfflMRId5nTeTAOBgNVHQ8BAf8E
BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjE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G+EIBAQQEAwIABzANBgkqhkiG9w0BAQUFAAOCAQEA
hQMeknH2Qq/ho2Ge6/PAD/Kl1NqV5ta+aDY9fm4fTIrv0Q8hbV6lUmPOEvjvKtpv6zf+EwLHyzs+
ImvaYS5/1HI93TDhHkxAGYwP15zRgzB7mFncfca5DClMoTOi62c6ZYTTluLtdkVwj7Ur3vkj1klu
PBS1xp81HlDQwY9qcEQCYsuuHWhBp6pX6FOqB9IG9tUUBguRA3UsbHK1YZWaDYu5Def131TN3ubY
1gkIl2PlwS6wt0QmwCbAr1UwnjvVNioZBPRcHv/PLLf/0P2HQBHVESO7SMAhqaQoLf0V+LBOK/Qw
WyH8EZE0vkHve52Xdf+XlcCWWC/qu0bXu+TZLg==
-----END CERTIFICATE-----
ePKI Root Certification Authority
=================================
-----BEGIN CERTIFICATE-----
MIIFsDCCA5igAwIBAgIQFci9ZUdcr7iXAF7kBtK8nTANBgkqhkiG9w0BAQUFADBeMQswCQYDVQQG
EwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0ZC4xKjAoBgNVBAsMIWVQS0kg
Um9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNDEyMjAwMjMxMjdaFw0zNDEyMjAwMjMx
MjdaMF4xCzAJBgNVBAYTAlRXMSMwIQYDVQQKDBpDaHVuZ2h3YSBUZWxlY29tIENvLiwgTHRkLjEq
MCgGA1UECwwhZVBLSSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0B
AQEFAAOCAg8AMIICCgKCAgEA4SUP7o3biDN1Z82tH306Tm2d0y8U82N0ywEhajfqhFAHSyZbCUNs
IZ5qyNUD9WBpj8zwIuQf5/dqIjG3LBXy4P4AakP/h2XGtRrBp0xtInAhijHyl3SJCRImHJ7K2RKi
lTza6We/CKBk49ZCt0Xvl/T29de1ShUCWH2YWEtgvM3XDZoTM1PRYfl61dd4s5oz9wCGzh1NlDiv
qOx4UX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IbWskKHC9BroNnkMA0GCSqGSIb3DQEBBQUAA4IB
AQA+0hyJLjX8+HXd5n9liPRyTMks1zJO890ZeUe9jjtbkw9QSSQTaxQGcu8J06Gh40CEyecYMnQ8
SG4Pn0vU9x7Tk4ZkVJdjclDVVc/6IJMCopvDI5NOFlV2oHB5bc0hH88vLbwZ44gx+FkagQnIl6Z0
x2DEW8xXjrJ1/RsCCdtZb3KTafcxQdaIOL+Hsr0Wefmq5L6IJd1hJyMctTEHBDa0GpC9oHRxUIlt
vBTjD4au8as+x6AJzKNI0eDbZOeStc+vckNwi/nDhDwTqn6Sm1dTk/pwwpEOMfmbZ13pljheX7Nz
TogVZ96edhBiIL5VaZVDADlN9u6wWk5JRFRYX0KD
-----END CERTIFICATE-----
NetLock Arany (Class Gold) Főtanúsítvány
========================================
-----BEGIN CERTIFICATE-----
MIIEFTCCAv2gAwIBAgIGSUEs5AAQMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYDVQQGEwJIVTERMA8G
A1UEBwwIQnVkYXBlc3QxFTATBgNVBAoMDE5ldExvY2sgS2Z0LjE3MDUGA1UECwwuVGFuw7pzw610
dsOhbnlraWFkw7NrIChDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzKTE1MDMGA1UEAwwsTmV0TG9jayBB
cmFueSAoQ2xhc3MgR29sZCkgRsWRdGFuw7pzw610dsOhbnkwHhcNMDgxMjExMTUwODIxWhcNMjgx
MjA2MTUwODIxWjCBpzELMAkGA1UEBhMCSFUxETAPBgNVBAcMCEJ1ZGFwZXN0MRUwEwYDVQQKDAxO
ZXRMb2NrIEtmdC4xNzA1BgNVBAsMLlRhbsO6c8OtdHbDoW55a2lhZMOzayAoQ2VydGlmaWNhdGlv
biBTZXJ2aWNlcykxNTAzBgNVBAMMLE5ldExvY2sgQXJhbnkgKENsYXNzIEdvbGQpIEbFkXRhbsO6
c8OtdHbDoW55MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxCRec75LbRTDofT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GA1UEBhMCSEsxFjAUBgNVBAoTDUhvbmdrb25n
IFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMIIBIjANBgkqhkiG9w0BAQEF
AAOCAQ8AMIIBCgKCAQEArP84tulmAknjorThkPlAj3n54r15/gK97iSSHSL22oVyaf7XPwnU3ZG1
ApzQjVrhVcNQhrkpJsLj2aDxaQMoIIBFIi1WpztUlVYiWR8o3x8gPW2iNr4joLFutbEnPzlTCeqr
auh0ssJlXI6/fMN4hM2eFvz1Lk8gKgifd/PFHsSaUmYeSF7jEAaPIpjhZY4bXSNmO7ilMlHIhqqh
qZ5/dpTCpmy3QfDVyAY45tQM4vM7TG1QjMSDJ8EThFk9nnV0ttgCXjqQesBCNnLsak3c78QA3xMY
V18meMjWCnl3v/evt3a5pQuEF10Q6m/hq5URX208o1xNg1vysxmKgIsLhwIDAQABoyYwJDASBgNV
HRMBAf8ECDAGAQH/AgEDMA4GA1UdDwEB/wQEAwIBxjANBgkqhkiG9w0BAQUFAAOCAQEADkbVPK7i
h9legYsCmEEIjEy82tvuJxuC52pF7BaLT4Wg87JwvVqWuspube5Gi27nKi6Wsxkz67SfqLI37pio
l7Yutmcn1KZJ/RyTZXaeQi/cImyaT/JaFTmxcdcrUehtHJjA2Sr0oYJ71clBoiMBdDhViw+5Lmei
IAQ32pwL0xch4I+XeTRvhEgCIDMb5jREn5Fw9IBehEPCKdJsEhTkYY2sEJCehFC78JZvRZ+K88ps
T/oROhUVRsPNH4NbLUES7VBnQRM9IauUiqpOfMGx+6fWtScvl6tu4B3i0RwsH0Ti/L6RoZz71ilT
c4afU9hDDl3WY4JxHYB0yvbiAmvZWg==
-----END CERTIFICATE-----
SecureSign RootCA11
===================
-----BEGIN CERTIFICATE-----
MIIDbTCCAlWgAwIBAgIBATANBgkqhkiG9w0BAQUFADBYMQswCQYDVQQGEwJKUDErMCkGA1UEChMi
SmFwYW4gQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyw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Jg6VfLuQSSaGjl
OCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZXriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2
xmmFghcCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
FI/wS3+oLkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZURUm7
lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMpjjM5RcOO5LlXbKr8
EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK6fBdRoyV3XpYKBovHd7NADdBj+1E
bddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQXmcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18
YIvDQVETI53O9zJrlAGomecsMx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7r
kpeDMdmztcpHWD9f
-----END CERTIFICATE-----
Autoridad de Certificacion Firmaprofesional CIF A62634068
=========================================================
-----BEGIN CERTIFICATE-----
MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UEBhMCRVMxQjBA
BgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE2
MjYzNDA2ODAeFw0wOTA1MjAwODM4MTVaFw0zMDEyMzEwODM4MTVaMFExCzAJBgNVBAYTAkVTMUIw
QAYDVQQDDDlBdXRvcmlkYWQgZGUgQ2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBB
NjI2MzQwNjgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDD
Utd9thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOS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8Rwu3WwJrfIxwYJOubv5vr8q
hT/AQKM6WfxZSzwoJNu0FXWuDYi6LnPAvViH5ULy617uHjAimcs30cQhbIHsvm0m5hzkQiCeR7Cs
g1lwLDXWrzY0tM07+DKo7+N4ifuNRSzanLh+QBxh5z6ikixL8s36mLYp//Pye6kfLqCTVyvehQP5
aTfLnnhqBbTFMXiJ7HqnheG5ezzevh55hM6fcA5ZwjUukCox2eRFekGkLhObNA5me0mrZJfQRsN5
nXJQY6aYWwa9SG3YOYNw6DXwBdGqvOPbyALqfP2C2sJbUjWumDqtujWTI6cfSN01RpiyEGjkpTHC
ClguGYEQyVB1/OpaFs4R1+7vUIgtYf8/QnMFlEPVjjxOAToZpR9GTnfQXeWBIiGH/pR9hNiTrdZo
Q0iy2+tzJOeRf1SktoA+naM8THLCV8Sg1Mw4J87VBp6iSNnpn86CcDaTmjvfliHjWbcM2pE38P1Z
WrOZyGlsQyYBNWNgVYkDOnXYukrZVP/u3oDYLdE41V4tC5h9Pmzb/CaIxw==
-----END CERTIFICATE-----
Go Daddy Root Certificate Authority - G2
========================================
-----BEGIN CERTIFICATE-----
MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoTEUdvRGFkZHkuY29tLCBJbmMu
MTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5
MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgYMxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6
b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMRowGAYDVQQKExFHb0RhZGR5LmNvbSwgSW5jLjExMC8G
A1UEAxMoR28gRGFkZHkgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBAL9xYgjx+lk09xvJGKP3gElY6SKDE6bFIEMBO4Tx5oVJnyfq
9oQbTqC023CYxzIBsQU+B07u9PpPL1kwIuerGVZr4oAH/PMWdYA5UXvl+TW2dE6pjYIT5LY/qQOD
+qK+ihVqf94Lw7YZFAXK6sOoBJQ7RnwyDfMAZiLIjWltNowRGLfTshxgtDj6AozO091GB94KPutd
fMh8+7ArU6SSYmlRJQVhGkSBjCypQ5Yj36w6gZoOKcUcqeldHraenjAKOc7xiID7S13MMuyFYkMl
NAJWJwGRtDtwKj9useiciAF9n9T521NtYJ2/LOdYq7hfRvzOxBsDPAnrSTFcaUaz4EcCAwEAAaNC
MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFDqahQcQZyi27/a9
BUFuIMGU2g/eMA0GCSqGSIb3DQEBCwUAA4IBAQCZ21151fmXWWcDYfF+OwYxdS2hII5PZYe096ac
vNjpL9DbWu7PdIxztDhC2gV7+AJ1uP2lsdeu9tfeE8tTEH6KRtGX+rcuKxGrkLAngPnon1rpN5+r
5N9ss4UXnT3ZJE95kTXWXwTrgIOrmgIttRD02JDHBHNA7XIloKmf7J6raBKZV8aPEjoJpL1E/QYV
N8Gb5DKj7Tjo2GTzLH4U/ALqn83/B2gX2yKQOC16jdFU8WnjXzPKej17CuPKf1855eJ1usV2GDPO
LPAvTK33sefOT6jEm0pUBsV/fdUID+Ic/n4XuKxe9tQWskMJDE32p2u0mYRlynqI4uJEvlz36hz1
-----END CERTIFICATE-----
Starfield Root Certificate Authority - G2
=========================================
-----BEGIN CERTIFICATE-----
MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s
b2dpZXMsIEluYy4xMjAwBgNVBAMTKVN0YX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lhPdAKACL8x3vLCWRFCztAgfd9fDL1mMpYjn0q7pBZ
c2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0
-----END CERTIFICATE-----
Starfield Services Root Certificate Authority - G2
==================================================
-----BEGIN CERTIFICATE-----
MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s
b2dpZXMsIEluYy4xOzA5BgNVBAMTMlN0YXJmaWVsZCBTZXJ2aWNlcyBSb290IENlcnRpZmljYXRl
IEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgZgxCzAJBgNV
BAYTAlVTMRAwDgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxT
dGFyZmllbGQgVGVjaG5vbG9naWVzLCBJbmMuMTswOQYDVQQDEzJTdGFyZmllbGQgU2VydmljZXMg
Um9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
AQoCggEBANUMOsQq+U7i9b4Zl1+OiFOxHz/Lz58gE20pOsgPfTz3a3Y4Y9k2YKibXlwAgLIvWX/2
h/klQ4bnaRtSmpDhcePYLQ1Ob/bISdm28xpWriu2dBTrz/sm4xq6HZYuajtYlIlHVv8loJNwU4Pa
hHQUw2eeBGg6345AWh1KTs9DkTvnVtYAcMtS7nt9rjrnvDH5RfbCYM8TWQIrgMw0R9+53pBlbQLP
LJGmpufehRhJfGZOozptqbXuNC66DQO4M99H67FrjSXZm86B0UVGMpZwh94CDklDhbZsc7tk6mFB
rMnUVN+HL8cisibMn1lUaJ/8viovxFUcdUBgF4UCVTmLfwUCAwEAAaNCMEAwDwYDVR0TAQH/BAUw
AwEB/zAOBgNVHQ8BAf8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Q8BAf8EBAMCAQYw
DQYJKoZIhvcNAQEFBQADggEBAKaorSLOAT2mo/9i0Eidi15ysHhE49wcrwn9I0j6vSrEuVUEtRCj
jSfeC4Jj0O7eDDd5QVsisrCaQVymcODU0HfLI9MA4GxWL+FpDQ3Zqr8hgVDZBqWo/5U30Kr+4rP1
mS1FhIrlQgnXdAIv94nYmem8J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5aj
Zt3hrvJBW8qYVoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI
03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw=
-----END CERTIFICATE-----
TWCA Root Certification Authority
=================================
-----BEGIN CERTIFICATE-----
MIIDezCCAmOgAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJUVzESMBAGA1UECgwJ
VEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NBIFJvb3QgQ2VydGlmaWNh
dGlvbiBBdXRob3JpdHkwHhcNMDgwODI4MDcyNDMzWhcNMzAxMjMxMTU1OTU5WjBfMQswCQYDVQQG
EwJUVzESMBAGA1UECgwJVEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NB
IFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
AoIBAQCwfnK4pAOU5qfeCTiRShFAh6d8WWQUe7UREN3+v9XAu1bihSX0NXIP+FPQQeFEAcK0HMMx
QhZHhTMidrIKbw/lJVBPhYa+v5guEGcevhEFhgWQxFnQfHgQsIBct+HHK3XLfJ+utdGdIzdjp9xC
oi2SBBtQwXu4PhvJVgSLL1KbralW6cH/ralYhzC2gfeXRfwZVzsrb+RH9JlF/h3x+JejiB03HFyP
4HYlmlD4oFT/RJB2I9IyxsOrBr/8+7/zrX2SYgJbKdM1o5OaQ2RgXbL6Mv87BK9NQGr5x+PvI/1r
y+UPizgN7gr8/g+YnzAx3WxSZfmLgb4i4RxYA7qRG4kHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIB
BjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqOFsmjd6LWvJPelSDGRjjCDWmujANBgkqhkiG
9w0BAQUFAAOCAQEAPNV3PdrfibqHDAhUaiBQkr6wQT25JmSDCi/oQMCXKCeCMErJk/9q56YAf4lC
mtYR5VPOL8zy2gXE/uJQxDqGfczafhAJO5I1KlOy/usrBdlsXebQ79NqZp4VKIV66IIArB6nCWlW
QtNoURi+VJq/REG6Sb4gumlc7rh3zc5sH62Dlhh9DrUUOYTxKOkto557HnpyWoOzeW/vtPzQCqVY
T0bf+215WfKEIlKuD8z7fDvnaspHYcN6+NOSBB+4IIThNlQWx0DeO4pz3N/GCUzf7Nr/1FNCocny
Yh0igzyXxfkZYiesZSLX0zzG5Y6yU8xJzrww/nsOM5D77dIUkR8Hrw==
-----END CERTIFICATE-----
Security Communication RootCA2
==============================
-----BEGIN CERTIFICATE-----
MIIDdzCCAl+gAwIBAgIBADANBgkqhkiG9w0BAQsFADBdMQswCQYDVQQGEwJKUDElMCMGA1UEChMc
U0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEnMCUGA1UECxMeU2VjdXJpdHkgQ29tbXVuaWNh
dGlvbiBSb290Q0EyMB4XDTA5MDUyOTA1MDAzOVoXDTI5MDUyOTA1MDAzOVowXTELMAkGA1UEBhMC
SlAxJTAjBgNVBAoTHFNFQ09NIFRydXN0IFN5c3RlbXMgQ08uLExURC4xJzAlBgNVBAsTHlNlY3Vy
aXR5IENvbW11bmljYXRpb24gUm9vdENBMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
ANAVOVKxUrO6xVmCxF1SrjpDZYBLx/KWvNs2l9amZIyoXvDjChz335c9S672XewhtUGrzbl+dp++
+T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVMVAX3NuRFg3sUZdbcDE3R
3n4MqzvEFb46VqZab3ZpUql6ucjrappdUtAtCms1FgkQhNBqyjoGADdH5H5XTz+L62e4iKrFvlNV
spHEfbmwhRkGeC7bYRr6hfVKkaHnFtWOojnflLhwHyg/i/xAXmODPIMqGplrz95Zajv8bxbXH/1K
EOtOghY6rCcMU/Gt1SSwawNQwS08Ft1ENCcadfsCAwEAAaNCMEAwHQYDVR0OBBYEFAqFqXdlBZh8
QIH4D5csOPEK7DzPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEB
CwUAA4IBAQBMOqNErLlFsceTfsgLCkLfZOoc7llsCLqJX2rKSpWeeo8HxdpFcoJxDjrSzG+ntKEj
u/Ykn8sX/oymzsLS28yN/HH8AynBbF0zX2S2ZTuJbxh2ePXcokgfGT+Ok+vx+hfuzU7jBBJV1uXk
3fs+BXziHV7Gp7yXT2g69ekuCkO2r1dcYmh8t/2jioSgrGK+KwmHNPBqAbubKVY8/gA3zyNs8U6q
tnRGEmyR7jTV7JqR50S+kDFy1UkC9gLl9B/rfNmWVan/7Ir5mUf/NVoCqgTLiluHcSmRvaS0eg29
mvVXIwAHIRc/SjnRBUkLp7Y3gaVdjKozXoEofKd9J+sAro03
-----END CERTIFICATE-----
Hellenic Academic and Research Institutions RootCA 2011
=======================================================
-----BEGIN CERTIFICATE-----
MIIEMTCCAxmgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBlTELMAkGA1UEBhMCR1IxRDBCBgNVBAoT
O0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9y
aXR5MUAwPgYDVQQDEzdIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z
IFJvb3RDQSAyMDExMB4XDT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NsWftjj++n08C9bMJL/NMh98qy5V8AcysNnq/onN694/BtZqhFLKPM58N
7yLcZnuEvUUXBj08yrl3NI/K6s8/MT7jiOOASSXIl7WdmplNsDz4SgCbZN2fOUvRJ9e4
-----END CERTIFICATE-----
Actalis Authentication Root CA
==============================
-----BEGIN CERTIFICATE-----
MIIFuzCCA6OgAwIBAgIIVwoRl0LE48wwDQYJKoZIhvcNAQELBQAwazELMAkGA1UEBhMCSVQxDjAM
BgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UE
AwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290IENBMB4XDTExMDkyMjExMjIwMloXDTMwMDky
MjExMjIwMlowazELMAkGA1UEBhMCSVQxDjAMBgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlz
IFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UEAwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290
IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAp8bEpSmkLO/lGMWwUKNvUTufClrJ
wkg4CsIcoBh/kbWHuUA/3R1oHwiD1S0eiKD4j1aPbZkCkpAW1V8IbInX4ay8IMKx4INRimlNAJZa
by/ARH6jDuSRzVju3PvHHkVH3Se5CAGfpiEd9UEtL0z9KK3giq0itFZljoZUj5NDKd45RnijMCO6
zfB9E1fAXdKDa0hMxKufgFpbOr3JpyI/gCczWw63igxdBzcIy2zSekciRDXFzMwujt0q7bd9Zg1f
YVEiVRvjRuPjPdA1YprbrxTIW6HMiRvhMCb8oJsfgadHHwTrozmSBp+Z07/T6k9QnBn+locePGX2
oxgkg4YQ51Q+qDp2JE+BIcXjDwL4k5RHILv+1A7TaLndxHqEguNTVHnd25zS8gebLra8Pu2Fbe8l
EfKXGkJh90qX6IuxEAf6ZYGyojnP9zz/GPvG8VqLWeICrHuS0E4UT1lF9gxeKF+w6D9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
M+71bbRuMGjeyNYmsHVee7QHIJihdjK4TWxPAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYD
VR0OBBYEFMmAd+BikoL1RpzzuvdMw964o605MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsF
AAOCAgEAU18h9bqwOlI5LJKwbADJ784g7wbylp7ppHR/ehb8t/W2+xUbP6umwHJdELFx7rxP462s
A20ucS6vxOOto70MEae0/0qyexAQH6dXQbLArvQsWdZHEIjzIVEpMMpghq9Gqx3tOluwlN5E40EI
osHsHdb9T7bWR9AUC8rmyrV7d35BH16Dx7aMOZawP5aBQW9gkOLo+fsicdl9sz1Gv7SEr5AcD48S
aq/v7h56rgJKihcrdv6sVIkkLE8/trKnToyokZf7KcZ7XC25y2a2t6hbElGFtQl+Ynhw/qlqYLYd
DnkM/crqJIByw5c/8nerQyIKx+u2DISCLIBrQYoIwOula9+ZEsuK1V6ADJHgJgg2SMX6OBE1/yWD
LfJ6v9r9jv6ly0UsH8SIU653DtmadsWOLB2jutXsMq7Aqqz30XpN69QH4kj3Io6wpJ9qzo6ysmD0
oyLQI+uUWnpp3Q+/QFesa1lQ2aOZ4W7+jQF5JyMV3pKdewlNWudLSDBaGOYKbeaP4NK75t98biGC
wWg5TbSYWGZizEqQXsP6JwSxeRV0mcy+rSDeJmAc61ZRpqPq5KM/p/9h3PFaTWwyI0PurKju7koS
CTxdccK+efrCh2gdC/1cacwG0Jp9VJkqyTkaGa9LKkPzY11aWOIv4x3kqdbQCtCev9eBCfHJxyYN
rJgWVqA=
-----END CERTIFICATE-----
Buypass Class 3 Root CA
=======================
-----BEGIN CERTIFICATE-----
MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU
QnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3MgQ2xhc3MgMyBSb290IENBMB4X
DTEwMTAyNjA4Mjg1OFoXDT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JOssgfCX5/bzMiKqr5qb+FJEMwx14C7u8jYog5kV+qi9cKpMRXSIGrs/CIBKM+G
uIAeqcwRpTzyFrNHnfzSgCHEy9BHcEGhyoMZCCxt8l13nIoUE9Q2HJLw5QY33KbmkJs4j1xrG0aG
Q0JfPgEHU1RdZX33inOhmlRaHylDFCfChQ+1iHsaO5S3HWCntZznKWlXWpuTekMwGwPXYshApqr8
ZORK15FTAaggiG6cX0S5y2CBNOxv033aSF/rtJC8LakcC6wc1aJoIIAE1vyxjy+7SjENSoYc6+I2
KSb12tjE8nVhz36udmNKekBlk4f4HoCMhuWG1o8O/FMsYOgWYRqiPkN7zTlgVGr18okmAWiDSKIz
6MkEkbIRNBE+6tBDGR8Dk5AM/1E9V/RBbuHLoL7ryWPNbczk+DaqaJ3tvV2XcEQNtg413OEMXbug
UZTLfhbrES+jkkXITHHZvMmZUldGL1DPvTVp9D0VzgalLA8+9oG6lLvDu79leNKGef9JOxqDDPDe
eOzI8k1MGt6CKfjBWtrt7uYnXuhF0J0cUahoq0Tj0Itq4/g7u9xN12TyUb7mqqta6THuBrxzvxNi
Cp/HuZc=
-----END CERTIFICATE-----
T-TeleSec GlobalRoot Class 3
============================
-----BEGIN CERTIFICATE-----
MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM
IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU
cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwHhcNMDgx
MDAxMTAyOTU2WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz
dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD
ZW50ZXIxJTAjBgNVBAMMH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YbQDfC+rAF1hM5+n02/t2A7nPPKHeJeaNijnZflQGDSNiH+0LS4F9p0
o3/U37CYAqxva2ssJSRyoWXuJVrl5jLn8t+rSfrzkGkj2wTZ51xY/GXUl77M/C4KzCUqNQT4YJEV
dT1B/yMfGchs64JTBKbkTCJNjYy6zltz7GRUUG3RnFX7acM2w4y8PIWmawomDeCTmGCufsYkl4ph
X5GOZpIJhzbNi5stPvZR1FDUWSi9g/LMKHtThm3YJohw1+qRzT65ysCQblrGXnRl11z+o+I=
-----END CERTIFICATE-----
D-TRUST Root Class 3 CA 2 EV 2009
=================================
-----BEGIN CERTIFICATE-----
MIIEQzCCAyugAwIBAgIDCYP0MA0GCSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK
DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw
OTAeFw0wOTExMDUwODUwNDZaFw0yOTExMDUwODUwNDZaMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK
DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw
OTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJnxhDRwui+3MKCOvXwEz75ivJn9gpfS
egpnljgJ9hBOlSJzmY3aFS3nBfwZcyK3jpgAvDw9rKFs+9Z5JUut8Mxk2og+KbgPCdM03TP1YtHh
zRnp7hhPTFiu4h7WDFsVWtg6uMQYZB7jM7K1iXdODL/ZlGsTl28So/6ZqQTMFexgaDbtCHu39b+T
7WYxg4zGcTSHThfqr4uRjRxWQa4iN1438h3Z0S0NL2lRp75mpoo6Kr3HGrHhFPC+Oh25z1uxav60
sUYgovseO3Dvk5h9jHOW8sXvhXCtKSb8HgQ+HKDYD8tSg2J87otTlZCpV6LqYQXY+U3EJ/pure35
11H3a6UCAwEAAaOCASQwggEgMA8GA1UdEwEB/wQFM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fDkH1e3damhXwIm/9fH907eT/j3HEbAek9ALCI18Bmx
0GtnLLCo4MBANzX2hFxc469CeP6nyQ1Q6g2EdvZR74NTxnr/DlZJLo961gzmJ1TjTQpgcmLNkQfW
pb/ImWvtxBnmq0wROMVvMeJuScg/doAmAyYp4Db29iBT4xdwNBedY2gea+zDTYa4EzAvXUYNR0PV
G6pZDrlcjQZIrXSHX8f8MVRBE+LHIQ6e4B4N4cB7Q4WQxYpYxmUKeFfyxiMPAdkgS94P+5KFdSpc
c41teyWRyu5FrgZLAMzTsVlQ2jqIOylDRl6XK1TOU2+NSueW+r9xDkKLfP0ooNBIytrEgUy7onOT
JsjrDNYmiLbAJM+7vVvrdX3pCI6GMyx5dwlppYn8s3CQh3aP0yK7Qs69cwsgJirQmz1wHiRszYd2
qReWt88NkvuOGKmYSdGe/mBEciG5Ge3C9THxOUiIkCR1VBatzvT4aRRkOfujuLpwQMcnHL/EVlP6
Y2XQ8xwOFvVrhlhNGNTkDY6lnVuR3HYkUD/GKvvZt5y11ubQ2egZixVxSK236thZiNSQvxaz2ems
WWFUyBy6ysHK4bkgTI86k4mloMy/0/Z1pHWWbVY=
-----END CERTIFICATE-----
E-Tugra Certification Authority
===============================
-----BEGIN CERTIFICATE-----
MIIGSzCCBDOgAwIBAgIIamg+nFGby1MwDQYJKoZIhvcNAQELBQAwgbIxCzAJBgNVBAYTAlRSMQ8w
DQYDVQQHDAZBbmthcmExQDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamls
ZXJpIHZlIEhpem1ldGxlcmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBN
ZXJrZXppMSgwJgYDVQQDDB9FLVR1Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTEzMDMw
NTEyMDk0OFoXDTIzMDMwMzEyMDk0OFowgbIxCzAJBgNVBAYTAlRSMQ8wDQYDVQQHDAZBbmthcmEx
QDA+BgNVB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ao1K+ALbkKz3X9iaV9JPrjIgwrvJUXCzO/GU1BBpAAvQxNEP4HteccbiJVMWWXvdMX0h5i89vq
bFCMP4QMls+3ywPgym2hFEwbid3tALBSfK+RbLE4E9HpEgjAALAcKxHad3A2m67OeYfcgnDmCXRw
VWmvo2ifv922ebPynXApVfSr/5Vh88lAbx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OP
YLfykqGxvYmJHzDNw6YuYjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+Rn
lTGNAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTO
w0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPIQW5pJ6d1Ee88hjZv
0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I0jJmwYrA8y8678Dj1JGG0VDjA9tz
d29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4GnilmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAW
hsI6yLETcDbYz+70CjTVW0z9B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0M
jomZmWzwPDCvON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo
IhNzbM8m9Yop5w==
-----END CERTIFICATE-----
DigiCert Assured ID Root G3
===========================
-----BEGIN CERTIFICATE-----
MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV
UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYD
VQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1
MTIwM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/0Cti76R7CZGYZ4wUAc1oBmpjIXUDgIiKboHGhfKp
pC3n9KUkEEeDys30jXlYsQab5xoq2Z0B15R97QNKyvDb6KkBPvVWmckejkk9u+UJueBPSZI9FoJA
zMxZxuY67RIuaTxslbH9qh17f4a+Hg4yRvv7E491f0yLS0Zj/gA0QHDBw7mh3aZw4gSzQbzpgJHq
ZJx64SIDqZxubw5lT2yHh17zbqD5daWbQOhTsiedSrnAdyGN/4fy3ryM7xfft0kL0fJuMAsaDk52
7RH89elWsn2/x20Kk4yl0MC2Hb46TpSi125sC8KKfPog88Tk5c0NqMuRkrF8hey1FGlmDoLnzc7I
LaZRfyHBNVOFBkpdn627G190
-----END CERTIFICATE-----
USERTrust RSA Certification Authority
=====================================
-----BEGIN CERTIFICATE-----
MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCBiDELMAkGA1UE
BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK
ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh
dGlvbiBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UE
BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK
ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh
dGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCAEmUXNg7D2wiz
0KxXDXbtzSfTTK1Qg2HiqiBNCS1kCdzOiZ/MPans9s/B3PHTsdZ7NygRK0faOca8Ohm0X6a9fZ2j
Y0K2dvKpOyuR+OJv0OwWIJAJPu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Cy5oGzuCr+yDZ4XUmFF0sbmZgIn/f3gZXHlKYC6SQK5MNyosycdi
yA5d9zZbyuAlJQG03RoHnHcAP9Dc1ew91Pq7P8yF1m9/qS3fuQL39ZeatTXaw2ewh0qpKJ4jjv9c
J2vhsE/zB+4ALtRZh8tSQZXq9EfX7mRBVXyNWQKV3WKdwrnuWih0hKWbt5DHDAff9Yk2dDLWKMGw
sAvgnEzDHNb842m1R0aBL6KCq9NjRHDEjf8tM7qtj3u1cIiuPhnPQCjY/MiQu12ZIvVS5ljFH4gx
Q+6IHdfGjjxDah2nGN59PRbxYvnKkKj9
-----END CERTIFICATE-----
USERTrust ECC Certification Authority
=====================================
-----BEGIN CERTIFICATE-----
MIICjzCCAhWgAwIBAgIQXIuZxVqUxdJxVt7NiYDMJjAKBggqhkjOPQQDAzCBiDELMAkGA1UEBhMC
VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU
aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv
biBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMC
VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU
aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv
biBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQarFRaqfloI+d61SRvU8Za2EurxtW2
0eZzca7dnNYMYf3boIkDuAUU7FfO7l0/4iGzzvfUinngo4N+LZfQYcTxmdwlkWOrfzCjtHDix6Ez
nPO/LlxTsV+zfTJ/ijTjeXmjQjBAMB0GA1UdDgQWBBQ64QmG1M8ZwpZ2dEl23OA1xmNjmjAOBgNV
HQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjA2Z6EWCNzklwBB
HU6+4WMBzzuqQhFkoJ2UOQIReVx7Hfpkue4WQrO/isIJxOzksU0CMQDpKmFHjFJKS04YcPbWRNZu
9YO6bVi9JNlWSOrvxKJGgYhqOkbRqZtNyWHa0V1Xahg=
-----END CERTIFICATE-----
GlobalSign ECC Root CA - R5
===========================
-----BEGIN CERTIFICATE-----
MIICHjCCAaSgAwIBAgIRYFlJ4CYuu1X5CneKcflK2GwwCgYIKoZIzj0EAwMwUDEkMCIGA1UECxMb
R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
EwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoXDTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMb
R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
EwpHbG9iYWxTaWduMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6
SFkc8GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8kehOvRnkmS
h5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd
BgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYIKoZIzj0EAwMDaAAwZQIxAOVpEslu28Yx
uglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7
yFz9SO8NdCKoCOJuxUnOxwy8p2Fp8fc74SrL+SvzZpA3
-----END CERTIFICATE-----
Staat der Nederlanden EV Root CA
================================
-----BEGIN CERTIFICATE-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bmVvMCAwEAAaNC
MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFP6rAJCYniT8qcwa
ivsnuL8wbqg7MA0GCSqGSIb3DQEBCwUAA4ICAQDPdyxuVr5Os7aEAJSrR8kN0nbHhp8dB9O2tLsI
eK9p0gtJ3jPFrK3CiAJ9Brc1AsFgyb/E6JTe1NOpEyVa/m6irn0F3H3zbPB+po3u2dfOWBfoqSmu
c0iH55vKbimhZF8ZE/euBhD/UcabTVUlT5OZEAFTdfETzsemQUHSv4ilf0X8rLiltTMMgsT7B/Zq
5SWEXwbKwYY5EdtYzXc7LMJMD16a4/CrPmEbUCTCwPTxGfARKbalGAKb12NMcIxHowNDXLldRqAN
b/9Zjr7dn3LDWyvfjFvO5QxGbJKyCqNMVEIYFRIYvdr8unRu/8G2oGTYqV9Vrp9canaW2HNnh/tN
f1zuacpzEPuKqf2evTY4SUmH9A4U8OmHuD+nT3pajnnUk+S7aFKErGzp85hwVXIy+TSrK0m1zSBi
5Dp6Z2Orltxtrpfs/J92VoguZs9btsmksNcFuuEnL5O7Jiqik7Ab846+HUCjuTaPPoIaGl6I6lD4
WeKDRikL40Rc4ZW2aZCaFG+XroHPaO+Zmr615+F/+PoTRxZMzG0IQOeLeG9QgkRQP2YGiqtDhFZK
DyAthg710tvSeopLzaXoTvFeJiUBWSOgftL2fiFX1ye8FVdMpEbB4IMeDExNH08GGeL5qPQ6gqGy
eUN51q1veieQA6TqJIc/2b3Z6fJfUEkc7uzXLg==
-----END CERTIFICATE-----
IdenTrust Commercial Root CA 1
==============================
-----BEGIN CERTIFICATE-----
MIIFYDCCA0igAwIBAgIQCgFCgAAAAUUjyES1AAAAAjANBgkqhkiG9w0BAQsFADBKMQswCQYDVQQG
EwJVUzESMBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBS
b290IENBIDEwHhcNMTQwMTE2MTgxMjIzWhc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UeLBfnLOic7iPBZM4zY0+sLj7wM+x8uwtLRvM7Kqas6pg
ghstO8OEPVeKlh6cdbjTMM1gCIOQ045U8U1mwF10A0Cj7oV+wh93nAbowacYXVKV7cndJZ5t+qnt
ozo00Fl72u1Q8zW/7esUTTHHYPTa8Yec4kjixsU3+wYQ+nVZZjFHKdp2mhzpgq7vmrlR94gjmmmV
YjzlVYA211QC//G5Xc7UI2/YRYRKW2XviQzdFKcgyxilJbQN+QHwotL0AMh0jqEqSI5l2xPE4iUX
feu+h1sXIFRRk0pTAwvsXcoz7WL9RccvW9xYoIA55vrX/hMUpu09lEpCdNTDd1lzzY9GvlU47/ro
kTLql1gEIt44w8y8bckzOmoKaT+gyOpyj4xjhiO9bTyWnpXgSUyqorkqG5w2gXjtw+hG4iZZRHUe
2XWJUc0QhJ1hYMtd+ZciTY6Y5uN/9lu7rs3KSoFrXgvzUeF0K+l+J6fZmUlO+KWA2yUPHGNiiskz
Z2s8EIPGrd6ozRaOjfAHN3Gf8qv8QfXBi+wAN10J5U6A7/qxXDgGpRtK4dw4LTzcqx+QGtVKnO7R
cGzM7vRX+Bi6hG6H
-----END CERTIFICATE-----
IdenTrust Public Sector Root CA 1
=================================
-----BEGIN CERTIFICATE-----
MIIFZjCCA06gAwIBAgIQCgFCgAAAAUUjz0Z8AAAAAjANBgkqhkiG9w0BAQsFADBNMQswCQYDVQQG
EwJVUzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3Rv
ciBSb290IENBIDEwHhcNMTQwMTE2MTc1MzMyWhcNMzQwMTE2MTc1MzMyWjBNMQswCQYDVQQGEwJV
UzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3RvciBS
b290IENBIDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2IpT8pEiv6EdrCvsnduTy
P4o7ekosMSqMjbCpwzFrqHd2hCa2r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1NFTwWmhlQBJqymm9li1JfPFgEKCXAZmExfrngdbkaqIHWchezxQMx
NRF4eKLg6TCMf4DfWN88uieW4oA0beOY02QnrEh+KHdcxiVhJfiFDGX6xDIvpZgF5PgLZxYWxoK4
Mhn5+bl53B/N66+rDt0b20XkeucC4pVd/GnwU2lhlXV5C15V5jgclKlZM57IcXR5f1GJtshquDDI
ajjDbp7hNxbqBWJMWxJH7ae0s1hWx0nzfxJoCTFx8G34Tkf71oXuxVhAGaQdp/lLQzfcaFpPz+vC
ZHTetBXZ9FRUGi8c15dxVJCO2SCdUyt/q4/i6jC8UDfv8Ue1fXwsBOxonbRJRBD0ckscZOf85muQ
3Wl9af0AVqW3rLatt8o+Ae+c
-----END CERTIFICATE-----
Entrust Root Certification Authority - G2
=========================================
-----BEGIN CERTIFICATE-----
MIIEPjCCAyagAwIBAgIESlOMKDANBgkqhkiG9w0BAQsFADCBvjELMAkGA1UEBhMCVVMxFjAUBgNV
BAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVy
bXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ug
b25seTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIw
HhcNMDkwNzA3MTcyNTU0WhcNMzAxMjA3MTc1NTU0WjCBvjELMAkGA1UEBhMCVVMxFjAUBgNVBAoT
DUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVybXMx
OTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25s
eTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6hLZy254Ma+KZ6TABp3bqMriVQRrJ2mFOWHLP
/vaCeb9zYQYKpSfYs1/TRU4cctZOMvJyig/3gxnQaoCAAEUesMfnmr8SVycco2gvCoe9amsOXmXz
HHfV1IWNcCG0szLni6LVhjkCsbjSR87kyUnEO6fe+1R9V77w6G7CebI6C1XiUJgWMhNcL3hWwcKU
s/Ja5CeanyTXxuzQmyWC48zCxEXFjJd6BmsqEZ+pCm5IO2/b1BEZQvePB7/1U1+cPvQXLOZprE4y
TGJ36rfo5bs0vBmLrpxR57d+tVOxMyLlbc9wPBr64ptntoP0jaWvYkxN4FisZDQSA/i2jZRjJKRx
AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqciZ6
0B7vfec7aVHUbI2fkBJmqzANBgkqhkiG9w0BAQsFAAOCAQEAeZ8dlsa2eT8ijYfThwMEYGprmi5Z
iXMRrEPR9RP/jTkrwPK9T3CMqS/qF8QLVJ7UG5aYMzyorWKiAHarWWluBh1+xLlEjZivEtRh2woZ
Rkfz6/djwUAFQKXSt/S1mja/qYh2iARVBCuch38aNzx+LaUa2NSJXsq9rD1s2G2v1fN2D807iDgi
nWyTmsQ9v4IbZT+mD12q/OWyFcq1rca8PdCE6OoGcrBNOTJ4vz4RnAuknZoh8/CbCzB428Hch0P+
vGOaysXCHMnHjf87ElgI5rY97HosTvuDls4MPGmHVHOkc8KT/1EQrBVUAdj8BbGJoX90g5pJ19xO
e4pIb4tF9g==
-----END CERTIFICATE-----
Entrust Root Certification Authority - EC1
==========================================
-----BEGIN CERTIFICATE-----
MIIC+TCCAoCgAwIBAgINAKaLeSkAAAAAUNCR+TAKBggqhkjOPQQDAzCBvzELMAkGA1UEBhMCVVMx
FjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVn
YWwtdGVybXMxOTA3BgNVBA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5viSP
-----END CERTIFICATE-----
Hellenic Academic and Research Institutions RootCA 2015
=======================================================
-----BEGIN CERTIFICATE-----
MIIGCzCCA/OgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcT
BkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0
aW9ucyBDZXJ0LiBBdXRob3JpdHkxQDA+BgNVBAMTN0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNl
YXJjaCBJbnN0aXR1dGlvbnMgUm9vdENBIDIwMTUwHhcNMTUwNzA3MTAxMTIxWhcNNDAwNjMwMTAx
MTIxWjCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMg
QWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9ucyBDZXJ0LiBBdXRob3JpdHkxQDA+BgNV
BAMTN0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgUm9vdENBIDIw
MTUwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDC+Kk/G4n8PDwEXT2QNrCROnk8Zlrv
bTkBSRq0t89/TSNTt5AA4xMqKKYx8ZEA4yjsriFBzh/a/X0SWwGDD7mwX5nh8hKDgE0GPt+sr+eh
iGsxr/CL0BgzuNtFajT0AoAkKAoCFZVedioNmToUW/bLy1O8E00BiDeUJRtCvCLYjqOWXjrZMts+
6PAQZe104S+nfK8nNLspfZu2zwnI5dMK/IhlZXQK3HMcXM1AsRzUtoSMTFDPaI6oWa7CJ06CojXd
FPQf/7J31Ycvqm59JCfnxssm5uX+Zwdj2EUN3TpZZTlYepKZcj2chF6IIbjV9Cz82XBST3i4vTwr
i5WY9bPRaM8gFH5MXF/ni+X1NYEZN9cRCLdmvtNKzoNXADrDgfgXy5I2XdGj2HUb4Ysn6np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JcNrVPSWh2HagCXZWK0vm9q
p/UsQu0yrbYhnr68
-----END CERTIFICATE-----
Hellenic Academic and Research Institutions ECC RootCA 2015
===========================================================
-----BEGIN CERTIFICATE-----
MIICwzCCAkqgAwIBAgIBADAKBggqhkjOPQQDAjCBqjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0
aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9u
cyBDZXJ0LiBBdXRob3JpdHkxRDBCBgNVBAMTO0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJj
aCBJbnN0aXR1dGlvbnMgRUNDIFJvb3RDQSAyMDE1MB4XDTE1MDcwNzEwMzcxMloXDTQwMDYzMDEw
MzcxMlowgaoxCzAJBgNVBAYTAkdSMQ8wDQYDVQQHEwZBdGhlbnMxRDBCBgNVBAoTO0hlbGxlbmlj
IEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9yaXR5MUQwQgYD
VQQDEztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25zIEVDQyBSb290
Q0EgMjAxNTB2MBAGByqGSM49AgEGBSuBBAAiA2IABJKgQehLgoRc4vgxEZmGZE4JJS+dQS8KrjVP
dJWyUWRrjWvmP3CV8AVER6ZyOFB2lQJajq4onvktTpnvLEhvTCUp6NFxW98dwXU3tNf6e3pCnGoK
Vlp8aQuqgAkkbH7BRqNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0O
BBYEFLQiC4KZJAEOnLvkDv2/+5cgk5kqMAoGCCqGSM49BAMCA2cAMGQCMGfOFmI4oqxiRaeplSTA
GiecMjvAwNW6qef4BENThe5SId6d9SWDPp5YSy/XZxMOIQIwBeF1Ad5o7SofTUwJCA3sS61kFyjn
dc5FZXIhF8siQQ6ME5g4mlRtm8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QQDAgNJADBGAiEA4IWSoxe3jfkrBqWTrBqYaGFy+uGh0Psc
eGCmQ5nFuMQCIQCcAu/xlJyzlvnrxir4tiz+OpAUFteMYyRIHN8wfdVoOw==
-----END CERTIFICATE-----
Amazon Root CA 4
================
-----BEGIN CERTIFICATE-----
MIIB8jCCAXigAwIBAgITBmyf18G7EEwpQ+Vxe3ssyBrBDjAKBggqhkjOPQQDAzA5MQswCQYDVQQG
EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSA0MB4XDTE1MDUy
NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ
MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgNDB2MBAGByqGSM49AgEGBSuBBAAiA2IABNKrijdPo1MN
/sGKe0uoe0ZLY7Bi9i0b2whxIdIA6GO9mif78DluXeo9pcmBqqNbIJhFXRbb/egQbeOc4OO9X4Ri
83BkM6DLJC9wuoihKqB1+IGuYgbEgds5bimwHvouXKNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNV
HQ8BAf8EBAMCAYYwHQYDVR0OBBYEFNPsxzplbszh2naaVvuc84ZtV+WBMAoGCCqGSM49BAMDA2gA
MGUCMDqLIfG9fhGt0O9Yli/W651+kI0rz2ZVwyzjKKlwCkcO8DdZEv8tmZQoTipPNU0zWgIxAOp1
AE47xDqUEpHJWEadIRNyp4iciuRMStuW1KyLa2tJElMzrdfkviT8tQp21KW8EA==
-----END CERTIFICATE-----
TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1
=============================================
-----BEGIN CERTIFICATE-----
MIIEYzCCA0ugAwIBAgIBATANBgkqhkiG9w0BAQsFADCB0jELMAkGA1UEBhMCVFIxGDAWBgNVBAcT
D0dlYnplIC0gS29jYWVsaTFCMEAGA1UEChM5VHVya2l5ZSBCaWxpbXNlbCB2ZSBUZWtub2xvamlr
IEFyYXN0aX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mA4GLEFPjx1WitJ/X5g==
-----END CERTIFICATE-----
SSL.com Root Certification Authority RSA
========================================
-----BEGIN CERTIFICATE-----
MIIF3TCCA8WgAwIBAgIIeyyb0xaAMpkwDQYJKoZIhvcNAQELBQAwfDELMAkGA1UEBhMCVVMxDjAM
BgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24x
MTAvBgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBSU0EwHhcNMTYw
MjEyMTczOTM5WhcNNDEwMjEyMTczOTM5WjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx
EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NM
LmNvbSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IFJTQTCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBAPkP3aMrfcvQKv7sZ4Wm5y4bunfh4/WvpOz6Sl2RxFdHaxh3a3by/ZPkPQ/C
Fp4LZsNWlJ4Xg4XOVu/yFv0AYvUiCVToZRdOQbngT0aXqhvIuG5iXmmxX9sqAn78bMrzQdjt0Oj8
P2FI7bADFB0QDksZ4LtO7IZl/zbzXmcCC52GVWH9ejjt/uIZALdvoVBidXQ8oPrIJZK0bnoix/ge
oeOy3ZExqysdBP+lSgQ36YWkMyv94tZVNHwZpEpox7Ko07fKoZOI68GXvIz5HdkihCR0xwQ9aqkp
k8zruFvh/l8lqjRYyMEjVJ0bmBHDOJx+PYZspQ9AhnwC9FwCTyjLrnGfDzrIM/4RJTXq/LrFYD3Z
fBjVsqnTdXgDciLKOsMf7yzlLqn6niy2UUb9rwPW6mBo6oUWNmuF6R7As93EJNyAKoFBbZQ+yODJ
gUEAnl6/f8UImKIYLEJAs/lvOCdLToD0PYFH4Ih86hzOtXVcUS4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ATE-----
SSL.com Root Certification Authority ECC
========================================
-----BEGIN CERTIFICATE-----
MIICjTCCAhSgAwIBAgIIdebfy8FoW6gwCgYIKoZIzj0EAwIwfDELMAkGA1UEBhMCVVMxDjAMBgNV
BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xMTAv
BgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYwMjEy
MTgxNDAzWhcNNDEwMjEyMTgxNDAzWjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAO
BgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NMLmNv
bSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuBBAAiA2IA
BEVuqVDEpiM2nl8ojRfLliJkP9x6jh3MCLOicSS6jkm5BBtHllirLZXI7Z4INcgn64mMU1jrYor+
8FsPazFSY0E7ic3s7LaNGdM0B9y7xgZ/wkWV7Mt/qCPgCemB+vNH06NjMGEwHQYDVR0OBBYEFILR
hXMw5zUE044CkvvlpNHEIejNMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUgtGFczDnNQTT
jgKS++Wk0cQh6M0wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2cAMGQCMG/n61kRpGDPYbCW
e+0F+S8Tkdzt5fxQaxFGRrMcIQBiu77D5+jNB5n5DQtdcj7EqgIwH7y6C+IwJPt8bYBVCpk+gA0z
5Wajs6O7pdWLjwkspl1+4vAHCGht0nxpbl/f5Wpl
-----END CERTIFICATE-----
SSL.com EV Root Certification Authority RSA R2
==============================================
-----BEGIN CERTIFICATE-----
MIIF6zCCA9OgAwIBAgIIVrYpzTS8ePYwDQYJKoZIhvcNAQELBQAwgYIxCzAJBgNVB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8Sb/M3kHN48
+qvWBkofZ6aYMBzdLNvcGJVXZsb/XItW9XcCAwEAAaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNV
HSMEGDAWgBT5YLvU49U09rj1BoAlp3PbRmmonjAdBgNVHQ4EFgQU+WC71OPVNPa49QaAJadz20Zp
qJ4wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQBWs47LCp1Jjr+kxJG7ZhcFUZh1
++VQLHqe8RT6q9OKPv+RKY9ji9i0qVQBDb6Thi/5Sm3HXvVX+cpVHBK+Rw82xd9qt9t1wkclf7nx
Y/hoLVUE0fKNsKTPvDxeH3jnpaAgcLAExbf3cqfeIg29MyVGjGSSJuM+LmOW2puMPfgYCdcDzH2G
guDKBAdRUNf/ktUM79qGn5nX67evaOI5JpS6aLe/g9Pqemc9YmeuJeVy6OLk7K4S9ksrPJ/psEDz
OFSz/bdoyNrGj1E8svuR3Bznm53htw1yj+KkxKl4+esUrMZDBcJlOSgYAsOCsp0FvmXtll9ldDz7
CTUue5wT/RsPXcdtgTpWD8w74a8CLyKsRspGPKAcTNZEtF4uXBVmCeEmKf7GUmG6sXP/wwyc5Wxq
lD8UykAWlYTzWamsX0xhk23RO8yilQwipmdnRC652dKKQbNmC1r7fSOl8hqw/96bg5Qu0T/fkreR
rwU7ZcegbLHNYhLDkBvjJc40vG93drEQw/cFGsDWr3RiSBd3kmmQYRzelYB0VI8YHMPzA9C/pEN1
hlMYegouCRw2n5H9gooiS9EOUCXdywMMF8mDAAhONU2Ki+3wApRmLER/y5UnlhetCTCstnEXbosX
9hwJ1C07mKVx01QT2WDz9UtmT/rx7iASjbSsV7FFY6GsdqnC+w==
-----END CERTIFICATE-----
SSL.com EV Root Certification Authority ECC
===========================================
-----BEGIN CERTIFICATE-----
MIIClDCCAhqgAwIBAgIILCmcWxbtBZUwCgYIKoZIzj0EAwIwfzELMAkGA1UEBhMCVVMxDjAMBgNV
BAgMBVRleGFzMRAwDgYDVQQHD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Ja0
lV7Ae46ZeBZDE1ZXs6KzO7V33EByrKPrmzU+sQghoefEQzd5Mr6155wsTLxDKZmOMNOsIeDjHfrY
BzN2VAAiKrlNIC5waNrlU/yDXNOd8v9EDERm8tLjvUYAGm0CuiVdjaExUd1URhxN25mW7xocBFym
Fe944Hn+Xds+qkxV/ZoVqW/hpvvfcDDpw+5CRu3CkwWJ+n1jez/QcYF8AOiYrg54NMMl+68KnyBr
3TsTjxKM4kEaSHpzoHdpx7Zcf4LIHv5YGygrqGytXm3ABdJ7t+uA/iU3/gKbaKxCXcPu9czc8FB1
0jZpnOZ7BN9uBmm23goJSFmH63sUYHpkqmlD75HHTOwY3WzvUy2MmeFe8nI+z1TIvWfspA9MRf/T
uTAjB0yPEL+GltmZWrSZVxykzLsViVO6LAUP5MSeGbEYNNVMnbrt9x+vJJUEeKgDu+6B5dpffItK
oZB0JaezPkvILFa9x8jvOOJckvB595yEunQtYQEgfn7R8k8HWV+LLUNS60YMlOH1Zkd5d9VUWx+t
JDfLRVpOoERIyNiwmcUVhAn21klJwGW45hpxbqCo8YLoRT5s1gLXCmeDBVrJpBA=
-----END CERTIFICATE-----
OISTE WISeKey Global Root GC CA
===============================
-----BEGIN CERTIFICATE-----
MIICaTCCAe+gAwIBAgIQISpWDK7aDKtARb8roi066jAKBggqhkjOPQQDAzBtMQswCQYDVQQGEwJD
SDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEo
MCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQyBDQTAeFw0xNzA1MDkwOTQ4MzRa
Fw00MjA1MDkwOTU4MzNaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYDVQQL
ExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEdsb2Jh
bCBSb290IEdDIENBMHYwEAYH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7gJzRSBuhjjVFc2/tsvfEehOjPI+Vg7RE+x
ygKJBJYoaMVLuCaJu9YzL1DV/pqJuhgyklTGW+Cd+V7lDSKb9triyCGyYiGqhkCyLmTTX8jjfhFn
RR8F/uOi77Oos/N9j/gMHyIfLXC0uAE0djAA5SN4p1bXUB+K+wb1whnw0A==
-----END CERTIFICATE-----
UCA Extended Validation Root
============================
-----BEGIN CERTIFICATE-----
MIIFWjCCA0KgAwIBAgIQT9Irj/VkyDOeTzRYZiNwYDANBgkqhkiG9w0BAQsFADBHMQswCQYDVQQG
EwJDTjERMA8GA1UECgwIVW5pVHJ1c3QxJTAjBgNVBAMMHFVDQSBFeHRlbmRlZCBWYWxpZGF0aW9u
IFJvb3QwHhcNMTUwMzEzMDAwMDAwWhcNMzgxMjMxMDAwMDAwWjBHMQswCQYDVQQGEwJDTjERMA8G
A1UECgwIVW5pVHJ1c3QxJTAjBgNVBAMMHFVDQSBFeHRlbmRlZCBWYWxpZGF0aW9uIFJvb3QwggIi
MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCpCQcoEwKwmeBkqh5DFnpzsZGgdT6o+uM4AHrs
iWogD4vFsJszA1qGxliG1cGFu0/GnEBNyr7uaZa4rYEwmnySBesFK5pI0Lh2PpbIILvSsPGP2KxF
Rv+qZ2C0d35qHzwaUnoEPQc8hQ2E0B92CvdqFN9y4zR8V05WAT558aopO2z6+I9tTcg1367r3CTu
eUWnhbYFiN6IXSV8l2RnCdm/WhUFhvMJHuxYMjMR83dksHYf5BA1FxvyDrFspCqjc/wJHx4yGVMR
59mzLC52LqGj3n5qiAno8geK+LLNEOfic0CTuwjRP+H8C5SzJe98ptfRr5//lpr1kXuYC3fUfugH
0mK1lTnj8/FtDw5lhIpjVMWAtuCeS31HJqcBCF3RiJ7XwzJE+oJKCmhUfzhTA8ykADNkUVkLo4KR
el7sFsLzKuZi2irbWWIQJUoqgQtHB0MGcIfS+pMRKXpITeuUx3BNr2fVUbGAIAEBtHoIppB/Tu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aTvFthUvozXGaCocV685743Q
NcMYDHsAVhzNixl03r4PEuDQqqE/AjSxcM6dGNYIAwlG7mDgfrbESQRRfXBgvKqy/3lyeqYdPV8q
+Mri/Tm3R7nrft8EI6/6nAYH6ftjk4BAtcZsCjEozgyfz7MjNYBBjWzEN3uBL4ChQEKF6dk4jeih
U80Bv2noWgbyRQuQ+q7hv53yrlc8pa6yVvSLZUDp/TGBLPQ5Cdjua6e0ph0VpZj3AYHYhX3zUVxx
iN66zB+Afko=
-----END CERTIFICATE-----
emSign ECC Root CA - G3
=======================
-----BEGIN CERTIFICATE-----
MIICTjCCAdOgAwIBAgIKPPYHqWhwDtqLhDAKBggqhkjOPQQDAzBrMQswCQYDVQQGEwJJTjETMBEG
A1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEg
MB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0gRzMwHhcNMTgwMjE4MTgzMDAwWhcNNDMwMjE4
MTgzMDAwWjBrMQswCQYDVQQGEwJJTjETMBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11
ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEgMB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0g
RzMwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQjpQy4LRL1KPOxst3iAhKAnjlfSU2fySU0WXTsuwYc
58Byr+iuL+FBVIcUqEqy6HyC5ltqtdyzdc6LBtCGI79G1Y4PPwT01xySfvalY8L1X44uT6EYGQIr
MgqCZH0Wk9GjQjBAMB0GA1UdDgQWBBR8XQKEE9TMipuBzhccLikenEhjQjAOBgNVHQ8BAf8EBAMC
AQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNpADBmAjEAvvNhzwIQHWSVB7gYboiFBS+D
CBeQyh+KTOgNG3qxrdWBCUfvO6wIBHxcmbHtRwfSAjEAnbpV/KlK6O3t5nYBQnv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PEjE2NuLe/gDEo2APJ62gsIq1
NnpSob0n9CAnYuhNlCQT5AoE6TyrLshDCUrGYQTlSTR+08TI9Q/Aqum6VF7zYytPT1DU/rl7mYw9
wC68AivTxEDkigcxHpvOJpkT+xHqmiIMERnHXhuBUDDIlhJu58tBf5E7oke3VIAb3ADMmpDqw8NQ
BmIMMMAVSKeoWXzhriKi4gp6D/piq1JM4fHfyr6DDUI=
-----END CERTIFICATE-----
emSign ECC Root CA - C3
=======================
-----BEGIN CERTIFICATE-----
MIICKzCCAbGgAwIBAgIKe3G2gla4EnycqDAKBggqhkjOPQQDAzBaMQswCQYDVQQGEwJVUzETMBEG
A1UECxMKZW1TaWduIFBLSTEUMBIGA1UEChMLZU11ZGhyYSBJbmMxIDAeBgNVBAMTF2VtU2lnbiBF
Q0MgUm9vdCBDQSAtIEMzMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowWjELMAkGA1UE
BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMSAwHgYDVQQD
ExdlbVNpZ24gRUNDIFJvb3QgQ0EgLSBDMzB2MBAGByqGSM49AgEGBSuBBAAiA2IABP2lYa57JhAd
6bciMK4G9IGzsUJxlTm801Ljr6/58pc1kjZGDoeVjbk5Wum739D+yAdBPLtVb4OjavtisIGJAnB9
SMVK4+kiVCJNk7tCDK93nCOmfddhEc5lx/h//vXyqaNCMEAwHQYDVR0OBBYEFPtaSNCAIEDyqOkA
B2kZd6fmw/TPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMDA2gA
MGUCMQC02C8Cif22TGK6Q04ThHK1rt0c3ta13FaPWEBaLd4gTCKDypOofu4SQMfWh0/434UCMBwU
ZOR8loMRnLDRWmFLpg9J0wD8ofzkpf9/rdcw0Md3f76BB1UwUCAU9Vc4CqgxUQ==
-----END CERTIFICATE-----
Hongkong Post Root CA 3
=======================
-----BEGIN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N+ZItIsG
xVd7GYYKecsAyVKvQv83j+GjHno9UKtjBucVtT+2RTeUN7F+8kjDf8V1/peNRY8apxpyKBpADwID
AQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAfBgNVHSMEGDAWgBQXnc0e
i9Y5K3DTXNSguB+wAPzFYTAdBgNVHQ4EFgQUF53NHovWOStw01zUoLgfsAD8xWEwDQYJKoZIhvcN
AQELBQADggIBAFbVe27mIgHSQpsY1Q7XZiNc4/6gx5LS6ZStS6LG7BJ8dNVI0lkUmcDrudHr9Egw
W62nV3OZqdPlt9EuWSRY3GguLmLYauRwCy0gUCCkMpXRAJi70/33MvJJrsZ64Ee+bs7Lo3I6LWld
y8joRTnU+kLBEUx3XZL7av9YROXrgZ6voJmtvqkBZss4HTzfQx/0TW60uhdG/H39h4F5ag0zD/ov
+BS5gLNdTaqX4fnkGMX41TiMJjz98iji7lpJiCzfeT2OnpA8vUFKOt1b9pq0zj8lMH8yfaIDlNDc
eqFS3m6TjRgm/VWsvY+b0s+v54Ysyx8Jb6NvqYTUc79NoXQbTiNg8swOqn+knEwlqLJmOzj/2ZQw
9nKEvmhVEA/GcywWaZMH/rFF7buiVWqw2rVKAiUnhde3t4ZEFolsgCs+l6mc1X5VTMbeRRAc6uk7
nwNT7u56AQIWeNTowr5GdogTPyK7SBIdUgC0An4hGh6cJfTzPV4e0hz5sy229zdcxsshTrD3mUcY
hcErulWuBurQB7Lcq9CClnXO0lD+mefPL5/ndtFhKvshuzHQqp9HpLIiyhY6UFfEW0NnxWViA0kB
60PZ2Pierc+xYw5F9KBaLJstxabArahH9CdMOA0uG0k7UvToiIMrVCjU8jVStDKDYmlkDJGcn5fq
dBb9HxEGmpv0
-----END CERTIFICATE-----
Entrust Root Certification Authority - G4
=========================================
-----BEGIN CERTIFICATE-----
MIIGSzCCBDOgAwIBAgIRANm1Q3+vqTkPAAAAAFVlrVgwDQYJKoZIhvcNAQELBQAwgb4xCzAJBgNV
BA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Microsoft ECC Root Certificate Authority 2017
=============================================
-----BEGIN CERTIFICATE-----
MIICWTCCAd+gAwIBAgIQZvI9r4fei7FK6gxXMQHC7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV
UzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYDVQQDEy1NaWNyb3NvZnQgRUND
IFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwHhcNMTkxMjE4MjMwNjQ1WhcNNDIwNzE4
MjMxNjA0WjBlMQswCQYDVQQGEwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYw
NAYDVQQDEy1NaWNyb3NvZnQgRUNDIFJvb3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTcwdjAQ
BgcqhkjOPQIBBgUrgQQAIgNiAATUvD0CQnVBEyPNgASGAlEvaqiBYgtlzPbKnR5vSmZRogPZnZH6
thaxjG7efM3beaYvzrvOcS/lpaso7GMEZpn4+vKTEAXhgShC48Zo9OYbhGBKia/teQ87zvH2RPUB
eMCjVDBSMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTIy5lycFIM
+Oa+sgRXKSrPQhDtNTAQBgkrBgEEAYI3FQEEAwIBADAKBggqhkjOPQQDAwNoADBlAjBY8k3qDPlf
Xu5gKcs68tvWMoQZP3zVL8KxzJOuULsJMsbG7X7JNpQS5GiFBqIb0C8CMQCZ6Ra0DvpWSNSkMBaR
eNtUjGUBiudQZsIxtzm6uBoiB078a1QWIP8rtedMDE2mT3M=
-----END CERTIFICATE-----
Microsoft RSA Root Certificate Authority 2017
=============================================
-----BEGIN CERTIFICATE-----
MIIFqDCCA5CgAwIBAgIQHtOXCV/YtLNHcB6qvn9FszANBgkqhkiG9w0BAQwFADBlMQswCQYDVQQG
EwJVUzEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTYwNAYDV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yIOpwpJ6st+H6jiYoD2EEVSmAYY3qXNL3+q1Ok+CHLsIwMCPKaq2LxndD0UF/tU
Sxfj03k9bWtJySgOLnRQvwzZRjoQhsmnP+mg7H/rpXdYaXHmgwo38oZJar55CJD2AhZkPuXaTH4M
NMn5X7azKFGnpyuqSfqNZSlO42sTp5SjLVFteAxEy9/eCG/Oo2Sr05WE1LlSVHJ7liXMvGnjSG4N
0MedJ5qq+BOS3R7fY581qRY27Iy4g/Q9iY/NtBde17MXQRBdJ3NghVdJIgc=
-----END CERTIFICATE-----
Trustwave Global Certification Authority
========================================
-----BEGIN CERTIFICATE-----
MIIF2jCCA8KgAwIBAgIMBfcOhtpJ80Y1LrqyMA0GCSqGSIb3DQEBCwUAMIGIMQswCQYDVQQGEwJV
UzERMA8GA1UECAwISWxsaW5vaXMxEDAOBgNVBAcMB0NoaWNhZ28xITAfBgNVBAoMGFRydXN0d2F2
ZSBIb2xkaW5ncywgSW5jLjExMC8GA1UEAwwoVHJ1c3R3YXZlIEdsb2JhbCBDZXJ0aWZpY2F0aW9u
IEF1dGhvcml0eTAeFw0xNzA4MjMxOTM0MTJaFw00MjA4MjMxOTM0MTJaMIGIMQswCQYDVQQGEwJV
UzERMA8GA1UECAwISWxsaW5vaXMxEDAOBgNVBAcMB0NoaWNhZ28xITAfBgNVBAoMGFRydXN0d2F2
ZSBIb2xkaW5ncywgSW5jLjExMC8GA1UEAwwoVHJ1c3R3YXZlIEdsb2JhbCBDZXJ0aWZpY2F0aW9u
IEF1dGhvcml0eTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALldUShLPDeS0YLOvR29
zd24q88KPuFd5dyqCblXAj7mY2Hf8g+CY66j96xz0XznswuvCAAJWX/NKSqIk4cXGIDtiLK0thAf
LdZfVaITXdHG6wZWiYj+rDKd/VzDBcdu7oaJuogDnXIhhpCujwOl3J+IKMujkkkP7NAP4m1ET4Bq
stTnoApTAbqOl5F2brz81Ws25kCI1nsvXwXoLG0R8+eyv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YHTtgGJoC86cnn+OjC/QezH
Yj6RS8fZMXZC+fc8Y+wmjHMMfRod6qh8h6jCJ3zhM0EPz8/8AKAigJ5Kp28AsEFFtyLKaEjFQqKu
3R3y4G5OBVixwJAWKqQ9EEC+j2Jjg6mcgn0tAumDMHzLJ8n9HmYAsC7TIS+OMxZsmO0QqAfWzJPP
29FpHOTKyeC2nOnOcXHebD8WpHk=
-----END CERTIFICATE-----
Trustwave Global ECC P256 Certification Authority
=================================================
-----BEGIN CERTIFICATE-----
MIICYDCCAgegAwIBAgIMDWpfCD8oXD5Rld9dMAoGCCqGSM49BAMCMIGRMQswCQYDVQQGEwJVUzER
MA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBI
b2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBFQ0MgUDI1NiBDZXJ0aWZp
Y2F0aW9uIEF1dGhvcml0eTAeFw0xNzA4MjMxOTM1MTBaFw00MjA4MjMxOTM1MTBaMIGRMQswCQYD
VQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRy
dXN0d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBFQ0MgUDI1
NiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABH77bOYj
43MyCMpg5lOcunSNGLB4kFKA3TjASh3RqMyTpJcGOMoNFWLGjgEqZZ2q3zSRLoHB5DOSMcT9CTqm
P62jQzBBMA8GA1UdEwEB/wQFMAMBAf8wDwYDVR0PAQH/BAUDAwcGADAdBgNVHQ4EFgQUo0EGrJBt
0UrrdaVKEJmzsaGLSvcwCgYIKoZIzj0EAwIDRwAwRAIgB+ZU2g6gWrKuEZ+Hxbb/ad4lvvigtwjz
RM4q3wghDDcCIC0mA6AFvWvR9lz4ZcyGbbOcNEhjhAnFjXca4syc4XR7
-----END CERTIFICATE-----
Trustwave Global ECC P384 Certification Authority
=================================================
-----BEGIN CERTIFICATE-----
MIICnTCCAiSgAwIBAgIMCL2Fl2yZJ6SAaEc7MAoGCCqGSM49BAMDMIGRMQswCQYDVQQGEwJVUzER
MA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBI
b2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBFQ0MgUDM4NCBDZXJ0aWZp
Y2F0aW9uIEF1dGhvcml0eTAeFw0xNzA4MjMxOTM2NDNaFw00MjA4MjMxOTM2NDNaMIGRMQswCQYD
VQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRy
dXN0d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBFQ0MgUDM4
NCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTB2MBAGByqGSM49AgEGBSuBBAAiA2IABGvaDXU1CDFH
Ba5FmVXxERMuSvgQMSOjfoPTfygIOiYaOs+Xgh+AtycJj9GOMMQKmw6sWASr9zZ9lCOkmwqKi6vr
/TklZvFe/oyujUF5nQlgziip04pt89ZF1PKYhDhloKNDMEEwDwYDVR0TAQH/BAUwAwEB/zAPBgNV
HQ8BAf8EBQMDBwYAMB0GA1UdDgQWBBRVqYSJ0sEyvRjLbKYHTsjnnb6CkDAKBggqhkjOPQQDAwNn
ADBkAjA3AZKXRRJ+oPM+rRk6ct30UJMDEr5E0k9BpIycnR+j9sKS50gU/k6bpZFXrsY3crsCMGcl
CrEMXu6pY5Jv5ZAL/mYiykf9ijH3g/56vxC+GCsej/YpHpRZ744hN8tRmKVuSw==
-----END CERTIFICATE-----
NAVER Global Root Certification Authority
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OUt7kinaxeZVL6HSuOpXgRM6xBtVNbv8ejy
YhbLgGvtPe31HzClrkvJE+2KAQHJuFFYwGY6sWZLxNUxAmLpdIQM201GLQIDAQABo0IwQDAdBgNV
HQ4EFgQU0p+I36HNLL3s9TsBAZMzJ7LrYEswDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMB
Af8wDQYJKoZIhvcNAQEMBQADggIBADLKgLOdPVQG3dLSLvCkASELZ0jKbY7gyKoNqo0hV4/GPnrK
21HUUrPUloSlWGB/5QuOH/XcChWB5Tu2tyIvCZwTFrFsDDUIbatjcu3cvuzHV+YwIHHW1xDBE1UB
jCpD5EHxzzp6U5LOogMFDTjfArsQLtk70pt6wKGm+LUx5vR1yblTmXVHIloUFcd4G7ad6Qz4G3bx
hYTeodoS76TiEJd6eN4MUZeoIUCLhr0N8F5OSza7OyAfikJW4Qsav3vQIkMsRIz75Sq0bBwcupTg
E34h5prCy8VCZLQelHsIJchxzIdFV4XTnyliIoNRlwAYl3dqmJLJfGBs32x9SuRwTMKeuB330DTH
D8z7p/8Dvq1wkNoL3chtl1+afwkyQf3NosxabUzyqkn+Zvjp2DXrDige7kgvOtB5CTh8piKCk5XQ
A76+AqAF3SAi428diDRgxuYKuQl1C/AH6GmWNcf7I4GOODm4RStDeKLRLBT/DShycpWbXgnbiUSY
qqFJu3FS8r/2/yehNq+4tneI3TqkbZs0kNwUXTC/t+sX5Ie3cdCh13cV1ELX8vMxmV2b3RZtP+oG
I/hGoiLtk/bdmuYqh7GYVPEi92tF4+KOdh2ajcQGjTa3FPOdVGm3jjzVpG2Tgbet9r1ke8LJaDmg
kpzNNIaRkPpkUZ3+/uul9XXeifdy
-----END CERTIFICATE-----
AC RAIZ FNMT-RCM SERVIDORES SEGUROS
===================================
-----BEGIN CERTIFICATE-----
MIICbjCCAfOgAwIBAgIQYvYybOXE42hcG2LdnC6dlTAKBggqhkjOPQQDAzB4MQswCQYDVQQGEwJF
UzERMA8GA1UECgwIRk5NVC1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qPeoott7VMVgWglvquxl1AnMaykgaIZOQCo6ThKd9OyMYkomgjaw=
-----END CERTIFICATE-----
Certum EC-384 CA
================
-----BEGIN CERTIFICATE-----
MIICZTCCAeugAwIBAgIQeI8nXIESUiClBNAt3bpz9DAKBggqhkjOPQQDAzB0MQswCQYDVQQGEwJQ
TDEhMB8GA1UEChMYQXNzZWNvIERhdGEgU3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2Vy
dGlmaWNhdGlvbiBBdXRob3JpdHkxGTAXBgNVBAMTEENlcnR1bSBFQy0zODQgQ0EwHhcNMTgwMzI2
MDcyNDU0WhcNNDMwMzI2MDcyNDU0WjB0MQswCQYDVQQGEwJQTDEhMB8GA1UEChMYQXNzZWNvIERh
dGEgU3lzdGVtcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkx
GTAXBgNVBAMTEENlcnR1bSBFQy0zODQgQ0EwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAATEKI6rGFtq
vm5kN2PkzeyrOvfMobgOgknXhimfoZTy42B4mIF4Bk3y7JoOV2CDn7TmFy8as10CW4kjPMIRBSqn
iBMY81CE1700LCeJVf/OTOffph8oxPBUw7l8t1Ot68KjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYD
VR0OBBYEFI0GZnQkdjrzife81r1HfS+8EF9LMA4GA1UdDwEB/wQEAwIBBjAKBggqhkjOPQQDAwNo
ADBlAjADVS2m5hjEfO/JUG7BJw+ch69u1RsIGL2SKcHvlJF40jocVYli5RsJHrpka/F2tNQCMQC0
QoSZ/6vnnvuRlydd3LBbMHHOXjgaatkl5+r3YZJW+OraNsKHZZYuciUvf9/DE8k=
-----END CERTIFICATE-----
Certum Trusted Root CA
======================
-----BEGIN CERTIFICATE-----
MIIFwDCCA6igAwIBAgIQHr9ZULjJgDdMBvfrVU+17TANBgkqhkiG9w0BAQ0FADB6MQswCQYDVQQG
EwJQTDEhMB8G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MjAyMTB2MBAGByqGSM49AgEGBSuBBAAiA2IABDgI/rGgltJ6rK9JOtDA4MM7KKrxcm1l
AEeIhPyaJmuqS7psBAqIXhfyVYf8MLA04jRYVxqEU+kw2anylnTDUR9YSTHMmE5gEYd103KUkE+b
ECUqqHgtvpBBWJAVcqeht6NCMEAwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUyRtTgRL+BNUW
0aq8mm+3oJUZbsowDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMDA2cAMGQCMBHervjcToiwqfAi
rcJRQO9gcS3ujwLEXQNwSaSS6sUUiHCm0w2wqsosQJz76YJumgIwK0eaB8bRwoF8yguWGEEbo/Qw
CZ61IygNnxS2PFOiTAZpffpskcYqSUXm7LcT4Tps
-----END CERTIFICATE-----
Autoridad de Certificacion Firmaprofesional CIF A62634068
=========================================================
-----BEGIN CERTIFICATE-----
MIIGFDCCA/ygAwIBAgIIG3Dp0v+ubHEwDQYJKoZIhvcNAQELBQAwUTELMAkGA1UEBhMCRVMxQjBA
BgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE2
MjYzNDA2ODAeFw0xNDA5MjMxNTIyMDdaFw0zNjA1MDUxNTIyMDdaMFExCzAJBgNVBAYTAkVTMUIw
QAYDVQQDDDlBdXRvcmlkYWQgZGUgQ2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBB
NjI2MzQwNjgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDD
Utd9thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQMcas9UX4P
B99jBVzpv5RvwSmCwLTaUbDBPLutN0pcyvFLNg4kq7/DhHf9qFD0sefGL9ItWY16Ck6WaVICqjaY
7Pz6FIMMNx/Jkjd/14Et5cS54D40/mf0PmbR0/R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TMpWmWSBUdGSquE
wx4noR8RkpkndZMPvDY7l1ePJlsMu5wP1G4wB9TcXzZoZjmDlicmisjEOf6aIW/Vcobpf2Lll07Q
JNBAsNB1CI69aO4I1258EHBGG3zgiLKecoaZAeO/n0kZtCW+VmWuF2PlHt/o/0elv+EmBYTksMCv
5wiZqAxeJoBF1PhoL5aPruJKHJwWDBNvOIf2u8g0X5IDUXlwpt/L9ZlNec1OvFefQ05rLisY+Gpz
jLrFNe85akEez3GoorKGB1s6yeHvP2UEgEcyRHCVTjFnanRbEEV16rCf0OY1/k6fi8wrkkVbbiVg
hUbN0aqwdmaTd5a+g744tiROJgvM7XpWGuDpWsZkrUx6AEhEL7lAuxM+vhV4nYWBSipX3tUZQ9rb
yltHhoMLP7YNdnhzeSJesYAfz77RP1YQmCuVh6EfnWQUYDksswBVLuT1sw5XxJFBAJw/6KXf6vb/
yPCtbVKoF6ubYfwSUTXkJf2vqmqGOQ==
-----END CERTIFICATE-----
GlobalSign ECC Root CA - R4
===========================
-----BEGIN CERTIFICATE-----
MIIB3DCCAYOgAwIBAgINAgPlfvU/k/2lCSGypjAKBggqhkjOPQQDAjBQMSQwIgYDVQQLExtHbG9i
YWxTaWduIEVDQyBSb290IENBIC0gUjQxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds
b2JhbFNpZ24wHhcNMTIxMTEzMDAwMDAwWhcNMzgwMTE5MDMxNDA3WjBQMSQwIgYDVQQLExtHbG9i
YWxTaWduIEVDQyBSb290IENBIC0gUjQxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds
b2JhbFNpZ24wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAS4xnnTj2wlDp8uORkcA6SumuU5BwkW
ymOxuYb4ilfBV85C+nOh92VC/x7BALJucw7/xyHlGKSq2XE/qNS5zowdo0IwQDAOBgNVHQ8BAf8E
BAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUVLB7rUW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t+ZIpEYslOqodmJHixBTB0hXbOKSTbau
BcvcwUpej6w9GU7C7WB1K9vBykLVAgMBAAGjYzBhMB8GA1UdIwQYMBaAFHKs5DN5qkWH9v2sHZ7W
xy+G2CQ5MB0GA1UdDgQWBBRyrOQzeapFh/b9rB2e1scvhtgkOTAOBgNVHQ8BAf8EBAMCAQYwDwYD
VR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAgEAoDtZpwmUPjaE0n4vOaWWl/oRrfxn83EJ
8rKJhGdEr7nv7ZbsnGTbMjBvZ5qsfl+yqwE2foH65IRe0qw24GtixX1LDoJt0nZi0f6X+J8wfBj5
tFJ3gh1229MdqfDBmgC9bXXYfef6xzijnHDoRnkDry5023X4blMMA8iZGok1GTzTyVR8qPAs5m4H
eW9q4ebqkYJpCh3DflminmtGFZhb069GHWLIzoBSSRE/yQQSwxN8PzuKlts8oB4KtItUsiRnDe+C
y748fdHif64W1lZYudogsYMVoe+KTTJvQS8TUoKU1xrBeKJR3Stwbbca+few4GeXVtt8YVMJAygC
QMez2P2ccGrGKMOF6eLtGpOg3kuYooQ+BXcBlj37tCAPnHICehIv1aO6UXivKitEZU61/Qrowc15
h2Er3oBXRb9n8ZuRXqWk7FlIEA04x7D6w0RtBPV4UBySllva9bguulvP5fBqnUsvWHMtTy3EHD70
sz+rFQ47GUGKpMFXEmZxTPpT41frYpUJnlTd0cI8Vzy9OK2YZLe4A5pTVmBds9hCG1xLEooc6+t9
xnppxyd/pPiL8uSUZodL6ZQHCRJ5irLrdATczvREWeAWysUsWNc8e89ihmpQfTU2Zqf7N+cox9jQ
raVplI/owd8k+BsHMYeB2F326CjYSlKArBPuUBQemMc=
-----END CERTIFICATE-----
D-TRUST BR Root CA 1 2020
=========================
-----BEGIN CERTIFICATE-----
MIIC2zCCAmCgAwIBAgIQfMmPK4TX3+oPyWWa00tNljAKBggqhkjOPQQDAzBIMQswCQYDVQQGEwJE
RTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMS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SVVNUIEVWIFJvb3QgQ0EgMSAy
MDIwMB4XDTIwMDIxMTEwMDAwMFoXDTM1MDIxMTA5NTk1OVowSDELMAkGA1UEBhMCREUxFTATBgNV
BAoTDEQtVHJ1c3QgR21iSDEiMCAGA1UEAxMZRC1UUlVTVCBFViBSb290IENBIDEgMjAyMDB2MBAG
ByqGSM49AgEGBSuBBAAiA2IABPEL3YZDIBnfl4XoIkqbz52Yv7QFJsnL46bSj8WeeHsxiamJrSc8
ZRCC/N/DnU7wMyPE0jL1HLDfMxddxfCxivnvubcUyilKwg+pf3VlSSowZ/Rk99Yad9rDwpdhQntJ
raOCAQ0wggEJMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFH8QARY3OqQo5FD4pPfsazK2/umL
MA4GA1UdDwEB/wQEAwIBBjCBxgYDVR0fBIG+MIG7MD6gPKA6hjhodHRwOi8vY3JsLmQtdHJ1c3Qu
bmV0L2NybC9kLXRydXN0X2V2X3Jvb3RfY2FfMV8yMDIwLmNybDB5oHegdYZzbGRhcDovL2RpcmVj
dG9yeS5kLXRydXN0Lm5ldC9DTj1ELVRSVVNUJTIwRVYlMjBSb290JTIwQ0ElMjAxJTIwMjAyMCxP
PUQtVHJ1c3QlMjBHbWJILEM9REU/Y2VydGlmaWNhdGVyZXZvY2F0aW9ubGlzdDAKBggqhkjOPQQD
AwNpADBmAjEAyjzGKnXCXnViOTYAYFqLwZOZzNnbQTs7h5kXO9XMT8oi96CAy/m0sRtW9XLS/BnR
AjEAkfcwkz8QRitxpNA7RJvAKQIFskF3UfN5Wp6OFKBOQtJbgfM0agPnIjhQW+0ZT0MW
-----END CERTIFICATE-----
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/error.py 0000644 0001751 0000171 00000010274 14335240430 015434 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
from stripe.six import python_2_unicode_compatible
@python_2_unicode_compatible
class StripeError(Exception):
def __init__(
self,
message=None,
http_body=None,
http_status=None,
json_body=None,
headers=None,
code=None,
):
super(StripeError, self).__init__(message)
if http_body and hasattr(http_body, "decode"):
try:
http_body = http_body.decode("utf-8")
except BaseException:
http_body = (
""
)
self._message = message
self.http_body = http_body
self.http_status = http_status
self.json_body = json_body
self.headers = headers or {}
self.code = code
self.request_id = self.headers.get("request-id", None)
self.error = self.construct_error_object()
def __str__(self):
msg = self._message or ""
if self.request_id is not None:
return u"Request {0}: {1}".format(self.request_id, msg)
else:
return msg
# Returns the underlying `Exception` (base class) message, which is usually
# the raw message returned by Stripe's API. This was previously available
# in python2 via `error.message`. Unlike `str(error)`, it omits "Request
# req_..." from the beginning of the string.
@property
def user_message(self):
return self._message
def __repr__(self):
return "%s(message=%r, http_status=%r, request_id=%r)" % (
self.__class__.__name__,
self._message,
self.http_status,
self.request_id,
)
def construct_error_object(self):
if (
self.json_body is None
or "error" not in self.json_body
or not isinstance(self.json_body["error"], dict)
):
return None
return stripe.api_resources.error_object.ErrorObject.construct_from(
self.json_body["error"], stripe.api_key
)
class APIError(StripeError):
pass
class APIConnectionError(StripeError):
def __init__(
self,
message,
http_body=None,
http_status=None,
json_body=None,
headers=None,
code=None,
should_retry=False,
):
super(APIConnectionError, self).__init__(
message, http_body, http_status, json_body, headers, code
)
self.should_retry = should_retry
class StripeErrorWithParamCode(StripeError):
def __repr__(self):
return (
"%s(message=%r, param=%r, code=%r, http_status=%r, "
"request_id=%r)"
% (
self.__class__.__name__,
self._message,
self.param,
self.code,
self.http_status,
self.request_id,
)
)
class CardError(StripeErrorWithParamCode):
def __init__(
self,
message,
param,
code,
http_body=None,
http_status=None,
json_body=None,
headers=None,
):
super(CardError, self).__init__(
message, http_body, http_status, json_body, headers, code
)
self.param = param
class IdempotencyError(StripeError):
pass
class InvalidRequestError(StripeErrorWithParamCode):
def __init__(
self,
message,
param,
code=None,
http_body=None,
http_status=None,
json_body=None,
headers=None,
):
super(InvalidRequestError, self).__init__(
message, http_body, http_status, json_body, headers, code
)
self.param = param
class AuthenticationError(StripeError):
pass
class PermissionError(StripeError):
pass
class RateLimitError(StripeError):
pass
class SignatureVerificationError(StripeError):
def __init__(self, message, sig_header, http_body=None):
super(SignatureVerificationError, self).__init__(message, http_body)
self.sig_header = sig_header
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/http_client.py 0000644 0001751 0000171 00000062232 14335240430 016621 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import sys
import textwrap
import warnings
import email
import time
import random
import threading
import json
import stripe
from stripe import error, util, six
from stripe.request_metrics import RequestMetrics
# - Requests is the preferred HTTP library
# - Google App Engine has urlfetch
# - Use Pycurl if it's there (at least it verifies SSL certs)
# - Fall back to urllib2 with a warning if needed
try:
from stripe.six.moves import urllib
except ImportError:
# Try to load in urllib2, but don't sweat it if it's not available.
pass
try:
import pycurl
except ImportError:
pycurl = None
try:
import requests
except ImportError:
requests = None
else:
try:
# Require version 0.8.8, but don't want to depend on distutils
version = requests.__version__
major, minor, patch = [int(i) for i in version.split(".")]
except Exception:
# Probably some new-fangled version, so it should support verify
pass
else:
if (major, minor, patch) < (0, 8, 8):
sys.stderr.write(
"Warning: the Stripe library requires that your Python "
'"requests" library be newer than version 0.8.8, but your '
'"requests" library is version %s. Stripe will fall back to '
"an alternate HTTP library so everything should work. We "
'recommend upgrading your "requests" library. If you have any '
"questions, please contact support@stripe.com. (HINT: running "
'"pip install -U requests" should upgrade your requests '
"library to the latest version.)" % (version,)
)
requests = None
try:
from google.appengine.api import urlfetch
except ImportError:
urlfetch = None
# proxy support for the pycurl client
from stripe.six.moves.urllib.parse import urlparse
def _now_ms():
return int(round(time.time() * 1000))
def new_default_http_client(*args, **kwargs):
if urlfetch:
impl = UrlFetchClient
elif requests:
impl = RequestsClient
elif pycurl:
impl = PycurlClient
else:
impl = Urllib2Client
if sys.version_info < (2, 7, 9):
warnings.warn(
"Warning: the Stripe library is falling back to urllib2 "
"because neither requests nor pycurl are installed. "
"urllib2's SSL implementation doesn't verify server "
"certificates. For improved security, we suggest installing "
"requests."
)
return impl(*args, **kwargs)
class HTTPClient(object):
MAX_DELAY = 2
INITIAL_DELAY = 0.5
MAX_RETRY_AFTER = 60
def __init__(self, verify_ssl_certs=True, proxy=None):
self._verify_ssl_certs = verify_ssl_certs
if proxy:
if isinstance(proxy, str):
proxy = {"http": proxy, "https": proxy}
if not isinstance(proxy, dict):
raise ValueError(
"Proxy(ies) must be specified as either a string "
"URL or a dict() with string URL under the"
" "
"https"
" and/or "
"http"
" keys."
)
self._proxy = proxy.copy() if proxy else None
self._thread_local = threading.local()
def request_with_retries(self, method, url, headers, post_data=None):
return self._request_with_retries_internal(
method, url, headers, post_data, is_streaming=False
)
def request_stream_with_retries(
self, method, url, headers, post_data=None
):
return self._request_with_retries_internal(
method, url, headers, post_data, is_streaming=True
)
def _request_with_retries_internal(
self, method, url, headers, post_data, is_streaming
):
self._add_telemetry_header(headers)
num_retries = 0
while True:
request_start = _now_ms()
try:
if is_streaming:
response = self.request_stream(
method, url, headers, post_data
)
else:
response = self.request(method, url, headers, post_data)
connection_error = None
except error.APIConnectionError as e:
connection_error = e
response = None
if self._should_retry(response, connection_error, num_retries):
if connection_error:
util.log_info(
"Encountered a retryable error %s"
% connection_error.user_message
)
num_retries += 1
sleep_time = self._sleep_time_seconds(num_retries, response)
util.log_info(
(
"Initiating retry %i for request %s %s after "
"sleeping %.2f seconds."
% (num_retries, method, url, sleep_time)
)
)
time.sleep(sleep_time)
else:
if response is not None:
self._record_request_metrics(response, request_start)
return response
else:
raise connection_error
def request(self, method, url, headers, post_data=None):
raise NotImplementedError(
"HTTPClient subclasses must implement `request`"
)
def request_stream(self, method, url, headers, post_data=None):
raise NotImplementedError(
"HTTPClient subclasses must implement `request_stream`"
)
def _should_retry(self, response, api_connection_error, num_retries):
if num_retries >= self._max_network_retries():
return False
if response is None:
# We generally want to retry on timeout and connection
# exceptions, but defer this decision to underlying subclass
# implementations. They should evaluate the driver-specific
# errors worthy of retries, and set flag on the error returned.
return api_connection_error.should_retry
_, status_code, rheaders = response
# The API may ask us not to retry (eg; if doing so would be a no-op)
# or advise us to retry (eg; in cases of lock timeouts); we defer to that.
#
# Note that we expect the headers object to be a CaseInsensitiveDict, as is the case with the requests library.
if rheaders is not None and "stripe-should-retry" in rheaders:
if rheaders["stripe-should-retry"] == "false":
return False
if rheaders["stripe-should-retry"] == "true":
return True
# Retry on conflict errors.
if status_code == 409:
return True
# Retry on 500, 503, and other internal errors.
#
# Note that we expect the stripe-should-retry header to be false
# in most cases when a 500 is returned, since our idempotency framework
# would typically replay it anyway.
if status_code >= 500:
return True
return False
def _max_network_retries(self):
from stripe import max_network_retries
# Configured retries, isolated here for tests
return max_network_retries
def _retry_after_header(self, response=None):
if response is None:
return None
_, _, rheaders = response
try:
return int(rheaders["retry-after"])
except (KeyError, ValueError):
return None
def _sleep_time_seconds(self, num_retries, response=None):
# Apply exponential backoff with initial_network_retry_delay on the
# number of num_retries so far as inputs.
# Do not allow the number to exceed max_network_retry_delay.
sleep_seconds = min(
HTTPClient.INITIAL_DELAY * (2 ** (num_retries - 1)),
HTTPClient.MAX_DELAY,
)
sleep_seconds = self._add_jitter_time(sleep_seconds)
# But never sleep less than the base sleep seconds.
sleep_seconds = max(HTTPClient.INITIAL_DELAY, sleep_seconds)
# And never sleep less than the time the API asks us to wait, assuming it's a reasonable ask.
retry_after = self._retry_after_header(response) or 0
if retry_after <= HTTPClient.MAX_RETRY_AFTER:
sleep_seconds = max(retry_after, sleep_seconds)
return sleep_seconds
def _add_jitter_time(self, sleep_seconds):
# Randomize the value in [(sleep_seconds/ 2) to (sleep_seconds)]
# Also separated method here to isolate randomness for tests
sleep_seconds *= 0.5 * (1 + random.uniform(0, 1))
return sleep_seconds
def _add_telemetry_header(self, headers):
last_request_metrics = getattr(
self._thread_local, "last_request_metrics", None
)
if stripe.enable_telemetry and last_request_metrics:
telemetry = {
"last_request_metrics": last_request_metrics.payload()
}
headers["X-Stripe-Client-Telemetry"] = json.dumps(telemetry)
def _record_request_metrics(self, response, request_start):
_, _, rheaders = response
if "Request-Id" in rheaders and stripe.enable_telemetry:
request_id = rheaders["Request-Id"]
request_duration_ms = _now_ms() - request_start
self._thread_local.last_request_metrics = RequestMetrics(
request_id, request_duration_ms
)
def close(self):
raise NotImplementedError(
"HTTPClient subclasses must implement `close`"
)
class RequestsClient(HTTPClient):
name = "requests"
def __init__(self, timeout=80, session=None, **kwargs):
super(RequestsClient, self).__init__(**kwargs)
self._session = session
self._timeout = timeout
def request(self, method, url, headers, post_data=None):
return self._request_internal(
method, url, headers, post_data, is_streaming=False
)
def request_stream(self, method, url, headers, post_data=None):
return self._request_internal(
method, url, headers, post_data, is_streaming=True
)
def _request_internal(self, method, url, headers, post_data, is_streaming):
kwargs = {}
if self._verify_ssl_certs:
kwargs["verify"] = stripe.ca_bundle_path
else:
kwargs["verify"] = False
if self._proxy:
kwargs["proxies"] = self._proxy
if is_streaming:
kwargs["stream"] = True
if getattr(self._thread_local, "session", None) is None:
self._thread_local.session = self._session or requests.Session()
try:
try:
result = self._thread_local.session.request(
method,
url,
headers=headers,
data=post_data,
timeout=self._timeout,
**kwargs
)
except TypeError as e:
raise TypeError(
"Warning: It looks like your installed version of the "
'"requests" library is not compatible with Stripe\'s '
"usage thereof. (HINT: The most likely cause is that "
'your "requests" library is out of date. You can fix '
'that by running "pip install -U requests".) The '
"underlying error was: %s" % (e,)
)
if is_streaming:
content = result.raw
else:
# This causes the content to actually be read, which could cause
# e.g. a socket timeout. TODO: The other fetch methods probably
# are susceptible to the same and should be updated.
content = result.content
status_code = result.status_code
except Exception as e:
# Would catch just requests.exceptions.RequestException, but can
# also raise ValueError, RuntimeError, etc.
self._handle_request_error(e)
return content, status_code, result.headers
def _handle_request_error(self, e):
# Catch SSL error first as it belongs to ConnectionError,
# but we don't want to retry
if isinstance(e, requests.exceptions.SSLError):
msg = (
"Could not verify Stripe's SSL certificate. Please make "
"sure that your network is not intercepting certificates. "
"If this problem persists, let us know at "
"support@stripe.com."
)
err = "%s: %s" % (type(e).__name__, str(e))
should_retry = False
# Retry only timeout and connect errors; similar to urllib3 Retry
elif isinstance(
e,
(requests.exceptions.Timeout, requests.exceptions.ConnectionError),
):
msg = (
"Unexpected error communicating with Stripe. "
"If this problem persists, let us know at "
"support@stripe.com."
)
err = "%s: %s" % (type(e).__name__, str(e))
should_retry = True
# Catch remaining request exceptions
elif isinstance(e, requests.exceptions.RequestException):
msg = (
"Unexpected error communicating with Stripe. "
"If this problem persists, let us know at "
"support@stripe.com."
)
err = "%s: %s" % (type(e).__name__, str(e))
should_retry = False
else:
msg = (
"Unexpected error communicating with Stripe. "
"It looks like there's probably a configuration "
"issue locally. If this problem persists, let us "
"know at support@stripe.com."
)
err = "A %s was raised" % (type(e).__name__,)
if str(e):
err += " with error message %s" % (str(e),)
else:
err += " with no error message"
should_retry = False
msg = textwrap.fill(msg) + "\n\n(Network error: %s)" % (err,)
raise error.APIConnectionError(msg, should_retry=should_retry)
def close(self):
if getattr(self._thread_local, "session", None) is not None:
self._thread_local.session.close()
class UrlFetchClient(HTTPClient):
name = "urlfetch"
def __init__(self, verify_ssl_certs=True, proxy=None, deadline=55):
super(UrlFetchClient, self).__init__(
verify_ssl_certs=verify_ssl_certs, proxy=proxy
)
# no proxy support in urlfetch. for a patch, see:
# https://code.google.com/p/googleappengine/issues/detail?id=544
if proxy:
raise ValueError(
"No proxy support in urlfetch library. "
"Set stripe.default_http_client to either RequestsClient, "
"PycurlClient, or Urllib2Client instance to use a proxy."
)
self._verify_ssl_certs = verify_ssl_certs
# GAE requests time out after 60 seconds, so make sure to default
# to 55 seconds to allow for a slow Stripe
self._deadline = deadline
def request(self, method, url, headers, post_data=None):
return self._request_internal(
method, url, headers, post_data, is_streaming=False
)
def request_stream(self, method, url, headers, post_data=None):
return self._request_internal(
method, url, headers, post_data, is_streaming=True
)
def _request_internal(self, method, url, headers, post_data, is_streaming):
try:
result = urlfetch.fetch(
url=url,
method=method,
headers=headers,
# Google App Engine doesn't let us specify our own cert bundle.
# However, that's ok because the CA bundle they use recognizes
# api.stripe.com.
validate_certificate=self._verify_ssl_certs,
deadline=self._deadline,
payload=post_data,
)
except urlfetch.Error as e:
self._handle_request_error(e, url)
if is_streaming:
content = util.io.BytesIO(str.encode(result.content))
else:
content = result.content
return content, result.status_code, result.headers
def _handle_request_error(self, e, url):
if isinstance(e, urlfetch.InvalidURLError):
msg = (
"The Stripe library attempted to fetch an "
"invalid URL (%r). This is likely due to a bug "
"in the Stripe Python bindings. Please let us know "
"at support@stripe.com." % (url,)
)
elif isinstance(e, urlfetch.DownloadError):
msg = "There was a problem retrieving data from Stripe."
elif isinstance(e, urlfetch.ResponseTooLargeError):
msg = (
"There was a problem receiving all of your data from "
"Stripe. This is likely due to a bug in Stripe. "
"Please let us know at support@stripe.com."
)
else:
msg = (
"Unexpected error communicating with Stripe. If this "
"problem persists, let us know at support@stripe.com."
)
msg = textwrap.fill(msg) + "\n\n(Network error: " + str(e) + ")"
raise error.APIConnectionError(msg)
def close(self):
pass
class PycurlClient(HTTPClient):
name = "pycurl"
def __init__(self, verify_ssl_certs=True, proxy=None):
super(PycurlClient, self).__init__(
verify_ssl_certs=verify_ssl_certs, proxy=proxy
)
# Initialize this within the object so that we can reuse connections.
self._curl = pycurl.Curl()
# need to urlparse the proxy, since PyCurl
# consumes the proxy url in small pieces
if self._proxy:
# now that we have the parser, get the proxy url pieces
proxy = self._proxy
for scheme, value in six.iteritems(proxy):
proxy[scheme] = urlparse(value)
def parse_headers(self, data):
if "\r\n" not in data:
return {}
raw_headers = data.split("\r\n", 1)[1]
headers = email.message_from_string(raw_headers)
return dict((k.lower(), v) for k, v in six.iteritems(dict(headers)))
def request(self, method, url, headers, post_data=None):
return self._request_internal(
method, url, headers, post_data, is_streaming=False
)
def request_stream(self, method, url, headers, post_data=None):
return self._request_internal(
method, url, headers, post_data, is_streaming=True
)
def _request_internal(self, method, url, headers, post_data, is_streaming):
b = util.io.BytesIO()
rheaders = util.io.BytesIO()
# Pycurl's design is a little weird: although we set per-request
# options on this object, it's also capable of maintaining established
# connections. Here we call reset() between uses to make sure it's in a
# pristine state, but notably reset() doesn't reset connections, so we
# still get to take advantage of those by virtue of re-using the same
# object.
self._curl.reset()
proxy = self._get_proxy(url)
if proxy:
if proxy.hostname:
self._curl.setopt(pycurl.PROXY, proxy.hostname)
if proxy.port:
self._curl.setopt(pycurl.PROXYPORT, proxy.port)
if proxy.username or proxy.password:
self._curl.setopt(
pycurl.PROXYUSERPWD,
"%s:%s" % (proxy.username, proxy.password),
)
if method == "get":
self._curl.setopt(pycurl.HTTPGET, 1)
elif method == "post":
self._curl.setopt(pycurl.POST, 1)
self._curl.setopt(pycurl.POSTFIELDS, post_data)
else:
self._curl.setopt(pycurl.CUSTOMREQUEST, method.upper())
# pycurl doesn't like unicode URLs
self._curl.setopt(pycurl.URL, util.utf8(url))
self._curl.setopt(pycurl.WRITEFUNCTION, b.write)
self._curl.setopt(pycurl.HEADERFUNCTION, rheaders.write)
self._curl.setopt(pycurl.NOSIGNAL, 1)
self._curl.setopt(pycurl.CONNECTTIMEOUT, 30)
self._curl.setopt(pycurl.TIMEOUT, 80)
self._curl.setopt(
pycurl.HTTPHEADER,
["%s: %s" % (k, v) for k, v in six.iteritems(dict(headers))],
)
if self._verify_ssl_certs:
self._curl.setopt(pycurl.CAINFO, stripe.ca_bundle_path)
else:
self._curl.setopt(pycurl.SSL_VERIFYHOST, False)
try:
self._curl.perform()
except pycurl.error as e:
self._handle_request_error(e)
if is_streaming:
b.seek(0)
rcontent = b
else:
rcontent = b.getvalue().decode("utf-8")
rcode = self._curl.getinfo(pycurl.RESPONSE_CODE)
headers = self.parse_headers(rheaders.getvalue().decode("utf-8"))
return rcontent, rcode, headers
def _handle_request_error(self, e):
if e.args[0] in [
pycurl.E_COULDNT_CONNECT,
pycurl.E_COULDNT_RESOLVE_HOST,
pycurl.E_OPERATION_TIMEOUTED,
]:
msg = (
"Could not connect to Stripe. Please check your "
"internet connection and try again. If this problem "
"persists, you should check Stripe's service status at "
"https://twitter.com/stripestatus, or let us know at "
"support@stripe.com."
)
should_retry = True
elif e.args[0] in [pycurl.E_SSL_CACERT, pycurl.E_SSL_PEER_CERTIFICATE]:
msg = (
"Could not verify Stripe's SSL certificate. Please make "
"sure that your network is not intercepting certificates. "
"If this problem persists, let us know at "
"support@stripe.com."
)
should_retry = False
else:
msg = (
"Unexpected error communicating with Stripe. If this "
"problem persists, let us know at support@stripe.com."
)
should_retry = False
msg = textwrap.fill(msg) + "\n\n(Network error: " + e.args[1] + ")"
raise error.APIConnectionError(msg, should_retry=should_retry)
def _get_proxy(self, url):
if self._proxy:
proxy = self._proxy
scheme = url.split(":")[0] if url else None
if scheme:
return proxy.get(scheme, proxy.get(scheme[0:-1]))
return None
def close(self):
pass
class Urllib2Client(HTTPClient):
name = "urllib.request"
def __init__(self, verify_ssl_certs=True, proxy=None):
super(Urllib2Client, self).__init__(
verify_ssl_certs=verify_ssl_certs, proxy=proxy
)
# prepare and cache proxy tied opener here
self._opener = None
if self._proxy:
proxy = urllib.request.ProxyHandler(self._proxy)
self._opener = urllib.request.build_opener(proxy)
def request(self, method, url, headers, post_data=None):
return self._request_internal(
method, url, headers, post_data, is_streaming=False
)
def request_stream(self, method, url, headers, post_data=None):
return self._request_internal(
method, url, headers, post_data, is_streaming=True
)
def _request_internal(self, method, url, headers, post_data, is_streaming):
if six.PY3 and isinstance(post_data, six.string_types):
post_data = post_data.encode("utf-8")
req = urllib.request.Request(url, post_data, headers)
if method not in ("get", "post"):
req.get_method = lambda: method.upper()
try:
# use the custom proxy tied opener, if any.
# otherwise, fall to the default urllib opener.
response = (
self._opener.open(req)
if self._opener
else urllib.request.urlopen(req)
)
if is_streaming:
rcontent = response
else:
rcontent = response.read()
rcode = response.code
headers = dict(response.info())
except urllib.error.HTTPError as e:
rcode = e.code
rcontent = e.read()
headers = dict(e.info())
except (urllib.error.URLError, ValueError) as e:
self._handle_request_error(e)
lh = dict((k.lower(), v) for k, v in six.iteritems(dict(headers)))
return rcontent, rcode, lh
def _handle_request_error(self, e):
msg = (
"Unexpected error communicating with Stripe. "
"If this problem persists, let us know at support@stripe.com."
)
msg = textwrap.fill(msg) + "\n\n(Network error: " + str(e) + ")"
raise error.APIConnectionError(msg)
def close(self):
pass
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/multipart_data_generator.py 0000644 0001751 0000171 00000005271 14335240430 021364 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import random
import io
import stripe
class MultipartDataGenerator(object):
def __init__(self, chunk_size=1028):
self.data = io.BytesIO()
self.line_break = "\r\n"
self.boundary = self._initialize_boundary()
self.chunk_size = chunk_size
def add_params(self, params):
# Flatten parameters first
params = dict(stripe.api_requestor._api_encode(params))
for key, value in stripe.six.iteritems(params):
if value is None:
continue
self._write(self.param_header())
self._write(self.line_break)
if hasattr(value, "read"):
filename = "blob"
if hasattr(value, "name"):
# Convert the filename to string, just in case it's not
# already one. E.g. `tempfile.TemporaryFile` has a `name`
# attribute but it's an `int`.
filename = stripe.six.text_type(value.name)
self._write('Content-Disposition: form-data; name="')
self._write(key)
self._write('"; filename="')
self._write(filename)
self._write('"')
self._write(self.line_break)
self._write("Content-Type: application/octet-stream")
self._write(self.line_break)
self._write(self.line_break)
self._write_file(value)
else:
self._write('Content-Disposition: form-data; name="')
self._write(key)
self._write('"')
self._write(self.line_break)
self._write(self.line_break)
self._write(str(value))
self._write(self.line_break)
def param_header(self):
return "--%s" % self.boundary
def get_post_data(self):
self._write("--%s--" % (self.boundary,))
self._write(self.line_break)
return self.data.getvalue()
def _write(self, value):
if isinstance(value, stripe.six.binary_type):
array = bytearray(value)
elif isinstance(value, stripe.six.text_type):
array = bytearray(value, encoding="utf-8")
else:
raise TypeError(
"unexpected type: {value_type}".format(value_type=type(value))
)
self.data.write(array)
def _write_file(self, f):
while True:
file_contents = f.read(self.chunk_size)
if not file_contents:
break
self._write(file_contents)
def _initialize_boundary(self):
return random.randint(0, 2 ** 63)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/oauth.py 0000644 0001751 0000171 00000003753 14335240430 015427 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe import api_requestor, connect_api_base, error
from stripe.six.moves.urllib.parse import urlencode
class OAuth(object):
@staticmethod
def _set_client_id(params):
if "client_id" in params:
return
from stripe import client_id
if client_id:
params["client_id"] = client_id
return
raise error.AuthenticationError(
"No client_id provided. (HINT: set your client_id using "
'"stripe.client_id = "). You can find your client_ids '
"in your Stripe dashboard at "
"https://dashboard.stripe.com/account/applications/settings, "
"after registering your account as a platform. See "
"https://stripe.com/docs/connect/standalone-accounts for details, "
"or email support@stripe.com if you have any questions."
)
@staticmethod
def authorize_url(express=False, **params):
if express is False:
path = "/oauth/authorize"
else:
path = "/express/oauth/authorize"
OAuth._set_client_id(params)
if "response_type" not in params:
params["response_type"] = "code"
query = urlencode(list(api_requestor._api_encode(params)))
url = connect_api_base + path + "?" + query
return url
@staticmethod
def token(api_key=None, **params):
requestor = api_requestor.APIRequestor(
api_key, api_base=connect_api_base
)
response, _ = requestor.request("post", "/oauth/token", params, None)
return response.data
@staticmethod
def deauthorize(api_key=None, **params):
requestor = api_requestor.APIRequestor(
api_key, api_base=connect_api_base
)
OAuth._set_client_id(params)
response, _ = requestor.request(
"post", "/oauth/deauthorize", params, None
)
return response.data
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/oauth_error.py 0000644 0001751 0000171 00000001776 14335240430 016643 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
from stripe.error import StripeError
class OAuthError(StripeError):
def __init__(
self,
code,
description,
http_body=None,
http_status=None,
json_body=None,
headers=None,
):
super(OAuthError, self).__init__(
description, http_body, http_status, json_body, headers, code
)
def construct_error_object(self):
if self.json_body is None:
return None
return (
stripe.api_resources.error_object.OAuthErrorObject.construct_from(
self.json_body, stripe.api_key
)
)
class InvalidClientError(OAuthError):
pass
class InvalidGrantError(OAuthError):
pass
class InvalidRequestError(OAuthError):
pass
class InvalidScopeError(OAuthError):
pass
class UnsupportedGrantTypeError(OAuthError):
pass
class UnsupportedResponseTypeError(OAuthError):
pass
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/object_classes.py 0000644 0001751 0000171 00000017570 14335240430 017274 0 ustar 00runner docker # -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
from stripe import api_resources
OBJECT_CLASSES = {
# data structures
api_resources.ListObject.OBJECT_NAME: api_resources.ListObject,
api_resources.SearchResultObject.OBJECT_NAME: api_resources.SearchResultObject,
# business objects
api_resources.Account.OBJECT_NAME: api_resources.Account,
api_resources.AccountLink.OBJECT_NAME: api_resources.AccountLink,
api_resources.ApplePayDomain.OBJECT_NAME: api_resources.ApplePayDomain,
api_resources.ApplicationFee.OBJECT_NAME: api_resources.ApplicationFee,
api_resources.ApplicationFeeRefund.OBJECT_NAME: api_resources.ApplicationFeeRefund,
api_resources.apps.Secret.OBJECT_NAME: api_resources.apps.Secret,
api_resources.Balance.OBJECT_NAME: api_resources.Balance,
api_resources.BalanceTransaction.OBJECT_NAME: api_resources.BalanceTransaction,
api_resources.BankAccount.OBJECT_NAME: api_resources.BankAccount,
api_resources.billing_portal.Configuration.OBJECT_NAME: api_resources.billing_portal.Configuration,
api_resources.billing_portal.Session.OBJECT_NAME: api_resources.billing_portal.Session,
api_resources.Capability.OBJECT_NAME: api_resources.Capability,
api_resources.Card.OBJECT_NAME: api_resources.Card,
api_resources.CashBalance.OBJECT_NAME: api_resources.CashBalance,
api_resources.Charge.OBJECT_NAME: api_resources.Charge,
api_resources.checkout.Session.OBJECT_NAME: api_resources.checkout.Session,
api_resources.CountrySpec.OBJECT_NAME: api_resources.CountrySpec,
api_resources.Coupon.OBJECT_NAME: api_resources.Coupon,
api_resources.CreditNote.OBJECT_NAME: api_resources.CreditNote,
api_resources.CreditNoteLineItem.OBJECT_NAME: api_resources.CreditNoteLineItem,
api_resources.Customer.OBJECT_NAME: api_resources.Customer,
api_resources.CustomerBalanceTransaction.OBJECT_NAME: api_resources.CustomerBalanceTransaction,
api_resources.CustomerCashBalanceTransaction.OBJECT_NAME: api_resources.CustomerCashBalanceTransaction,
api_resources.Dispute.OBJECT_NAME: api_resources.Dispute,
api_resources.EphemeralKey.OBJECT_NAME: api_resources.EphemeralKey,
api_resources.Event.OBJECT_NAME: api_resources.Event,
api_resources.ExchangeRate.OBJECT_NAME: api_resources.ExchangeRate,
api_resources.File.OBJECT_NAME: api_resources.File,
api_resources.File.OBJECT_NAME_ALT: api_resources.File,
api_resources.FileLink.OBJECT_NAME: api_resources.FileLink,
api_resources.financial_connections.Account.OBJECT_NAME: api_resources.financial_connections.Account,
api_resources.financial_connections.AccountOwner.OBJECT_NAME: api_resources.financial_connections.AccountOwner,
api_resources.financial_connections.AccountOwnership.OBJECT_NAME: api_resources.financial_connections.AccountOwnership,
api_resources.financial_connections.Session.OBJECT_NAME: api_resources.financial_connections.Session,
api_resources.FundingInstructions.OBJECT_NAME: api_resources.FundingInstructions,
api_resources.identity.VerificationReport.OBJECT_NAME: api_resources.identity.VerificationReport,
api_resources.identity.VerificationSession.OBJECT_NAME: api_resources.identity.VerificationSession,
api_resources.Invoice.OBJECT_NAME: api_resources.Invoice,
api_resources.InvoiceItem.OBJECT_NAME: api_resources.InvoiceItem,
api_resources.InvoiceLineItem.OBJECT_NAME: api_resources.InvoiceLineItem,
api_resources.issuing.Authorization.OBJECT_NAME: api_resources.issuing.Authorization,
api_resources.issuing.Card.OBJECT_NAME: api_resources.issuing.Card,
api_resources.issuing.Cardholder.OBJECT_NAME: api_resources.issuing.Cardholder,
api_resources.issuing.Dispute.OBJECT_NAME: api_resources.issuing.Dispute,
api_resources.issuing.Transaction.OBJECT_NAME: api_resources.issuing.Transaction,
api_resources.LineItem.OBJECT_NAME: api_resources.LineItem,
api_resources.LoginLink.OBJECT_NAME: api_resources.LoginLink,
api_resources.Mandate.OBJECT_NAME: api_resources.Mandate,
api_resources.PaymentIntent.OBJECT_NAME: api_resources.PaymentIntent,
api_resources.PaymentLink.OBJECT_NAME: api_resources.PaymentLink,
api_resources.PaymentMethod.OBJECT_NAME: api_resources.PaymentMethod,
api_resources.Payout.OBJECT_NAME: api_resources.Payout,
api_resources.Person.OBJECT_NAME: api_resources.Person,
api_resources.Plan.OBJECT_NAME: api_resources.Plan,
api_resources.Price.OBJECT_NAME: api_resources.Price,
api_resources.Product.OBJECT_NAME: api_resources.Product,
api_resources.PromotionCode.OBJECT_NAME: api_resources.PromotionCode,
api_resources.Quote.OBJECT_NAME: api_resources.Quote,
api_resources.radar.EarlyFraudWarning.OBJECT_NAME: api_resources.radar.EarlyFraudWarning,
api_resources.radar.ValueList.OBJECT_NAME: api_resources.radar.ValueList,
api_resources.radar.ValueListItem.OBJECT_NAME: api_resources.radar.ValueListItem,
api_resources.Refund.OBJECT_NAME: api_resources.Refund,
api_resources.reporting.ReportRun.OBJECT_NAME: api_resources.reporting.ReportRun,
api_resources.reporting.ReportType.OBJECT_NAME: api_resources.reporting.ReportType,
api_resources.Reversal.OBJECT_NAME: api_resources.Reversal,
api_resources.Review.OBJECT_NAME: api_resources.Review,
api_resources.SetupAttempt.OBJECT_NAME: api_resources.SetupAttempt,
api_resources.SetupIntent.OBJECT_NAME: api_resources.SetupIntent,
api_resources.ShippingRate.OBJECT_NAME: api_resources.ShippingRate,
api_resources.sigma.ScheduledQueryRun.OBJECT_NAME: api_resources.sigma.ScheduledQueryRun,
api_resources.Source.OBJECT_NAME: api_resources.Source,
api_resources.SourceTransaction.OBJECT_NAME: api_resources.SourceTransaction,
api_resources.Subscription.OBJECT_NAME: api_resources.Subscription,
api_resources.SubscriptionItem.OBJECT_NAME: api_resources.SubscriptionItem,
api_resources.SubscriptionSchedule.OBJECT_NAME: api_resources.SubscriptionSchedule,
api_resources.TaxCode.OBJECT_NAME: api_resources.TaxCode,
api_resources.TaxId.OBJECT_NAME: api_resources.TaxId,
api_resources.TaxRate.OBJECT_NAME: api_resources.TaxRate,
api_resources.terminal.Configuration.OBJECT_NAME: api_resources.terminal.Configuration,
api_resources.terminal.ConnectionToken.OBJECT_NAME: api_resources.terminal.ConnectionToken,
api_resources.terminal.Location.OBJECT_NAME: api_resources.terminal.Location,
api_resources.terminal.Reader.OBJECT_NAME: api_resources.terminal.Reader,
api_resources.test_helpers.TestClock.OBJECT_NAME: api_resources.test_helpers.TestClock,
api_resources.Token.OBJECT_NAME: api_resources.Token,
api_resources.Topup.OBJECT_NAME: api_resources.Topup,
api_resources.Transfer.OBJECT_NAME: api_resources.Transfer,
api_resources.treasury.CreditReversal.OBJECT_NAME: api_resources.treasury.CreditReversal,
api_resources.treasury.DebitReversal.OBJECT_NAME: api_resources.treasury.DebitReversal,
api_resources.treasury.FinancialAccount.OBJECT_NAME: api_resources.treasury.FinancialAccount,
api_resources.treasury.InboundTransfer.OBJECT_NAME: api_resources.treasury.InboundTransfer,
api_resources.treasury.OutboundPayment.OBJECT_NAME: api_resources.treasury.OutboundPayment,
api_resources.treasury.OutboundTransfer.OBJECT_NAME: api_resources.treasury.OutboundTransfer,
api_resources.treasury.ReceivedCredit.OBJECT_NAME: api_resources.treasury.ReceivedCredit,
api_resources.treasury.ReceivedDebit.OBJECT_NAME: api_resources.treasury.ReceivedDebit,
api_resources.treasury.Transaction.OBJECT_NAME: api_resources.treasury.Transaction,
api_resources.treasury.TransactionEntry.OBJECT_NAME: api_resources.treasury.TransactionEntry,
api_resources.UsageRecord.OBJECT_NAME: api_resources.UsageRecord,
api_resources.UsageRecordSummary.OBJECT_NAME: api_resources.UsageRecordSummary,
api_resources.WebhookEndpoint.OBJECT_NAME: api_resources.WebhookEndpoint,
}
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/request_metrics.py 0000644 0001751 0000171 00000000621 14335240430 017514 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
class RequestMetrics(object):
def __init__(self, request_id, request_duration_ms):
self.request_id = request_id
self.request_duration_ms = request_duration_ms
def payload(self):
return {
"request_id": self.request_id,
"request_duration_ms": self.request_duration_ms,
}
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/six.py 0000644 0001751 0000171 00000103425 14335240430 015107 0 ustar 00runner docker # Copyright (c) 2010-2020 Benjamin Peterson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
"""Utilities for writing code that runs on Python 2 and 3"""
from __future__ import absolute_import
import functools
import itertools
import operator
import sys
import types
__author__ = "Benjamin Peterson "
__version__ = "1.16.0"
# Useful for very coarse version differentiation.
PY2 = sys.version_info[0] == 2
PY3 = sys.version_info[0] == 3
PY34 = sys.version_info[0:2] >= (3, 4)
if PY3:
string_types = str,
integer_types = int,
class_types = type,
text_type = str
binary_type = bytes
MAXSIZE = sys.maxsize
else:
string_types = basestring,
integer_types = (int, long)
class_types = (type, types.ClassType)
text_type = unicode
binary_type = str
if sys.platform.startswith("java"):
# Jython always uses 32 bits.
MAXSIZE = int((1 << 31) - 1)
else:
# It's possible to have sizeof(long) != sizeof(Py_ssize_t).
class X(object):
def __len__(self):
return 1 << 31
try:
len(X())
except OverflowError:
# 32-bit
MAXSIZE = int((1 << 31) - 1)
else:
# 64-bit
MAXSIZE = int((1 << 63) - 1)
del X
if PY34:
from importlib.util import spec_from_loader
else:
spec_from_loader = None
def _add_doc(func, doc):
"""Add documentation to a function."""
func.__doc__ = doc
def _import_module(name):
"""Import module, returning the module after the last dot."""
__import__(name)
return sys.modules[name]
class _LazyDescr(object):
def __init__(self, name):
self.name = name
def __get__(self, obj, tp):
result = self._resolve()
setattr(obj, self.name, result) # Invokes __set__.
try:
# This is a bit ugly, but it avoids running this again by
# removing this descriptor.
delattr(obj.__class__, self.name)
except AttributeError:
pass
return result
class MovedModule(_LazyDescr):
def __init__(self, name, old, new=None):
super(MovedModule, self).__init__(name)
if PY3:
if new is None:
new = name
self.mod = new
else:
self.mod = old
def _resolve(self):
return _import_module(self.mod)
def __getattr__(self, attr):
_module = self._resolve()
value = getattr(_module, attr)
setattr(self, attr, value)
return value
class _LazyModule(types.ModuleType):
def __init__(self, name):
super(_LazyModule, self).__init__(name)
self.__doc__ = self.__class__.__doc__
def __dir__(self):
attrs = ["__doc__", "__name__"]
attrs += [attr.name for attr in self._moved_attributes]
return attrs
# Subclasses should override this
_moved_attributes = []
class MovedAttribute(_LazyDescr):
def __init__(self, name, old_mod, new_mod, old_attr=None, new_attr=None):
super(MovedAttribute, self).__init__(name)
if PY3:
if new_mod is None:
new_mod = name
self.mod = new_mod
if new_attr is None:
if old_attr is None:
new_attr = name
else:
new_attr = old_attr
self.attr = new_attr
else:
self.mod = old_mod
if old_attr is None:
old_attr = name
self.attr = old_attr
def _resolve(self):
module = _import_module(self.mod)
return getattr(module, self.attr)
class _SixMetaPathImporter(object):
"""
A meta path importer to import six.moves and its submodules.
This class implements a PEP302 finder and loader. It should be compatible
with Python 2.5 and all existing versions of Python3
"""
def __init__(self, six_module_name):
self.name = six_module_name
self.known_modules = {}
def _add_module(self, mod, *fullnames):
for fullname in fullnames:
self.known_modules[self.name + "." + fullname] = mod
def _get_module(self, fullname):
return self.known_modules[self.name + "." + fullname]
def find_module(self, fullname, path=None):
if fullname in self.known_modules:
return self
return None
def find_spec(self, fullname, path, target=None):
if fullname in self.known_modules:
return spec_from_loader(fullname, self)
return None
def __get_module(self, fullname):
try:
return self.known_modules[fullname]
except KeyError:
raise ImportError("This loader does not know module " + fullname)
def load_module(self, fullname):
try:
# in case of a reload
return sys.modules[fullname]
except KeyError:
pass
mod = self.__get_module(fullname)
if isinstance(mod, MovedModule):
mod = mod._resolve()
else:
mod.__loader__ = self
sys.modules[fullname] = mod
return mod
def is_package(self, fullname):
"""
Return true, if the named module is a package.
We need this method to get correct spec objects with
Python 3.4 (see PEP451)
"""
return hasattr(self.__get_module(fullname), "__path__")
def get_code(self, fullname):
"""Return None
Required, if is_package is implemented"""
self.__get_module(fullname) # eventually raises ImportError
return None
get_source = get_code # same as get_code
def create_module(self, spec):
return self.load_module(spec.name)
def exec_module(self, module):
pass
_importer = _SixMetaPathImporter(__name__)
class _MovedItems(_LazyModule):
"""Lazy loading of moved objects"""
__path__ = [] # mark as package
_moved_attributes = [
MovedAttribute("cStringIO", "cStringIO", "io", "StringIO"),
MovedAttribute("filter", "itertools", "builtins", "ifilter", "filter"),
MovedAttribute("filterfalse", "itertools", "itertools", "ifilterfalse", "filterfalse"),
MovedAttribute("input", "__builtin__", "builtins", "raw_input", "input"),
MovedAttribute("intern", "__builtin__", "sys"),
MovedAttribute("map", "itertools", "builtins", "imap", "map"),
MovedAttribute("getcwd", "os", "os", "getcwdu", "getcwd"),
MovedAttribute("getcwdb", "os", "os", "getcwd", "getcwdb"),
MovedAttribute("getoutput", "commands", "subprocess"),
MovedAttribute("range", "__builtin__", "builtins", "xrange", "range"),
MovedAttribute("reload_module", "__builtin__", "importlib" if PY34 else "imp", "reload"),
MovedAttribute("reduce", "__builtin__", "functools"),
MovedAttribute("shlex_quote", "pipes", "shlex", "quote"),
MovedAttribute("StringIO", "StringIO", "io"),
MovedAttribute("UserDict", "UserDict", "collections", "IterableUserDict", "UserDict"),
MovedAttribute("UserList", "UserList", "collections"),
MovedAttribute("UserString", "UserString", "collections"),
MovedAttribute("xrange", "__builtin__", "builtins", "xrange", "range"),
MovedAttribute("zip", "itertools", "builtins", "izip", "zip"),
MovedAttribute("zip_longest", "itertools", "itertools", "izip_longest", "zip_longest"),
MovedModule("builtins", "__builtin__"),
MovedModule("configparser", "ConfigParser"),
MovedModule("collections_abc", "collections", "collections.abc" if sys.version_info >= (3, 3) else "collections"),
MovedModule("copyreg", "copy_reg"),
MovedModule("dbm_gnu", "gdbm", "dbm.gnu"),
MovedModule("dbm_ndbm", "dbm", "dbm.ndbm"),
MovedModule("_dummy_thread", "dummy_thread", "_dummy_thread" if sys.version_info < (3, 9) else "_thread"),
MovedModule("http_cookiejar", "cookielib", "http.cookiejar"),
MovedModule("http_cookies", "Cookie", "http.cookies"),
MovedModule("html_entities", "htmlentitydefs", "html.entities"),
MovedModule("html_parser", "HTMLParser", "html.parser"),
MovedModule("http_client", "httplib", "http.client"),
MovedModule("email_mime_base", "email.MIMEBase", "email.mime.base"),
MovedModule("email_mime_image", "email.MIMEImage", "email.mime.image"),
MovedModule("email_mime_multipart", "email.MIMEMultipart", "email.mime.multipart"),
MovedModule("email_mime_nonmultipart", "email.MIMENonMultipart", "email.mime.nonmultipart"),
MovedModule("email_mime_text", "email.MIMEText", "email.mime.text"),
MovedModule("BaseHTTPServer", "BaseHTTPServer", "http.server"),
MovedModule("CGIHTTPServer", "CGIHTTPServer", "http.server"),
MovedModule("SimpleHTTPServer", "SimpleHTTPServer", "http.server"),
MovedModule("cPickle", "cPickle", "pickle"),
MovedModule("queue", "Queue"),
MovedModule("reprlib", "repr"),
MovedModule("socketserver", "SocketServer"),
MovedModule("_thread", "thread", "_thread"),
MovedModule("tkinter", "Tkinter"),
MovedModule("tkinter_dialog", "Dialog", "tkinter.dialog"),
MovedModule("tkinter_filedialog", "FileDialog", "tkinter.filedialog"),
MovedModule("tkinter_scrolledtext", "ScrolledText", "tkinter.scrolledtext"),
MovedModule("tkinter_simpledialog", "SimpleDialog", "tkinter.simpledialog"),
MovedModule("tkinter_tix", "Tix", "tkinter.tix"),
MovedModule("tkinter_ttk", "ttk", "tkinter.ttk"),
MovedModule("tkinter_constants", "Tkconstants", "tkinter.constants"),
MovedModule("tkinter_dnd", "Tkdnd", "tkinter.dnd"),
MovedModule("tkinter_colorchooser", "tkColorChooser",
"tkinter.colorchooser"),
MovedModule("tkinter_commondialog", "tkCommonDialog",
"tkinter.commondialog"),
MovedModule("tkinter_tkfiledialog", "tkFileDialog", "tkinter.filedialog"),
MovedModule("tkinter_font", "tkFont", "tkinter.font"),
MovedModule("tkinter_messagebox", "tkMessageBox", "tkinter.messagebox"),
MovedModule("tkinter_tksimpledialog", "tkSimpleDialog",
"tkinter.simpledialog"),
MovedModule("urllib_parse", __name__ + ".moves.urllib_parse", "urllib.parse"),
MovedModule("urllib_error", __name__ + ".moves.urllib_error", "urllib.error"),
MovedModule("urllib", __name__ + ".moves.urllib", __name__ + ".moves.urllib"),
MovedModule("urllib_robotparser", "robotparser", "urllib.robotparser"),
MovedModule("xmlrpc_client", "xmlrpclib", "xmlrpc.client"),
MovedModule("xmlrpc_server", "SimpleXMLRPCServer", "xmlrpc.server"),
]
# Add windows specific modules.
if sys.platform == "win32":
_moved_attributes += [
MovedModule("winreg", "_winreg"),
]
for attr in _moved_attributes:
setattr(_MovedItems, attr.name, attr)
if isinstance(attr, MovedModule):
_importer._add_module(attr, "moves." + attr.name)
del attr
_MovedItems._moved_attributes = _moved_attributes
moves = _MovedItems(__name__ + ".moves")
_importer._add_module(moves, "moves")
class Module_six_moves_urllib_parse(_LazyModule):
"""Lazy loading of moved objects in six.moves.urllib_parse"""
_urllib_parse_moved_attributes = [
MovedAttribute("ParseResult", "urlparse", "urllib.parse"),
MovedAttribute("SplitResult", "urlparse", "urllib.parse"),
MovedAttribute("parse_qs", "urlparse", "urllib.parse"),
MovedAttribute("parse_qsl", "urlparse", "urllib.parse"),
MovedAttribute("urldefrag", "urlparse", "urllib.parse"),
MovedAttribute("urljoin", "urlparse", "urllib.parse"),
MovedAttribute("urlparse", "urlparse", "urllib.parse"),
MovedAttribute("urlsplit", "urlparse", "urllib.parse"),
MovedAttribute("urlunparse", "urlparse", "urllib.parse"),
MovedAttribute("urlunsplit", "urlparse", "urllib.parse"),
MovedAttribute("quote", "urllib", "urllib.parse"),
MovedAttribute("quote_plus", "urllib", "urllib.parse"),
MovedAttribute("unquote", "urllib", "urllib.parse"),
MovedAttribute("unquote_plus", "urllib", "urllib.parse"),
MovedAttribute("unquote_to_bytes", "urllib", "urllib.parse", "unquote", "unquote_to_bytes"),
MovedAttribute("urlencode", "urllib", "urllib.parse"),
MovedAttribute("splitquery", "urllib", "urllib.parse"),
MovedAttribute("splittag", "urllib", "urllib.parse"),
MovedAttribute("splituser", "urllib", "urllib.parse"),
MovedAttribute("splitvalue", "urllib", "urllib.parse"),
MovedAttribute("uses_fragment", "urlparse", "urllib.parse"),
MovedAttribute("uses_netloc", "urlparse", "urllib.parse"),
MovedAttribute("uses_params", "urlparse", "urllib.parse"),
MovedAttribute("uses_query", "urlparse", "urllib.parse"),
MovedAttribute("uses_relative", "urlparse", "urllib.parse"),
]
for attr in _urllib_parse_moved_attributes:
setattr(Module_six_moves_urllib_parse, attr.name, attr)
del attr
Module_six_moves_urllib_parse._moved_attributes = _urllib_parse_moved_attributes
_importer._add_module(Module_six_moves_urllib_parse(__name__ + ".moves.urllib_parse"),
"moves.urllib_parse", "moves.urllib.parse")
class Module_six_moves_urllib_error(_LazyModule):
"""Lazy loading of moved objects in six.moves.urllib_error"""
_urllib_error_moved_attributes = [
MovedAttribute("URLError", "urllib2", "urllib.error"),
MovedAttribute("HTTPError", "urllib2", "urllib.error"),
MovedAttribute("ContentTooShortError", "urllib", "urllib.error"),
]
for attr in _urllib_error_moved_attributes:
setattr(Module_six_moves_urllib_error, attr.name, attr)
del attr
Module_six_moves_urllib_error._moved_attributes = _urllib_error_moved_attributes
_importer._add_module(Module_six_moves_urllib_error(__name__ + ".moves.urllib.error"),
"moves.urllib_error", "moves.urllib.error")
class Module_six_moves_urllib_request(_LazyModule):
"""Lazy loading of moved objects in six.moves.urllib_request"""
_urllib_request_moved_attributes = [
MovedAttribute("urlopen", "urllib2", "urllib.request"),
MovedAttribute("install_opener", "urllib2", "urllib.request"),
MovedAttribute("build_opener", "urllib2", "urllib.request"),
MovedAttribute("pathname2url", "urllib", "urllib.request"),
MovedAttribute("url2pathname", "urllib", "urllib.request"),
MovedAttribute("getproxies", "urllib", "urllib.request"),
MovedAttribute("Request", "urllib2", "urllib.request"),
MovedAttribute("OpenerDirector", "urllib2", "urllib.request"),
MovedAttribute("HTTPDefaultErrorHandler", "urllib2", "urllib.request"),
MovedAttribute("HTTPRedirectHandler", "urllib2", "urllib.request"),
MovedAttribute("HTTPCookieProcessor", "urllib2", "urllib.request"),
MovedAttribute("ProxyHandler", "urllib2", "urllib.request"),
MovedAttribute("BaseHandler", "urllib2", "urllib.request"),
MovedAttribute("HTTPPasswordMgr", "urllib2", "urllib.request"),
MovedAttribute("HTTPPasswordMgrWithDefaultRealm", "urllib2", "urllib.request"),
MovedAttribute("AbstractBasicAuthHandler", "urllib2", "urllib.request"),
MovedAttribute("HTTPBasicAuthHandler", "urllib2", "urllib.request"),
MovedAttribute("ProxyBasicAuthHandler", "urllib2", "urllib.request"),
MovedAttribute("AbstractDigestAuthHandler", "urllib2", "urllib.request"),
MovedAttribute("HTTPDigestAuthHandler", "urllib2", "urllib.request"),
MovedAttribute("ProxyDigestAuthHandler", "urllib2", "urllib.request"),
MovedAttribute("HTTPHandler", "urllib2", "urllib.request"),
MovedAttribute("HTTPSHandler", "urllib2", "urllib.request"),
MovedAttribute("FileHandler", "urllib2", "urllib.request"),
MovedAttribute("FTPHandler", "urllib2", "urllib.request"),
MovedAttribute("CacheFTPHandler", "urllib2", "urllib.request"),
MovedAttribute("UnknownHandler", "urllib2", "urllib.request"),
MovedAttribute("HTTPErrorProcessor", "urllib2", "urllib.request"),
MovedAttribute("urlretrieve", "urllib", "urllib.request"),
MovedAttribute("urlcleanup", "urllib", "urllib.request"),
MovedAttribute("URLopener", "urllib", "urllib.request"),
MovedAttribute("FancyURLopener", "urllib", "urllib.request"),
MovedAttribute("proxy_bypass", "urllib", "urllib.request"),
MovedAttribute("parse_http_list", "urllib2", "urllib.request"),
MovedAttribute("parse_keqv_list", "urllib2", "urllib.request"),
]
for attr in _urllib_request_moved_attributes:
setattr(Module_six_moves_urllib_request, attr.name, attr)
del attr
Module_six_moves_urllib_request._moved_attributes = _urllib_request_moved_attributes
_importer._add_module(Module_six_moves_urllib_request(__name__ + ".moves.urllib.request"),
"moves.urllib_request", "moves.urllib.request")
class Module_six_moves_urllib_response(_LazyModule):
"""Lazy loading of moved objects in six.moves.urllib_response"""
_urllib_response_moved_attributes = [
MovedAttribute("addbase", "urllib", "urllib.response"),
MovedAttribute("addclosehook", "urllib", "urllib.response"),
MovedAttribute("addinfo", "urllib", "urllib.response"),
MovedAttribute("addinfourl", "urllib", "urllib.response"),
]
for attr in _urllib_response_moved_attributes:
setattr(Module_six_moves_urllib_response, attr.name, attr)
del attr
Module_six_moves_urllib_response._moved_attributes = _urllib_response_moved_attributes
_importer._add_module(Module_six_moves_urllib_response(__name__ + ".moves.urllib.response"),
"moves.urllib_response", "moves.urllib.response")
class Module_six_moves_urllib_robotparser(_LazyModule):
"""Lazy loading of moved objects in six.moves.urllib_robotparser"""
_urllib_robotparser_moved_attributes = [
MovedAttribute("RobotFileParser", "robotparser", "urllib.robotparser"),
]
for attr in _urllib_robotparser_moved_attributes:
setattr(Module_six_moves_urllib_robotparser, attr.name, attr)
del attr
Module_six_moves_urllib_robotparser._moved_attributes = _urllib_robotparser_moved_attributes
_importer._add_module(Module_six_moves_urllib_robotparser(__name__ + ".moves.urllib.robotparser"),
"moves.urllib_robotparser", "moves.urllib.robotparser")
class Module_six_moves_urllib(types.ModuleType):
"""Create a six.moves.urllib namespace that resembles the Python 3 namespace"""
__path__ = [] # mark as package
parse = _importer._get_module("moves.urllib_parse")
error = _importer._get_module("moves.urllib_error")
request = _importer._get_module("moves.urllib_request")
response = _importer._get_module("moves.urllib_response")
robotparser = _importer._get_module("moves.urllib_robotparser")
def __dir__(self):
return ['parse', 'error', 'request', 'response', 'robotparser']
_importer._add_module(Module_six_moves_urllib(__name__ + ".moves.urllib"),
"moves.urllib")
def add_move(move):
"""Add an item to six.moves."""
setattr(_MovedItems, move.name, move)
def remove_move(name):
"""Remove item from six.moves."""
try:
delattr(_MovedItems, name)
except AttributeError:
try:
del moves.__dict__[name]
except KeyError:
raise AttributeError("no such move, %r" % (name,))
if PY3:
_meth_func = "__func__"
_meth_self = "__self__"
_func_closure = "__closure__"
_func_code = "__code__"
_func_defaults = "__defaults__"
_func_globals = "__globals__"
else:
_meth_func = "im_func"
_meth_self = "im_self"
_func_closure = "func_closure"
_func_code = "func_code"
_func_defaults = "func_defaults"
_func_globals = "func_globals"
try:
advance_iterator = next
except NameError:
def advance_iterator(it):
return it.next()
next = advance_iterator
try:
callable = callable
except NameError:
def callable(obj):
return any("__call__" in klass.__dict__ for klass in type(obj).__mro__)
if PY3:
def get_unbound_function(unbound):
return unbound
create_bound_method = types.MethodType
def create_unbound_method(func, cls):
return func
Iterator = object
else:
def get_unbound_function(unbound):
return unbound.im_func
def create_bound_method(func, obj):
return types.MethodType(func, obj, obj.__class__)
def create_unbound_method(func, cls):
return types.MethodType(func, None, cls)
class Iterator(object):
def next(self):
return type(self).__next__(self)
callable = callable
_add_doc(get_unbound_function,
"""Get the function out of a possibly unbound function""")
get_method_function = operator.attrgetter(_meth_func)
get_method_self = operator.attrgetter(_meth_self)
get_function_closure = operator.attrgetter(_func_closure)
get_function_code = operator.attrgetter(_func_code)
get_function_defaults = operator.attrgetter(_func_defaults)
get_function_globals = operator.attrgetter(_func_globals)
if PY3:
def iterkeys(d, **kw):
return iter(d.keys(**kw))
def itervalues(d, **kw):
return iter(d.values(**kw))
def iteritems(d, **kw):
return iter(d.items(**kw))
def iterlists(d, **kw):
return iter(d.lists(**kw))
viewkeys = operator.methodcaller("keys")
viewvalues = operator.methodcaller("values")
viewitems = operator.methodcaller("items")
else:
def iterkeys(d, **kw):
return d.iterkeys(**kw)
def itervalues(d, **kw):
return d.itervalues(**kw)
def iteritems(d, **kw):
return d.iteritems(**kw)
def iterlists(d, **kw):
return d.iterlists(**kw)
viewkeys = operator.methodcaller("viewkeys")
viewvalues = operator.methodcaller("viewvalues")
viewitems = operator.methodcaller("viewitems")
_add_doc(iterkeys, "Return an iterator over the keys of a dictionary.")
_add_doc(itervalues, "Return an iterator over the values of a dictionary.")
_add_doc(iteritems,
"Return an iterator over the (key, value) pairs of a dictionary.")
_add_doc(iterlists,
"Return an iterator over the (key, [values]) pairs of a dictionary.")
if PY3:
def b(s):
return s.encode("latin-1")
def u(s):
return s
unichr = chr
import struct
int2byte = struct.Struct(">B").pack
del struct
byte2int = operator.itemgetter(0)
indexbytes = operator.getitem
iterbytes = iter
import io
StringIO = io.StringIO
BytesIO = io.BytesIO
del io
_assertCountEqual = "assertCountEqual"
if sys.version_info[1] <= 1:
_assertRaisesRegex = "assertRaisesRegexp"
_assertRegex = "assertRegexpMatches"
_assertNotRegex = "assertNotRegexpMatches"
else:
_assertRaisesRegex = "assertRaisesRegex"
_assertRegex = "assertRegex"
_assertNotRegex = "assertNotRegex"
else:
def b(s):
return s
# Workaround for standalone backslash
def u(s):
return unicode(s.replace(r'\\', r'\\\\'), "unicode_escape")
unichr = unichr
int2byte = chr
def byte2int(bs):
return ord(bs[0])
def indexbytes(buf, i):
return ord(buf[i])
iterbytes = functools.partial(itertools.imap, ord)
import StringIO
StringIO = BytesIO = StringIO.StringIO
_assertCountEqual = "assertItemsEqual"
_assertRaisesRegex = "assertRaisesRegexp"
_assertRegex = "assertRegexpMatches"
_assertNotRegex = "assertNotRegexpMatches"
_add_doc(b, """Byte literal""")
_add_doc(u, """Text literal""")
def assertCountEqual(self, *args, **kwargs):
return getattr(self, _assertCountEqual)(*args, **kwargs)
def assertRaisesRegex(self, *args, **kwargs):
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
def assertRegex(self, *args, **kwargs):
return getattr(self, _assertRegex)(*args, **kwargs)
def assertNotRegex(self, *args, **kwargs):
return getattr(self, _assertNotRegex)(*args, **kwargs)
if PY3:
exec_ = getattr(moves.builtins, "exec")
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
raise value.with_traceback(tb)
raise value
finally:
value = None
tb = None
else:
def exec_(_code_, _globs_=None, _locs_=None):
"""Execute code in a namespace."""
if _globs_ is None:
frame = sys._getframe(1)
_globs_ = frame.f_globals
if _locs_ is None:
_locs_ = frame.f_locals
del frame
elif _locs_ is None:
_locs_ = _globs_
exec("""exec _code_ in _globs_, _locs_""")
exec_("""def reraise(tp, value, tb=None):
try:
raise tp, value, tb
finally:
tb = None
""")
if sys.version_info[:2] > (3,):
exec_("""def raise_from(value, from_value):
try:
raise value from from_value
finally:
value = None
""")
else:
def raise_from(value, from_value):
raise value
print_ = getattr(moves.builtins, "print", None)
if print_ is None:
def print_(*args, **kwargs):
"""The new-style print function for Python 2.4 and 2.5."""
fp = kwargs.pop("file", sys.stdout)
if fp is None:
return
def write(data):
if not isinstance(data, basestring):
data = str(data)
# If the file has an encoding, encode unicode with it.
if (isinstance(fp, file) and
isinstance(data, unicode) and
fp.encoding is not None):
errors = getattr(fp, "errors", None)
if errors is None:
errors = "strict"
data = data.encode(fp.encoding, errors)
fp.write(data)
want_unicode = False
sep = kwargs.pop("sep", None)
if sep is not None:
if isinstance(sep, unicode):
want_unicode = True
elif not isinstance(sep, str):
raise TypeError("sep must be None or a string")
end = kwargs.pop("end", None)
if end is not None:
if isinstance(end, unicode):
want_unicode = True
elif not isinstance(end, str):
raise TypeError("end must be None or a string")
if kwargs:
raise TypeError("invalid keyword arguments to print()")
if not want_unicode:
for arg in args:
if isinstance(arg, unicode):
want_unicode = True
break
if want_unicode:
newline = unicode("\n")
space = unicode(" ")
else:
newline = "\n"
space = " "
if sep is None:
sep = space
if end is None:
end = newline
for i, arg in enumerate(args):
if i:
write(sep)
write(arg)
write(end)
if sys.version_info[:2] < (3, 3):
_print = print_
def print_(*args, **kwargs):
fp = kwargs.get("file", sys.stdout)
flush = kwargs.pop("flush", False)
_print(*args, **kwargs)
if flush and fp is not None:
fp.flush()
_add_doc(reraise, """Reraise an exception.""")
if sys.version_info[0:2] < (3, 4):
# This does exactly the same what the :func:`py3:functools.update_wrapper`
# function does on Python versions after 3.2. It sets the ``__wrapped__``
# attribute on ``wrapper`` object and it doesn't raise an error if any of
# the attributes mentioned in ``assigned`` and ``updated`` are missing on
# ``wrapped`` object.
def _update_wrapper(wrapper, wrapped,
assigned=functools.WRAPPER_ASSIGNMENTS,
updated=functools.WRAPPER_UPDATES):
for attr in assigned:
try:
value = getattr(wrapped, attr)
except AttributeError:
continue
else:
setattr(wrapper, attr, value)
for attr in updated:
getattr(wrapper, attr).update(getattr(wrapped, attr, {}))
wrapper.__wrapped__ = wrapped
return wrapper
_update_wrapper.__doc__ = functools.update_wrapper.__doc__
def wraps(wrapped, assigned=functools.WRAPPER_ASSIGNMENTS,
updated=functools.WRAPPER_UPDATES):
return functools.partial(_update_wrapper, wrapped=wrapped,
assigned=assigned, updated=updated)
wraps.__doc__ = functools.wraps.__doc__
else:
wraps = functools.wraps
def with_metaclass(meta, *bases):
"""Create a base class with a metaclass."""
# This requires a bit of explanation: the basic idea is to make a dummy
# metaclass for one level of class instantiation that replaces itself with
# the actual metaclass.
class metaclass(type):
def __new__(cls, name, this_bases, d):
if sys.version_info[:2] >= (3, 7):
# This version introduced PEP 560 that requires a bit
# of extra care (we mimic what is done by __build_class__).
resolved_bases = types.resolve_bases(bases)
if resolved_bases is not bases:
d['__orig_bases__'] = bases
else:
resolved_bases = bases
return meta(name, resolved_bases, d)
@classmethod
def __prepare__(cls, name, this_bases):
return meta.__prepare__(name, bases)
return type.__new__(metaclass, 'temporary_class', (), {})
def add_metaclass(metaclass):
"""Class decorator for creating a class with a metaclass."""
def wrapper(cls):
orig_vars = cls.__dict__.copy()
slots = orig_vars.get('__slots__')
if slots is not None:
if isinstance(slots, str):
slots = [slots]
for slots_var in slots:
orig_vars.pop(slots_var)
orig_vars.pop('__dict__', None)
orig_vars.pop('__weakref__', None)
if hasattr(cls, '__qualname__'):
orig_vars['__qualname__'] = cls.__qualname__
return metaclass(cls.__name__, cls.__bases__, orig_vars)
return wrapper
def ensure_binary(s, encoding='utf-8', errors='strict'):
"""Coerce **s** to six.binary_type.
For Python 2:
- `unicode` -> encoded to `str`
- `str` -> `str`
For Python 3:
- `str` -> encoded to `bytes`
- `bytes` -> `bytes`
"""
if isinstance(s, binary_type):
return s
if isinstance(s, text_type):
return s.encode(encoding, errors)
raise TypeError("not expecting type '%s'" % type(s))
def ensure_str(s, encoding='utf-8', errors='strict'):
"""Coerce *s* to `str`.
For Python 2:
- `unicode` -> encoded to `str`
- `str` -> `str`
For Python 3:
- `str` -> `str`
- `bytes` -> decoded to `str`
"""
# Optimization: Fast return for the common case.
if type(s) is str:
return s
if PY2 and isinstance(s, text_type):
return s.encode(encoding, errors)
elif PY3 and isinstance(s, binary_type):
return s.decode(encoding, errors)
elif not isinstance(s, (text_type, binary_type)):
raise TypeError("not expecting type '%s'" % type(s))
return s
def ensure_text(s, encoding='utf-8', errors='strict'):
"""Coerce *s* to six.text_type.
For Python 2:
- `unicode` -> `unicode`
- `str` -> `unicode`
For Python 3:
- `str` -> `str`
- `bytes` -> decoded to `str`
"""
if isinstance(s, binary_type):
return s.decode(encoding, errors)
elif isinstance(s, text_type):
return s
else:
raise TypeError("not expecting type '%s'" % type(s))
def python_2_unicode_compatible(klass):
"""
A class decorator that defines __unicode__ and __str__ methods under Python 2.
Under Python 3 it does nothing.
To support Python 2 and 3 with a single code base, define a __str__ method
returning text and apply this decorator to the class.
"""
if PY2:
if '__str__' not in klass.__dict__:
raise ValueError("@python_2_unicode_compatible cannot be applied "
"to %s because it doesn't define __str__()." %
klass.__name__)
klass.__unicode__ = klass.__str__
klass.__str__ = lambda self: self.__unicode__().encode('utf-8')
return klass
# Complete the moves implementation.
# This code is at the end of this module to speed up module loading.
# Turn this module into a package.
__path__ = [] # required for PEP 302 and PEP 451
__package__ = __name__ # see PEP 366 @ReservedAssignment
if globals().get("__spec__") is not None:
__spec__.submodule_search_locations = [] # PEP 451 @UndefinedVariable
# Remove other six meta path importers, since they cause problems. This can
# happen if six is removed from sys.modules and then reloaded. (Setuptools does
# this for some reason.)
if sys.meta_path:
for i, importer in enumerate(sys.meta_path):
# Here's some real nastiness: Another "instance" of the six module might
# be floating around. Therefore, we can't use isinstance() to check for
# the six meta path importer, since the other six instance will have
# inserted an importer with different class.
if (type(importer).__name__ == "_SixMetaPathImporter" and
importer.name == __name__):
del sys.meta_path[i]
break
del i, importer
# Finally, add the importer to the meta path import hook.
sys.meta_path.append(_importer)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/stripe_object.py 0000644 0001751 0000171 00000032137 14335240430 017141 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import datetime
import json
from copy import deepcopy
import stripe
from stripe import api_requestor, util, six
def _compute_diff(current, previous):
if isinstance(current, dict):
previous = previous or {}
diff = current.copy()
for key in set(previous.keys()) - set(diff.keys()):
diff[key] = ""
return diff
return current if current is not None else ""
def _serialize_list(array, previous):
array = array or []
previous = previous or []
params = {}
for i, v in enumerate(array):
previous_item = previous[i] if len(previous) > i else None
if hasattr(v, "serialize"):
params[str(i)] = v.serialize(previous_item)
else:
params[str(i)] = _compute_diff(v, previous_item)
return params
class StripeObject(dict):
class ReprJSONEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, datetime.datetime):
return api_requestor._encode_datetime(obj)
return super(StripeObject.ReprJSONEncoder, self).default(obj)
def __init__(
self,
id=None,
api_key=None,
stripe_version=None,
stripe_account=None,
last_response=None,
**params
):
super(StripeObject, self).__init__()
self._unsaved_values = set()
self._transient_values = set()
self._last_response = last_response
self._retrieve_params = params
self._previous = None
object.__setattr__(self, "api_key", api_key)
object.__setattr__(self, "stripe_version", stripe_version)
object.__setattr__(self, "stripe_account", stripe_account)
if id:
self["id"] = id
@property
def last_response(self):
return self._last_response
def update(self, update_dict):
for k in update_dict:
self._unsaved_values.add(k)
return super(StripeObject, self).update(update_dict)
def __setattr__(self, k, v):
if k[0] == "_" or k in self.__dict__:
return super(StripeObject, self).__setattr__(k, v)
self[k] = v
return None
def __getattr__(self, k):
if k[0] == "_":
raise AttributeError(k)
try:
return self[k]
except KeyError as err:
raise AttributeError(*err.args)
def __delattr__(self, k):
if k[0] == "_" or k in self.__dict__:
return super(StripeObject, self).__delattr__(k)
else:
del self[k]
def __setitem__(self, k, v):
if v == "":
raise ValueError(
"You cannot set %s to an empty string on this object. "
"The empty string is treated specially in our requests. "
"If you'd like to delete the property using the save() method on this object, you may set %s.%s=None. "
"Alternatively, you can pass %s='' to delete the property when using a resource method such as modify()."
% (k, str(self), k, k)
)
# Allows for unpickling in Python 3.x
if not hasattr(self, "_unsaved_values"):
self._unsaved_values = set()
self._unsaved_values.add(k)
super(StripeObject, self).__setitem__(k, v)
def __getitem__(self, k):
try:
return super(StripeObject, self).__getitem__(k)
except KeyError as err:
if k in self._transient_values:
raise KeyError(
"%r. HINT: The %r attribute was set in the past."
"It was then wiped when refreshing the object with "
"the result returned by Stripe's API, probably as a "
"result of a save(). The attributes currently "
"available on this object are: %s"
% (k, k, ", ".join(list(self.keys())))
)
else:
raise err
def __delitem__(self, k):
super(StripeObject, self).__delitem__(k)
# Allows for unpickling in Python 3.x
if hasattr(self, "_unsaved_values") and k in self._unsaved_values:
self._unsaved_values.remove(k)
# Custom unpickling method that uses `update` to update the dictionary
# without calling __setitem__, which would fail if any value is an empty
# string
def __setstate__(self, state):
self.update(state)
# Custom pickling method to ensure the instance is pickled as a custom
# class and not as a dict, otherwise __setstate__ would not be called when
# unpickling.
def __reduce__(self):
reduce_value = (
type(self), # callable
( # args
self.get("id", None),
self.api_key,
self.stripe_version,
self.stripe_account,
),
dict(self), # state
)
return reduce_value
@classmethod
def construct_from(
cls,
values,
key,
stripe_version=None,
stripe_account=None,
last_response=None,
):
instance = cls(
values.get("id"),
api_key=key,
stripe_version=stripe_version,
stripe_account=stripe_account,
last_response=last_response,
)
instance.refresh_from(
values,
api_key=key,
stripe_version=stripe_version,
stripe_account=stripe_account,
last_response=last_response,
)
return instance
def refresh_from(
self,
values,
api_key=None,
partial=False,
stripe_version=None,
stripe_account=None,
last_response=None,
):
self.api_key = api_key or getattr(values, "api_key", None)
self.stripe_version = stripe_version or getattr(
values, "stripe_version", None
)
self.stripe_account = stripe_account or getattr(
values, "stripe_account", None
)
self._last_response = last_response or getattr(
values, "_last_response", None
)
# Wipe old state before setting new. This is useful for e.g.
# updating a customer, where there is no persistent card
# parameter. Mark those values which don't persist as transient
if partial:
self._unsaved_values = self._unsaved_values - set(values)
else:
removed = set(self.keys()) - set(values)
self._transient_values = self._transient_values | removed
self._unsaved_values = set()
self.clear()
self._transient_values = self._transient_values - set(values)
for k, v in six.iteritems(values):
super(StripeObject, self).__setitem__(
k,
util.convert_to_stripe_object(
v, api_key, stripe_version, stripe_account
),
)
self._previous = values
@classmethod
def api_base(cls):
return None
def request(self, method, url, params=None, headers=None):
return StripeObject._request(
self, method, url, headers=headers, params=params
)
# The `method_` and `url_` arguments are suffixed with an underscore to
# avoid conflicting with actual request parameters in `params`.
def _request(
self,
method_,
url_,
api_key=None,
idempotency_key=None,
stripe_version=None,
stripe_account=None,
headers=None,
params=None,
):
params = None if params is None else params.copy()
api_key = util.read_special_variable(params, "api_key", api_key)
idempotency_key = util.read_special_variable(
params, "idempotency_key", idempotency_key
)
stripe_version = util.read_special_variable(
params, "stripe_version", stripe_version
)
stripe_account = util.read_special_variable(
params, "stripe_account", stripe_account
)
headers = util.read_special_variable(params, "headers", headers)
stripe_account = stripe_account or self.stripe_account
stripe_version = stripe_version or self.stripe_version
api_key = api_key or self.api_key
params = params or self._retrieve_params
requestor = api_requestor.APIRequestor(
key=api_key,
api_base=self.api_base(),
api_version=stripe_version,
account=stripe_account,
)
if idempotency_key is not None:
headers = {} if headers is None else headers.copy()
headers.update(util.populate_headers(idempotency_key))
response, api_key = requestor.request(method_, url_, params, headers)
return util.convert_to_stripe_object(
response, api_key, stripe_version, stripe_account, params
)
def request_stream(self, method, url, params=None, headers=None):
if params is None:
params = self._retrieve_params
requestor = api_requestor.APIRequestor(
key=self.api_key,
api_base=self.api_base(),
api_version=self.stripe_version,
account=self.stripe_account,
)
response, _ = requestor.request_stream(method, url, params, headers)
return response
def __repr__(self):
ident_parts = [type(self).__name__]
if isinstance(self.get("object"), six.string_types):
ident_parts.append(self.get("object"))
if isinstance(self.get("id"), six.string_types):
ident_parts.append("id=%s" % (self.get("id"),))
unicode_repr = "<%s at %s> JSON: %s" % (
" ".join(ident_parts),
hex(id(self)),
str(self),
)
if six.PY2:
return unicode_repr.encode("utf-8")
else:
return unicode_repr
def __str__(self):
return json.dumps(
self.to_dict_recursive(),
sort_keys=True,
indent=2,
cls=self.ReprJSONEncoder,
)
def to_dict(self):
return dict(self)
def to_dict_recursive(self):
def maybe_to_dict_recursive(value):
if value is None:
return None
elif isinstance(value, StripeObject):
return value.to_dict_recursive()
else:
return value
return {
key: list(map(maybe_to_dict_recursive, value))
if isinstance(value, list)
else maybe_to_dict_recursive(value)
for key, value in six.iteritems(dict(self))
}
@property
def stripe_id(self):
return self.id
def serialize(self, previous):
params = {}
unsaved_keys = self._unsaved_values or set()
previous = previous or self._previous or {}
for k, v in six.iteritems(self):
if k == "id" or (isinstance(k, str) and k.startswith("_")):
continue
elif isinstance(v, stripe.api_resources.abstract.APIResource):
continue
elif hasattr(v, "serialize"):
child = v.serialize(previous.get(k, None))
if child != {}:
params[k] = child
elif k in unsaved_keys:
params[k] = _compute_diff(v, previous.get(k, None))
elif k == "additional_owners" and v is not None:
params[k] = _serialize_list(v, previous.get(k, None))
return params
# This class overrides __setitem__ to throw exceptions on inputs that it
# doesn't like. This can cause problems when we try to copy an object
# wholesale because some data that's returned from the API may not be valid
# if it was set to be set manually. Here we override the class' copy
# arguments so that we can bypass these possible exceptions on __setitem__.
def __copy__(self):
copied = StripeObject(
self.get("id"),
self.api_key,
stripe_version=self.stripe_version,
stripe_account=self.stripe_account,
)
copied._retrieve_params = self._retrieve_params
for k, v in six.iteritems(self):
# Call parent's __setitem__ to avoid checks that we've added in the
# overridden version that can throw exceptions.
super(StripeObject, copied).__setitem__(k, v)
return copied
# This class overrides __setitem__ to throw exceptions on inputs that it
# doesn't like. This can cause problems when we try to copy an object
# wholesale because some data that's returned from the API may not be valid
# if it was set to be set manually. Here we override the class' copy
# arguments so that we can bypass these possible exceptions on __setitem__.
def __deepcopy__(self, memo):
copied = self.__copy__()
memo[id(self)] = copied
for k, v in six.iteritems(self):
# Call parent's __setitem__ to avoid checks that we've added in the
# overridden version that can throw exceptions.
super(StripeObject, copied).__setitem__(k, deepcopy(v, memo))
return copied
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/stripe_response.py 0000644 0001751 0000171 00000001703 14335240430 017524 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import json
from collections import OrderedDict
class StripeResponseBase(object):
def __init__(self, code, headers):
self.code = code
self.headers = headers
@property
def idempotency_key(self):
try:
return self.headers["idempotency-key"]
except KeyError:
return None
@property
def request_id(self):
try:
return self.headers["request-id"]
except KeyError:
return None
class StripeResponse(StripeResponseBase):
def __init__(self, body, code, headers):
StripeResponseBase.__init__(self, code, headers)
self.body = body
self.data = json.loads(body, object_pairs_hook=OrderedDict)
class StripeStreamResponse(StripeResponseBase):
def __init__(self, io, code, headers):
StripeResponseBase.__init__(self, code, headers)
self.io = io
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/util.py 0000644 0001751 0000171 00000017163 14335240430 015264 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import functools
import hmac
import io
import logging
import sys
import os
import re
import stripe
from stripe import six
from stripe.six.moves.urllib.parse import parse_qsl, quote_plus
STRIPE_LOG = os.environ.get("STRIPE_LOG")
logger = logging.getLogger("stripe")
__all__ = [
"io",
"parse_qsl",
"utf8",
"log_info",
"log_debug",
"dashboard_link",
"logfmt",
]
def utf8(value):
if six.PY2 and isinstance(value, six.text_type):
return value.encode("utf-8")
else:
return value
def is_appengine_dev():
return "APPENGINE_RUNTIME" in os.environ and "Dev" in os.environ.get(
"SERVER_SOFTWARE", ""
)
def _console_log_level():
if stripe.log in ["debug", "info"]:
return stripe.log
elif STRIPE_LOG in ["debug", "info"]:
return STRIPE_LOG
else:
return None
def log_debug(message, **params):
msg = logfmt(dict(message=message, **params))
if _console_log_level() == "debug":
print(msg, file=sys.stderr)
logger.debug(msg)
def log_info(message, **params):
msg = logfmt(dict(message=message, **params))
if _console_log_level() in ["debug", "info"]:
print(msg, file=sys.stderr)
logger.info(msg)
def _test_or_live_environment():
if stripe.api_key is None:
return
match = re.match(r"sk_(live|test)_", stripe.api_key)
if match is None:
return
return match.groups()[0]
def dashboard_link(request_id):
return "https://dashboard.stripe.com/{env}/logs/{reqid}".format(
env=_test_or_live_environment() or "test", reqid=request_id
)
def logfmt(props):
def fmt(key, val):
# Handle case where val is a bytes or bytesarray
if six.PY3 and hasattr(val, "decode"):
val = val.decode("utf-8")
# Check if val is already a string to avoid re-encoding into
# ascii. Since the code is sent through 2to3, we can't just
# use unicode(val, encoding='utf8') since it will be
# translated incorrectly.
if not isinstance(val, six.string_types):
val = six.text_type(val)
if re.search(r"\s", val):
val = repr(val)
# key should already be a string
if re.search(r"\s", key):
key = repr(key)
return u"{key}={val}".format(key=key, val=val)
return u" ".join([fmt(key, val) for key, val in sorted(props.items())])
# Borrowed from Django's source code
if hasattr(hmac, "compare_digest"):
# Prefer the stdlib implementation, when available.
def secure_compare(val1, val2):
return hmac.compare_digest(utf8(val1), utf8(val2))
else:
def secure_compare(val1, val2):
"""
Returns True if the two strings are equal, False otherwise.
The time taken is independent of the number of characters that match.
For the sake of simplicity, this function executes in constant time
only when the two strings have the same length. It short-circuits when
they have different lengths.
"""
val1, val2 = utf8(val1), utf8(val2)
if len(val1) != len(val2):
return False
result = 0
if six.PY3 and isinstance(val1, bytes) and isinstance(val2, bytes):
for x, y in zip(val1, val2):
result |= x ^ y
else:
for x, y in zip(val1, val2):
result |= ord(x) ^ ord(y)
return result == 0
def get_object_classes():
# This is here to avoid a circular dependency
from stripe.object_classes import OBJECT_CLASSES
return OBJECT_CLASSES
def convert_to_stripe_object(
resp, api_key=None, stripe_version=None, stripe_account=None, params=None
):
# If we get a StripeResponse, we'll want to return a
# StripeObject with the last_response field filled out with
# the raw API response information
stripe_response = None
if isinstance(resp, stripe.stripe_response.StripeResponse):
stripe_response = resp
resp = stripe_response.data
if isinstance(resp, list):
return [
convert_to_stripe_object(
i, api_key, stripe_version, stripe_account
)
for i in resp
]
elif isinstance(resp, dict) and not isinstance(
resp, stripe.stripe_object.StripeObject
):
resp = resp.copy()
klass_name = resp.get("object")
if isinstance(klass_name, six.string_types):
klass = get_object_classes().get(
klass_name, stripe.stripe_object.StripeObject
)
else:
klass = stripe.stripe_object.StripeObject
obj = klass.construct_from(
resp,
api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
last_response=stripe_response,
)
# We only need to update _retrieve_params when special params were
# actually passed. Otherwise, leave it as is as the list / search result
# constructors will instantiate their own params.
if (
params is not None
and hasattr(obj, "object")
and ((obj.object == "list") or (obj.object == "search_result"))
):
obj._retrieve_params = params
return obj
else:
return resp
def convert_to_dict(obj):
"""Converts a StripeObject back to a regular dict.
Nested StripeObjects are also converted back to regular dicts.
:param obj: The StripeObject to convert.
:returns: The StripeObject as a dict.
"""
if isinstance(obj, list):
return [convert_to_dict(i) for i in obj]
# This works by virtue of the fact that StripeObjects _are_ dicts. The dict
# comprehension returns a regular dict and recursively applies the
# conversion to each value.
elif isinstance(obj, dict):
return {k: convert_to_dict(v) for k, v in six.iteritems(obj)}
else:
return obj
def populate_headers(idempotency_key):
if idempotency_key is not None:
return {"Idempotency-Key": idempotency_key}
return None
def read_special_variable(params, key_name, default_value):
value = default_value
params_value = None
if params is not None and key_name in params:
params_value = params[key_name]
del params[key_name]
if value is None:
value = params_value
return value
def merge_dicts(x, y):
z = x.copy()
z.update(y)
return z
def sanitize_id(id):
utf8id = utf8(id)
quotedId = quote_plus(utf8id)
return quotedId
class class_method_variant(object):
def __init__(self, class_method_name):
self.class_method_name = class_method_name
def __call__(self, method):
self.method = method
return self
def __get__(self, obj, objtype=None):
@functools.wraps(self.method)
def _wrapper(*args, **kwargs):
if obj is not None:
# Method was called as an instance method, e.g.
# instance.method(...)
return self.method(obj, *args, **kwargs)
elif len(args) > 0 and isinstance(args[0], objtype):
# Method was called as a class method with the instance as the
# first argument, e.g. Class.method(instance, ...) which in
# Python is the same thing as calling an instance method
return self.method(args[0], *args[1:], **kwargs)
else:
# Method was called as a class method, e.g. Class.method(...)
class_method = getattr(objtype, self.class_method_name)
return class_method(*args, **kwargs)
return _wrapper
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/version.py 0000644 0001751 0000171 00000000022 14335240430 015756 0 ustar 00runner docker VERSION = "5.0.0"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/stripe/webhook.py 0000644 0001751 0000171 00000005240 14335240430 015736 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import hmac
import json
import time
from collections import OrderedDict
from hashlib import sha256
import stripe
from stripe import error, util
class Webhook(object):
DEFAULT_TOLERANCE = 300
@staticmethod
def construct_event(
payload, sig_header, secret, tolerance=DEFAULT_TOLERANCE, api_key=None
):
if hasattr(payload, "decode"):
payload = payload.decode("utf-8")
WebhookSignature.verify_header(payload, sig_header, secret, tolerance)
data = json.loads(payload, object_pairs_hook=OrderedDict)
event = stripe.Event.construct_from(data, api_key or stripe.api_key)
return event
class WebhookSignature(object):
EXPECTED_SCHEME = "v1"
@staticmethod
def _compute_signature(payload, secret):
mac = hmac.new(
secret.encode("utf-8"),
msg=payload.encode("utf-8"),
digestmod=sha256,
)
return mac.hexdigest()
@staticmethod
def _get_timestamp_and_signatures(header, scheme):
list_items = [i.split("=", 2) for i in header.split(",")]
timestamp = int([i[1] for i in list_items if i[0] == "t"][0])
signatures = [i[1] for i in list_items if i[0] == scheme]
return timestamp, signatures
@classmethod
def verify_header(cls, payload, header, secret, tolerance=None):
try:
timestamp, signatures = cls._get_timestamp_and_signatures(
header, cls.EXPECTED_SCHEME
)
except Exception:
raise error.SignatureVerificationError(
"Unable to extract timestamp and signatures from header",
header,
payload,
)
if not signatures:
raise error.SignatureVerificationError(
"No signatures found with expected scheme "
"%s" % cls.EXPECTED_SCHEME,
header,
payload,
)
signed_payload = "%d.%s" % (timestamp, payload)
expected_sig = cls._compute_signature(signed_payload, secret)
if not any(util.secure_compare(expected_sig, s) for s in signatures):
raise error.SignatureVerificationError(
"No signatures found matching the expected signature for "
"payload",
header,
payload,
)
if tolerance and timestamp < time.time() - tolerance:
raise error.SignatureVerificationError(
"Timestamp outside the tolerance zone (%d)" % timestamp,
header,
payload,
)
return True
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4144154
stripe-5.0.0/stripe.egg-info/ 0000755 0001751 0000171 00000000000 14335240452 015423 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628778.0
stripe-5.0.0/stripe.egg-info/PKG-INFO 0000644 0001751 0000171 00000004640 14335240452 016524 0 ustar 00runner docker Metadata-Version: 2.1
Name: stripe
Version: 5.0.0
Summary: Python bindings for the Stripe API
Home-page: https://github.com/stripe/stripe-python
Author: Stripe
Author-email: support@stripe.com
License: MIT
Project-URL: Bug Tracker, https://github.com/stripe/stripe-python/issues
Project-URL: Changes, https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md
Project-URL: Documentation, https://stripe.com/docs/api/?lang=python
Project-URL: Source Code, https://github.com/stripe/stripe-python
Keywords: stripe api payments
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Description-Content-Type: text/x-rst
License-File: LICENSE
Official Stripe Bindings for Python
===================================
A Python library for Stripe's API.
Setup
-----
You can install this package by using the pip tool and installing:
$ pip install stripe
Or:
$ easy_install stripe
Setting up a Stripe Account
---------------------------
Sign up for Stripe at https://dashboard.stripe.com/register.
Using the Stripe API
--------------------
Documentation for the python bindings can be found alongside Stripe's other bindings here:
- https://stripe.com/docs
- https://stripe.com/docs/api/?lang=python
In the standard documentation (the first link), most of the reference pages will have examples in Stripe's official bindings (including Python). Just click on the Python tab to get the relevant documentation.
In the full API reference for python (the second link), the right half of the page will provide example requests and responses for various API calls.
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628778.0
stripe-5.0.0/stripe.egg-info/SOURCES.txt 0000644 0001751 0000171 00000024547 14335240452 017323 0 ustar 00runner docker .coveragerc
.flake8
CHANGELOG.md
LICENSE
LONG_DESCRIPTION.rst
MANIFEST.in
README.md
VERSION
pyproject.toml
setup.cfg
setup.py
tox.ini
examples/charge.py
examples/oauth.py
examples/proxy.py
examples/webhooks.py
stripe/__init__.py
stripe/api_requestor.py
stripe/api_version.py
stripe/error.py
stripe/http_client.py
stripe/multipart_data_generator.py
stripe/oauth.py
stripe/oauth_error.py
stripe/object_classes.py
stripe/request_metrics.py
stripe/six.py
stripe/stripe_object.py
stripe/stripe_response.py
stripe/util.py
stripe/version.py
stripe/webhook.py
stripe.egg-info/PKG-INFO
stripe.egg-info/SOURCES.txt
stripe.egg-info/dependency_links.txt
stripe.egg-info/not-zip-safe
stripe.egg-info/requires.txt
stripe.egg-info/top_level.txt
stripe/api_resources/__init__.py
stripe/api_resources/account.py
stripe/api_resources/account_link.py
stripe/api_resources/apple_pay_domain.py
stripe/api_resources/application_fee.py
stripe/api_resources/application_fee_refund.py
stripe/api_resources/balance.py
stripe/api_resources/balance_transaction.py
stripe/api_resources/bank_account.py
stripe/api_resources/capability.py
stripe/api_resources/card.py
stripe/api_resources/cash_balance.py
stripe/api_resources/charge.py
stripe/api_resources/country_spec.py
stripe/api_resources/coupon.py
stripe/api_resources/credit_note.py
stripe/api_resources/credit_note_line_item.py
stripe/api_resources/customer.py
stripe/api_resources/customer_balance_transaction.py
stripe/api_resources/customer_cash_balance_transaction.py
stripe/api_resources/dispute.py
stripe/api_resources/ephemeral_key.py
stripe/api_resources/error_object.py
stripe/api_resources/event.py
stripe/api_resources/exchange_rate.py
stripe/api_resources/file.py
stripe/api_resources/file_link.py
stripe/api_resources/funding_instructions.py
stripe/api_resources/invoice.py
stripe/api_resources/invoice_item.py
stripe/api_resources/invoice_line_item.py
stripe/api_resources/line_item.py
stripe/api_resources/list_object.py
stripe/api_resources/login_link.py
stripe/api_resources/mandate.py
stripe/api_resources/payment_intent.py
stripe/api_resources/payment_link.py
stripe/api_resources/payment_method.py
stripe/api_resources/payout.py
stripe/api_resources/person.py
stripe/api_resources/plan.py
stripe/api_resources/price.py
stripe/api_resources/product.py
stripe/api_resources/promotion_code.py
stripe/api_resources/quote.py
stripe/api_resources/recipient_transfer.py
stripe/api_resources/refund.py
stripe/api_resources/reversal.py
stripe/api_resources/review.py
stripe/api_resources/search_result_object.py
stripe/api_resources/setup_attempt.py
stripe/api_resources/setup_intent.py
stripe/api_resources/shipping_rate.py
stripe/api_resources/source.py
stripe/api_resources/source_transaction.py
stripe/api_resources/subscription.py
stripe/api_resources/subscription_item.py
stripe/api_resources/subscription_schedule.py
stripe/api_resources/tax_code.py
stripe/api_resources/tax_id.py
stripe/api_resources/tax_rate.py
stripe/api_resources/token.py
stripe/api_resources/topup.py
stripe/api_resources/transfer.py
stripe/api_resources/usage_record.py
stripe/api_resources/usage_record_summary.py
stripe/api_resources/webhook_endpoint.py
stripe/api_resources/abstract/__init__.py
stripe/api_resources/abstract/api_resource.py
stripe/api_resources/abstract/createable_api_resource.py
stripe/api_resources/abstract/custom_method.py
stripe/api_resources/abstract/deletable_api_resource.py
stripe/api_resources/abstract/listable_api_resource.py
stripe/api_resources/abstract/nested_resource_class_methods.py
stripe/api_resources/abstract/searchable_api_resource.py
stripe/api_resources/abstract/singleton_api_resource.py
stripe/api_resources/abstract/test_helpers.py
stripe/api_resources/abstract/updateable_api_resource.py
stripe/api_resources/abstract/verify_mixin.py
stripe/api_resources/apps/__init__.py
stripe/api_resources/apps/secret.py
stripe/api_resources/billing_portal/__init__.py
stripe/api_resources/billing_portal/configuration.py
stripe/api_resources/billing_portal/session.py
stripe/api_resources/checkout/__init__.py
stripe/api_resources/checkout/session.py
stripe/api_resources/financial_connections/__init__.py
stripe/api_resources/financial_connections/account.py
stripe/api_resources/financial_connections/account_owner.py
stripe/api_resources/financial_connections/account_ownership.py
stripe/api_resources/financial_connections/session.py
stripe/api_resources/identity/__init__.py
stripe/api_resources/identity/verification_report.py
stripe/api_resources/identity/verification_session.py
stripe/api_resources/issuing/__init__.py
stripe/api_resources/issuing/authorization.py
stripe/api_resources/issuing/card.py
stripe/api_resources/issuing/cardholder.py
stripe/api_resources/issuing/dispute.py
stripe/api_resources/issuing/transaction.py
stripe/api_resources/radar/__init__.py
stripe/api_resources/radar/early_fraud_warning.py
stripe/api_resources/radar/value_list.py
stripe/api_resources/radar/value_list_item.py
stripe/api_resources/reporting/__init__.py
stripe/api_resources/reporting/report_run.py
stripe/api_resources/reporting/report_type.py
stripe/api_resources/sigma/__init__.py
stripe/api_resources/sigma/scheduled_query_run.py
stripe/api_resources/terminal/__init__.py
stripe/api_resources/terminal/configuration.py
stripe/api_resources/terminal/connection_token.py
stripe/api_resources/terminal/location.py
stripe/api_resources/terminal/reader.py
stripe/api_resources/test_helpers/__init__.py
stripe/api_resources/test_helpers/test_clock.py
stripe/api_resources/treasury/__init__.py
stripe/api_resources/treasury/credit_reversal.py
stripe/api_resources/treasury/debit_reversal.py
stripe/api_resources/treasury/financial_account.py
stripe/api_resources/treasury/inbound_transfer.py
stripe/api_resources/treasury/outbound_payment.py
stripe/api_resources/treasury/outbound_transfer.py
stripe/api_resources/treasury/received_credit.py
stripe/api_resources/treasury/received_debit.py
stripe/api_resources/treasury/transaction.py
stripe/api_resources/treasury/transaction_entry.py
stripe/data/ca-certificates.crt
tests/__init__.py
tests/conftest.py
tests/request_mock.py
tests/stripe_mock.py
tests/test_api_requestor.py
tests/test_error.py
tests/test_generated_examples.py
tests/test_http_client.py
tests/test_integration.py
tests/test_multipart_data_generator.py
tests/test_oauth.py
tests/test_oauth_error.py
tests/test_stripe_object.py
tests/test_stripe_response.py
tests/test_util.py
tests/test_webhook.py
tests/api_resources/__init__.py
tests/api_resources/test_account.py
tests/api_resources/test_account_link.py
tests/api_resources/test_apple_pay_domain.py
tests/api_resources/test_application_fee.py
tests/api_resources/test_application_fee_refund.py
tests/api_resources/test_balance.py
tests/api_resources/test_balance_transaction.py
tests/api_resources/test_bank_account.py
tests/api_resources/test_capability.py
tests/api_resources/test_card.py
tests/api_resources/test_charge.py
tests/api_resources/test_country_spec.py
tests/api_resources/test_coupon.py
tests/api_resources/test_credit_note.py
tests/api_resources/test_customer.py
tests/api_resources/test_customer_balance_transaction.py
tests/api_resources/test_dispute.py
tests/api_resources/test_ephemeral_key.py
tests/api_resources/test_event.py
tests/api_resources/test_exchange_rate.py
tests/api_resources/test_file.py
tests/api_resources/test_file_link.py
tests/api_resources/test_file_upload.py
tests/api_resources/test_invoice.py
tests/api_resources/test_invoice_item.py
tests/api_resources/test_invoice_line_item.py
tests/api_resources/test_list_object.py
tests/api_resources/test_mandate.py
tests/api_resources/test_payment_intent.py
tests/api_resources/test_payment_method.py
tests/api_resources/test_payout.py
tests/api_resources/test_person.py
tests/api_resources/test_plan.py
tests/api_resources/test_price.py
tests/api_resources/test_product.py
tests/api_resources/test_promotion_code.py
tests/api_resources/test_quote.py
tests/api_resources/test_refund.py
tests/api_resources/test_reversal.py
tests/api_resources/test_review.py
tests/api_resources/test_search_result_object.py
tests/api_resources/test_setup_attempt.py
tests/api_resources/test_setup_intent.py
tests/api_resources/test_source.py
tests/api_resources/test_source_transaction.py
tests/api_resources/test_subscription.py
tests/api_resources/test_subscription_item.py
tests/api_resources/test_subscription_schedule.py
tests/api_resources/test_tax_code.py
tests/api_resources/test_tax_id.py
tests/api_resources/test_tax_rate.py
tests/api_resources/test_topup.py
tests/api_resources/test_transfer.py
tests/api_resources/test_usage_record.py
tests/api_resources/test_usage_record_summary.py
tests/api_resources/test_webhook_endpoint.py
tests/api_resources/abstract/__init__.py
tests/api_resources/abstract/test_api_resource.py
tests/api_resources/abstract/test_createable_api_resource.py
tests/api_resources/abstract/test_custom_method.py
tests/api_resources/abstract/test_deletable_api_resource.py
tests/api_resources/abstract/test_listable_api_resource.py
tests/api_resources/abstract/test_nested_resource_class_methods.py
tests/api_resources/abstract/test_searchable_api_resource.py
tests/api_resources/abstract/test_singleton_api_resource.py
tests/api_resources/abstract/test_test_helpers_api_resource.py
tests/api_resources/abstract/test_updateable_api_resource.py
tests/api_resources/billing_portal/__init__.py
tests/api_resources/billing_portal/test_configuration.py
tests/api_resources/billing_portal/test_session.py
tests/api_resources/checkout/__init__.py
tests/api_resources/checkout/test_session.py
tests/api_resources/identity/test_verification_report.py
tests/api_resources/identity/test_verification_session.py
tests/api_resources/issuing/__init__.py
tests/api_resources/issuing/test_authorization.py
tests/api_resources/issuing/test_card.py
tests/api_resources/issuing/test_cardholder.py
tests/api_resources/issuing/test_dispute.py
tests/api_resources/issuing/test_transaction.py
tests/api_resources/radar/__init__.py
tests/api_resources/radar/test_early_fraud_warning.py
tests/api_resources/radar/test_value_list.py
tests/api_resources/radar/test_value_list_item.py
tests/api_resources/reporting/__init__.py
tests/api_resources/reporting/test_report_run.py
tests/api_resources/reporting/test_report_type.py
tests/api_resources/sigma/__init__.py
tests/api_resources/sigma/test_scheduled_query_run.py
tests/api_resources/terminal/__init__.py
tests/api_resources/terminal/test_connection_token.py
tests/api_resources/terminal/test_location.py
tests/api_resources/terminal/test_reader.py ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628778.0
stripe-5.0.0/stripe.egg-info/dependency_links.txt 0000644 0001751 0000171 00000000001 14335240452 021471 0 ustar 00runner docker
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628778.0
stripe-5.0.0/stripe.egg-info/not-zip-safe 0000644 0001751 0000171 00000000001 14335240452 017651 0 ustar 00runner docker
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628778.0
stripe-5.0.0/stripe.egg-info/requires.txt 0000644 0001751 0000171 00000000137 14335240452 020024 0 ustar 00runner docker
[:python_version < "3.0"]
requests[security]>=2.20
[:python_version >= "3.0"]
requests>=2.20
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628778.0
stripe-5.0.0/stripe.egg-info/top_level.txt 0000644 0001751 0000171 00000000007 14335240452 020152 0 ustar 00runner docker stripe
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4264154
stripe-5.0.0/tests/ 0000755 0001751 0000171 00000000000 14335240452 013565 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/__init__.py 0000644 0001751 0000171 00000000000 14335240430 015660 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4344156
stripe-5.0.0/tests/api_resources/ 0000755 0001751 0000171 00000000000 14335240452 016430 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/__init__.py 0000644 0001751 0000171 00000000000 14335240430 020523 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4344156
stripe-5.0.0/tests/api_resources/abstract/ 0000755 0001751 0000171 00000000000 14335240452 020233 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/__init__.py 0000644 0001751 0000171 00000000000 14335240430 022326 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/test_api_resource.py 0000644 0001751 0000171 00000005513 14335240430 024324 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
class TestAPIResource(object):
class MyResource(stripe.api_resources.abstract.APIResource):
OBJECT_NAME = "myresource"
def test_retrieve_and_refresh(self, request_mock):
url = "/v1/myresources/foo%2A"
request_mock.stub_request(
"get",
url,
{"id": "foo2", "bobble": "scrobble"},
rheaders={"request-id": "req_id"},
)
res = self.MyResource.retrieve("foo*", myparam=5)
request_mock.assert_requested("get", url, {"myparam": 5}, None)
assert res.bobble == "scrobble"
assert res.id == "foo2"
assert res.api_key == "sk_test_123"
assert res.last_response is not None
assert res.last_response.request_id == "req_id"
url = "/v1/myresources/foo2"
request_mock.stub_request("get", url, {"frobble": 5})
res = res.refresh()
request_mock.assert_requested("get", url, {"myparam": 5}, None)
assert res.frobble == 5
with pytest.raises(KeyError):
res["bobble"]
def test_request_with_special_fields_prefers_explicit(self, request_mock):
url = "/v1/myresources/foo"
request_mock.stub_request(
"get",
url,
{"id": "foo2", "bobble": "scrobble"},
)
self.MyResource._static_request(
"get",
"/v1/myresources/foo",
idempotency_key="explicit",
params={"idempotency_key": "params", "bobble": "scrobble"},
)
request_mock.assert_requested(
"get", url, {"bobble": "scrobble"}, {"Idempotency-Key": "explicit"}
)
def test_convert_to_stripe_object(self):
sample = {
"foo": "bar",
"adict": {"object": "charge", "id": 42, "amount": 7},
"alist": [{"object": "customer", "name": "chilango"}],
}
converted = stripe.util.convert_to_stripe_object(
sample, "akey", None, None
)
# Types
assert isinstance(converted, stripe.stripe_object.StripeObject)
assert isinstance(converted.adict, stripe.Charge)
assert len(converted.alist) == 1
assert isinstance(converted.alist[0], stripe.Customer)
# Values
assert converted.foo == "bar"
assert converted.adict.id == 42
assert converted.alist[0].name == "chilango"
# Stripping
# TODO: We should probably be stripping out this property
# self.assertRaises(AttributeError, getattr, converted.adict, 'object')
def test_raise_on_incorrect_id_type(self):
for obj in [None, 1, 3.14, dict(), list(), set(), tuple(), object()]:
with pytest.raises(stripe.error.InvalidRequestError):
self.MyResource.retrieve(obj)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/test_createable_api_resource.py 0000644 0001751 0000171 00000002365 14335240430 026475 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestCreateableAPIResource(object):
class MyCreatable(stripe.api_resources.abstract.CreateableAPIResource):
OBJECT_NAME = "mycreatable"
def test_create(self, request_mock):
request_mock.stub_request(
"post",
"/v1/mycreatables",
{"object": "charge", "foo": "bar"},
rheaders={"request-id": "req_id"},
)
res = self.MyCreatable.create()
request_mock.assert_requested("post", "/v1/mycreatables", {})
assert isinstance(res, stripe.Charge)
assert res.foo == "bar"
assert res.last_response is not None
assert res.last_response.request_id == "req_id"
def test_idempotent_create(self, request_mock):
request_mock.stub_request(
"post",
"/v1/mycreatables",
{"object": "charge", "foo": "bar"},
rheaders={"idempotency-key": "foo"},
)
res = self.MyCreatable.create(idempotency_key="foo")
request_mock.assert_requested(
"post", "/v1/mycreatables", {}, {"Idempotency-Key": "foo"}
)
assert isinstance(res, stripe.Charge)
assert res.foo == "bar"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/test_custom_method.py 0000644 0001751 0000171 00000023740 14335240430 024520 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
from stripe import util
class TestCustomMethod(object):
@stripe.api_resources.abstract.custom_method(
"do_stuff", http_verb="post", http_path="do_the_thing"
)
@stripe.api_resources.abstract.custom_method(
"do_list_stuff", http_verb="get", http_path="do_the_list_thing"
)
@stripe.api_resources.abstract.custom_method(
"do_stream_stuff",
http_verb="post",
http_path="do_the_stream_thing",
is_streaming=True,
)
class MyResource(stripe.api_resources.abstract.APIResource):
OBJECT_NAME = "myresource"
def do_stuff(self, idempotency_key=None, **params):
url = self.instance_url() + "/do_the_thing"
headers = util.populate_headers(idempotency_key)
self.refresh_from(self.request("post", url, params, headers))
return self
def do_stream_stuff(self, idempotency_key=None, **params):
url = self.instance_url() + "/do_the_stream_thing"
headers = util.populate_headers(idempotency_key)
return self.request_stream("post", url, params, headers)
@classmethod
def _cls_do_stuff_new_codegen(
cls,
id,
api_key=None,
stripe_version=None,
stripe_account=None,
**params
):
return cls._static_request(
"post",
"/v1/myresources/{id}/do_the_thing".format(
id=util.sanitize_id(id)
),
api_key=api_key,
stripe_version=stripe_version,
stripe_account=stripe_account,
params=params,
)
@util.class_method_variant("_cls_do_stuff_new_codegen")
def do_stuff_new_codegen(self, idempotency_key=None, **params):
return self._request(
"post",
"/v1/myresources/{id}/do_the_thing".format(
id=util.sanitize_id(self.get("id"))
),
idempotency_key=idempotency_key,
params=params,
)
def test_call_custom_method_class(self, request_mock):
request_mock.stub_request(
"post",
"/v1/myresources/mid/do_the_thing",
{"id": "mid", "thing_done": True},
rheaders={"request-id": "req_id"},
)
obj = self.MyResource.do_stuff("mid", foo="bar")
request_mock.assert_requested(
"post", "/v1/myresources/mid/do_the_thing", {"foo": "bar"}
)
assert obj.thing_done is True
def test_call_custom_list_method_class_paginates(self, request_mock):
request_mock.stub_request(
"get",
"/v1/myresources/mid/do_the_list_thing",
{
"object": "list",
"url": "/v1/myresources/mid/do_the_list_thing",
"has_more": True,
"data": [
{"id": "cus_1", "object": "customer"},
{"id": "cus_2", "object": "customer"},
],
},
rheaders={"request-id": "req_123"},
)
resp = self.MyResource.do_list_stuff("mid", param1="abc", param2="def")
request_mock.assert_requested(
"get",
"/v1/myresources/mid/do_the_list_thing",
{"param1": "abc", "param2": "def"},
)
# Stub out the second request which will happen automatically.
request_mock.stub_request(
"get",
"/v1/myresources/mid/do_the_list_thing",
{
"object": "list",
"url": "/v1/myresources/mid/do_the_list_thing",
"has_more": False,
"data": [
{"id": "cus_3", "object": "customer"},
],
},
rheaders={"request-id": "req_123"},
)
# Iterate through entire content
ids = []
for i in resp.auto_paging_iter():
ids.append(i.id)
# Explicitly assert that the pagination parameter were kept for the
# second request along with the starting_after param.
request_mock.assert_requested(
"get",
"/v1/myresources/mid/do_the_list_thing",
{"starting_after": "cus_2", "param1": "abc", "param2": "def"},
)
assert ids == ["cus_1", "cus_2", "cus_3"]
def test_call_custom_stream_method_class(self, request_mock):
request_mock.stub_request_stream(
"post",
"/v1/myresources/mid/do_the_stream_thing",
"response body",
rheaders={"request-id": "req_id"},
)
resp = self.MyResource.do_stream_stuff("mid", foo="bar")
request_mock.assert_requested_stream(
"post", "/v1/myresources/mid/do_the_stream_thing", {"foo": "bar"}
)
body_content = resp.io.read()
if hasattr(body_content, "decode"):
body_content = body_content.decode("utf-8")
assert body_content == "response body"
def test_call_custom_method_class_with_object(self, request_mock):
request_mock.stub_request(
"post",
"/v1/myresources/mid/do_the_thing",
{"id": "mid", "thing_done": True},
rheaders={"request-id": "req_id"},
)
obj = self.MyResource.construct_from({"id": "mid"}, "mykey")
self.MyResource.do_stuff(obj, foo="bar")
request_mock.assert_requested(
"post", "/v1/myresources/mid/do_the_thing", {"foo": "bar"}
)
assert obj.thing_done is True
def test_call_custom_stream_method_class_with_object(self, request_mock):
request_mock.stub_request_stream(
"post",
"/v1/myresources/mid/do_the_stream_thing",
"response body",
rheaders={"request-id": "req_id"},
)
obj = self.MyResource.construct_from({"id": "mid"}, "mykey")
resp = self.MyResource.do_stream_stuff(obj, foo="bar")
request_mock.assert_requested_stream(
"post", "/v1/myresources/mid/do_the_stream_thing", {"foo": "bar"}
)
body_content = resp.io.read()
if hasattr(body_content, "decode"):
body_content = body_content.decode("utf-8")
assert body_content == "response body"
def test_call_custom_method_instance(self, request_mock):
request_mock.stub_request(
"post",
"/v1/myresources/mid/do_the_thing",
{"id": "mid", "thing_done": True},
rheaders={"request-id": "req_id"},
)
obj = self.MyResource.construct_from({"id": "mid"}, "mykey")
obj.do_stuff(foo="bar")
request_mock.assert_requested(
"post", "/v1/myresources/mid/do_the_thing", {"foo": "bar"}
)
assert obj.thing_done is True
def test_call_custom_stream_method_instance(self, request_mock):
request_mock.stub_request_stream(
"post",
"/v1/myresources/mid/do_the_stream_thing",
"response body",
rheaders={"request-id": "req_id"},
)
obj = self.MyResource.construct_from({"id": "mid"}, "mykey")
resp = obj.do_stream_stuff(foo="bar")
request_mock.assert_requested_stream(
"post", "/v1/myresources/mid/do_the_stream_thing", {"foo": "bar"}
)
body_content = resp.io.read()
if hasattr(body_content, "decode"):
body_content = body_content.decode("utf-8")
assert body_content == "response body"
def test_call_custom_method_class_special_fields(self, request_mock):
request_mock.stub_request(
"post",
"/v1/myresources/mid/do_the_thing",
{"id": "mid", "thing_done": True},
rheaders={"request-id": "req_id"},
)
self.MyResource.do_stuff(
"mid",
foo="bar",
stripe_version="2017-08-15",
api_key="APIKEY",
idempotency_key="IdempotencyKey",
stripe_account="Acc",
)
request_mock.assert_requested(
"post",
"/v1/myresources/mid/do_the_thing",
{"foo": "bar"},
{"Idempotency-Key": "IdempotencyKey"},
)
request_mock.assert_api_version("2017-08-15")
def test_call_custom_method_class_newcodegen_special_fields(
self, request_mock
):
request_mock.stub_request(
"post",
"/v1/myresources/mid/do_the_thing",
{"id": "mid", "thing_done": True},
rheaders={"request-id": "req_id"},
)
self.MyResource.do_stuff_new_codegen(
"mid",
foo="bar",
stripe_version="2017-08-15",
api_key="APIKEY",
idempotency_key="IdempotencyKey",
stripe_account="Acc",
)
request_mock.assert_requested(
"post",
"/v1/myresources/mid/do_the_thing",
{"foo": "bar"},
{"Idempotency-Key": "IdempotencyKey"},
)
request_mock.assert_api_version("2017-08-15")
def test_call_custom_method_instance_newcodegen_special_fields(
self, request_mock
):
request_mock.stub_request(
"post",
"/v1/myresources/mid/do_the_thing",
{"id": "mid", "thing_done": True},
rheaders={"request-id": "req_id"},
)
obj = self.MyResource.construct_from({"id": "mid"}, "mykey")
obj.do_stuff_new_codegen(
foo="bar",
stripe_version="2017-08-15",
api_key="APIKEY",
idempotency_key="IdempotencyKey",
stripe_account="Acc",
headers={"extra_header": "val"},
)
request_mock.assert_requested(
"post",
"/v1/myresources/mid/do_the_thing",
{"foo": "bar"},
{"Idempotency-Key": "IdempotencyKey", "extra_header": "val"},
)
request_mock.assert_api_version("2017-08-15")
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/test_deletable_api_resource.py 0000644 0001751 0000171 00000005271 14335240430 026326 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestDeletableAPIResource(object):
class MyDeletable(stripe.api_resources.abstract.DeletableAPIResource):
OBJECT_NAME = "mydeletable"
def test_delete_class(self, request_mock):
request_mock.stub_request(
"delete",
"/v1/mydeletables/mid",
{"id": "mid", "deleted": True},
rheaders={"request-id": "req_id"},
)
obj = self.MyDeletable.delete("mid")
request_mock.assert_requested("delete", "/v1/mydeletables/mid", {})
assert obj.deleted is True
assert obj.id == "mid"
assert obj.last_response is not None
assert obj.last_response.request_id == "req_id"
def test_delete_class_with_object(self, request_mock):
request_mock.stub_request(
"delete",
"/v1/mydeletables/mid",
{"id": "mid", "deleted": True},
rheaders={"request-id": "req_id"},
)
obj = self.MyDeletable.construct_from({"id": "mid"}, "mykey")
self.MyDeletable.delete(obj)
request_mock.assert_requested("delete", "/v1/mydeletables/mid", {})
assert obj.deleted is True
assert obj.id == "mid"
assert obj.last_response is not None
assert obj.last_response.request_id == "req_id"
def test_delete_instance(self, request_mock):
request_mock.stub_request(
"delete",
"/v1/mydeletables/mid",
{"id": "mid", "deleted": True},
rheaders={"request-id": "req_id"},
)
obj = self.MyDeletable.construct_from({"id": "mid"}, "mykey")
assert obj is obj.delete()
request_mock.assert_requested("delete", "/v1/mydeletables/mid", {})
assert obj.deleted is True
assert obj.id == "mid"
assert obj.last_response is not None
assert obj.last_response.request_id == "req_id"
def test_delete_with_all_special_fields(self, request_mock):
request_mock.stub_request(
"delete",
"/v1/mydeletables/foo",
{"id": "foo", "bobble": "new_scrobble"},
{"Idempotency-Key": "IdempotencyKey"},
)
self.MyDeletable.delete(
"foo",
stripe_version="2017-08-15",
api_key="APIKEY",
idempotency_key="IdempotencyKey",
stripe_account="Acc",
bobble="new_scrobble",
)
request_mock.assert_requested(
"delete",
"/v1/mydeletables/foo",
{"bobble": "new_scrobble"},
{"Idempotency-Key": "IdempotencyKey"},
)
request_mock.assert_api_version("2017-08-15")
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/test_listable_api_resource.py 0000644 0001751 0000171 00000002122 14335240430 026174 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestListableAPIResource(object):
class MyListable(stripe.api_resources.abstract.ListableAPIResource):
OBJECT_NAME = "mylistable"
def test_all(self, request_mock):
request_mock.stub_request(
"get",
"/v1/mylistables",
{
"object": "list",
"data": [
{"object": "charge", "name": "jose"},
{"object": "charge", "name": "curly"},
],
"url": "/v1/charges",
"has_more": False,
},
rheaders={"request-id": "req_id"},
)
res = self.MyListable.list()
request_mock.assert_requested("get", "/v1/mylistables", {})
assert len(res.data) == 2
assert all(isinstance(obj, stripe.Charge) for obj in res.data)
assert res.data[0].name == "jose"
assert res.data[1].name == "curly"
assert res.last_response is not None
assert res.last_response.request_id == "req_id"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/test_nested_resource_class_methods.py 0000644 0001751 0000171 00000005356 14335240430 027752 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestNestedResourceClassMethods(object):
@stripe.api_resources.abstract.nested_resource_class_methods(
"nested", operations=["create", "retrieve", "update", "delete", "list"]
)
class MainResource(stripe.api_resources.abstract.APIResource):
OBJECT_NAME = "mainresource"
def test_create_nested(self, request_mock):
request_mock.stub_request(
"post",
"/v1/mainresources/id/nesteds",
{"id": "nested_id", "object": "nested", "foo": "bar"},
)
nested_resource = self.MainResource.create_nested("id", foo="bar")
request_mock.assert_requested(
"post", "/v1/mainresources/id/nesteds", {"foo": "bar"}, None
)
assert nested_resource.foo == "bar"
def test_retrieve_nested(self, request_mock):
request_mock.stub_request(
"get",
"/v1/mainresources/id/nesteds/nested_id",
{"id": "nested_id", "object": "nested", "foo": "bar"},
)
nested_resource = self.MainResource.retrieve_nested("id", "nested_id")
request_mock.assert_requested(
"get", "/v1/mainresources/id/nesteds/nested_id", {}, None
)
assert nested_resource.foo == "bar"
def test_modify_nested(self, request_mock):
request_mock.stub_request(
"post",
"/v1/mainresources/id/nesteds/nested_id",
{"id": "nested_id", "object": "nested", "foo": "baz"},
)
nested_resource = self.MainResource.modify_nested(
"id", "nested_id", foo="baz"
)
request_mock.assert_requested(
"post",
"/v1/mainresources/id/nesteds/nested_id",
{"foo": "baz"},
None,
)
assert nested_resource.foo == "baz"
def test_delete_nested(self, request_mock):
request_mock.stub_request(
"delete",
"/v1/mainresources/id/nesteds/nested_id",
{"id": "nested_id", "object": "nested", "deleted": True},
)
nested_resource = self.MainResource.delete_nested("id", "nested_id")
request_mock.assert_requested(
"delete", "/v1/mainresources/id/nesteds/nested_id", {}, None
)
assert nested_resource.deleted is True
def test_list_nesteds(self, request_mock):
request_mock.stub_request(
"get",
"/v1/mainresources/id/nesteds",
{"object": "list", "data": []},
)
nested_resource = self.MainResource.list_nesteds("id")
request_mock.assert_requested(
"get", "/v1/mainresources/id/nesteds", {}, None
)
assert isinstance(nested_resource.data, list)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/test_searchable_api_resource.py 0000644 0001751 0000171 00000005746 14335240430 026505 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestSearchableAPIResource(object):
class MySearchable(stripe.api_resources.abstract.SearchableAPIResource):
OBJECT_NAME = "mysearchable"
@classmethod
def search(cls, *args, **kwargs):
return cls._search(
search_url="/v1/mysearchables/search", *args, **kwargs
)
def test_search(self, request_mock):
request_mock.stub_request(
"get",
"/v1/mysearchables/search",
{
"object": "search_result",
"data": [
{"object": "charge", "name": "jose"},
{"object": "charge", "name": "curly"},
],
"url": "/v1/charges",
"has_more": False,
"next_page": None,
},
rheaders={"request-id": "req_id"},
)
res = self.MySearchable.search(query='currency:"CAD"')
request_mock.assert_requested("get", "/v1/mysearchables/search", {})
assert len(res.data) == 2
assert all(isinstance(obj, stripe.Charge) for obj in res.data)
assert res.data[0].name == "jose"
assert res.data[1].name == "curly"
assert res.last_response is not None
assert res.last_response.request_id == "req_id"
def test_search_multiple_pages(self, request_mock):
request_mock.stub_request(
"get",
"/v1/mysearchables/search",
{
"object": "search_result",
"data": [
{"object": "charge", "name": "jose"},
{"object": "charge", "name": "curly"},
],
"url": "/v1/charges",
"has_more": True,
"next_page": "next-page-token",
},
rheaders={"request-id": "req_id"},
)
res = self.MySearchable.search(query='currency:"CAD"')
request_mock.assert_requested(
"get", "/v1/mysearchables/search", {"query": 'currency:"CAD"'}
)
assert res.next_page == "next-page-token"
request_mock.stub_request(
"get",
"/v1/mysearchables/search",
{
"object": "list",
"data": [
{"object": "charge", "name": "test"},
],
"url": "/v1/charges",
"has_more": False,
"next_page": None,
},
rheaders={"request-id": "req_id"},
)
res2 = self.MySearchable.search(
query='currency:"CAD"', page=res.next_page
)
request_mock.assert_requested(
"get",
"/v1/mysearchables/search",
{"page": "next-page-token", "query": 'currency:"CAD"'},
)
assert len(res2.data) == 1
assert all(isinstance(obj, stripe.Charge) for obj in res2.data)
assert res2.data[0].name == "test"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/test_singleton_api_resource.py 0000644 0001751 0000171 00000001273 14335240430 026405 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestSingletonAPIResource(object):
class MySingleton(stripe.api_resources.abstract.SingletonAPIResource):
OBJECT_NAME = "mysingleton"
def test_retrieve(self, request_mock):
request_mock.stub_request(
"get",
"/v1/mysingleton",
{"single": "ton"},
rheaders={"request-id": "req_id"},
)
res = self.MySingleton.retrieve()
request_mock.assert_requested("get", "/v1/mysingleton", {})
assert res.single == "ton"
assert res.last_response is not None
assert res.last_response.request_id == "req_id"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/test_test_helpers_api_resource.py 0000644 0001751 0000171 00000004457 14335240430 027113 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
import pytest
from stripe import util
from stripe.api_resources.abstract import APIResourceTestHelpers
class TestTestHelperAPIResource(object):
@stripe.api_resources.abstract.test_helpers
class MyTestHelpersResource(stripe.api_resources.abstract.APIResource):
OBJECT_NAME = "myresource"
@stripe.api_resources.abstract.custom_method(
"do_stuff", http_verb="post", http_path="do_the_thing"
)
class TestHelpers(APIResourceTestHelpers):
def __init__(self, resource):
self.resource = resource
def do_stuff(self, idempotency_key=None, **params):
url = self.instance_url() + "/do_the_thing"
headers = util.populate_headers(idempotency_key)
self.resource.refresh_from(
self.resource.request("post", url, params, headers)
)
return self.resource
def test_call_custom_method_class(self, request_mock):
request_mock.stub_request(
"post",
"/v1/test_helpers/myresources/mid/do_the_thing",
{"id": "mid", "thing_done": True},
rheaders={"request-id": "req_id"},
)
obj = self.MyTestHelpersResource.TestHelpers.do_stuff("mid", foo="bar")
request_mock.assert_requested(
"post",
"/v1/test_helpers/myresources/mid/do_the_thing",
{"foo": "bar"},
)
assert obj.thing_done is True
def test_call_custom_method_instance_via_property(self, request_mock):
request_mock.stub_request(
"post",
"/v1/test_helpers/myresources/mid/do_the_thing",
{"id": "mid", "thing_done": True},
rheaders={"request-id": "req_id"},
)
obj = self.MyTestHelpersResource.construct_from({"id": "mid"}, "mykey")
obj.test_helpers.do_stuff(foo="bar")
request_mock.assert_requested(
"post",
"/v1/test_helpers/myresources/mid/do_the_thing",
{"foo": "bar"},
)
assert obj.thing_done is True
def test_helper_decorator_raises_for_non_resource(self):
with pytest.raises(ValueError):
stripe.api_resources.abstract.test_helpers(str)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/abstract/test_updateable_api_resource.py 0000644 0001751 0000171 00000024570 14335240430 026516 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
class TestUpdateableAPIResource(object):
class MyUpdateable(stripe.api_resources.abstract.UpdateableAPIResource):
OBJECT_NAME = "myupdateable"
@pytest.fixture
def obj(self, request_mock):
request_mock.stub_request(
"post",
"/v1/myupdateables/myid",
{"id": "myid", "thats": "it"},
rheaders={"request-id": "req_id"},
)
return self.MyUpdateable.construct_from(
{
"id": "myid",
"foo": "bar",
"baz": "boz",
"metadata": {"size": "l", "score": 4, "height": 10},
"object": "obj",
},
"mykey",
)
def checkSave(self, obj):
assert obj is obj.save()
assert obj.thats == "it"
# TODO: Should we force id to be retained?
# assert obj.id == 'myid'
with pytest.raises(AttributeError):
obj.baz
def test_idempotent_save(self, request_mock, obj):
obj.baz = "updated"
obj.save(idempotency_key="foo")
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{"baz": "updated"},
{"Idempotency-Key": "foo"},
)
def test_save(self, request_mock, obj):
obj.baz = "updated"
obj.other = "newval"
obj.metadata.size = "m"
obj.metadata.info = "a2"
obj.metadata.height = None
self.checkSave(obj)
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{
"baz": "updated",
"other": "newval",
"metadata": {"size": "m", "info": "a2", "height": ""},
},
None,
)
assert obj.last_response is not None
assert obj.last_response.request_id == "req_id"
# Saving again should not cause any request.
request_mock.reset_mock()
self.checkSave(obj)
request_mock.assert_no_request()
# Setting the same value should cause a request.
request_mock.stub_request(
"post", "/v1/myupdateables/myid", {"id": "myid", "thats": "it"}
)
obj.thats = "it"
self.checkSave(obj)
request_mock.assert_requested(
"post", "/v1/myupdateables/myid", {"thats": "it"}, None
)
# Changing the value should cause a request.
request_mock.stub_request(
"post", "/v1/myupdateables/myid", {"id": "myid", "thats": "it"}
)
obj.id = "myid"
obj.thats = "updated"
self.checkSave(obj)
request_mock.assert_requested(
"post", "/v1/myupdateables/myid", {"thats": "updated"}, None
)
def test_add_key_to_nested_object(self, request_mock, obj):
acct = self.MyUpdateable.construct_from(
{
"id": "myid",
"legal_entity": {"size": "l", "score": 4, "height": 10},
},
"mykey",
)
acct.legal_entity["first_name"] = "bob"
assert acct is acct.save()
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{"legal_entity": {"first_name": "bob"}},
None,
)
def test_save_nothing(self, request_mock, obj):
acct = self.MyUpdateable.construct_from(
{"id": "myid", "metadata": {"key": "value"}}, "mykey"
)
assert acct is acct.save()
request_mock.assert_no_request()
def test_replace_nested_object(self, request_mock, obj):
acct = self.MyUpdateable.construct_from(
{"id": "myid", "legal_entity": {"last_name": "smith"}}, "mykey"
)
acct.legal_entity = {"first_name": "bob"}
assert acct is acct.save()
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{"legal_entity": {"first_name": "bob", "last_name": ""}},
None,
)
def test_array_setting(self, request_mock, obj):
acct = self.MyUpdateable.construct_from(
{"id": "myid", "legal_entity": {}}, "mykey"
)
acct.legal_entity.additional_owners = [{"first_name": "Bob"}]
assert acct is acct.save()
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{"legal_entity": {"additional_owners": [{"first_name": "Bob"}]}},
None,
)
def test_array_none(self, request_mock, obj):
acct = self.MyUpdateable.construct_from(
{"id": "myid", "legal_entity": {"additional_owners": None}},
"mykey",
)
acct.foo = "bar"
assert acct is acct.save()
request_mock.assert_requested(
"post", "/v1/myupdateables/myid", {"foo": "bar"}, None
)
def test_array_insertion(self, request_mock, obj):
acct = self.MyUpdateable.construct_from(
{"id": "myid", "legal_entity": {"additional_owners": []}}, "mykey"
)
acct.legal_entity.additional_owners.append({"first_name": "Bob"})
assert acct is acct.save()
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{
"legal_entity": {
"additional_owners": {"0": {"first_name": "Bob"}}
}
},
None,
)
def test_array_update(self, request_mock, obj):
acct = self.MyUpdateable.construct_from(
{
"id": "myid",
"legal_entity": {
"additional_owners": [
{"first_name": "Bob"},
{"first_name": "Jane"},
]
},
},
"mykey",
)
acct.legal_entity.additional_owners[1].first_name = "Janet"
assert acct is acct.save()
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{
"legal_entity": {
"additional_owners": {
"0": {},
"1": {"first_name": "Janet"},
}
}
},
None,
)
def test_array_noop(self, request_mock, obj):
acct = self.MyUpdateable.construct_from(
{
"id": "myid",
"legal_entity": {"additional_owners": [{"first_name": "Bob"}]},
"currencies_supported": ["usd", "cad"],
},
"mykey",
)
assert acct is acct.save()
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{"legal_entity": {"additional_owners": {"0": {}}}},
None,
)
def test_hash_noop(self, request_mock, obj):
acct = self.MyUpdateable.construct_from(
{
"id": "myid",
"legal_entity": {"address": {"line1": "1 Two Three"}},
},
"mykey",
)
assert acct is acct.save()
request_mock.assert_no_request()
def test_save_replace_metadata_with_number(self, request_mock, obj):
obj.baz = "updated"
obj.other = "newval"
obj.metadata = 3
self.checkSave(obj)
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{"baz": "updated", "other": "newval", "metadata": 3},
None,
)
def test_save_overwrite_metadata(self, request_mock, obj):
obj.metadata = {}
self.checkSave(obj)
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{"metadata": {"size": "", "score": "", "height": ""}},
None,
)
def test_save_replace_metadata(self, request_mock, obj):
obj.baz = "updated"
obj.other = "newval"
obj.metadata = {"size": "m", "info": "a2", "score": 4}
self.checkSave(obj)
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{
"baz": "updated",
"other": "newval",
"metadata": {
"size": "m",
"info": "a2",
"height": "",
"score": 4,
},
},
None,
)
def test_save_update_metadata(self, request_mock, obj):
obj.baz = "updated"
obj.other = "newval"
obj.metadata.update({"size": "m", "info": "a2", "score": 4})
self.checkSave(obj)
request_mock.assert_requested(
"post",
"/v1/myupdateables/myid",
{
"baz": "updated",
"other": "newval",
"metadata": {"size": "m", "info": "a2", "score": 4},
},
None,
)
def test_retrieve_and_update_with_stripe_version(self, request_mock, obj):
request_mock.stub_request(
"get", "/v1/myupdateables/foo", {"id": "foo", "bobble": "scrobble"}
)
res = self.MyUpdateable.retrieve("foo", stripe_version="2017-08-15")
request_mock.assert_api_version("2017-08-15")
request_mock.stub_request(
"post",
"/v1/myupdateables/foo",
{"id": "foo", "bobble": "new_scrobble"},
)
res.bobble = "new_scrobble"
res.save()
request_mock.assert_api_version("2017-08-15")
def test_modify_with_all_special_fields(self, request_mock, obj):
request_mock.stub_request(
"post",
"/v1/myupdateables/foo",
{"id": "foo", "bobble": "new_scrobble"},
{"Idempotency-Key": "IdempotencyKey"},
)
self.MyUpdateable.modify(
"foo",
stripe_version="2017-08-15",
api_key="APIKEY",
idempotency_key="IdempotencyKey",
stripe_account="Acc",
bobble="new_scrobble",
headers={"extra_header": "val"},
)
request_mock.assert_requested(
"post",
"/v1/myupdateables/foo",
{"bobble": "new_scrobble"},
{"Idempotency-Key": "IdempotencyKey", "extra_header": "val"},
)
request_mock.assert_api_version("2017-08-15")
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4344156
stripe-5.0.0/tests/api_resources/billing_portal/ 0000755 0001751 0000171 00000000000 14335240452 021431 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/billing_portal/__init__.py 0000644 0001751 0000171 00000000000 14335240430 023524 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/billing_portal/test_configuration.py 0000644 0001751 0000171 00000003422 14335240430 025706 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "bpc_123"
class TestConfiguration(object):
def test_is_creatable(self, request_mock):
resource = stripe.billing_portal.Configuration.create(
business_profile={
"privacy_policy_url": "https://example.com/privacy",
"terms_of_service_url": "https://example.com/tos",
},
features={
"customer_update": {
"allowed_updates": ["address"],
"enabled": True,
}
},
)
request_mock.assert_requested(
"post", "/v1/billing_portal/configurations"
)
assert isinstance(resource, stripe.billing_portal.Configuration)
def test_is_retrievable(self, request_mock):
resource = stripe.billing_portal.Configuration.retrieve(
TEST_RESOURCE_ID
)
request_mock.assert_requested(
"get", "/v1/billing_portal/configurations/%s" % (TEST_RESOURCE_ID)
)
assert isinstance(resource, stripe.billing_portal.Configuration)
def test_is_modifiable(self, request_mock):
resource = stripe.billing_portal.Configuration.modify(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/billing_portal/configurations/%s" % (TEST_RESOURCE_ID)
)
assert isinstance(resource, stripe.billing_portal.Configuration)
def test_is_listable(self, request_mock):
resource = stripe.billing_portal.Configuration.list()
request_mock.assert_requested(
"get", "/v1/billing_portal/configurations"
)
assert isinstance(
resource.data[0], stripe.billing_portal.Configuration
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/billing_portal/test_session.py 0000644 0001751 0000171 00000000725 14335240430 024525 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "pts_123"
class TestSession(object):
def test_is_creatable(self, request_mock):
resource = stripe.billing_portal.Session.create(
customer="cus_123", return_url="https://stripe.com/return"
)
request_mock.assert_requested("post", "/v1/billing_portal/sessions")
assert isinstance(resource, stripe.billing_portal.Session)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4344156
stripe-5.0.0/tests/api_resources/checkout/ 0000755 0001751 0000171 00000000000 14335240452 020235 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/checkout/__init__.py 0000644 0001751 0000171 00000000000 14335240430 022330 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/checkout/test_session.py 0000644 0001751 0000171 00000003167 14335240430 023334 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "cs_123"
class TestSession(object):
def test_is_creatable(self, request_mock):
resource = stripe.checkout.Session.create(
cancel_url="https://stripe.com/cancel",
client_reference_id="1234",
line_items=[
{
"amount": 123,
"currency": "usd",
"description": "item 1",
"images": ["https://stripe.com/img1"],
"name": "name",
"quantity": 2,
}
],
payment_intent_data={"receipt_email": "test@stripe.com"},
payment_method_types=["card"],
success_url="https://stripe.com/success",
)
request_mock.assert_requested("post", "/v1/checkout/sessions")
assert isinstance(resource, stripe.checkout.Session)
def test_is_retrievable(self, request_mock):
resource = stripe.checkout.Session.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/checkout/sessions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.checkout.Session)
class TestSessionLineItems(object):
def test_is_listable(self, request_mock):
resources = stripe.checkout.Session.list_line_items(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/checkout/sessions/%s/line_items" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.LineItem)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4344156
stripe-5.0.0/tests/api_resources/identity/ 0000755 0001751 0000171 00000000000 14335240452 020261 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/identity/test_verification_report.py 0000644 0001751 0000171 00000001540 14335240430 025743 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "vs_123"
class TestVerificationReport(object):
def test_is_listable(self, request_mock):
resources = stripe.identity.VerificationReport.list()
request_mock.assert_requested(
"get", "/v1/identity/verification_reports"
)
assert isinstance(resources.data, list)
assert isinstance(
resources.data[0], stripe.identity.VerificationReport
)
def test_is_retrievable(self, request_mock):
resource = stripe.identity.VerificationReport.retrieve(
TEST_RESOURCE_ID
)
request_mock.assert_requested(
"get", "/v1/identity/verification_reports/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.identity.VerificationReport)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/identity/test_verification_session.py 0000644 0001751 0000171 00000007165 14335240430 026124 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "vs_123"
class TestVerificationSession(object):
def test_is_creatable(self, request_mock):
resource = stripe.identity.VerificationSession.create(type="id_number")
request_mock.assert_requested(
"post", "/v1/identity/verification_sessions"
)
assert isinstance(resource, stripe.identity.VerificationSession)
def test_is_listable(self, request_mock):
resources = stripe.identity.VerificationSession.list()
request_mock.assert_requested(
"get", "/v1/identity/verification_sessions"
)
assert isinstance(resources.data, list)
assert isinstance(
resources.data[0], stripe.identity.VerificationSession
)
def test_is_modifiable(self, request_mock):
resource = stripe.identity.VerificationSession.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/identity/verification_sessions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.identity.VerificationSession)
def test_is_retrievable(self, request_mock):
resource = stripe.identity.VerificationSession.retrieve(
TEST_RESOURCE_ID
)
request_mock.assert_requested(
"get", "/v1/identity/verification_sessions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.identity.VerificationSession)
def test_is_saveable(self, request_mock):
resource = stripe.identity.VerificationSession.retrieve(
TEST_RESOURCE_ID
)
resource.metadata["key"] = "value"
verification_session = resource.save()
request_mock.assert_requested(
"post", "/v1/identity/verification_sessions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.identity.VerificationSession)
assert resource is verification_session
def test_can_cancel(self, request_mock):
resource = stripe.identity.VerificationSession.retrieve(
TEST_RESOURCE_ID
)
verification_session = resource.cancel()
request_mock.assert_requested(
"post",
"/v1/identity/verification_sessions/%s/cancel" % TEST_RESOURCE_ID,
)
assert isinstance(resource, stripe.identity.VerificationSession)
assert resource is verification_session
def test_can_cancel_classmethod(self, request_mock):
resource = stripe.identity.VerificationSession.cancel(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post",
"/v1/identity/verification_sessions/%s/cancel" % TEST_RESOURCE_ID,
)
assert isinstance(resource, stripe.identity.VerificationSession)
def test_can_redact(self, request_mock):
resource = stripe.identity.VerificationSession.retrieve(
TEST_RESOURCE_ID
)
verification_session = resource.redact()
request_mock.assert_requested(
"post",
"/v1/identity/verification_sessions/%s/redact" % TEST_RESOURCE_ID,
)
assert isinstance(resource, stripe.identity.VerificationSession)
assert resource is verification_session
def test_can_redact_classmethod(self, request_mock):
resource = stripe.identity.VerificationSession.redact(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post",
"/v1/identity/verification_sessions/%s/redact" % TEST_RESOURCE_ID,
)
assert isinstance(resource, stripe.identity.VerificationSession)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4344156
stripe-5.0.0/tests/api_resources/issuing/ 0000755 0001751 0000171 00000000000 14335240452 020111 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/issuing/__init__.py 0000644 0001751 0000171 00000000000 14335240430 022204 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/issuing/test_authorization.py 0000644 0001751 0000171 00000005671 14335240430 024427 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "iauth_123"
class TestAuthorization(object):
def test_is_listable(self, request_mock):
resources = stripe.issuing.Authorization.list()
request_mock.assert_requested("get", "/v1/issuing/authorizations")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.issuing.Authorization)
def test_is_modifiable(self, request_mock):
resource = stripe.issuing.Authorization.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/issuing/authorizations/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Authorization)
def test_is_retrievable(self, request_mock):
resource = stripe.issuing.Authorization.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/issuing/authorizations/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Authorization)
def test_is_saveable(self, request_mock):
resource = stripe.issuing.Authorization.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
authorization = resource.save()
request_mock.assert_requested(
"post", "/v1/issuing/authorizations/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Authorization)
assert resource is authorization
def test_can_approve(self, request_mock):
resource = stripe.issuing.Authorization.retrieve(TEST_RESOURCE_ID)
authorization = resource.approve()
request_mock.assert_requested(
"post", "/v1/issuing/authorizations/%s/approve" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Authorization)
assert resource is authorization
def test_can_approve_classmethod(self, request_mock):
resource = stripe.issuing.Authorization.approve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/issuing/authorizations/%s/approve" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Authorization)
def test_can_decline(self, request_mock):
resource = stripe.issuing.Authorization.retrieve(TEST_RESOURCE_ID)
authorization = resource.decline()
request_mock.assert_requested(
"post", "/v1/issuing/authorizations/%s/decline" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Authorization)
assert resource is authorization
def test_can_decline_classmethod(self, request_mock):
resource = stripe.issuing.Authorization.decline(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/issuing/authorizations/%s/decline" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Authorization)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/issuing/test_card.py 0000644 0001751 0000171 00000003174 14335240430 022434 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "ic_123"
class TestCard(object):
def test_is_creatable(self, request_mock):
resource = stripe.issuing.Card.create(currency="usd", type="physical")
request_mock.assert_requested("post", "/v1/issuing/cards")
assert isinstance(resource, stripe.issuing.Card)
def test_is_listable(self, request_mock):
resources = stripe.issuing.Card.list()
request_mock.assert_requested("get", "/v1/issuing/cards")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.issuing.Card)
def test_is_modifiable(self, request_mock):
resource = stripe.issuing.Card.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/issuing/cards/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Card)
def test_is_retrievable(self, request_mock):
resource = stripe.issuing.Card.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/issuing/cards/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Card)
def test_is_saveable(self, request_mock):
resource = stripe.issuing.Card.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
card = resource.save()
request_mock.assert_requested(
"post", "/v1/issuing/cards/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Card)
assert resource is card
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/issuing/test_cardholder.py 0000644 0001751 0000171 00000004007 14335240430 023626 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "ich_123"
class TestCardholder(object):
def test_is_creatable(self, request_mock):
resource = stripe.issuing.Cardholder.create(
billing={
"address": {
"city": "city",
"country": "US",
"line1": "line1",
"postal_code": "postal_code",
}
},
name="Jenny Rosen",
type="individual",
)
request_mock.assert_requested("post", "/v1/issuing/cardholders")
assert isinstance(resource, stripe.issuing.Cardholder)
def test_is_listable(self, request_mock):
resources = stripe.issuing.Cardholder.list()
request_mock.assert_requested("get", "/v1/issuing/cardholders")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.issuing.Cardholder)
def test_is_modifiable(self, request_mock):
resource = stripe.issuing.Cardholder.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/issuing/cardholders/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Cardholder)
def test_is_retrievable(self, request_mock):
resource = stripe.issuing.Cardholder.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/issuing/cardholders/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Cardholder)
def test_is_saveable(self, request_mock):
resource = stripe.issuing.Cardholder.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
cardholder = resource.save()
request_mock.assert_requested(
"post", "/v1/issuing/cardholders/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Cardholder)
assert resource is cardholder
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/issuing/test_dispute.py 0000644 0001751 0000171 00000003020 14335240430 023166 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "idp_123"
class TestDispute(object):
def test_is_creatable(self, request_mock):
resource = stripe.issuing.Dispute.create(transaction="ipi_123")
request_mock.assert_requested("post", "/v1/issuing/disputes")
assert isinstance(resource, stripe.issuing.Dispute)
def test_is_listable(self, request_mock):
resources = stripe.issuing.Dispute.list()
request_mock.assert_requested("get", "/v1/issuing/disputes")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.issuing.Dispute)
def test_is_modifiable(self, request_mock):
resource = stripe.issuing.Dispute.modify(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/issuing/disputes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Dispute)
def test_is_retrievable(self, request_mock):
resource = stripe.issuing.Dispute.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/issuing/disputes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Dispute)
def test_is_submittable(self, request_mock):
resource = stripe.issuing.Dispute.submit(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/issuing/disputes/%s/submit" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Dispute)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/issuing/test_transaction.py 0000644 0001751 0000171 00000002753 14335240430 024052 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "ipi_123"
class TestTransaction(object):
def test_is_listable(self, request_mock):
resources = stripe.issuing.Transaction.list()
request_mock.assert_requested("get", "/v1/issuing/transactions")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.issuing.Transaction)
def test_is_modifiable(self, request_mock):
resource = stripe.issuing.Transaction.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/issuing/transactions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Transaction)
def test_is_retrievable(self, request_mock):
resource = stripe.issuing.Transaction.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/issuing/transactions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Transaction)
def test_is_saveable(self, request_mock):
resource = stripe.issuing.Transaction.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
transaction = resource.save()
request_mock.assert_requested(
"post", "/v1/issuing/transactions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.issuing.Transaction)
assert resource is transaction
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4384158
stripe-5.0.0/tests/api_resources/radar/ 0000755 0001751 0000171 00000000000 14335240452 017521 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/radar/__init__.py 0000644 0001751 0000171 00000000000 14335240430 021614 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/radar/test_early_fraud_warning.py 0000644 0001751 0000171 00000001412 14335240430 025146 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "issfr_123"
class TestEarlyFraudWarning(object):
def test_is_listable(self, request_mock):
resources = stripe.radar.EarlyFraudWarning.list()
request_mock.assert_requested("get", "/v1/radar/early_fraud_warnings")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.radar.EarlyFraudWarning)
def test_is_retrievable(self, request_mock):
resource = stripe.radar.EarlyFraudWarning.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/radar/early_fraud_warnings/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.radar.EarlyFraudWarning)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/radar/test_value_list.py 0000644 0001751 0000171 00000004206 14335240430 023277 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "rsl_123"
class TestValueList(object):
def test_is_listable(self, request_mock):
resources = stripe.radar.ValueList.list()
request_mock.assert_requested("get", "/v1/radar/value_lists")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.radar.ValueList)
def test_is_retrievable(self, request_mock):
resource = stripe.radar.ValueList.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/radar/value_lists/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.radar.ValueList)
def test_is_creatable(self, request_mock):
resource = stripe.radar.ValueList.create(alias="alias", name="name")
request_mock.assert_requested("post", "/v1/radar/value_lists")
assert isinstance(resource, stripe.radar.ValueList)
def test_is_saveable(self, request_mock):
resource = stripe.radar.ValueList.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/radar/value_lists/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.radar.ValueList.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/radar/value_lists/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.radar.ValueList)
def test_is_deletable(self, request_mock):
resource = stripe.radar.ValueList.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/radar/value_lists/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.radar.ValueList.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/radar/value_lists/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/radar/test_value_list_item.py 0000644 0001751 0000171 00000003171 14335240430 024315 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "rsli_123"
class TestValueListItem(object):
def test_is_listable(self, request_mock):
resources = stripe.radar.ValueListItem.list(value_list="rsl_123")
request_mock.assert_requested("get", "/v1/radar/value_list_items")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.radar.ValueListItem)
def test_is_retrievable(self, request_mock):
resource = stripe.radar.ValueListItem.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/radar/value_list_items/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.radar.ValueListItem)
def test_is_creatable(self, request_mock):
resource = stripe.radar.ValueListItem.create(
value_list="rsl_123", value="value"
)
request_mock.assert_requested("post", "/v1/radar/value_list_items")
assert isinstance(resource, stripe.radar.ValueListItem)
def test_is_deletable(self, request_mock):
resource = stripe.radar.ValueListItem.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/radar/value_list_items/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.radar.ValueListItem.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/radar/value_list_items/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4384158
stripe-5.0.0/tests/api_resources/reporting/ 0000755 0001751 0000171 00000000000 14335240452 020441 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/reporting/__init__.py 0000644 0001751 0000171 00000000000 14335240430 022534 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/reporting/test_report_run.py 0000644 0001751 0000171 00000002111 14335240430 024240 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "frr_123"
class TestReportRun(object):
def test_is_creatable(self, request_mock):
resource = stripe.reporting.ReportRun.create(
parameters={"connected_account": "acct_123"},
report_type="activity.summary.1",
)
request_mock.assert_requested("post", "/v1/reporting/report_runs")
assert isinstance(resource, stripe.reporting.ReportRun)
def test_is_listable(self, request_mock):
resources = stripe.reporting.ReportRun.list()
request_mock.assert_requested("get", "/v1/reporting/report_runs")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.reporting.ReportRun)
def test_is_retrievable(self, request_mock):
resource = stripe.reporting.ReportRun.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/reporting/report_runs/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.reporting.ReportRun)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/reporting/test_report_type.py 0000644 0001751 0000171 00000001370 14335240430 024423 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "activity.summary.1"
class TestReportType(object):
def test_is_listable(self, request_mock):
resources = stripe.reporting.ReportType.list()
request_mock.assert_requested("get", "/v1/reporting/report_types")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.reporting.ReportType)
def test_is_retrievable(self, request_mock):
resource = stripe.reporting.ReportType.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/reporting/report_types/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.reporting.ReportType)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4384158
stripe-5.0.0/tests/api_resources/sigma/ 0000755 0001751 0000171 00000000000 14335240452 017530 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/sigma/__init__.py 0000644 0001751 0000171 00000000000 14335240430 021623 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/sigma/test_scheduled_query_run.py 0000644 0001751 0000171 00000001402 14335240430 025203 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "sqr_123"
class TestTransaction(object):
def test_is_listable(self, request_mock):
resources = stripe.sigma.ScheduledQueryRun.list()
request_mock.assert_requested("get", "/v1/sigma/scheduled_query_runs")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.sigma.ScheduledQueryRun)
def test_is_retrievable(self, request_mock):
resource = stripe.sigma.ScheduledQueryRun.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/sigma/scheduled_query_runs/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.sigma.ScheduledQueryRun)
././@PaxHeader 0000000 0000000 0000000 00000000034 00000000000 010212 x ustar 00 28 mtime=1668628778.4384158
stripe-5.0.0/tests/api_resources/terminal/ 0000755 0001751 0000171 00000000000 14335240452 020243 5 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/terminal/__init__.py 0000644 0001751 0000171 00000000000 14335240430 022336 0 ustar 00runner docker ././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/terminal/test_connection_token.py 0000644 0001751 0000171 00000000624 14335240430 025211 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "rdr_123"
class TestConnectionToken(object):
def test_is_creatable(self, request_mock):
resource = stripe.terminal.ConnectionToken.create()
request_mock.assert_requested("post", "/v1/terminal/connection_tokens")
assert isinstance(resource, stripe.terminal.ConnectionToken)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/terminal/test_location.py 0000644 0001751 0000171 00000004765 14335240430 023474 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "loc_123"
class TestLocation(object):
def test_is_creatable(self, request_mock):
resource = stripe.terminal.Location.create(
display_name="name",
address={
"line1": "line1",
"country": "US",
"state": "CA",
"postal_code": "12345",
"city": "San Francisco",
},
)
request_mock.assert_requested("post", "/v1/terminal/locations")
assert isinstance(resource, stripe.terminal.Location)
def test_is_listable(self, request_mock):
resources = stripe.terminal.Location.list()
request_mock.assert_requested("get", "/v1/terminal/locations")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.terminal.Location)
def test_is_modifiable(self, request_mock):
resource = stripe.terminal.Location.modify(
TEST_RESOURCE_ID, display_name="new-name"
)
request_mock.assert_requested(
"post", "/v1/terminal/locations/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.terminal.Location)
def test_is_retrievable(self, request_mock):
resource = stripe.terminal.Location.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/terminal/locations/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.terminal.Location)
def test_is_saveable(self, request_mock):
resource = stripe.terminal.Location.retrieve(TEST_RESOURCE_ID)
resource.display_name = "new-name"
location = resource.save()
request_mock.assert_requested(
"post", "/v1/terminal/locations/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.terminal.Location)
assert resource is location
def test_is_deletable(self, request_mock):
resource = stripe.terminal.Location.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/terminal/locations/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.terminal.Location.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/terminal/locations/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/terminal/test_reader.py 0000644 0001751 0000171 00000005224 14335240430 023115 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "rdr_123"
class TestReader(object):
def test_is_creatable(self, request_mock):
resource = stripe.terminal.Reader.create(
registration_code="a-b-c", label="name"
)
request_mock.assert_requested("post", "/v1/terminal/readers")
assert isinstance(resource, stripe.terminal.Reader)
def test_is_listable(self, request_mock):
resources = stripe.terminal.Reader.list()
request_mock.assert_requested("get", "/v1/terminal/readers")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.terminal.Reader)
def test_is_modifiable(self, request_mock):
resource = stripe.terminal.Reader.modify(
TEST_RESOURCE_ID, label="new-name"
)
request_mock.assert_requested(
"post", "/v1/terminal/readers/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.terminal.Reader)
def test_is_retrievable(self, request_mock):
resource = stripe.terminal.Reader.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/terminal/readers/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.terminal.Reader)
def test_is_saveable(self, request_mock):
resource = stripe.terminal.Reader.retrieve(TEST_RESOURCE_ID)
resource.label = "new-name"
reader = resource.save()
request_mock.assert_requested(
"post", "/v1/terminal/readers/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.terminal.Reader)
assert resource is reader
def test_is_deletable(self, request_mock):
resource = stripe.terminal.Reader.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/terminal/readers/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.terminal.Reader.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/terminal/readers/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_present_payment_method(self, request_mock):
resource = stripe.terminal.Reader.TestHelpers.present_payment_method(
TEST_RESOURCE_ID
)
request_mock.assert_requested(
"post",
"/v1/test_helpers/terminal/readers/%s/present_payment_method"
% TEST_RESOURCE_ID,
)
assert isinstance(resource, stripe.terminal.Reader)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_account.py 0000644 0001751 0000171 00000023561 14335240430 021500 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "acct_123"
TEST_CAPABILITY_ID = "acap_123"
TEST_EXTERNALACCOUNT_ID = "ba_123"
TEST_PERSON_ID = "person_123"
class TestAccount(object):
def test_is_listable(self, request_mock):
resources = stripe.Account.list()
request_mock.assert_requested("get", "/v1/accounts")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Account)
def test_is_retrievable(self, request_mock):
resource = stripe.Account.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/accounts/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Account)
def test_is_creatable(self, request_mock):
resource = stripe.Account.create(country="US", type="custom")
request_mock.assert_requested("post", "/v1/accounts")
assert isinstance(resource, stripe.Account)
def test_is_saveable(self, request_mock):
account = stripe.Account.retrieve(TEST_RESOURCE_ID)
account.metadata["key"] = "value"
resource = account.save()
request_mock.assert_requested(
"post", "/v1/accounts/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Account)
assert resource is account
def test_is_saveable_with_individual(self, request_mock):
individual = stripe.Person.construct_from(
{"id": "person_123", "object": "person", "first_name": "Jenny"},
stripe.api_key,
)
account = stripe.Account.construct_from(
{"id": "acct_123", "object": "account", "individual": individual},
stripe.api_key,
)
account.individual.first_name = "Jane"
request_mock.stub_request(
"post",
"/v1/accounts/%s" % TEST_RESOURCE_ID,
account.to_dict_recursive(),
)
resource = account.save()
request_mock.assert_requested(
"post",
"/v1/accounts/%s" % TEST_RESOURCE_ID,
{"individual": {"first_name": "Jane"}},
)
assert isinstance(resource, stripe.Account)
assert resource is account
def test_is_modifiable(self, request_mock):
resource = stripe.Account.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/accounts/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Account)
def test_is_deletable(self, request_mock):
resource = stripe.Account.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/accounts/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.Account.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/accounts/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_retrieve_no_id(self, request_mock):
resource = stripe.Account.retrieve()
request_mock.assert_requested("get", "/v1/account")
assert isinstance(resource, stripe.Account)
def test_can_reject(self, request_mock):
account = stripe.Account.retrieve(TEST_RESOURCE_ID)
resource = account.reject(reason="fraud")
request_mock.assert_requested(
"post",
"/v1/accounts/%s/reject" % TEST_RESOURCE_ID,
{"reason": "fraud"},
)
assert isinstance(resource, stripe.Account)
assert resource is account
def test_can_reject_classmethod(self, request_mock):
resource = stripe.Account.reject(TEST_RESOURCE_ID, reason="fraud")
request_mock.assert_requested(
"post",
"/v1/accounts/%s/reject" % TEST_RESOURCE_ID,
{"reason": "fraud"},
)
assert isinstance(resource, stripe.Account)
def test_is_deauthorizable(self, request_mock):
account = stripe.Account.retrieve(TEST_RESOURCE_ID)
request_mock.stub_request(
"post", "/oauth/deauthorize", {"stripe_user_id": account.id}
)
account.deauthorize()
request_mock.assert_requested(
"post",
"/oauth/deauthorize",
{"client_id": stripe.client_id, "stripe_user_id": account.id},
)
def test_can_call_persons(self, request_mock):
account = stripe.Account.retrieve(TEST_RESOURCE_ID)
resources = account.persons()
request_mock.assert_requested(
"get", "/v1/accounts/%s/persons" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Person)
class TestAccountCapabilities(object):
def test_is_listable(self, request_mock):
resources = stripe.Account.list_capabilities(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/accounts/%s/capabilities" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Capability)
def test_is_modifiable(self, request_mock):
resource = stripe.Account.modify_capability(
TEST_RESOURCE_ID, TEST_CAPABILITY_ID, requested=True
)
request_mock.assert_requested(
"post",
"/v1/accounts/%s/capabilities/%s"
% (TEST_RESOURCE_ID, TEST_CAPABILITY_ID),
)
assert isinstance(resource, stripe.Capability)
def test_is_retrievable(self, request_mock):
resource = stripe.Account.retrieve_capability(
TEST_RESOURCE_ID, TEST_CAPABILITY_ID
)
request_mock.assert_requested(
"get",
"/v1/accounts/%s/capabilities/%s"
% (TEST_RESOURCE_ID, TEST_CAPABILITY_ID),
)
assert isinstance(resource, stripe.Capability)
class TestAccountExternalAccounts(object):
def test_is_listable(self, request_mock):
resources = stripe.Account.list_external_accounts(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/accounts/%s/external_accounts" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
def test_is_retrievable(self, request_mock):
resource = stripe.Account.retrieve_external_account(
TEST_RESOURCE_ID, TEST_EXTERNALACCOUNT_ID
)
request_mock.assert_requested(
"get",
"/v1/accounts/%s/external_accounts/%s"
% (TEST_RESOURCE_ID, TEST_EXTERNALACCOUNT_ID),
)
assert isinstance(resource, stripe.BankAccount)
def test_is_creatable(self, request_mock):
resource = stripe.Account.create_external_account(
TEST_RESOURCE_ID, external_account="btok_123"
)
request_mock.assert_requested(
"post", "/v1/accounts/%s/external_accounts" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.BankAccount)
def test_is_modifiable(self, request_mock):
resource = stripe.Account.modify_external_account(
TEST_RESOURCE_ID, TEST_EXTERNALACCOUNT_ID, metadata={"foo": "bar"}
)
request_mock.assert_requested(
"post",
"/v1/accounts/%s/external_accounts/%s"
% (TEST_RESOURCE_ID, TEST_EXTERNALACCOUNT_ID),
)
assert isinstance(resource, stripe.BankAccount)
def test_is_deletable(self, request_mock):
resource = stripe.Account.delete_external_account(
TEST_RESOURCE_ID, TEST_EXTERNALACCOUNT_ID
)
request_mock.assert_requested(
"delete",
"/v1/accounts/%s/external_accounts/%s"
% (TEST_RESOURCE_ID, TEST_EXTERNALACCOUNT_ID),
)
assert resource.deleted is True
class TestAccountLoginLinks(object):
def test_is_creatable(self, request_mock):
resource = stripe.Account.create_login_link(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/accounts/%s/login_links" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.LoginLink)
class TestAccountPersons(object):
def test_is_creatable(self, request_mock):
resource = stripe.Account.create_person(
TEST_RESOURCE_ID, dob={"day": 1, "month": 1, "year": 1980}
)
request_mock.assert_requested(
"post", "/v1/accounts/%s/persons" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Person)
def test_is_deletable(self, request_mock):
resource = stripe.Account.delete_person(
TEST_RESOURCE_ID, TEST_PERSON_ID
)
request_mock.assert_requested(
"delete",
"/v1/accounts/%s/persons/%s" % (TEST_RESOURCE_ID, TEST_PERSON_ID),
)
assert resource.deleted is True
def test_is_listable(self, request_mock):
resources = stripe.Account.list_persons(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/accounts/%s/persons" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Person)
def test_is_modifiable(self, request_mock):
resource = stripe.Account.modify_person(
TEST_RESOURCE_ID, TEST_PERSON_ID, metadata={"foo": "bar"}
)
request_mock.assert_requested(
"post",
"/v1/accounts/%s/persons/%s" % (TEST_RESOURCE_ID, TEST_PERSON_ID),
)
assert isinstance(resource, stripe.Person)
def test_is_retrievable(self, request_mock):
resource = stripe.Account.retrieve_person(
TEST_RESOURCE_ID, TEST_PERSON_ID
)
request_mock.assert_requested(
"get",
"/v1/accounts/%s/persons/%s" % (TEST_RESOURCE_ID, TEST_PERSON_ID),
)
assert isinstance(resource, stripe.Person)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_account_link.py 0000644 0001751 0000171 00000001005 14335240430 022502 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestAccountLink(object):
def test_is_creatable(self, request_mock):
resource = stripe.AccountLink.create(
account="acct_123",
refresh_url="https://stripe.com/failure",
return_url="https://stripe.com/success",
type="account_onboarding",
)
request_mock.assert_requested("post", "/v1/account_links")
assert isinstance(resource, stripe.AccountLink)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_apple_pay_domain.py 0000644 0001751 0000171 00000003002 14335240430 023331 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "apwc_123"
class TestApplePayDomain(object):
def test_is_listable(self, request_mock):
resources = stripe.ApplePayDomain.list()
request_mock.assert_requested("get", "/v1/apple_pay/domains")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.ApplePayDomain)
def test_is_retrievable(self, request_mock):
resource = stripe.ApplePayDomain.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/apple_pay/domains/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.ApplePayDomain)
def test_is_creatable(self, request_mock):
resource = stripe.ApplePayDomain.create(domain_name="test.com")
request_mock.assert_requested("post", "/v1/apple_pay/domains")
assert isinstance(resource, stripe.ApplePayDomain)
def test_is_deletable(self, request_mock):
resource = stripe.ApplePayDomain.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/apple_pay/domains/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.ApplePayDomain.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/apple_pay/domains/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_application_fee.py 0000644 0001751 0000171 00000003754 14335240430 023170 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "fee_123"
TEST_FEEREFUND_ID = "fr_123"
class TestApplicationFee(object):
def test_is_listable(self, request_mock):
resources = stripe.ApplicationFee.list()
request_mock.assert_requested("get", "/v1/application_fees")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.ApplicationFee)
class TestApplicationFeeRefunds(object):
def test_is_listable(self, request_mock):
resources = stripe.ApplicationFee.list_refunds(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/application_fees/%s/refunds" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.ApplicationFeeRefund)
def test_is_retrievable(self, request_mock):
resource = stripe.ApplicationFee.retrieve_refund(
TEST_RESOURCE_ID, TEST_FEEREFUND_ID
)
request_mock.assert_requested(
"get",
"/v1/application_fees/%s/refunds/%s"
% (TEST_RESOURCE_ID, TEST_FEEREFUND_ID),
)
assert isinstance(resource, stripe.ApplicationFeeRefund)
def test_is_creatable(self, request_mock):
resource = stripe.ApplicationFee.create_refund(
TEST_RESOURCE_ID, amount=100
)
request_mock.assert_requested(
"post", "/v1/application_fees/%s/refunds" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.ApplicationFeeRefund)
def test_is_modifiable(self, request_mock):
resource = stripe.ApplicationFee.modify_refund(
TEST_RESOURCE_ID, TEST_FEEREFUND_ID, metadata={"foo": "bar"}
)
request_mock.assert_requested(
"post",
"/v1/application_fees/%s/refunds/%s"
% (TEST_RESOURCE_ID, TEST_FEEREFUND_ID),
)
assert isinstance(resource, stripe.ApplicationFeeRefund)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_application_fee_refund.py 0000644 0001751 0000171 00000002227 14335240430 024525 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_RESOURCE_ID = "fr_123"
TEST_APPFEE_ID = "fee_123"
class TestApplicationFeeRefund(object):
def test_is_saveable(self, request_mock):
appfee = stripe.ApplicationFee.retrieve(TEST_APPFEE_ID)
resource = appfee.refunds.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post",
"/v1/application_fees/%s/refunds/%s"
% (TEST_APPFEE_ID, TEST_RESOURCE_ID),
)
def test_is_modifiable(self, request_mock):
resource = stripe.ApplicationFeeRefund.modify(
TEST_APPFEE_ID, TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post",
"/v1/application_fees/%s/refunds/%s"
% (TEST_APPFEE_ID, TEST_RESOURCE_ID),
)
assert isinstance(resource, stripe.ApplicationFeeRefund)
def test_is_not_retrievable(self):
with pytest.raises(NotImplementedError):
stripe.ApplicationFeeRefund.retrieve(TEST_RESOURCE_ID)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_balance.py 0000644 0001751 0000171 00000000473 14335240430 021426 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestBalance(object):
def test_is_retrievable(self, request_mock):
resource = stripe.Balance.retrieve()
request_mock.assert_requested("get", "/v1/balance")
assert isinstance(resource, stripe.Balance)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_balance_transaction.py 0000644 0001751 0000171 00000001351 14335240430 024027 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "txn_123"
class TestBalanceTransaction(object):
def test_is_listable(self, request_mock):
resources = stripe.BalanceTransaction.list()
request_mock.assert_requested("get", "/v1/balance_transactions")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.BalanceTransaction)
def test_is_retrievable(self, request_mock):
resource = stripe.BalanceTransaction.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/balance_transactions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.BalanceTransaction)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_bank_account.py 0000644 0001751 0000171 00000004341 14335240430 022466 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_RESOURCE_ID = "ba_123"
class TestBankAccountTest(object):
def construct_resource(self, **params):
bank_dict = {
"id": TEST_RESOURCE_ID,
"object": "bank_account",
"metadata": {},
}
bank_dict.update(params)
return stripe.BankAccount.construct_from(bank_dict, stripe.api_key)
def test_has_account_instance_url(self):
resource = self.construct_resource(account="acct_123")
assert (
resource.instance_url()
== "/v1/accounts/acct_123/external_accounts/%s" % TEST_RESOURCE_ID
)
def test_has_customer_instance_url(self):
resource = self.construct_resource(customer="cus_123")
assert (
resource.instance_url()
== "/v1/customers/cus_123/sources/%s" % TEST_RESOURCE_ID
)
# The previous tests already ensure that the request will be routed to the
# correct URL, so we only test the API operations once.
def test_is_not_retrievable(self):
with pytest.raises(NotImplementedError):
stripe.BankAccount.retrieve(TEST_RESOURCE_ID)
def test_is_saveable(self, request_mock):
resource = self.construct_resource(customer="cus_123")
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/customers/cus_123/sources/%s" % TEST_RESOURCE_ID
)
def test_is_not_modifiable(self):
with pytest.raises(NotImplementedError):
stripe.BankAccount.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
def test_is_deletable(self, request_mock):
resource = self.construct_resource(customer="cus_123")
resource.delete()
request_mock.assert_requested(
"delete", "/v1/customers/cus_123/sources/%s" % TEST_RESOURCE_ID
)
def test_is_verifiable(self, request_mock):
resource = self.construct_resource(customer="cus_123")
resource.verify()
request_mock.assert_requested(
"post",
"/v1/customers/cus_123/sources/%s/verify" % TEST_RESOURCE_ID,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_capability.py 0000644 0001751 0000171 00000002406 14335240430 022160 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_RESOURCE_ID = "acap_123"
class TestCapability(object):
def construct_resource(self):
capability_dict = {
"id": TEST_RESOURCE_ID,
"object": "capability",
"account": "acct_123",
}
return stripe.Capability.construct_from(
capability_dict, stripe.api_key
)
def test_has_instance_url(self, request_mock):
resource = self.construct_resource()
assert (
resource.instance_url()
== "/v1/accounts/acct_123/capabilities/%s" % TEST_RESOURCE_ID
)
def test_is_not_modifiable(self, request_mock):
with pytest.raises(NotImplementedError):
stripe.Capability.modify(TEST_RESOURCE_ID, requested=True)
def test_is_not_retrievable(self, request_mock):
with pytest.raises(NotImplementedError):
stripe.Capability.retrieve(TEST_RESOURCE_ID)
def test_is_saveable(self, request_mock):
resource = self.construct_resource()
resource.requested = True
resource.save()
request_mock.assert_requested(
"post", "/v1/accounts/acct_123/capabilities/%s" % TEST_RESOURCE_ID
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_card.py 0000644 0001751 0000171 00000003525 14335240430 020753 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_RESOURCE_ID = "card_123"
class TestCard(object):
def construct_resource(self, **params):
card_dict = {"id": TEST_RESOURCE_ID, "object": "card", "metadata": {}}
card_dict.update(params)
return stripe.Card.construct_from(card_dict, stripe.api_key)
def test_has_account_instance_url(self):
resource = self.construct_resource(account="acct_123")
assert (
resource.instance_url()
== "/v1/accounts/acct_123/external_accounts/%s" % TEST_RESOURCE_ID
)
def test_has_customer_instance_url(self):
resource = self.construct_resource(customer="cus_123")
assert (
resource.instance_url()
== "/v1/customers/cus_123/sources/%s" % TEST_RESOURCE_ID
)
# The previous tests already ensure that the request will be routed to the
# correct URL, so we only test the API operations once.
def test_is_not_retrievable(self):
with pytest.raises(NotImplementedError):
stripe.Card.retrieve(TEST_RESOURCE_ID)
def test_is_saveable(self, request_mock):
resource = self.construct_resource(customer="cus_123")
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/customers/cus_123/sources/%s" % TEST_RESOURCE_ID
)
def test_is_not_modifiable(self):
with pytest.raises(NotImplementedError):
stripe.Card.modify(TEST_RESOURCE_ID, metadata={"key": "value"})
def test_is_deletable(self, request_mock):
resource = self.construct_resource(customer="cus_123")
resource.delete()
request_mock.assert_requested(
"delete", "/v1/customers/cus_123/sources/%s" % TEST_RESOURCE_ID
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_charge.py 0000644 0001751 0000171 00000006573 14335240430 021301 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "ch_123"
class TestCharge(object):
def test_is_listable(self, request_mock):
resources = stripe.Charge.list()
request_mock.assert_requested("get", "/v1/charges")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Charge)
def test_is_searchable(self, request_mock):
resources = stripe.Charge.search(query='currency:"USD"')
request_mock.assert_requested(
"get", "/v1/charges/search", {"query": 'currency:"USD"'}
)
assert resources.total_count == 1
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Charge)
cnt = 0
for c in resources.auto_paging_iter():
assert isinstance(c, stripe.Charge)
cnt += 1
assert cnt == 1
def test_is_retrievable(self, request_mock):
resource = stripe.Charge.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/charges/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Charge)
def test_is_creatable(self, request_mock):
resource = stripe.Charge.create(
amount=100, currency="usd", source="tok_123"
)
request_mock.assert_requested("post", "/v1/charges")
assert isinstance(resource, stripe.Charge)
def test_is_saveable(self, request_mock):
resource = stripe.Charge.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/charges/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Charge)
def test_is_modifiable(self, request_mock):
resource = stripe.Charge.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/charges/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Charge)
def test_can_capture(self, request_mock):
charge = stripe.Charge.retrieve(TEST_RESOURCE_ID)
resource = charge.capture()
request_mock.assert_requested(
"post", "/v1/charges/%s/capture" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Charge)
def test_can_capture_classmethod(self, request_mock):
resource = stripe.Charge.capture(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/charges/%s/capture" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Charge)
def test_can_mark_as_fraudulent(self, request_mock):
charge = stripe.Charge.retrieve(TEST_RESOURCE_ID)
resource = charge.mark_as_fraudulent()
request_mock.assert_requested(
"post",
"/v1/charges/%s" % charge.id,
{"fraud_details": {"user_report": "fraudulent"}},
)
assert isinstance(resource, stripe.Charge)
def test_can_mark_as_safe(self, request_mock):
charge = stripe.Charge.retrieve(TEST_RESOURCE_ID)
resource = charge.mark_as_safe()
request_mock.assert_requested(
"post",
"/v1/charges/%s" % charge.id,
{"fraud_details": {"user_report": "safe"}},
)
assert isinstance(resource, stripe.Charge)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_country_spec.py 0000644 0001751 0000171 00000001263 14335240430 022554 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "US"
class TestCountrySpec(object):
def test_is_listable(self, request_mock):
resources = stripe.CountrySpec.list()
request_mock.assert_requested("get", "/v1/country_specs")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.CountrySpec)
def test_is_retrievable(self, request_mock):
resource = stripe.CountrySpec.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/country_specs/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.CountrySpec)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_coupon.py 0000644 0001751 0000171 00000004077 14335240430 021350 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "250FF"
class TestCoupon(object):
def test_is_listable(self, request_mock):
resources = stripe.Coupon.list()
request_mock.assert_requested("get", "/v1/coupons")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Coupon)
def test_is_retrievable(self, request_mock):
resource = stripe.Coupon.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/coupons/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Coupon)
def test_is_creatable(self, request_mock):
resource = stripe.Coupon.create(
percent_off=25,
duration="repeating",
duration_in_months=3,
id="250FF",
)
request_mock.assert_requested("post", "/v1/coupons")
assert isinstance(resource, stripe.Coupon)
def test_is_saveable(self, request_mock):
resource = stripe.Coupon.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/coupons/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Coupon.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/coupons/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Coupon)
def test_is_deletable(self, request_mock):
resource = stripe.Coupon.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/coupons/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.Coupon.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/coupons/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_credit_note.py 0000644 0001751 0000171 00000004663 14335240430 022345 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "cn_123"
class TestCreditNote(object):
def test_is_listable(self, request_mock):
resources = stripe.CreditNote.list()
request_mock.assert_requested("get", "/v1/credit_notes")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.CreditNote)
def test_is_retrievable(self, request_mock):
resource = stripe.CreditNote.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/credit_notes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.CreditNote)
def test_is_creatable(self, request_mock):
resource = stripe.CreditNote.create(
amount=100, invoice="in_123", reason="duplicate"
)
request_mock.assert_requested("post", "/v1/credit_notes")
assert isinstance(resource, stripe.CreditNote)
def test_is_saveable(self, request_mock):
resource = stripe.CreditNote.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/credit_notes/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.CreditNote.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/credit_notes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.CreditNote)
def test_can_preview(self, request_mock):
resource = stripe.CreditNote.preview(invoice="in_123", amount=500)
request_mock.assert_requested("get", "/v1/credit_notes/preview")
assert isinstance(resource, stripe.CreditNote)
def test_can_void_credit_note(self, request_mock):
resource = stripe.CreditNote.retrieve(TEST_RESOURCE_ID)
resource = resource.void_credit_note()
request_mock.assert_requested(
"post", "/v1/credit_notes/%s/void" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.CreditNote)
def test_can_void_credit_note_classmethod(self, request_mock):
resource = stripe.CreditNote.void_credit_note(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/credit_notes/%s/void" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.CreditNote)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_customer.py 0000644 0001751 0000171 00000020262 14335240430 021700 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "cus_123"
TEST_SUB_ID = "sub_123"
TEST_SOURCE_ID = "ba_123"
TEST_TAX_ID_ID = "txi_123"
TEST_TRANSACTION_ID = "cbtxn_123"
class TestCustomer(object):
def test_is_listable(self, request_mock):
resources = stripe.Customer.list()
request_mock.assert_requested("get", "/v1/customers")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Customer)
def test_is_retrievable(self, request_mock):
resource = stripe.Customer.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/customers/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Customer)
def test_is_creatable(self, request_mock):
resource = stripe.Customer.create()
request_mock.assert_requested("post", "/v1/customers")
assert isinstance(resource, stripe.Customer)
def test_is_saveable(self, request_mock):
resource = stripe.Customer.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/customers/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Customer.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/customers/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Customer)
def test_is_deletable(self, request_mock):
resource = stripe.Customer.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/customers/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.Customer.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/customers/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete_discount(self, request_mock):
resource = stripe.Customer.retrieve(TEST_RESOURCE_ID)
resource.delete_discount()
request_mock.assert_requested(
"delete", "/v1/customers/%s/discount" % TEST_RESOURCE_ID
)
def test_can_delete_discount_class_method(self, request_mock):
stripe.Customer.delete_discount(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/customers/%s/discount" % TEST_RESOURCE_ID
)
class TestCustomerSources(object):
def test_is_creatable(self, request_mock):
stripe.Customer.create_source(TEST_RESOURCE_ID, source="btok_123")
request_mock.assert_requested(
"post", "/v1/customers/%s/sources" % TEST_RESOURCE_ID
)
def test_is_retrievable(self, request_mock):
stripe.Customer.retrieve_source(TEST_RESOURCE_ID, TEST_SOURCE_ID)
request_mock.assert_requested(
"get",
"/v1/customers/%s/sources/%s" % (TEST_RESOURCE_ID, TEST_SOURCE_ID),
)
def test_is_modifiable(self, request_mock):
stripe.Customer.modify_source(
TEST_RESOURCE_ID, TEST_SOURCE_ID, metadata={"foo": "bar"}
)
request_mock.assert_requested(
"post",
"/v1/customers/%s/sources/%s" % (TEST_RESOURCE_ID, TEST_SOURCE_ID),
)
def test_is_deletable(self, request_mock):
stripe.Customer.delete_source(TEST_RESOURCE_ID, TEST_SOURCE_ID)
request_mock.assert_requested(
"delete",
"/v1/customers/%s/sources/%s" % (TEST_RESOURCE_ID, TEST_SOURCE_ID),
)
def test_is_listable(self, request_mock):
resources = stripe.Customer.list_sources(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/customers/%s/sources" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
class TestCustomerTaxIds(object):
def test_is_creatable(self, request_mock):
resource = stripe.Customer.create_tax_id(
TEST_RESOURCE_ID, type="eu_vat", value="11111"
)
request_mock.assert_requested(
"post", "/v1/customers/%s/tax_ids" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.TaxId)
def test_is_retrievable(self, request_mock):
stripe.Customer.retrieve_tax_id(TEST_RESOURCE_ID, TEST_TAX_ID_ID)
request_mock.assert_requested(
"get",
"/v1/customers/%s/tax_ids/%s" % (TEST_RESOURCE_ID, TEST_TAX_ID_ID),
)
def test_is_deletable(self, request_mock):
stripe.Customer.delete_tax_id(TEST_RESOURCE_ID, TEST_TAX_ID_ID)
request_mock.assert_requested(
"delete",
"/v1/customers/%s/tax_ids/%s" % (TEST_RESOURCE_ID, TEST_TAX_ID_ID),
)
def test_is_listable(self, request_mock):
resources = stripe.Customer.list_tax_ids(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/customers/%s/tax_ids" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
class TestCustomerTransactions(object):
def test_is_creatable(self, request_mock):
resource = stripe.Customer.create_balance_transaction(
TEST_RESOURCE_ID, amount=1234, currency="usd"
)
request_mock.assert_requested(
"post", "/v1/customers/%s/balance_transactions" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.CustomerBalanceTransaction)
def test_is_retrievable(self, request_mock):
stripe.Customer.retrieve_balance_transaction(
TEST_RESOURCE_ID, TEST_TRANSACTION_ID
)
request_mock.assert_requested(
"get",
"/v1/customers/%s/balance_transactions/%s"
% (TEST_RESOURCE_ID, TEST_TRANSACTION_ID),
)
def test_is_listable(self, request_mock):
resources = stripe.Customer.list_balance_transactions(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/customers/%s/balance_transactions" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
class TestCustomerPaymentMethods(object):
def test_is_listable(self, request_mock):
stripe.Customer.list_payment_methods(TEST_RESOURCE_ID, type="card")
request_mock.assert_requested(
"get", "/v1/customers/%s/payment_methods" % TEST_RESOURCE_ID
)
def test_is_listable_on_object(self, request_mock):
resource = stripe.Customer.retrieve(
TEST_RESOURCE_ID
).list_payment_methods(TEST_RESOURCE_ID, type="card")
request_mock.assert_requested(
"get", "/v1/customers/%s/payment_methods" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.ListObject)
class TestCustomerCashBalanceMethods(object):
# These tests are present for compatibility purposes. Previously the cash
# balance methods required None as a second nested_id parameter. The method
# has been patched to no longer require this, but we want to preserve
# compatibility for existing users.
def test_customer_cashbalance_retrieve_legacy_call_pattern(
self, request_mock
):
stripe.Customer.retrieve_cash_balance("cus_123", None)
request_mock.assert_requested(
"get", "/v1/customers/cus_123/cash_balance"
)
def test_customer_cashbalance_modify_legacy_call_pattern(
self, request_mock
):
stripe.Customer.modify_cash_balance(
"cus_123",
None,
settings={"reconciliation_mode": "manual"},
)
request_mock.assert_requested(
"post",
"/v1/customers/cus_123/cash_balance",
{"settings": {"reconciliation_mode": "manual"}},
)
def test_customer_cashbalance_modify_fixed_pattern(self, request_mock):
stripe.Customer.modify_cash_balance(
"cus_123",
settings={"reconciliation_mode": "manual"},
)
request_mock.assert_requested(
"post",
"/v1/customers/cus_123/cash_balance",
{"settings": {"reconciliation_mode": "manual"}},
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_customer_balance_transaction.py 0000644 0001751 0000171 00000001622 14335240430 025751 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_RESOURCE_ID = "cbtxn_123"
class TestCustomerBalanceTransaction(object):
def construct_resource(self):
tax_id_dict = {
"id": TEST_RESOURCE_ID,
"object": "customer_balance_transaction",
"customer": "cus_123",
}
return stripe.CustomerBalanceTransaction.construct_from(
tax_id_dict, stripe.api_key
)
def test_has_instance_url(self, request_mock):
resource = self.construct_resource()
assert (
resource.instance_url()
== "/v1/customers/cus_123/balance_transactions/%s"
% TEST_RESOURCE_ID
)
def test_is_not_retrievable(self, request_mock):
with pytest.raises(NotImplementedError):
stripe.CustomerBalanceTransaction.retrieve(TEST_RESOURCE_ID)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_dispute.py 0000644 0001751 0000171 00000003453 14335240430 021517 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "dp_123"
class TestDispute(object):
def test_is_listable(self, request_mock):
resources = stripe.Dispute.list()
request_mock.assert_requested("get", "/v1/disputes")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Dispute)
def test_is_retrievable(self, request_mock):
resource = stripe.Dispute.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/disputes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Dispute)
def test_is_saveable(self, request_mock):
resource = stripe.Dispute.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/disputes/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Dispute.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/disputes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Dispute)
def test_can_close(self, request_mock):
resource = stripe.Dispute.retrieve(TEST_RESOURCE_ID)
resource.close()
request_mock.assert_requested(
"post", "/v1/disputes/%s/close" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Dispute)
def test_can_close_classmethod(self, request_mock):
resource = stripe.Dispute.close(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/disputes/%s/close" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Dispute)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_ephemeral_key.py 0000644 0001751 0000171 00000002537 14335240430 022656 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
class TestEphemeralKey(object):
def test_is_creatable(self, request_mock):
resource = stripe.EphemeralKey.create(
customer="cus_123", stripe_version="2017-05-25"
)
request_mock.assert_api_version("2017-05-25")
request_mock.assert_requested(
"post", "/v1/ephemeral_keys", {"customer": "cus_123"}
)
assert isinstance(resource, stripe.EphemeralKey)
def test_is_not_creatable_without_an_explicit_api_version(self):
with pytest.raises(
ValueError, match="stripe_version must be specified"
):
stripe.EphemeralKey.create(customer="cus_123")
def test_is_deletable(self, request_mock):
resource = stripe.EphemeralKey.create(
customer="cus_123", stripe_version="2017-05-25"
)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/ephemeral_keys/%s" % resource.id
)
assert isinstance(resource, stripe.EphemeralKey)
def test_can_delete(self, request_mock):
resource = stripe.EphemeralKey.delete("ephkey_123")
request_mock.assert_requested(
"delete", "/v1/ephemeral_keys/ephkey_123"
)
assert isinstance(resource, stripe.EphemeralKey)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_event.py 0000644 0001751 0000171 00000001214 14335240430 021154 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "evt_123"
class TestEvent(object):
def test_is_listable(self, request_mock):
resources = stripe.Event.list()
request_mock.assert_requested("get", "/v1/events")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Event)
def test_is_retrievable(self, request_mock):
resource = stripe.Event.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/events/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Event)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_exchange_rate.py 0000644 0001751 0000171 00000001273 14335240430 022635 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "usd"
class TestExchangeRate(object):
def test_is_listable(self, request_mock):
resources = stripe.ExchangeRate.list()
request_mock.assert_requested("get", "/v1/exchange_rates")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.ExchangeRate)
def test_is_retrievable(self, request_mock):
resource = stripe.ExchangeRate.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/exchange_rates/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.ExchangeRate)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_file.py 0000644 0001751 0000171 00000005252 14335240430 020760 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import tempfile
import pytest
import stripe
TEST_RESOURCE_ID = "file_123"
class TestFile(object):
@pytest.fixture(scope="function")
def setup_upload_api_base(self):
stripe.upload_api_base = stripe.api_base
stripe.api_base = None
yield
stripe.api_base = stripe.upload_api_base
stripe.upload_api_base = "https://files.stripe.com"
def test_is_listable(self, request_mock):
resources = stripe.File.list()
request_mock.assert_requested("get", "/v1/files")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.File)
def test_is_retrievable(self, request_mock):
resource = stripe.File.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested("get", "/v1/files/%s" % TEST_RESOURCE_ID)
assert isinstance(resource, stripe.File)
def test_is_creatable(self, setup_upload_api_base, request_mock):
stripe.multipart_data_generator.MultipartDataGenerator._initialize_boundary = (
lambda self: 1234567890
)
test_file = tempfile.TemporaryFile()
resource = stripe.File.create(
purpose="dispute_evidence",
file=test_file,
file_link_data={"create": True},
)
request_mock.assert_api_base(stripe.upload_api_base)
request_mock.assert_requested(
"post",
"/v1/files",
headers={
"Content-Type": "multipart/form-data; boundary=1234567890"
},
)
assert isinstance(resource, stripe.File)
def test_create_respects_stripe_version(
self, setup_upload_api_base, request_mock
):
test_file = tempfile.TemporaryFile()
stripe.File.create(
purpose="dispute_evidence", file=test_file, stripe_version="foo"
)
request_mock.assert_api_version("foo")
# You can use api_version instead of stripe_version
# in File.create. We preserve it for backwards compatibility
def test_create_respects_api_version(
self, setup_upload_api_base, request_mock
):
test_file = tempfile.TemporaryFile()
stripe.File.create(
purpose="dispute_evidence", file=test_file, api_version="foo"
)
request_mock.assert_api_version("foo")
def test_deserializes_from_file(self):
obj = stripe.util.convert_to_stripe_object({"object": "file"})
assert isinstance(obj, stripe.File)
def test_deserializes_from_file_upload(self):
obj = stripe.util.convert_to_stripe_object({"object": "file_upload"})
assert isinstance(obj, stripe.File)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_file_link.py 0000644 0001751 0000171 00000002737 14335240430 022002 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "link_123"
class TestFileLink(object):
def test_is_listable(self, request_mock):
resources = stripe.FileLink.list()
request_mock.assert_requested("get", "/v1/file_links")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.FileLink)
def test_is_retrievable(self, request_mock):
resource = stripe.FileLink.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/file_links/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.FileLink)
def test_is_creatable(self, request_mock):
resource = stripe.FileLink.create(file="file_123")
request_mock.assert_requested("post", "/v1/file_links")
assert isinstance(resource, stripe.FileLink)
def test_is_saveable(self, request_mock):
resource = stripe.FileLink.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/file_links/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.FileLink.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/file_links/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.FileLink)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_file_upload.py 0000644 0001751 0000171 00000004001 14335240430 022313 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import tempfile
import pytest
import stripe
TEST_RESOURCE_ID = "file_123"
class TestFileUpload(object):
@pytest.fixture(scope="function")
def setup_upload_api_base(self):
stripe.upload_api_base = stripe.api_base
stripe.api_base = None
yield
stripe.api_base = stripe.upload_api_base
stripe.upload_api_base = "https://files.stripe.com"
def test_is_listable(self, request_mock):
resources = stripe.FileUpload.list()
request_mock.assert_requested("get", "/v1/files")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.FileUpload)
def test_is_retrievable(self, request_mock):
resource = stripe.FileUpload.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested("get", "/v1/files/%s" % TEST_RESOURCE_ID)
assert isinstance(resource, stripe.FileUpload)
def test_is_creatable(self, setup_upload_api_base, request_mock):
stripe.multipart_data_generator.MultipartDataGenerator._initialize_boundary = (
lambda self: 1234567890
)
test_file = tempfile.TemporaryFile()
resource = stripe.FileUpload.create(
purpose="dispute_evidence",
file=test_file,
file_link_data={"create": True},
)
request_mock.assert_api_base(stripe.upload_api_base)
request_mock.assert_requested(
"post",
"/v1/files",
headers={
"Content-Type": "multipart/form-data; boundary=1234567890"
},
)
assert isinstance(resource, stripe.FileUpload)
def test_deserializes_from_file(self):
obj = stripe.util.convert_to_stripe_object({"object": "file"})
assert isinstance(obj, stripe.FileUpload)
def test_deserializes_from_file_upload(self):
obj = stripe.util.convert_to_stripe_object({"object": "file_upload"})
assert isinstance(obj, stripe.FileUpload)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_invoice.py 0000644 0001751 0000171 00000013100 14335240430 021464 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "in_123"
class TestInvoice(object):
def test_is_listable(self, request_mock):
resources = stripe.Invoice.list()
request_mock.assert_requested("get", "/v1/invoices")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Invoice)
def test_is_retrievable(self, request_mock):
resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/invoices/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_is_creatable(self, request_mock):
resource = stripe.Invoice.create(customer="cus_123")
request_mock.assert_requested("post", "/v1/invoices")
assert isinstance(resource, stripe.Invoice)
def test_is_saveable(self, request_mock):
resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/invoices/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Invoice.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/invoices/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_is_deletable(self, request_mock):
resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/invoices/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.Invoice.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/invoices/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_finalize_invoice(self, request_mock):
resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
resource = resource.finalize_invoice()
request_mock.assert_requested(
"post", "/v1/invoices/%s/finalize" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_can_finalize_invoice_classmethod(self, request_mock):
resource = stripe.Invoice.finalize_invoice(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/invoices/%s/finalize" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_can_mark_uncollectible(self, request_mock):
resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
resource = resource.mark_uncollectible()
request_mock.assert_requested(
"post", "/v1/invoices/%s/mark_uncollectible" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_can_mark_uncollectible_classmethod(self, request_mock):
resource = stripe.Invoice.mark_uncollectible(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/invoices/%s/mark_uncollectible" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_can_pay(self, request_mock):
resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
resource = resource.pay()
request_mock.assert_requested(
"post", "/v1/invoices/%s/pay" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_can_pay_classmethod(self, request_mock):
resource = stripe.Invoice.pay(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/invoices/%s/pay" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_can_send_invoice(self, request_mock):
resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
resource = resource.send_invoice()
request_mock.assert_requested(
"post", "/v1/invoices/%s/send" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_can_send_invoice_classmethod(self, request_mock):
resource = stripe.Invoice.send_invoice(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/invoices/%s/send" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_can_upcoming(self, request_mock):
resource = stripe.Invoice.upcoming(customer="cus_123")
request_mock.assert_requested("get", "/v1/invoices/upcoming")
assert isinstance(resource, stripe.Invoice)
def test_can_void_invoice(self, request_mock):
resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
resource = resource.void_invoice()
request_mock.assert_requested(
"post", "/v1/invoices/%s/void" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_can_void_invoice_classmethod(self, request_mock):
resource = stripe.Invoice.void_invoice(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/invoices/%s/void" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Invoice)
def test_can_iterate_lines(self, request_mock):
resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
assert isinstance(resource.lines.data, list)
assert isinstance(resource.lines.data[0], stripe.InvoiceLineItem)
seen = [item["id"] for item in resource.lines.auto_paging_iter()]
assert seen.__len__() > 0
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_invoice_item.py 0000644 0001751 0000171 00000004142 14335240430 022510 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "ii_123"
class TestInvoiceItem(object):
def test_is_listable(self, request_mock):
resources = stripe.InvoiceItem.list()
request_mock.assert_requested("get", "/v1/invoiceitems")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.InvoiceItem)
def test_is_retrievable(self, request_mock):
resource = stripe.InvoiceItem.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/invoiceitems/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.InvoiceItem)
def test_is_creatable(self, request_mock):
resource = stripe.InvoiceItem.create(
customer="cus_123", amount=123, currency="usd"
)
request_mock.assert_requested("post", "/v1/invoiceitems")
assert isinstance(resource, stripe.InvoiceItem)
def test_is_saveable(self, request_mock):
resource = stripe.InvoiceItem.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/invoiceitems/%s" % TEST_RESOURCE_ID
)
def test_can_delete(self, request_mock):
resource = stripe.InvoiceItem.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/invoiceitems/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_is_modifiable(self, request_mock):
resource = stripe.InvoiceItem.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/invoiceitems/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.InvoiceItem)
def test_is_deletable(self, request_mock):
resource = stripe.InvoiceItem.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/invoiceitems/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_invoice_line_item.py 0000644 0001751 0000171 00000000570 14335240430 023520 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_INVOICE_ID = "in_123"
class TestInvoiceLineItem(object):
def test_deserialize(self, request_mock):
invoice = stripe.Invoice.retrieve(TEST_INVOICE_ID)
assert isinstance(invoice.lines.data, list)
assert isinstance(invoice.lines.data[0], stripe.InvoiceLineItem)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_list_object.py 0000644 0001751 0000171 00000024067 14335240430 022347 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import json
import pytest
import stripe
class TestListObject(object):
@pytest.fixture
def list_object(self):
return stripe.ListObject.construct_from(
{"object": "list", "url": "/my/path", "data": ["foo"]}, "mykey"
)
def test_list(self, request_mock, list_object):
request_mock.stub_request(
"get",
"/my/path",
{"object": "list", "data": [{"object": "charge", "foo": "bar"}]},
)
res = list_object.list(myparam="you", stripe_account="acct_123")
request_mock.assert_requested(
"get", "/my/path", {"myparam": "you"}, None
)
assert isinstance(res, stripe.ListObject)
assert res.stripe_account == "acct_123"
assert isinstance(res.data, list)
assert isinstance(res.data[0], stripe.Charge)
assert res.data[0].foo == "bar"
def test_create(self, request_mock, list_object):
request_mock.stub_request(
"post", "/my/path", {"object": "charge", "foo": "bar"}
)
res = list_object.create(myparam="eter", stripe_account="acct_123")
request_mock.assert_requested(
"post", "/my/path", {"myparam": "eter"}, None
)
assert isinstance(res, stripe.Charge)
assert res.foo == "bar"
assert res.stripe_account == "acct_123"
def test_create_maintains_list_properties(self, request_mock, list_object):
# Testing with real requests because our mock makes it impossible to
# test otherwise
charge = stripe.Charge.retrieve("ch_123", api_key="sk_test_custom")
res = charge.refunds.create(amount=123)
request_mock.assert_requested(
"post", "/v1/charges/ch_123/refunds", {"amount": 123}, None
)
assert res.api_key == "sk_test_custom"
def test_retrieve(self, request_mock, list_object):
request_mock.stub_request(
"get", "/my/path/myid", {"object": "charge", "foo": "bar"}
)
res = list_object.retrieve(
"myid", myparam="cow", stripe_account="acct_123"
)
request_mock.assert_requested(
"get", "/my/path/myid", {"myparam": "cow"}, None
)
assert isinstance(res, stripe.Charge)
assert res.foo == "bar"
assert res.stripe_account == "acct_123"
def test_is_empty(self):
lo = stripe.ListObject.construct_from({"data": []}, None)
assert lo.is_empty is True
def test_empty_list(self):
lo = stripe.ListObject.empty_list()
assert lo.is_empty
def test_iter(self):
arr = [{"id": 1}, {"id": 2}, {"id": 3}]
expected = stripe.util.convert_to_stripe_object(arr)
lo = stripe.ListObject.construct_from({"data": arr}, None)
assert list(lo) == expected
def test_iter_reversed(self):
arr = [{"id": 1}, {"id": 2}, {"id": 3}]
expected = stripe.util.convert_to_stripe_object(list(reversed(arr)))
lo = stripe.ListObject.construct_from({"data": arr}, None)
assert list(reversed(lo)) == expected
def test_len(self, list_object):
assert len(list_object) == 1
def test_bool(self, list_object):
assert list_object
empty = stripe.ListObject.construct_from(
{"object": "list", "url": "/my/path", "data": []}, "mykey"
)
assert bool(empty) is False
def test_next_page(self, request_mock):
lo = stripe.ListObject.construct_from(
{
"object": "list",
"data": [{"id": 1}],
"has_more": True,
"url": "/things",
},
None,
)
request_mock.stub_request(
"get",
"/things",
{
"object": "list",
"data": [{"id": 2}],
"has_more": False,
"url": "/things",
},
)
next_lo = lo.next_page()
assert not next_lo.is_empty
assert next_lo.data[0].id == 2
def test_next_page_with_filters(self, request_mock):
lo = stripe.ListObject.construct_from(
{
"object": "list",
"data": [{"id": 1}],
"has_more": True,
"url": "/things",
},
None,
)
lo._retrieve_params = {"expand": ["data.source"], "limit": 3}
request_mock.stub_request(
"get",
"/things",
{
"object": "list",
"data": [{"id": 2}],
"has_more": False,
"url": "/things",
},
)
next_lo = lo.next_page()
assert next_lo._retrieve_params == {
"expand": ["data.source"],
"limit": 3,
"starting_after": 1,
}
def test_next_page_empty_list(self):
lo = stripe.ListObject.construct_from(
{
"object": "list",
"data": [{"id": 1}],
"has_more": False,
"url": "/things",
},
None,
)
next_lo = lo.next_page()
assert next_lo == stripe.ListObject.empty_list()
def test_prev_page(self, request_mock):
lo = stripe.ListObject.construct_from(
{
"object": "list",
"data": [{"id": 2}],
"has_more": True,
"url": "/things",
},
None,
)
request_mock.stub_request(
"get",
"/things",
{
"object": "list",
"data": [{"id": 1}],
"has_more": False,
"url": "/things",
},
)
previous_lo = lo.previous_page()
assert not previous_lo.is_empty
assert previous_lo.data[0].id == 1
def test_prev_page_with_filters(self, request_mock):
lo = stripe.ListObject.construct_from(
{
"object": "list",
"data": [{"id": 2}],
"has_more": True,
"url": "/things",
},
None,
)
lo._retrieve_params = {"expand": ["data.source"], "limit": 3}
request_mock.stub_request(
"get",
"/things",
{
"object": "list",
"data": [{"id": 1}],
"has_more": False,
"url": "/things",
},
)
previous_lo = lo.previous_page()
assert previous_lo._retrieve_params == {
"expand": ["data.source"],
"limit": 3,
"ending_before": 2,
}
def test_serialize_empty_list(self):
empty = stripe.ListObject.construct_from(
{"object": "list", "data": []}, "mykey"
)
serialized = str(empty)
deserialized = stripe.ListObject.construct_from(
json.loads(serialized), "mykey"
)
assert deserialized == empty
def test_serialize_nested_empty_list(self):
empty = stripe.ListObject.construct_from(
{"object": "list", "data": []}, "mykey"
)
obj = stripe.stripe_object.StripeObject.construct_from(
{"nested": empty}, "mykey"
)
serialized = str(obj)
deserialized = stripe.stripe_object.StripeObject.construct_from(
json.loads(serialized), "mykey"
)
assert deserialized.nested == empty
class TestAutoPaging:
@staticmethod
def pageable_model_response(ids, has_more):
return {
"object": "list",
"url": "/v1/pageablemodels",
"data": [{"id": id, "object": "pageablemodel"} for id in ids],
"has_more": has_more,
}
def test_iter_one_page(self, request_mock):
lo = stripe.ListObject.construct_from(
self.pageable_model_response(["pm_123", "pm_124"], False), "mykey"
)
request_mock.assert_no_request()
seen = [item["id"] for item in lo.auto_paging_iter()]
assert seen == ["pm_123", "pm_124"]
def test_iter_two_pages(self, request_mock):
lo = stripe.ListObject.construct_from(
self.pageable_model_response(["pm_123", "pm_124"], True), "mykey"
)
lo._retrieve_params = {"foo": "bar"}
request_mock.stub_request(
"get",
"/v1/pageablemodels",
self.pageable_model_response(["pm_125", "pm_126"], False),
)
seen = [item["id"] for item in lo.auto_paging_iter()]
request_mock.assert_requested(
"get",
"/v1/pageablemodels",
{"starting_after": "pm_124", "foo": "bar"},
None,
)
assert seen == ["pm_123", "pm_124", "pm_125", "pm_126"]
def test_iter_reverse(self, request_mock):
lo = stripe.ListObject.construct_from(
self.pageable_model_response(["pm_125", "pm_126"], True), "mykey"
)
lo._retrieve_params = {"foo": "bar", "ending_before": "pm_127"}
request_mock.stub_request(
"get",
"/v1/pageablemodels",
self.pageable_model_response(["pm_123", "pm_124"], False),
)
seen = [item["id"] for item in lo.auto_paging_iter()]
request_mock.assert_requested(
"get",
"/v1/pageablemodels",
{"ending_before": "pm_125", "foo": "bar"},
None,
)
assert seen == ["pm_126", "pm_125", "pm_124", "pm_123"]
def test_class_method_two_pages(self, request_mock):
request_mock.stub_request(
"get",
"/v1/charges",
{
"object": "list",
"data": [{"id": "ch_001"}],
"url": "/v1/charges",
"has_more": False,
},
)
seen = [
item["id"]
for item in stripe.Charge.auto_paging_iter(limit=25, foo="bar")
]
request_mock.assert_requested(
"get", "/v1/charges", {"limit": 25, "foo": "bar"}
)
assert seen == ["ch_001"]
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_mandate.py 0000644 0001751 0000171 00000000643 14335240430 021451 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "mandate_123"
class TestMandateSchedule(object):
def test_is_retrievable(self, request_mock):
resource = stripe.Mandate.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/mandates/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Mandate)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_payment_intent.py 0000644 0001751 0000171 00000007145 14335240430 023102 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "pi_123"
class TestPaymentIntent(object):
def test_is_listable(self, request_mock):
resources = stripe.PaymentIntent.list()
request_mock.assert_requested("get", "/v1/payment_intents")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.PaymentIntent)
def test_is_retrievable(self, request_mock):
resource = stripe.PaymentIntent.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/payment_intents/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentIntent)
def test_is_creatable(self, request_mock):
resource = stripe.PaymentIntent.create(
amount="1234", currency="amount", payment_method_types=["card"]
)
request_mock.assert_requested("post", "/v1/payment_intents")
assert isinstance(resource, stripe.PaymentIntent)
def test_is_modifiable(self, request_mock):
resource = stripe.PaymentIntent.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post",
"/v1/payment_intents/%s" % TEST_RESOURCE_ID,
{"metadata": {"key": "value"}},
)
assert isinstance(resource, stripe.PaymentIntent)
def test_is_saveable(self, request_mock):
resource = stripe.PaymentIntent.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post",
"/v1/payment_intents/%s" % TEST_RESOURCE_ID,
{"metadata": {"key": "value"}},
)
assert isinstance(resource, stripe.PaymentIntent)
def test_can_cancel(self, request_mock):
resource = stripe.PaymentIntent.retrieve(TEST_RESOURCE_ID)
resource.cancel()
request_mock.assert_requested(
"post", "/v1/payment_intents/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentIntent)
def test_can_cancel_classmethod(self, request_mock):
resource = stripe.PaymentIntent.cancel(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/payment_intents/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentIntent)
def test_can_capture(self, request_mock):
resource = stripe.PaymentIntent.retrieve(TEST_RESOURCE_ID)
resource.capture()
request_mock.assert_requested(
"post", "/v1/payment_intents/%s/capture" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentIntent)
def test_can_capture_classmethod(self, request_mock):
resource = stripe.PaymentIntent.capture(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/payment_intents/%s/capture" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentIntent)
def test_can_confirm(self, request_mock):
resource = stripe.PaymentIntent.retrieve(TEST_RESOURCE_ID)
resource.confirm()
request_mock.assert_requested(
"post", "/v1/payment_intents/%s/confirm" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentIntent)
def test_can_confirm_classmethod(self, request_mock):
resource = stripe.PaymentIntent.confirm(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/payment_intents/%s/confirm" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentIntent)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_payment_method.py 0000644 0001751 0000171 00000005714 14335240430 023061 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "pm_123"
class TestPaymentMethod(object):
def test_is_listable(self, request_mock):
resources = stripe.PaymentMethod.list(customer="cus_123", type="card")
request_mock.assert_requested("get", "/v1/payment_methods")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.PaymentMethod)
def test_is_retrievable(self, request_mock):
resource = stripe.PaymentMethod.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/payment_methods/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentMethod)
def test_is_creatable(self, request_mock):
resource = stripe.PaymentMethod.create(
type="card", card={"token": "tok_123"}
)
request_mock.assert_requested("post", "/v1/payment_methods")
assert isinstance(resource, stripe.PaymentMethod)
def test_is_saveable(self, request_mock):
resource = stripe.PaymentMethod.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/payment_methods/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.PaymentMethod.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/payment_methods/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentMethod)
def test_can_attach(self, request_mock):
resource = stripe.PaymentMethod.retrieve(TEST_RESOURCE_ID)
resource = resource.attach(customer="cus_123")
request_mock.assert_requested(
"post", "/v1/payment_methods/%s/attach" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentMethod)
def test_can_attach_classmethod(self, request_mock):
resource = stripe.PaymentMethod.attach(
TEST_RESOURCE_ID, customer="cus_123"
)
request_mock.assert_requested(
"post",
"/v1/payment_methods/%s/attach" % TEST_RESOURCE_ID,
{"customer": "cus_123"},
)
assert isinstance(resource, stripe.PaymentMethod)
def test_can_detach(self, request_mock):
resource = stripe.PaymentMethod.retrieve(TEST_RESOURCE_ID)
resource = resource.detach()
request_mock.assert_requested(
"post", "/v1/payment_methods/%s/detach" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentMethod)
def test_can_detach_classmethod(self, request_mock):
resource = stripe.PaymentMethod.detach(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/payment_methods/%s/detach" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PaymentMethod)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_payout.py 0000644 0001751 0000171 00000005125 14335240430 021361 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "po_123"
class TestPayout(object):
def test_is_listable(self, request_mock):
resources = stripe.Payout.list()
request_mock.assert_requested("get", "/v1/payouts")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Payout)
def test_is_retrievable(self, request_mock):
resource = stripe.Payout.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/payouts/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Payout)
def test_is_creatable(self, request_mock):
resource = stripe.Payout.create(amount=100, currency="usd")
request_mock.assert_requested("post", "/v1/payouts")
assert isinstance(resource, stripe.Payout)
def test_is_saveable(self, request_mock):
resource = stripe.Payout.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/payouts/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Payout.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/payouts/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Payout)
def test_can_cancel(self, request_mock):
payout = stripe.Payout.retrieve(TEST_RESOURCE_ID)
resource = payout.cancel()
request_mock.assert_requested(
"post", "/v1/payouts/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Payout)
def test_can_cancel_classmethod(self, request_mock):
resource = stripe.Payout.cancel(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/payouts/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Payout)
def test_can_reverse(self, request_mock):
payout = stripe.Payout.retrieve(TEST_RESOURCE_ID)
resource = payout.reverse()
request_mock.assert_requested(
"post", "/v1/payouts/%s/reverse" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Payout)
def test_can_reverse_classmethod(self, request_mock):
resource = stripe.Payout.reverse(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/payouts/%s/reverse" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Payout)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_person.py 0000644 0001751 0000171 00000002317 14335240430 021346 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_RESOURCE_ID = "trr_123"
class TestPerson(object):
def construct_resource(self):
person_dict = {
"id": TEST_RESOURCE_ID,
"object": "person",
"account": "acct_123",
}
return stripe.Person.construct_from(person_dict, stripe.api_key)
def test_has_instance_url(self, request_mock):
resource = self.construct_resource()
assert (
resource.instance_url()
== "/v1/accounts/acct_123/persons/%s" % TEST_RESOURCE_ID
)
def test_is_not_modifiable(self, request_mock):
with pytest.raises(NotImplementedError):
stripe.Person.modify(TEST_RESOURCE_ID, first_name="John")
def test_is_not_retrievable(self, request_mock):
with pytest.raises(NotImplementedError):
stripe.Person.retrieve(TEST_RESOURCE_ID)
def test_is_saveable(self, request_mock):
resource = self.construct_resource()
resource.first_name = "John"
resource.save()
request_mock.assert_requested(
"post", "/v1/accounts/acct_123/persons/%s" % TEST_RESOURCE_ID
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_plan.py 0000644 0001751 0000171 00000004035 14335240430 020771 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "250FF"
class TestPlan(object):
def test_is_listable(self, request_mock):
resources = stripe.Plan.list()
request_mock.assert_requested("get", "/v1/plans")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Plan)
def test_is_retrievable(self, request_mock):
resource = stripe.Plan.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested("get", "/v1/plans/%s" % TEST_RESOURCE_ID)
assert isinstance(resource, stripe.Plan)
def test_is_creatable(self, request_mock):
resource = stripe.Plan.create(
amount=100,
currency="usd",
id="plan_id",
interval="month",
nickname="plan_nickname",
)
request_mock.assert_requested("post", "/v1/plans")
assert isinstance(resource, stripe.Plan)
def test_is_saveable(self, request_mock):
resource = stripe.Plan.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/plans/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Plan.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/plans/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Plan)
def test_is_deletable(self, request_mock):
resource = stripe.Plan.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/plans/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.Plan.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/plans/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_price.py 0000644 0001751 0000171 00000003104 14335240430 021135 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "price_123"
class TestPrice(object):
def test_is_listable(self, request_mock):
resources = stripe.Price.list()
request_mock.assert_requested("get", "/v1/prices")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Price)
def test_is_retrievable(self, request_mock):
resource = stripe.Price.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/prices/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Price)
def test_is_creatable(self, request_mock):
resource = stripe.Price.create(
unit_amount=1000,
currency="usd",
recurring={"interval": "month"},
product_data={"name": "price_nickname"},
)
request_mock.assert_requested("post", "/v1/prices")
assert isinstance(resource, stripe.Price)
def test_is_saveable(self, request_mock):
resource = stripe.Price.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/prices/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Price.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/prices/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Price)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_product.py 0000644 0001751 0000171 00000003737 14335240430 021527 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "prod_123"
class TestProduct(object):
def test_is_listable(self, request_mock):
resources = stripe.Product.list()
request_mock.assert_requested("get", "/v1/products")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Product)
def test_is_retrievable(self, request_mock):
resource = stripe.Product.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/products/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Product)
def test_is_creatable(self, request_mock):
resource = stripe.Product.create(name="NAME")
request_mock.assert_requested("post", "/v1/products")
assert isinstance(resource, stripe.Product)
def test_is_saveable(self, request_mock):
resource = stripe.Product.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/products/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Product.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/products/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Product)
def test_is_deletable(self, request_mock):
resource = stripe.Product.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/products/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.Product.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/products/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_promotion_code.py 0000644 0001751 0000171 00000003072 14335240430 023057 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "promo_123"
class TestPromotionCode(object):
def test_is_listable(self, request_mock):
resources = stripe.PromotionCode.list()
request_mock.assert_requested("get", "/v1/promotion_codes")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.PromotionCode)
def test_is_retrievable(self, request_mock):
resource = stripe.PromotionCode.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/promotion_codes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PromotionCode)
def test_is_creatable(self, request_mock):
resource = stripe.PromotionCode.create(coupon="co_123", code="MYCODE")
request_mock.assert_requested("post", "/v1/promotion_codes")
assert isinstance(resource, stripe.PromotionCode)
def test_is_saveable(self, request_mock):
resource = stripe.PromotionCode.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/promotion_codes/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.PromotionCode.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/promotion_codes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.PromotionCode)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_quote.py 0000644 0001751 0000171 00000013331 14335240430 021173 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
import pytest
TEST_RESOURCE_ID = "qt_123"
class TestQuote(object):
@pytest.fixture(scope="function")
def setup_upload_api_base(self):
stripe.upload_api_base = stripe.api_base
yield
stripe.api_base = stripe.upload_api_base
stripe.upload_api_base = "https://files.stripe.com"
def test_is_listable(self, request_mock):
resources = stripe.Quote.list()
request_mock.assert_requested("get", "/v1/quotes")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Quote)
def test_is_retrievable(self, request_mock):
resource = stripe.Quote.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/quotes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Quote)
def test_is_creatable(self, request_mock):
resource = stripe.Quote.create(customer="cus_123")
request_mock.assert_requested("post", "/v1/quotes")
assert isinstance(resource, stripe.Quote)
def test_is_saveable(self, request_mock):
resource = stripe.Quote.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/quotes/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Quote.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/quotes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Quote)
def test_can_finalize_quote(self, request_mock):
resource = stripe.Quote.retrieve(TEST_RESOURCE_ID)
resource = resource.finalize_quote()
request_mock.assert_requested(
"post", "/v1/quotes/%s/finalize" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Quote)
def test_can_finalize_quote_classmethod(self, request_mock):
resource = stripe.Quote.finalize_quote(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/quotes/%s/finalize" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Quote)
def test_can_cancel(self, request_mock):
resource = stripe.Quote.retrieve(TEST_RESOURCE_ID)
resource = resource.cancel()
request_mock.assert_requested(
"post", "/v1/quotes/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Quote)
def test_can_cancel_classmethod(self, request_mock):
resource = stripe.Quote.cancel(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/quotes/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Quote)
def test_can_accept(self, request_mock):
resource = stripe.Quote.retrieve(TEST_RESOURCE_ID)
resource = resource.accept()
request_mock.assert_requested(
"post", "/v1/quotes/%s/accept" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Quote)
def test_can_accept_classmethod(self, request_mock):
resource = stripe.Quote.accept(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/quotes/%s/accept" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Quote)
def test_can_list_line_items(self, request_mock):
resources = stripe.Quote.list_line_items(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/quotes/%s/line_items" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.LineItem)
def test_can_list_line_items_classmethod(self, request_mock):
resources = stripe.Quote.list_line_items(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/quotes/%s/line_items" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.LineItem)
def test_can_list_computed_upfront_line_items(self, request_mock):
resources = stripe.Quote.list_computed_upfront_line_items(
TEST_RESOURCE_ID
)
request_mock.assert_requested(
"get",
"/v1/quotes/%s/computed_upfront_line_items" % TEST_RESOURCE_ID,
)
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.LineItem)
def test_can_list_computed_upfront_line_items_classmethod(
self, request_mock
):
resources = stripe.Quote.list_computed_upfront_line_items(
TEST_RESOURCE_ID
)
request_mock.assert_requested(
"get",
"/v1/quotes/%s/computed_upfront_line_items" % TEST_RESOURCE_ID,
)
assert isinstance(resources.data[0], stripe.LineItem)
def test_can_pdf(self, setup_upload_api_base, request_mock):
resource = stripe.Quote.retrieve(TEST_RESOURCE_ID)
stream, _ = resource.pdf()
request_mock.assert_api_base(stripe.upload_api_base)
request_mock.assert_requested_stream(
"get", "/v1/quotes/%s/pdf" % TEST_RESOURCE_ID
)
content = stream.io.read()
assert content == b"Stripe binary response"
def test_can_pdf_classmethod(self, setup_upload_api_base, request_mock):
stream = stripe.Quote.pdf(TEST_RESOURCE_ID)
request_mock.assert_api_base(stripe.upload_api_base)
request_mock.assert_requested_stream(
"get", "/v1/quotes/%s/pdf" % TEST_RESOURCE_ID
)
content = stream.io.read()
assert content == b"Stripe binary response"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_refund.py 0000644 0001751 0000171 00000002672 14335240430 021327 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "re_123"
class TestRefund(object):
def test_is_listable(self, request_mock):
resources = stripe.Refund.list()
request_mock.assert_requested("get", "/v1/refunds")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Refund)
def test_is_retrievable(self, request_mock):
resource = stripe.Refund.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/refunds/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Refund)
def test_is_creatable(self, request_mock):
resource = stripe.Refund.create(charge="ch_123")
request_mock.assert_requested("post", "/v1/refunds")
assert isinstance(resource, stripe.Refund)
def test_is_saveable(self, request_mock):
resource = stripe.Refund.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/refunds/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Refund.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/refunds/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Refund)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_reversal.py 0000644 0001751 0000171 00000002410 14335240430 021655 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_RESOURCE_ID = "trr_123"
class TestReversal(object):
def construct_resource(self):
reversal_dict = {
"id": TEST_RESOURCE_ID,
"object": "reversal",
"metadata": {},
"transfer": "tr_123",
}
return stripe.Reversal.construct_from(reversal_dict, stripe.api_key)
def test_has_instance_url(self, request_mock):
resource = self.construct_resource()
assert (
resource.instance_url()
== "/v1/transfers/tr_123/reversals/%s" % TEST_RESOURCE_ID
)
def test_is_not_modifiable(self, request_mock):
with pytest.raises(NotImplementedError):
stripe.Reversal.modify(TEST_RESOURCE_ID, metadata={"key": "value"})
def test_is_not_retrievable(self, request_mock):
with pytest.raises(NotImplementedError):
stripe.Reversal.retrieve(TEST_RESOURCE_ID)
def test_is_saveable(self, request_mock):
resource = self.construct_resource()
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/transfers/tr_123/reversals/%s" % TEST_RESOURCE_ID
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_review.py 0000644 0001751 0000171 00000002327 14335240430 021342 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "prv_123"
class TestReview(object):
def test_is_listable(self, request_mock):
resources = stripe.Review.list()
request_mock.assert_requested("get", "/v1/reviews")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Review)
def test_is_retrievable(self, request_mock):
resource = stripe.Review.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/reviews/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Review)
def test_can_approve(self, request_mock):
resource = stripe.Review.retrieve(TEST_RESOURCE_ID)
resource.approve()
request_mock.assert_requested(
"post", "/v1/reviews/%s/approve" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Review)
def test_can_approve_classmethod(self, request_mock):
resource = stripe.Review.approve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/reviews/%s/approve" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Review)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_search_result_object.py 0000644 0001751 0000171 00000014705 14335240430 024235 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import json
import pytest
import stripe
class TestSearchResultObject(object):
@pytest.fixture
def search_result_object(self):
return stripe.SearchResultObject.construct_from(
{"object": "search_result", "url": "/my/path", "data": ["foo"]},
"mykey",
)
def test_search(self, request_mock, search_result_object):
request_mock.stub_request(
"get",
"/my/path",
{
"object": "search_result",
"data": [{"object": "charge", "foo": "bar"}],
},
)
res = search_result_object.search(
myparam="you", stripe_account="acct_123"
)
request_mock.assert_requested(
"get", "/my/path", {"myparam": "you"}, None
)
assert isinstance(res, stripe.SearchResultObject)
assert res.stripe_account == "acct_123"
assert isinstance(res.data, list)
assert isinstance(res.data[0], stripe.Charge)
assert res.data[0].foo == "bar"
def test_is_empty(self):
sro = stripe.SearchResultObject.construct_from({"data": []}, None)
assert sro.is_empty is True
def test_empty_search_result(self):
sro = stripe.SearchResultObject.empty_search_result()
assert sro.is_empty
def test_iter(self):
arr = [{"id": 1}, {"id": 2}, {"id": 3}]
expected = stripe.util.convert_to_stripe_object(arr)
sro = stripe.SearchResultObject.construct_from({"data": arr}, None)
assert list(sro) == expected
def test_len(self, search_result_object):
assert len(search_result_object) == 1
def test_bool(self, search_result_object):
assert search_result_object
empty = stripe.SearchResultObject.construct_from(
{"object": "list", "url": "/my/path", "data": []}, "mykey"
)
assert bool(empty) is False
def test_next_search_result_page(self, request_mock):
sro = stripe.SearchResultObject.construct_from(
{
"object": "list",
"data": [{"id": 1}],
"has_more": True,
"next_page": "next_page_token",
"url": "/things",
},
None,
)
request_mock.stub_request(
"get",
"/things",
{
"object": "list",
"data": [{"id": 2}],
"has_more": False,
"url": "/things",
},
)
next_sro = sro.next_search_result_page()
request_mock.assert_requested(
"get", "/things", {"page": "next_page_token"}, None
)
assert not next_sro.is_empty
assert next_sro.data[0].id == 2
def test_next_search_result_page_with_filters(self, request_mock):
sro = stripe.SearchResultObject.construct_from(
{
"object": "list",
"data": [{"id": 1}],
"has_more": True,
"next_page": "next_page_token",
"url": "/things",
},
None,
)
sro._retrieve_params = {"expand": ["data.source"], "limit": 3}
request_mock.stub_request(
"get",
"/things",
{
"object": "list",
"data": [{"id": 2}],
"has_more": False,
"next_page": None,
"url": "/things",
},
)
next_sro = sro.next_search_result_page()
assert next_sro._retrieve_params == {
"expand": ["data.source"],
"limit": 3,
"page": "next_page_token",
}
def test_next_search_result_page_empty_search_result(self):
sro = stripe.SearchResultObject.construct_from(
{
"object": "list",
"data": [{"id": 1}],
"has_more": False,
"next_page": None,
"url": "/things",
},
None,
)
next_sro = sro.next_search_result_page()
assert next_sro == stripe.SearchResultObject.empty_search_result()
def test_serialize_empty_search_result(self):
empty = stripe.SearchResultObject.construct_from(
{"object": "list", "data": []}, "mykey"
)
serialized = str(empty)
deserialized = stripe.SearchResultObject.construct_from(
json.loads(serialized), "mykey"
)
assert deserialized == empty
def test_serialize_nested_empty_search_result(self):
empty = stripe.SearchResultObject.construct_from(
{"object": "list", "data": []}, "mykey"
)
obj = stripe.stripe_object.StripeObject.construct_from(
{"nested": empty}, "mykey"
)
serialized = str(obj)
deserialized = stripe.stripe_object.StripeObject.construct_from(
json.loads(serialized), "mykey"
)
assert deserialized.nested == empty
class TestAutoPaging:
@staticmethod
def pageable_model_response(ids, has_more, next_page_token):
model = {
"object": "search_result",
"url": "/v1/pageablemodels",
"data": [{"id": id, "object": "pageablemodel"} for id in ids],
"has_more": has_more,
"next_page": next_page_token,
}
return model
def test_iter_one_page(self, request_mock):
sro = stripe.SearchResultObject.construct_from(
self.pageable_model_response(["pm_123", "pm_124"], False, None),
"mykey",
)
request_mock.assert_no_request()
seen = [item["id"] for item in sro.auto_paging_iter()]
assert seen == ["pm_123", "pm_124"]
def test_iter_two_pages(self, request_mock):
sro = stripe.SearchResultObject.construct_from(
self.pageable_model_response(["pm_123", "pm_124"], True, "token"),
"mykey",
)
sro._retrieve_params = {"foo": "bar"}
request_mock.stub_request(
"get",
"/v1/pageablemodels",
self.pageable_model_response(["pm_125", "pm_126"], False, None),
)
seen = [item["id"] for item in sro.auto_paging_iter()]
request_mock.assert_requested(
"get",
"/v1/pageablemodels",
{"page": "token", "foo": "bar"},
None,
)
assert seen == ["pm_123", "pm_124", "pm_125", "pm_126"]
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_setup_attempt.py 0000644 0001751 0000171 00000000633 14335240430 022735 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestSetupAttempt(object):
def test_is_listable(self, request_mock):
resources = stripe.SetupAttempt.list(setup_intent="seti_123")
request_mock.assert_requested("get", "/v1/setup_attempts")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.SetupAttempt)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_setup_intent.py 0000644 0001751 0000171 00000005607 14335240430 022566 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "seti_123"
class TestSetupIntent(object):
def test_is_listable(self, request_mock):
resources = stripe.SetupIntent.list()
request_mock.assert_requested("get", "/v1/setup_intents")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.SetupIntent)
def test_is_retrievable(self, request_mock):
resource = stripe.SetupIntent.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/setup_intents/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SetupIntent)
def test_is_creatable(self, request_mock):
resource = stripe.SetupIntent.create(payment_method_types=["card"])
request_mock.assert_requested("post", "/v1/setup_intents")
assert isinstance(resource, stripe.SetupIntent)
def test_is_modifiable(self, request_mock):
resource = stripe.SetupIntent.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post",
"/v1/setup_intents/%s" % TEST_RESOURCE_ID,
{"metadata": {"key": "value"}},
)
assert isinstance(resource, stripe.SetupIntent)
def test_is_saveable(self, request_mock):
resource = stripe.SetupIntent.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post",
"/v1/setup_intents/%s" % TEST_RESOURCE_ID,
{"metadata": {"key": "value"}},
)
assert isinstance(resource, stripe.SetupIntent)
def test_can_cancel(self, request_mock):
resource = stripe.SetupIntent.retrieve(TEST_RESOURCE_ID)
resource.cancel()
request_mock.assert_requested(
"post", "/v1/setup_intents/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SetupIntent)
def test_can_cancel_classmethod(self, request_mock):
resource = stripe.SetupIntent.cancel(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/setup_intents/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SetupIntent)
def test_can_confirm(self, request_mock):
resource = stripe.SetupIntent.retrieve(TEST_RESOURCE_ID)
resource.confirm()
request_mock.assert_requested(
"post", "/v1/setup_intents/%s/confirm" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SetupIntent)
def test_can_confirm_classmethod(self, request_mock):
resource = stripe.SetupIntent.confirm(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/setup_intents/%s/confirm" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SetupIntent)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_source.py 0000644 0001751 0000171 00000005213 14335240430 021336 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_RESOURCE_ID = "src_123"
class TestSource(object):
def test_is_retrievable(self, request_mock):
resource = stripe.Source.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/sources/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Source)
def test_is_creatable(self, request_mock):
resource = stripe.Source.create(type="card", token="tok_123")
request_mock.assert_requested("post", "/v1/sources")
assert isinstance(resource, stripe.Source)
def test_is_saveable(self, request_mock):
resource = stripe.Source.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/sources/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Source.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/sources/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Source)
def test_is_detachable_when_attached(self, request_mock):
resource = stripe.Source.construct_from(
{
"id": TEST_RESOURCE_ID,
"object": "source",
"customer": "cus_123",
},
stripe.api_key,
)
source = resource.detach()
assert source is resource
request_mock.assert_requested(
"delete", "/v1/customers/cus_123/sources/%s" % TEST_RESOURCE_ID
)
def test_is_not_detachable_when_unattached(self, request_mock):
resource = stripe.Source.retrieve(TEST_RESOURCE_ID)
with pytest.raises(stripe.error.InvalidRequestError):
resource.detach()
def test_is_verifiable(self, request_mock):
resource = stripe.Source.retrieve(TEST_RESOURCE_ID)
source = resource.verify(values=[1, 2])
assert source is resource
request_mock.assert_requested(
"post",
"/v1/sources/%s/verify" % TEST_RESOURCE_ID,
{"values": [1, 2]},
)
class TestSourceTransactions(object):
def test_is_listable(self, request_mock):
resource = stripe.Source.list_source_transactions(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/sources/%s/source_transactions" % TEST_RESOURCE_ID
)
assert isinstance(resource.data, list)
assert isinstance(resource.data[0], stripe.SourceTransaction)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_source_transaction.py 0000644 0001751 0000171 00000001157 14335240430 023746 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestSourceTransaction(object):
def test_is_listable(self, request_mock):
source = stripe.Source.construct_from(
{"id": "src_123", "object": "source"}, stripe.api_key
)
source_transactions = source.list_source_transactions()
request_mock.assert_requested(
"get", "/v1/sources/src_123/source_transactions"
)
assert isinstance(source_transactions.data, list)
assert isinstance(
source_transactions.data[0], stripe.SourceTransaction
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_subscription.py 0000644 0001751 0000171 00000005143 14335240430 022564 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "sub_123"
class TestSubscription(object):
def test_is_listable(self, request_mock):
resources = stripe.Subscription.list()
request_mock.assert_requested("get", "/v1/subscriptions")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Subscription)
def test_is_retrievable(self, request_mock):
resource = stripe.Subscription.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/subscriptions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Subscription)
def test_is_creatable(self, request_mock):
resource = stripe.Subscription.create(customer="cus_123")
request_mock.assert_requested("post", "/v1/subscriptions")
assert isinstance(resource, stripe.Subscription)
def test_is_saveable(self, request_mock):
resource = stripe.Subscription.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/subscriptions/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Subscription.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/subscriptions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Subscription)
def test_is_deletable(self, request_mock):
resource = stripe.Subscription.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/subscriptions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Subscription)
def test_can_delete(self, request_mock):
resource = stripe.Subscription.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/subscriptions/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Subscription)
def test_can_delete_discount(self, request_mock):
sub = stripe.Subscription.retrieve(TEST_RESOURCE_ID)
sub.delete_discount()
request_mock.assert_requested(
"delete", "/v1/subscriptions/%s/discount" % sub.id
)
def test_can_delete_discount_classmethod(self, request_mock):
stripe.Subscription.delete_discount(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/subscriptions/%s/discount" % TEST_RESOURCE_ID
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_subscription_item.py 0000644 0001751 0000171 00000006435 14335240430 023607 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "si_123"
class TestSubscriptionItem(object):
def test_is_listable(self, request_mock):
resources = stripe.SubscriptionItem.list(subscription="sub_123")
request_mock.assert_requested(
"get", "/v1/subscription_items", {"subscription": "sub_123"}
)
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.SubscriptionItem)
def test_is_retrievable(self, request_mock):
resource = stripe.SubscriptionItem.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/subscription_items/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SubscriptionItem)
def test_is_creatable(self, request_mock):
resource = stripe.SubscriptionItem.create(
price="price_123", subscription="sub_123"
)
request_mock.assert_requested("post", "/v1/subscription_items")
assert isinstance(resource, stripe.SubscriptionItem)
def test_is_saveable(self, request_mock):
resource = stripe.SubscriptionItem.retrieve(TEST_RESOURCE_ID)
resource.price = "price_123"
resource.save()
request_mock.assert_requested(
"post",
"/v1/subscription_items/%s" % TEST_RESOURCE_ID,
{"price": "price_123"},
)
def test_is_modifiable(self, request_mock):
resource = stripe.SubscriptionItem.modify(
TEST_RESOURCE_ID, price="price_123"
)
request_mock.assert_requested(
"post",
"/v1/subscription_items/%s" % TEST_RESOURCE_ID,
{"price": "price_123"},
)
assert isinstance(resource, stripe.SubscriptionItem)
def test_is_deletable(self, request_mock):
resource = stripe.SubscriptionItem.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/subscription_items/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.SubscriptionItem.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/subscription_items/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
class TestUsageRecords(object):
def test_is_creatable(self, request_mock):
resource = stripe.SubscriptionItem.create_usage_record(
TEST_RESOURCE_ID,
quantity=5000,
timestamp=1524182400,
action="increment",
)
request_mock.assert_requested(
"post",
"/v1/subscription_items/%s/usage_records" % TEST_RESOURCE_ID,
)
assert isinstance(resource, stripe.UsageRecord)
class TestUsageRecordSummaries(object):
def test_is_listable(self, request_mock):
resource = stripe.SubscriptionItem.list_usage_record_summaries(
TEST_RESOURCE_ID
)
request_mock.assert_requested(
"get",
"/v1/subscription_items/%s/usage_record_summaries"
% TEST_RESOURCE_ID,
)
assert isinstance(resource.data, list)
assert isinstance(resource.data[0], stripe.UsageRecordSummary)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_subscription_schedule.py 0000644 0001751 0000171 00000005747 14335240430 024452 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "sub_sched_123"
class TestSubscriptionScheduleSchedule(object):
def test_is_listable(self, request_mock):
resources = stripe.SubscriptionSchedule.list()
request_mock.assert_requested("get", "/v1/subscription_schedules")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.SubscriptionSchedule)
def test_is_retrievable(self, request_mock):
resource = stripe.SubscriptionSchedule.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/subscription_schedules/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SubscriptionSchedule)
def test_is_creatable(self, request_mock):
resource = stripe.SubscriptionSchedule.create(customer="cus_123")
request_mock.assert_requested("post", "/v1/subscription_schedules")
assert isinstance(resource, stripe.SubscriptionSchedule)
def test_is_saveable(self, request_mock):
resource = stripe.SubscriptionSchedule.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/subscription_schedules/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.SubscriptionSchedule.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/subscription_schedules/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SubscriptionSchedule)
def test_can_cancel(self, request_mock):
resource = stripe.SubscriptionSchedule.retrieve(TEST_RESOURCE_ID)
resource = resource.cancel()
request_mock.assert_requested(
"post", "/v1/subscription_schedules/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SubscriptionSchedule)
def test_can_cancel_classmethod(self, request_mock):
resource = stripe.SubscriptionSchedule.cancel(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/subscription_schedules/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SubscriptionSchedule)
def test_can_release(self, request_mock):
resource = stripe.SubscriptionSchedule.retrieve(TEST_RESOURCE_ID)
resource = resource.release()
request_mock.assert_requested(
"post", "/v1/subscription_schedules/%s/release" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SubscriptionSchedule)
def test_can_release_classmethod(self, request_mock):
resource = stripe.SubscriptionSchedule.release(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/subscription_schedules/%s/release" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.SubscriptionSchedule)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_tax_code.py 0000644 0001751 0000171 00000001235 14335240430 021624 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "txcd_123"
class TestTaxCode(object):
def test_is_listable(self, request_mock):
resources = stripe.TaxCode.list()
request_mock.assert_requested("get", "/v1/tax_codes")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.TaxCode)
def test_is_retrievable(self, request_mock):
resource = stripe.TaxCode.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/tax_codes/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.TaxCode)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_tax_id.py 0000644 0001751 0000171 00000001414 14335240430 021305 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_RESOURCE_ID = "txi_123"
class TestTaxId(object):
def construct_resource(self):
tax_id_dict = {
"id": TEST_RESOURCE_ID,
"object": "tax_id",
"customer": "cus_123",
}
return stripe.TaxId.construct_from(tax_id_dict, stripe.api_key)
def test_has_instance_url(self, request_mock):
resource = self.construct_resource()
assert (
resource.instance_url()
== "/v1/customers/cus_123/tax_ids/%s" % TEST_RESOURCE_ID
)
def test_is_not_retrievable(self, request_mock):
with pytest.raises(NotImplementedError):
stripe.TaxId.retrieve(TEST_RESOURCE_ID)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_tax_rate.py 0000644 0001751 0000171 00000003014 14335240430 021642 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "txr_123"
class TestTaxRate(object):
def test_is_listable(self, request_mock):
resources = stripe.TaxRate.list()
request_mock.assert_requested("get", "/v1/tax_rates")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.TaxRate)
def test_is_retrievable(self, request_mock):
resource = stripe.TaxRate.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/tax_rates/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.TaxRate)
def test_is_creatable(self, request_mock):
resource = stripe.TaxRate.create(
display_name="name", inclusive=False, percentage=10.15
)
request_mock.assert_requested("post", "/v1/tax_rates")
assert isinstance(resource, stripe.TaxRate)
def test_is_saveable(self, request_mock):
resource = stripe.TaxRate.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/tax_rates/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.TaxRate.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/tax_rates/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.TaxRate)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_topup.py 0000644 0001751 0000171 00000004232 14335240430 021205 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "tu_123"
class TestTopup(object):
def test_is_listable(self, request_mock):
resources = stripe.Topup.list()
request_mock.assert_requested("get", "/v1/topups")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Topup)
def test_is_retrievable(self, request_mock):
resource = stripe.Topup.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/topups/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Topup)
def test_is_creatable(self, request_mock):
resource = stripe.Topup.create(
amount=100,
currency="usd",
source="src_123",
description="description",
statement_descriptor="statement descriptor",
)
request_mock.assert_requested("post", "/v1/topups")
assert isinstance(resource, stripe.Topup)
def test_is_saveable(self, request_mock):
resource = stripe.Topup.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/topups/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Topup.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/topups/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Topup)
def test_can_cancel(self, request_mock):
resource = stripe.Topup.retrieve(TEST_RESOURCE_ID)
resource = resource.cancel()
request_mock.assert_requested(
"post", "/v1/topups/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Topup)
def test_can_cancel_classmethod(self, request_mock):
resource = stripe.Topup.cancel(TEST_RESOURCE_ID)
request_mock.assert_requested(
"post", "/v1/topups/%s/cancel" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Topup)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_transfer.py 0000644 0001751 0000171 00000005756 14335240430 021676 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "tr_123"
TEST_REVERSAL_ID = "trr_123"
class TestTransfer(object):
def test_is_listable(self, request_mock):
resources = stripe.Transfer.list()
request_mock.assert_requested("get", "/v1/transfers")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Transfer)
def test_is_retrievable(self, request_mock):
resource = stripe.Transfer.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/transfers/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Transfer)
def test_is_creatable(self, request_mock):
resource = stripe.Transfer.create(
amount=100, currency="usd", destination="acct_123"
)
request_mock.assert_requested("post", "/v1/transfers")
assert isinstance(resource, stripe.Transfer)
def test_is_saveable(self, request_mock):
resource = stripe.Transfer.retrieve(TEST_RESOURCE_ID)
resource.metadata["key"] = "value"
resource.save()
request_mock.assert_requested(
"post", "/v1/transfers/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.Transfer.modify(
TEST_RESOURCE_ID, metadata={"key": "value"}
)
request_mock.assert_requested(
"post", "/v1/transfers/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Transfer)
class TestTransferReversals:
def test_is_listable(self, request_mock):
resources = stripe.Transfer.list_reversals(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/transfers/%s/reversals" % TEST_RESOURCE_ID
)
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.Reversal)
def test_is_retrievable(self, request_mock):
resource = stripe.Transfer.retrieve_reversal(
TEST_RESOURCE_ID, TEST_REVERSAL_ID
)
request_mock.assert_requested(
"get",
"/v1/transfers/%s/reversals/%s"
% (TEST_RESOURCE_ID, TEST_REVERSAL_ID),
)
assert isinstance(resource, stripe.Reversal)
def test_is_creatable(self, request_mock):
resource = stripe.Transfer.create_reversal(
TEST_RESOURCE_ID, amount=100
)
request_mock.assert_requested(
"post", "/v1/transfers/%s/reversals" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.Reversal)
def test_is_modifiable(self, request_mock):
resource = stripe.Transfer.modify_reversal(
TEST_RESOURCE_ID, TEST_REVERSAL_ID, metadata={"foo": "bar"}
)
request_mock.assert_requested(
"post",
"/v1/transfers/%s/reversals/%s"
% (TEST_RESOURCE_ID, TEST_REVERSAL_ID),
)
assert isinstance(resource, stripe.Reversal)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_usage_record.py 0000644 0001751 0000171 00000001553 14335240430 022503 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_SUBSCRIPTION_ITEM_ID = "si_123"
class TestUsageRecord(object):
def test_is_creatable(self, request_mock):
resource = stripe.UsageRecord.create(
subscription_item=TEST_SUBSCRIPTION_ITEM_ID,
quantity=5000,
timestamp=1524182400,
action="increment",
)
request_mock.assert_requested(
"post",
"/v1/subscription_items/%s/usage_records"
% (TEST_SUBSCRIPTION_ITEM_ID),
)
assert isinstance(resource, stripe.UsageRecord)
def test_raises_when_creating_without_subscription_item(self):
with pytest.raises(ValueError):
stripe.UsageRecord.create(
quantity=5000, timestamp=1524182400, action="increment"
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_usage_record_summary.py 0000644 0001751 0000171 00000001100 14335240430 024244 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
class TestUsageRecordSummary(object):
def test_is_listable(self, request_mock):
usage_record_summaries = (
stripe.SubscriptionItem.list_usage_record_summaries("si_123")
)
request_mock.assert_requested(
"get", "/v1/subscription_items/si_123/usage_record_summaries"
)
assert isinstance(usage_record_summaries.data, list)
assert isinstance(
usage_record_summaries.data[0], stripe.UsageRecordSummary
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/api_resources/test_webhook_endpoint.py 0000644 0001751 0000171 00000004415 14335240430 023377 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import stripe
TEST_RESOURCE_ID = "we_123"
class TestWebhookEndpoint(object):
def test_is_listable(self, request_mock):
resources = stripe.WebhookEndpoint.list()
request_mock.assert_requested("get", "/v1/webhook_endpoints")
assert isinstance(resources.data, list)
assert isinstance(resources.data[0], stripe.WebhookEndpoint)
def test_is_retrievable(self, request_mock):
resource = stripe.WebhookEndpoint.retrieve(TEST_RESOURCE_ID)
request_mock.assert_requested(
"get", "/v1/webhook_endpoints/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.WebhookEndpoint)
def test_is_creatable(self, request_mock):
resource = stripe.WebhookEndpoint.create(
enabled_events=["charge.succeeded"], url="https://stripe.com"
)
request_mock.assert_requested("post", "/v1/webhook_endpoints")
assert isinstance(resource, stripe.WebhookEndpoint)
def test_is_saveable(self, request_mock):
resource = stripe.WebhookEndpoint.retrieve(TEST_RESOURCE_ID)
resource.enabled_events = ["charge.succeeded"]
resource.save()
request_mock.assert_requested(
"post", "/v1/webhook_endpoints/%s" % TEST_RESOURCE_ID
)
def test_is_modifiable(self, request_mock):
resource = stripe.WebhookEndpoint.modify(
TEST_RESOURCE_ID,
enabled_events=["charge.succeeded"],
url="https://stripe.com",
)
request_mock.assert_requested(
"post", "/v1/webhook_endpoints/%s" % TEST_RESOURCE_ID
)
assert isinstance(resource, stripe.WebhookEndpoint)
def test_is_deletable(self, request_mock):
resource = stripe.WebhookEndpoint.retrieve(TEST_RESOURCE_ID)
resource.delete()
request_mock.assert_requested(
"delete", "/v1/webhook_endpoints/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
def test_can_delete(self, request_mock):
resource = stripe.WebhookEndpoint.delete(TEST_RESOURCE_ID)
request_mock.assert_requested(
"delete", "/v1/webhook_endpoints/%s" % TEST_RESOURCE_ID
)
assert resource.deleted is True
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/conftest.py 0000644 0001751 0000171 00000005506 14335240430 015766 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import atexit
import os
import sys
from distutils.version import StrictVersion
import pytest
import stripe
from stripe.six.moves.urllib.request import urlopen
from stripe.six.moves.urllib.error import HTTPError
from tests.request_mock import RequestMock
from tests.stripe_mock import StripeMock
MOCK_MINIMUM_VERSION = "0.109.0"
# Starts stripe-mock if an OpenAPI spec override is found in `openapi/`, and
# otherwise fall back to `STRIPE_MOCK_PORT` or 12111.
if StripeMock.start():
MOCK_PORT = StripeMock.port()
else:
MOCK_PORT = os.environ.get("STRIPE_MOCK_PORT", 12111)
@atexit.register
def stop_stripe_mock():
StripeMock.stop()
def pytest_configure(config):
if not config.getoption("--nomock"):
try:
resp = urlopen("http://localhost:%s/" % MOCK_PORT)
info = resp.info()
version = info.get("Stripe-Mock-Version")
if version != "master" and StrictVersion(version) < StrictVersion(
MOCK_MINIMUM_VERSION
):
sys.exit(
"Your version of stripe-mock (%s) is too old. The minimum "
"version to run this test suite is %s. Please "
"see its repository for upgrade instructions."
% (version, MOCK_MINIMUM_VERSION)
)
except HTTPError as e:
info = e.info()
except Exception:
sys.exit(
"Couldn't reach stripe-mock at `localhost:%s`. Is "
"it running? Please see README for setup instructions."
% MOCK_PORT
)
def pytest_addoption(parser):
parser.addoption(
"--nomock",
action="store_true",
help="only run tests that don't need stripe-mock",
)
def pytest_runtest_setup(item):
if "request_mock" in item.fixturenames and item.config.getoption(
"--nomock"
):
pytest.skip(
"run stripe-mock locally and remove --nomock flag to run skipped tests"
)
@pytest.fixture(autouse=True)
def setup_stripe():
orig_attrs = {
"api_base": stripe.api_base,
"api_key": stripe.api_key,
"client_id": stripe.client_id,
"default_http_client": stripe.default_http_client,
}
http_client = stripe.http_client.new_default_http_client()
stripe.api_base = "http://localhost:%s" % MOCK_PORT
stripe.api_key = "sk_test_123"
stripe.client_id = "ca_123"
stripe.default_http_client = http_client
yield
http_client.close()
stripe.api_base = orig_attrs["api_base"]
stripe.api_key = orig_attrs["api_key"]
stripe.client_id = orig_attrs["client_id"]
stripe.default_http_client = orig_attrs["default_http_client"]
@pytest.fixture
def request_mock(mocker):
return RequestMock(mocker)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/request_mock.py 0000644 0001751 0000171 00000015777 14335240430 016655 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import json
import stripe
from stripe import six, util
from stripe.stripe_response import StripeResponse, StripeStreamResponse
class RequestMock(object):
def __init__(self, mocker):
self._mocker = mocker
self._real_request = stripe.api_requestor.APIRequestor.request
self._real_request_stream = (
stripe.api_requestor.APIRequestor.request_stream
)
self._stub_request_handler = StubRequestHandler()
self.constructor_patcher = self._mocker.patch(
"stripe.api_requestor.APIRequestor.__init__",
side_effect=stripe.api_requestor.APIRequestor.__init__,
autospec=True,
)
self.request_patcher = self._mocker.patch(
"stripe.api_requestor.APIRequestor.request",
side_effect=self._patched_request,
autospec=True,
)
self.request_stream_patcher = self._mocker.patch(
"stripe.api_requestor.APIRequestor.request_stream",
side_effect=self._patched_request_stream,
autospec=True,
)
def _patched_request(self, requestor, method, url, *args, **kwargs):
response = self._stub_request_handler.get_response(
method, url, expect_stream=False
)
if response is not None:
return response, stripe.api_key
return self._real_request(requestor, method, url, *args, **kwargs)
def _patched_request_stream(self, requestor, method, url, *args, **kwargs):
response = self._stub_request_handler.get_response(
method, url, expect_stream=True
)
if response is not None:
return response, stripe.api_key
return self._real_request_stream(
requestor, method, url, *args, **kwargs
)
def stub_request(self, method, url, rbody={}, rcode=200, rheaders={}):
self._stub_request_handler.register(
method, url, rbody, rcode, rheaders, is_streaming=False
)
def stub_request_stream(
self, method, url, rbody={}, rcode=200, rheaders={}
):
self._stub_request_handler.register(
method, url, rbody, rcode, rheaders, is_streaming=True
)
def assert_api_base(self, expected_api_base):
# Note that this method only checks that an API base was provided
# as a keyword argument in APIRequestor's constructor, not as a
# positional argument.
if "api_base" not in self.constructor_patcher.call_args[1]:
msg = (
"Expected APIRequestor to have been constructed with "
"api_base='%s'. No API base was provided." % expected_api_base
)
raise AssertionError(msg)
actual_api_base = self.constructor_patcher.call_args[1]["api_base"]
if actual_api_base != expected_api_base:
msg = (
"Expected APIRequestor to have been constructed with "
"api_base='%s'. Constructed with api_base='%s' "
"instead." % (expected_api_base, actual_api_base)
)
raise AssertionError(msg)
def assert_api_version(self, expected_api_version):
# Note that this method only checks that an API version was provided
# as a keyword argument in APIRequestor's constructor, not as a
# positional argument.
if "api_version" not in self.constructor_patcher.call_args[1]:
msg = (
"Expected APIRequestor to have been constructed with "
"api_version='%s'. No API version was provided."
% expected_api_version
)
raise AssertionError(msg)
actual_api_version = self.constructor_patcher.call_args[1][
"api_version"
]
if actual_api_version != expected_api_version:
msg = (
"Expected APIRequestor to have been constructed with "
"api_version='%s'. Constructed with api_version='%s' "
"instead." % (expected_api_version, actual_api_version)
)
raise AssertionError(msg)
def assert_requested(self, method, url, params=None, headers=None):
self.assert_requested_internal(
self.request_patcher, method, url, params, headers
)
def assert_requested_stream(self, method, url, params=None, headers=None):
self.assert_requested_internal(
self.request_stream_patcher, method, url, params, headers
)
def assert_requested_internal(self, patcher, method, url, params, headers):
params = params or self._mocker.ANY
headers = headers or self._mocker.ANY
called = False
exception = None
# Sadly, ANY does not match a missing optional argument, so we
# check all the possible signatures of the request method
possible_called_args = [
(self._mocker.ANY, method, url),
(self._mocker.ANY, method, url, params),
(self._mocker.ANY, method, url, params, headers),
]
for args in possible_called_args:
try:
patcher.assert_called_with(*args)
except AssertionError as e:
exception = e
else:
called = True
break
if not called:
raise exception
def assert_no_request(self):
if self.request_patcher.call_count != 0:
msg = (
"Expected 'request' to not have been called. "
"Called %s times." % (self.request_patcher.call_count)
)
raise AssertionError(msg)
def assert_no_request_stream(self):
if self.request_stream_patcher.call_count != 0:
msg = (
"Expected 'request_stream' to not have been called. "
"Called %s times." % (self.request_stream_patcher.call_count)
)
raise AssertionError(msg)
def reset_mock(self):
self.request_patcher.reset_mock()
self.request_stream_patcher.reset_mock()
class StubRequestHandler(object):
def __init__(self):
self._entries = {}
def register(
self, method, url, rbody={}, rcode=200, rheaders={}, is_streaming=False
):
self._entries[(method, url)] = (rbody, rcode, rheaders, is_streaming)
def get_response(self, method, url, expect_stream=False):
if (method, url) in self._entries:
rbody, rcode, rheaders, is_streaming = self._entries.pop(
(method, url)
)
if expect_stream != is_streaming:
return None
if not isinstance(rbody, six.string_types):
rbody = json.dumps(rbody)
if is_streaming:
stripe_response = StripeStreamResponse(
util.io.BytesIO(str.encode(rbody)), rcode, rheaders
)
else:
stripe_response = StripeResponse(rbody, rcode, rheaders)
return stripe_response
return None
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/stripe_mock.py 0000644 0001751 0000171 00000003670 14335240430 016460 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import os
import socket
import subprocess
import sys
import time
class StripeMock(object):
PATH_SPEC = (
os.path.dirname(os.path.realpath(__file__)) + "/openapi/spec3.json"
)
PATH_FIXTURES = (
os.path.dirname(os.path.realpath(__file__)) + "/openapi/fixtures3.json"
)
_port = -1
_process = None
@classmethod
def start(cls):
if not os.path.isfile(cls.PATH_SPEC):
return False
if cls._process is not None:
print("stripe-mock already running on port %s" % cls._port)
return True
cls._port = cls.find_available_port()
print("Starting stripe-mock on port %s..." % cls._port)
cls._process = subprocess.Popen(
[
"stripe-mock",
"-http-port",
str(cls._port),
"-spec",
cls.PATH_SPEC,
"-fixtures",
cls.PATH_FIXTURES,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
time.sleep(1)
if cls._process.poll() is None:
print("Started stripe-mock, PID = %d" % cls._process.pid)
else:
print("stripe-mock terminated early: %d" % cls._process.returncode)
sys.exit(1)
return True
@classmethod
def stop(cls):
if cls._process is None:
return
print("Stopping stripe-mock...")
cls._process.terminate()
cls._process.wait()
cls._process = None
cls._port = -1
print("Stopped stripe-mock")
@classmethod
def port(cls):
return cls._port
@staticmethod
def find_available_port():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(("localhost", 0))
s.listen(1)
port = s.getsockname()[1]
s.close()
return port
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/test_api_requestor.py 0000644 0001751 0000171 00000063004 14335240430 020057 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import datetime
import json
import tempfile
import uuid
from collections import OrderedDict
import pytest
import stripe
from stripe import six, util
from stripe.stripe_response import StripeResponse, StripeStreamResponse
from stripe.six.moves.urllib.parse import urlsplit
import urllib3
VALID_API_METHODS = ("get", "post", "delete")
class GMT1(datetime.tzinfo):
def utcoffset(self, dt):
return datetime.timedelta(hours=1)
def dst(self, dt):
return datetime.timedelta(0)
def tzname(self, dt):
return "Europe/Prague"
class APIHeaderMatcher(object):
EXP_KEYS = [
"Authorization",
"Stripe-Version",
"User-Agent",
"X-Stripe-Client-User-Agent",
]
METHOD_EXTRA_KEYS = {"post": ["Content-Type", "Idempotency-Key"]}
def __init__(
self,
api_key=None,
extra={},
request_method=None,
user_agent=None,
app_info=None,
idempotency_key=None,
fail_platform_call=False,
):
self.request_method = request_method
self.api_key = api_key or stripe.api_key
self.extra = extra
self.user_agent = user_agent
self.app_info = app_info
self.idempotency_key = idempotency_key
self.fail_platform_call = fail_platform_call
def __eq__(self, other):
return (
self._keys_match(other)
and self._auth_match(other)
and self._user_agent_match(other)
and self._x_stripe_ua_contains_app_info(other)
and self._x_stripe_ua_handles_failed_platform_function(other)
and self._idempotency_key_match(other)
and self._extra_match(other)
)
def __repr__(self):
return "APIHeaderMatcher(request_method=%s, api_key=%s, extra=%s, " "user_agent=%s, app_info=%s, idempotency_key=%s, fail_platform_call=%s)" % (
repr(self.request_method),
repr(self.api_key),
repr(self.extra),
repr(self.user_agent),
repr(self.app_info),
repr(self.idempotency_key),
repr(self.fail_platform_call),
)
def _keys_match(self, other):
expected_keys = list(set(self.EXP_KEYS + list(self.extra.keys())))
if (
self.request_method is not None
and self.request_method in self.METHOD_EXTRA_KEYS
):
expected_keys.extend(self.METHOD_EXTRA_KEYS[self.request_method])
return sorted(other.keys()) == sorted(expected_keys)
def _auth_match(self, other):
return other["Authorization"] == "Bearer %s" % (self.api_key,)
def _user_agent_match(self, other):
if self.user_agent is not None:
return other["User-Agent"] == self.user_agent
return True
def _idempotency_key_match(self, other):
if self.idempotency_key is not None:
return other["Idempotency-Key"] == self.idempotency_key
return True
def _x_stripe_ua_contains_app_info(self, other):
if self.app_info:
ua = json.loads(other["X-Stripe-Client-User-Agent"])
if "application" not in ua:
return False
return ua["application"] == self.app_info
return True
def _x_stripe_ua_handles_failed_platform_function(self, other):
if self.fail_platform_call:
ua = json.loads(other["X-Stripe-Client-User-Agent"])
return ua["platform"] == "(disabled)"
return True
def _extra_match(self, other):
for k, v in six.iteritems(self.extra):
if other[k] != v:
return False
return True
class QueryMatcher(object):
def __init__(self, expected):
self.expected = sorted(expected)
def __eq__(self, other):
query = urlsplit(other).query or other
parsed = stripe.util.parse_qsl(query)
return self.expected == sorted(parsed)
def __repr__(self):
return "QueryMatcher(expected=%s)" % (repr(self.expected))
class UrlMatcher(object):
def __init__(self, expected):
self.exp_parts = urlsplit(expected)
def __eq__(self, other):
other_parts = urlsplit(other)
for part in ("scheme", "netloc", "path", "fragment"):
expected = getattr(self.exp_parts, part)
actual = getattr(other_parts, part)
if expected != actual:
print(
'Expected %s "%s" but got "%s"' % (part, expected, actual)
)
return False
q_matcher = QueryMatcher(stripe.util.parse_qsl(self.exp_parts.query))
return q_matcher == other
def __repr__(self):
return "UrlMatcher(exp_parts=%s)" % (repr(self.exp_parts))
class AnyUUID4Matcher(object):
def __eq__(self, other):
try:
uuid.UUID(other, version=4)
except ValueError:
return False
return True
def __repr__(self):
return "AnyUUID4Matcher()"
class TestAPIRequestor(object):
ENCODE_INPUTS = {
"dict": {
"astring": "bar",
"anint": 5,
"anull": None,
"adatetime": datetime.datetime(2013, 1, 1, tzinfo=GMT1()),
"atuple": (1, 2),
"adict": {"foo": "bar", "boz": 5},
"alist": ["foo", "bar"],
},
"list": [1, "foo", "baz"],
"string": "boo",
"unicode": u"\u1234",
"datetime": datetime.datetime(2013, 1, 1, second=1, tzinfo=GMT1()),
"none": None,
}
ENCODE_EXPECTATIONS = {
"dict": [
("%s[astring]", "bar"),
("%s[anint]", 5),
("%s[adatetime]", 1356994800),
("%s[adict][foo]", "bar"),
("%s[adict][boz]", 5),
("%s[alist][0]", "foo"),
("%s[alist][1]", "bar"),
("%s[atuple][0]", 1),
("%s[atuple][1]", 2),
],
"list": [("%s[0]", 1), ("%s[1]", "foo"), ("%s[2]", "baz")],
"string": [("%s", "boo")],
"unicode": [("%s", stripe.util.utf8(u"\u1234"))],
"datetime": [("%s", 1356994801)],
"none": [],
}
@pytest.fixture(autouse=True)
def setup_stripe(self):
orig_attrs = {
"api_key": stripe.api_key,
"api_version": stripe.api_version,
"default_http_client": stripe.default_http_client,
"enable_telemetry": stripe.enable_telemetry,
}
stripe.api_key = "sk_test_123"
stripe.api_version = "2017-12-14"
stripe.default_http_client = None
stripe.enable_telemetry = False
yield
stripe.api_key = orig_attrs["api_key"]
stripe.api_version = orig_attrs["api_version"]
stripe.default_http_client = orig_attrs["default_http_client"]
stripe.enable_telemetry = orig_attrs["enable_telemetry"]
@pytest.fixture
def http_client(self, mocker):
http_client = mocker.Mock(stripe.http_client.HTTPClient)
http_client._verify_ssl_certs = True
http_client.name = "mockclient"
return http_client
@pytest.fixture
def requestor(self, http_client):
requestor = stripe.api_requestor.APIRequestor(client=http_client)
return requestor
@pytest.fixture
def mock_response(self, mocker, http_client):
def mock_response(return_body, return_code, headers=None):
http_client.request_with_retries = mocker.Mock(
return_value=(return_body, return_code, headers or {})
)
return mock_response
@pytest.fixture
def mock_streaming_response(self, mocker, http_client):
def mock_streaming_response(return_body, return_code, headers=None):
http_client.request_stream_with_retries = mocker.Mock(
return_value=(return_body, return_code, headers or {})
)
return mock_streaming_response
@pytest.fixture
def check_call(self, http_client):
def check_call(
method,
abs_url=None,
headers=None,
post_data=None,
is_streaming=False,
):
if not abs_url:
abs_url = "%s%s" % (stripe.api_base, self.valid_path)
if not headers:
headers = APIHeaderMatcher(request_method=method)
if is_streaming:
http_client.request_stream_with_retries.assert_called_with(
method, abs_url, headers, post_data
)
else:
http_client.request_with_retries.assert_called_with(
method, abs_url, headers, post_data
)
return check_call
@property
def valid_path(self):
return "/foo"
def encoder_check(self, key):
stk_key = "my%s" % (key,)
value = self.ENCODE_INPUTS[key]
expectation = [
(k % (stk_key,), v) for k, v in self.ENCODE_EXPECTATIONS[key]
]
stk = []
fn = getattr(stripe.api_requestor.APIRequestor, "encode_%s" % (key,))
fn(stk, stk_key, value)
if isinstance(value, dict):
expectation.sort()
stk.sort()
assert stk == expectation, stk
def _test_encode_naive_datetime(self):
stk = []
stripe.api_requestor.APIRequestor.encode_datetime(
stk, "test", datetime.datetime(2013, 1, 1)
)
# Naive datetimes will encode differently depending on your system
# local time. Since we don't know the local time of your system,
# we just check that naive encodings are within 24 hours of correct.
assert abs(stk[0][1] - 1356994800) <= 60 * 60 * 24
def test_param_encoding(self, requestor, mock_response, check_call):
mock_response("{}", 200)
requestor.request("get", "", self.ENCODE_INPUTS)
expectation = []
for type_, values in six.iteritems(self.ENCODE_EXPECTATIONS):
expectation.extend([(k % (type_,), str(v)) for k, v in values])
check_call("get", QueryMatcher(expectation))
def test_dictionary_list_encoding(self):
params = {"foo": {"0": {"bar": "bat"}}}
encoded = list(stripe.api_requestor._api_encode(params))
key, value = encoded[0]
assert key == "foo[0][bar]"
assert value == "bat"
def test_ordereddict_encoding(self):
params = {
"ordered": OrderedDict(
[
("one", 1),
("two", 2),
("three", 3),
("nested", OrderedDict([("a", "a"), ("b", "b")])),
]
)
}
encoded = list(stripe.api_requestor._api_encode(params))
assert encoded[0][0] == "ordered[one]"
assert encoded[1][0] == "ordered[two]"
assert encoded[2][0] == "ordered[three]"
assert encoded[3][0] == "ordered[nested][a]"
assert encoded[4][0] == "ordered[nested][b]"
def test_url_construction(self, requestor, mock_response, check_call):
CASES = (
("%s?foo=bar" % stripe.api_base, "", {"foo": "bar"}),
("%s?foo=bar" % stripe.api_base, "?", {"foo": "bar"}),
(stripe.api_base, "", {}),
(
"%s/%%20spaced?foo=bar%%24&baz=5" % stripe.api_base,
"/%20spaced?foo=bar%24",
{"baz": "5"},
),
(
"%s?foo=bar&foo=bar" % stripe.api_base,
"?foo=bar",
{"foo": "bar"},
),
)
for expected, url, params in CASES:
mock_response("{}", 200)
requestor.request("get", url, params)
check_call("get", expected)
def test_empty_methods(self, requestor, mock_response, check_call):
for meth in VALID_API_METHODS:
mock_response("{}", 200)
resp, key = requestor.request(meth, self.valid_path, {})
if meth == "post":
post_data = ""
else:
post_data = None
check_call(meth, post_data=post_data)
assert isinstance(resp, StripeResponse)
assert resp.data == {}
assert resp.data == json.loads(resp.body)
def test_empty_methods_streaming_response(
self, requestor, mock_streaming_response, check_call
):
for meth in VALID_API_METHODS:
mock_streaming_response(util.io.BytesIO(b"thisisdata"), 200)
resp, key = requestor.request_stream(
meth,
self.valid_path,
{},
)
if meth == "post":
post_data = ""
else:
post_data = None
check_call(meth, post_data=post_data, is_streaming=True)
assert isinstance(resp, StripeStreamResponse)
assert resp.io.getvalue() == b"thisisdata"
def test_methods_with_params_and_response(
self, requestor, mock_response, check_call
):
for method in VALID_API_METHODS:
mock_response('{"foo": "bar", "baz": 6}', 200)
params = {
"alist": [1, 2, 3],
"adict": {"frobble": "bits"},
"adatetime": datetime.datetime(2013, 1, 1, tzinfo=GMT1()),
}
encoded = (
"adict[frobble]=bits&adatetime=1356994800&"
"alist[0]=1&alist[1]=2&alist[2]=3"
)
resp, key = requestor.request(method, self.valid_path, params)
assert isinstance(resp, StripeResponse)
assert resp.data == {"foo": "bar", "baz": 6}
assert resp.data == json.loads(resp.body)
if method == "post":
check_call(
method,
post_data=QueryMatcher(stripe.util.parse_qsl(encoded)),
)
else:
abs_url = "%s%s?%s" % (
stripe.api_base,
self.valid_path,
encoded,
)
check_call(method, abs_url=UrlMatcher(abs_url))
def test_methods_with_params_and_streaming_response(
self, requestor, mock_streaming_response, check_call
):
for method in VALID_API_METHODS:
mock_streaming_response(
util.io.BytesIO(b'{"foo": "bar", "baz": 6}'), 200
)
params = {
"alist": [1, 2, 3],
"adict": {"frobble": "bits"},
"adatetime": datetime.datetime(2013, 1, 1, tzinfo=GMT1()),
}
encoded = (
"adict[frobble]=bits&adatetime=1356994800&"
"alist[0]=1&alist[1]=2&alist[2]=3"
)
resp, key = requestor.request_stream(
method,
self.valid_path,
params,
)
assert isinstance(resp, StripeStreamResponse)
assert resp.io.getvalue() == b'{"foo": "bar", "baz": 6}'
if method == "post":
check_call(
method,
post_data=QueryMatcher(stripe.util.parse_qsl(encoded)),
is_streaming=True,
)
else:
abs_url = "%s%s?%s" % (
stripe.api_base,
self.valid_path,
encoded,
)
check_call(
method, abs_url=UrlMatcher(abs_url), is_streaming=True
)
def test_uses_headers(self, requestor, mock_response, check_call):
mock_response("{}", 200)
requestor.request("get", self.valid_path, {}, {"foo": "bar"})
check_call("get", headers=APIHeaderMatcher(extra={"foo": "bar"}))
def test_uses_instance_key(self, http_client, mock_response, check_call):
key = "fookey"
requestor = stripe.api_requestor.APIRequestor(key, client=http_client)
mock_response("{}", 200)
resp, used_key = requestor.request("get", self.valid_path, {})
check_call("get", headers=APIHeaderMatcher(key, request_method="get"))
assert used_key == key
def test_uses_instance_api_version(
self, http_client, mock_response, check_call
):
api_version = "fooversion"
requestor = stripe.api_requestor.APIRequestor(
api_version=api_version, client=http_client
)
mock_response("{}", 200)
requestor.request("get", self.valid_path, {})
check_call(
"get",
headers=APIHeaderMatcher(
extra={"Stripe-Version": "fooversion"}, request_method="get"
),
)
def test_uses_instance_account(
self, http_client, mock_response, check_call
):
account = "acct_foo"
requestor = stripe.api_requestor.APIRequestor(
account=account, client=http_client
)
mock_response("{}", 200)
requestor.request("get", self.valid_path, {})
check_call(
"get",
headers=APIHeaderMatcher(
extra={"Stripe-Account": account}, request_method="get"
),
)
def test_sets_default_http_client(self, http_client):
assert not stripe.default_http_client
stripe.api_requestor.APIRequestor(client=http_client)
# default_http_client is not populated if a client is provided
assert not stripe.default_http_client
stripe.api_requestor.APIRequestor()
# default_http_client is set when no client is specified
assert stripe.default_http_client
new_default_client = stripe.default_http_client
stripe.api_requestor.APIRequestor()
# the newly created client is reused
assert stripe.default_http_client == new_default_client
def test_uses_app_info(self, requestor, mock_response, check_call):
try:
old = stripe.app_info
stripe.set_app_info(
"MyAwesomePlugin",
url="https://myawesomeplugin.info",
version="1.2.34",
partner_id="partner_12345",
)
mock_response("{}", 200)
requestor.request("get", self.valid_path, {})
ua = "Stripe/v1 PythonBindings/%s" % (stripe.version.VERSION,)
ua += " MyAwesomePlugin/1.2.34 (https://myawesomeplugin.info)"
header_matcher = APIHeaderMatcher(
user_agent=ua,
app_info={
"name": "MyAwesomePlugin",
"url": "https://myawesomeplugin.info",
"version": "1.2.34",
"partner_id": "partner_12345",
},
)
check_call("get", headers=header_matcher)
finally:
stripe.app_info = old
def test_handles_failed_platform_call(
self, requestor, mocker, mock_response, check_call
):
mock_response("{}", 200)
def fail():
raise RuntimeError
mocker.patch("platform.platform", side_effect=fail)
requestor.request("get", self.valid_path, {}, {})
check_call("get", headers=APIHeaderMatcher(fail_platform_call=True))
def test_uses_given_idempotency_key(
self, requestor, mock_response, check_call
):
mock_response("{}", 200)
meth = "post"
requestor.request(
meth, self.valid_path, {}, {"Idempotency-Key": "123abc"}
)
header_matcher = APIHeaderMatcher(
request_method=meth, idempotency_key="123abc"
)
check_call(meth, headers=header_matcher, post_data="")
def test_uuid4_idempotency_key_when_not_given(
self, requestor, mock_response, check_call
):
mock_response("{}", 200)
meth = "post"
requestor.request(meth, self.valid_path, {})
header_matcher = APIHeaderMatcher(
request_method=meth, idempotency_key=AnyUUID4Matcher()
)
check_call(meth, headers=header_matcher, post_data="")
def test_fails_without_api_key(self, requestor):
stripe.api_key = None
with pytest.raises(stripe.error.AuthenticationError):
requestor.request("get", self.valid_path, {})
def test_invalid_request_error_404(self, requestor, mock_response):
mock_response('{"error": {}}', 404)
with pytest.raises(stripe.error.InvalidRequestError):
requestor.request("get", self.valid_path, {})
def test_invalid_request_error_400(self, requestor, mock_response):
mock_response('{"error": {}}', 400)
with pytest.raises(stripe.error.InvalidRequestError):
requestor.request("get", self.valid_path, {})
def test_idempotency_error(self, requestor, mock_response):
mock_response('{"error": {"type": "idempotency_error"}}', 400)
with pytest.raises(stripe.error.IdempotencyError):
requestor.request("get", self.valid_path, {})
def test_authentication_error(self, requestor, mock_response):
mock_response('{"error": {}}', 401)
with pytest.raises(stripe.error.AuthenticationError):
requestor.request("get", self.valid_path, {})
def test_permissions_error(self, requestor, mock_response):
mock_response('{"error": {}}', 403)
with pytest.raises(stripe.error.PermissionError):
requestor.request("get", self.valid_path, {})
def test_card_error(self, requestor, mock_response):
mock_response('{"error": {"code": "invalid_expiry_year"}}', 402)
with pytest.raises(stripe.error.CardError) as excinfo:
requestor.request("get", self.valid_path, {})
assert excinfo.value.code == "invalid_expiry_year"
def test_rate_limit_error(self, requestor, mock_response):
mock_response('{"error": {}}', 429)
with pytest.raises(stripe.error.RateLimitError):
requestor.request("get", self.valid_path, {})
def test_old_rate_limit_error(self, requestor, mock_response):
"""
Tests legacy rate limit error pre-2015-09-18
"""
mock_response('{"error": {"code":"rate_limit"}}', 400)
with pytest.raises(stripe.error.RateLimitError):
requestor.request("get", self.valid_path, {})
def test_server_error(self, requestor, mock_response):
mock_response('{"error": {}}', 500)
with pytest.raises(stripe.error.APIError):
requestor.request("get", self.valid_path, {})
def test_invalid_json(self, requestor, mock_response):
mock_response("{", 200)
with pytest.raises(stripe.error.APIError):
requestor.request("get", self.valid_path, {})
def test_invalid_method(self, requestor):
with pytest.raises(stripe.error.APIConnectionError):
requestor.request("foo", "bar")
def test_oauth_invalid_requestor_error(self, requestor, mock_response):
mock_response('{"error": "invalid_request"}', 400)
with pytest.raises(stripe.oauth_error.InvalidRequestError):
requestor.request("get", self.valid_path, {})
def test_invalid_client_error(self, requestor, mock_response):
mock_response('{"error": "invalid_client"}', 401)
with pytest.raises(stripe.oauth_error.InvalidClientError):
requestor.request("get", self.valid_path, {})
def test_invalid_grant_error(self, requestor, mock_response):
mock_response('{"error": "invalid_grant"}', 400)
with pytest.raises(stripe.oauth_error.InvalidGrantError):
requestor.request("get", self.valid_path, {})
def test_extract_error_from_stream_request_for_bytes(
self, requestor, mock_streaming_response
):
mock_streaming_response(
util.io.BytesIO(b'{"error": "invalid_grant"}'), 400
)
with pytest.raises(stripe.oauth_error.InvalidGrantError):
requestor.request_stream("get", self.valid_path, {})
def test_extract_error_from_stream_request_for_response(
self, requestor, mock_streaming_response
):
# Responses don't have getvalue, they only have a read method.
mock_streaming_response(
urllib3.response.HTTPResponse(
body=util.io.BytesIO(b'{"error": "invalid_grant"}'),
preload_content=False,
),
400,
)
with pytest.raises(stripe.oauth_error.InvalidGrantError):
requestor.request_stream("get", self.valid_path, {})
def test_raw_request_with_file_param(self, requestor, mock_response):
test_file = tempfile.NamedTemporaryFile()
test_file.write("\u263A".encode("utf-16"))
test_file.seek(0)
params = {"file": test_file, "purpose": "dispute_evidence"}
supplied_headers = {"Content-Type": "multipart/form-data"}
mock_response("{}", 200)
requestor.request("post", "/v1/files", params, supplied_headers)
class TestDefaultClient(object):
@pytest.fixture(autouse=True)
def setup_stripe(self):
orig_attrs = {
"api_key": stripe.api_key,
"default_http_client": stripe.default_http_client,
}
stripe.api_key = "sk_test_123"
yield
stripe.api_key = orig_attrs["api_key"]
stripe.default_http_client = orig_attrs["default_http_client"]
def test_default_http_client_called(self, mocker):
hc = mocker.Mock(stripe.http_client.HTTPClient)
hc._verify_ssl_certs = True
hc.name = "mockclient"
hc.request_with_retries = mocker.Mock(return_value=("{}", 200, {}))
stripe.default_http_client = hc
stripe.Charge.list(limit=3)
hc.request_with_retries.assert_called_with(
"get",
"https://api.stripe.com/v1/charges?limit=3",
mocker.ANY,
None,
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/test_error.py 0000644 0001751 0000171 00000006106 14335240430 016326 0 ustar 00runner docker # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from stripe import six, error
class TestStripeError(object):
def test_formatting(self):
err = error.StripeError(u"öre")
assert six.text_type(err) == u"öre"
if six.PY2:
assert str(err) == "\xc3\xb6re"
else:
assert str(err) == u"öre"
def test_formatting_with_request_id(self):
err = error.StripeError(u"öre", headers={"request-id": "123"})
assert six.text_type(err) == u"Request 123: öre"
if six.PY2:
assert str(err) == "Request 123: \xc3\xb6re"
else:
assert str(err) == u"Request 123: öre"
def test_formatting_with_none(self):
err = error.StripeError(None, headers={"request-id": "123"})
assert six.text_type(err) == u"Request 123: "
if six.PY2:
assert str(err) == "Request 123: "
else:
assert str(err) == "Request 123: "
def test_formatting_with_message_none_and_request_id_none(self):
err = error.StripeError(None)
assert six.text_type(err) == u""
if six.PY2:
assert str(err) == ""
else:
assert str(err) == u""
def test_repr(self):
err = error.StripeError(u"öre", headers={"request-id": "123"})
if six.PY2:
assert (
repr(err)
== "StripeError(message=u'\\xf6re', http_status=None, "
"request_id='123')"
)
else:
assert (
repr(err) == "StripeError(message='öre', http_status=None, "
"request_id='123')"
)
def test_error_object(self):
err = error.StripeError(
"message", json_body={"error": {"code": "some_error"}}
)
assert err.error is not None
assert err.error.code == "some_error"
assert err.error.charge is None
def test_error_object_not_dict(self):
err = error.StripeError("message", json_body={"error": "not a dict"})
assert err.error is None
class TestStripeErrorWithParamCode(object):
def test_repr(self):
err = error.CardError(
u"öre",
param="cparam",
code="ccode",
http_status=403,
headers={"request-id": "123"},
)
if six.PY2:
assert (
repr(err) == "CardError(message=u'\\xf6re', param='cparam', "
"code='ccode', http_status=403, request_id='123')"
)
else:
assert (
repr(err)
== "CardError(message='öre', param='cparam', code='ccode', "
"http_status=403, request_id='123')"
)
class TestApiConnectionError(object):
def test_default_no_retry(self):
err = error.APIConnectionError("msg")
assert err.should_retry is False
err = error.APIConnectionError("msg", should_retry=True)
assert err.should_retry
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/test_generated_examples.py 0000644 0001751 0000171 00000263365 14335240430 021045 0 ustar 00runner docker # File generated from our OpenAPI spec
from __future__ import absolute_import, division, print_function
import stripe
class TestGeneratedExamples(object):
def test_apps_secret_list(self, request_mock):
stripe.apps.Secret.list(scope={"type": "account"}, limit=2)
request_mock.assert_requested("get", "/v1/apps/secrets")
def test_apps_secret_create(self, request_mock):
stripe.apps.Secret.create(
name="sec_123",
payload="very secret string",
scope={"type": "account"},
)
request_mock.assert_requested("post", "/v1/apps/secrets")
def test_apps_secret_delete_where(self, request_mock):
stripe.apps.Secret.delete_where(
name="my-api-key",
scope={"type": "account"},
)
request_mock.assert_requested("post", "/v1/apps/secrets/delete")
def test_apps_secret_find(self, request_mock):
stripe.apps.Secret.find(name="sec_123", scope={"type": "account"})
request_mock.assert_requested("get", "/v1/apps/secrets/find")
def test_checkout_session_create(self, request_mock):
stripe.checkout.Session.create(
success_url="https://example.com/success",
cancel_url="https://example.com/cancel",
mode="payment",
shipping_options=[
{"shipping_rate": "shr_standard"},
{
"shipping_rate_data": {
"display_name": "Standard",
"delivery_estimate": {
"minimum": {"unit": "day", "value": 5},
"maximum": {"unit": "day", "value": 7},
},
},
},
],
)
request_mock.assert_requested("post", "/v1/checkout/sessions")
def test_checkout_session_expire(self, request_mock):
stripe.checkout.Session.expire("sess_xyz")
request_mock.assert_requested(
"post",
"/v1/checkout/sessions/sess_xyz/expire",
)
def test_checkout_session_list_line_items(self, request_mock):
stripe.checkout.Session.list_line_items("sess_xyz")
request_mock.assert_requested(
"get",
"/v1/checkout/sessions/sess_xyz/line_items",
)
def test_customer_cashbalance_retrieve(self, request_mock):
stripe.Customer.retrieve_cash_balance("cus_123")
request_mock.assert_requested(
"get", "/v1/customers/cus_123/cash_balance"
)
def test_customer_cashbalance_update(self, request_mock):
stripe.Customer.modify_cash_balance(
"cus_123",
settings={"reconciliation_mode": "manual"},
)
request_mock.assert_requested(
"post", "/v1/customers/cus_123/cash_balance"
)
def test_customer_create_funding_instructions(self, request_mock):
stripe.Customer.create_funding_instructions(
"cus_123",
bank_transfer={
"requested_address_types": ["zengin"],
"type": "jp_bank_transfer",
},
currency="usd",
funding_type="bank_transfer",
)
request_mock.assert_requested(
"post",
"/v1/customers/cus_123/funding_instructions",
)
def test_customer_list_payment_methods(self, request_mock):
stripe.Customer.list_payment_methods("cus_xyz", type="card")
request_mock.assert_requested(
"get",
"/v1/customers/cus_xyz/payment_methods",
)
def test_financial_connections_account_list(self, request_mock):
stripe.financial_connections.Account.list()
request_mock.assert_requested(
"get", "/v1/financial_connections/accounts"
)
def test_financial_connections_account_retrieve(self, request_mock):
stripe.financial_connections.Account.retrieve("fca_xyz")
request_mock.assert_requested(
"get",
"/v1/financial_connections/accounts/fca_xyz",
)
def test_financial_connections_account_disconnect(self, request_mock):
stripe.financial_connections.Account.disconnect("fca_xyz")
request_mock.assert_requested(
"post",
"/v1/financial_connections/accounts/fca_xyz/disconnect",
)
def test_financial_connections_account_list_owners(self, request_mock):
stripe.financial_connections.Account.list_owners(
"fca_xyz",
ownership="fcaowns_xyz",
)
request_mock.assert_requested(
"get",
"/v1/financial_connections/accounts/fca_xyz/owners",
)
def test_financial_connections_account_refresh_account(self, request_mock):
stripe.financial_connections.Account.refresh_account(
"fca_xyz",
features=["balance"],
)
request_mock.assert_requested(
"post",
"/v1/financial_connections/accounts/fca_xyz/refresh",
)
def test_financial_connections_session_create(self, request_mock):
stripe.financial_connections.Session.create(
account_holder={"type": "customer", "customer": "cus_123"},
permissions=["balances"],
)
request_mock.assert_requested(
"post", "/v1/financial_connections/sessions"
)
def test_financial_connections_session_retrieve(self, request_mock):
stripe.financial_connections.Session.retrieve("fcsess_xyz")
request_mock.assert_requested(
"get",
"/v1/financial_connections/sessions/fcsess_xyz",
)
def test_invoice_upcoming(self, request_mock):
stripe.Invoice.upcoming(customer="cus_9utnxg47pWjV1e")
request_mock.assert_requested("get", "/v1/invoices/upcoming")
def test_paymentintent_create(self, request_mock):
stripe.PaymentIntent.create(
amount=1099,
currency="eur",
automatic_payment_methods={"enabled": True},
)
request_mock.assert_requested("post", "/v1/payment_intents")
def test_paymentintent_verify_microdeposits(self, request_mock):
stripe.PaymentIntent.verify_microdeposits("pi_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/payment_intents/pi_xxxxxxxxxxxxx/verify_microdeposits",
)
def test_paymentlink_create(self, request_mock):
stripe.PaymentLink.create(
line_items=[{"price": "price_xxxxxxxxxxxxx", "quantity": 1}],
)
request_mock.assert_requested("post", "/v1/payment_links")
def test_paymentlink_retrieve(self, request_mock):
stripe.PaymentLink.retrieve("pl_xyz")
request_mock.assert_requested("get", "/v1/payment_links/pl_xyz")
def test_paymentlink_list_line_items(self, request_mock):
stripe.PaymentLink.list_line_items("pl_xyz")
request_mock.assert_requested(
"get", "/v1/payment_links/pl_xyz/line_items"
)
def test_price_create(self, request_mock):
stripe.Price.create(
unit_amount=2000,
currency="usd",
currency_options={
"uah": {"unit_amount": 5000},
"eur": {"unit_amount": 1800},
},
recurring={"interval": "month"},
product="prod_xxxxxxxxxxxxx",
)
request_mock.assert_requested("post", "/v1/prices")
def test_setupattempt_list(self, request_mock):
stripe.SetupAttempt.list(limit=3, setup_intent="si_xyz")
request_mock.assert_requested("get", "/v1/setup_attempts")
def test_setupintent_verify_microdeposits(self, request_mock):
stripe.SetupIntent.verify_microdeposits("seti_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/setup_intents/seti_xxxxxxxxxxxxx/verify_microdeposits",
)
def test_shippingrate_list(self, request_mock):
stripe.ShippingRate.list()
request_mock.assert_requested("get", "/v1/shipping_rates")
def test_shippingrate_create(self, request_mock):
stripe.ShippingRate.create(
display_name="Sample Shipper",
fixed_amount={"currency": "usd", "amount": 400},
type="fixed_amount",
)
request_mock.assert_requested("post", "/v1/shipping_rates")
def test_terminal_configuration_list(self, request_mock):
stripe.terminal.Configuration.list()
request_mock.assert_requested("get", "/v1/terminal/configurations")
def test_terminal_configuration_create(self, request_mock):
stripe.terminal.Configuration.create()
request_mock.assert_requested("post", "/v1/terminal/configurations")
def test_terminal_configuration_delete(self, request_mock):
stripe.terminal.Configuration.delete("uc_123")
request_mock.assert_requested(
"delete",
"/v1/terminal/configurations/uc_123",
)
def test_terminal_configuration_retrieve(self, request_mock):
stripe.terminal.Configuration.retrieve("uc_123")
request_mock.assert_requested(
"get", "/v1/terminal/configurations/uc_123"
)
def test_terminal_configuration_update(self, request_mock):
stripe.terminal.Configuration.modify(
"uc_123",
tipping={"usd": {"fixed_amounts": [10]}},
)
request_mock.assert_requested(
"post", "/v1/terminal/configurations/uc_123"
)
def test_customer_fund_cash_balance(self, request_mock):
stripe.Customer.TestHelpers.fund_cash_balance(
"cus_123",
amount=30,
currency="eur",
)
request_mock.assert_requested(
"post",
"/v1/test_helpers/customers/cus_123/fund_cash_balance",
)
def test_issuing_card_deliver_card(self, request_mock):
stripe.issuing.Card.TestHelpers.deliver_card("card_123")
request_mock.assert_requested(
"post",
"/v1/test_helpers/issuing/cards/card_123/shipping/deliver",
)
def test_issuing_card_fail_card(self, request_mock):
stripe.issuing.Card.TestHelpers.fail_card("card_123")
request_mock.assert_requested(
"post",
"/v1/test_helpers/issuing/cards/card_123/shipping/fail",
)
def test_issuing_card_return_card(self, request_mock):
stripe.issuing.Card.TestHelpers.return_card("card_123")
request_mock.assert_requested(
"post",
"/v1/test_helpers/issuing/cards/card_123/shipping/return",
)
def test_issuing_card_ship_card(self, request_mock):
stripe.issuing.Card.TestHelpers.ship_card("card_123")
request_mock.assert_requested(
"post",
"/v1/test_helpers/issuing/cards/card_123/shipping/ship",
)
def test_refund_expire(self, request_mock):
stripe.Refund.TestHelpers.expire("re_123")
request_mock.assert_requested(
"post",
"/v1/test_helpers/refunds/re_123/expire",
)
def test_test_helpers_testclock_list(self, request_mock):
stripe.test_helpers.TestClock.list()
request_mock.assert_requested("get", "/v1/test_helpers/test_clocks")
def test_test_helpers_testclock_create(self, request_mock):
stripe.test_helpers.TestClock.create(frozen_time=123, name="cogsworth")
request_mock.assert_requested("post", "/v1/test_helpers/test_clocks")
def test_test_helpers_testclock_delete(self, request_mock):
stripe.test_helpers.TestClock.delete("clock_xyz")
request_mock.assert_requested(
"delete",
"/v1/test_helpers/test_clocks/clock_xyz",
)
def test_test_helpers_testclock_retrieve(self, request_mock):
stripe.test_helpers.TestClock.retrieve("clock_xyz")
request_mock.assert_requested(
"get",
"/v1/test_helpers/test_clocks/clock_xyz",
)
def test_test_helpers_testclock_advance(self, request_mock):
stripe.test_helpers.TestClock.advance("clock_xyz", frozen_time=142)
request_mock.assert_requested(
"post",
"/v1/test_helpers/test_clocks/clock_xyz/advance",
)
def test_treasury_inboundtransfer_fail(self, request_mock):
stripe.treasury.InboundTransfer.TestHelpers.fail(
"ibt_123",
failure_details={"code": "account_closed"},
)
request_mock.assert_requested(
"post",
"/v1/test_helpers/treasury/inbound_transfers/ibt_123/fail",
)
def test_treasury_inboundtransfer_return_inbound_transfer(
self, request_mock
):
stripe.treasury.InboundTransfer.TestHelpers.return_inbound_transfer(
"ibt_123",
)
request_mock.assert_requested(
"post",
"/v1/test_helpers/treasury/inbound_transfers/ibt_123/return",
)
def test_treasury_inboundtransfer_succeed(self, request_mock):
stripe.treasury.InboundTransfer.TestHelpers.succeed("ibt_123")
request_mock.assert_requested(
"post",
"/v1/test_helpers/treasury/inbound_transfers/ibt_123/succeed",
)
def test_treasury_outboundtransfer_fail(self, request_mock):
stripe.treasury.OutboundTransfer.TestHelpers.fail("obt_123")
request_mock.assert_requested(
"post",
"/v1/test_helpers/treasury/outbound_transfers/obt_123/fail",
)
def test_treasury_outboundtransfer_post(self, request_mock):
stripe.treasury.OutboundTransfer.TestHelpers.post("obt_123")
request_mock.assert_requested(
"post",
"/v1/test_helpers/treasury/outbound_transfers/obt_123/post",
)
def test_treasury_outboundtransfer_return_outbound_transfer(
self, request_mock
):
stripe.treasury.OutboundTransfer.TestHelpers.return_outbound_transfer(
"obt_123",
returned_details={"code": "account_closed"},
)
request_mock.assert_requested(
"post",
"/v1/test_helpers/treasury/outbound_transfers/obt_123/return",
)
def test_treasury_receivedcredit_create(self, request_mock):
stripe.treasury.ReceivedCredit.TestHelpers.create(
financial_account="fa_123",
network="ach",
amount=1234,
currency="usd",
)
request_mock.assert_requested(
"post",
"/v1/test_helpers/treasury/received_credits",
)
def test_treasury_receiveddebit_create(self, request_mock):
stripe.treasury.ReceivedDebit.TestHelpers.create(
financial_account="fa_123",
network="ach",
amount=1234,
currency="usd",
)
request_mock.assert_requested(
"post",
"/v1/test_helpers/treasury/received_debits",
)
def test_token_create(self, request_mock):
stripe.Token.create(
card={
"number": "4242424242424242",
"exp_month": "5",
"exp_year": "2023",
"cvc": "314",
},
)
request_mock.assert_requested("post", "/v1/tokens")
def test_accountlink_create(self, request_mock):
stripe.AccountLink.create(
account="acct_xxxxxxxxxxxxx",
refresh_url="https://example.com/reauth",
return_url="https://example.com/return",
type="account_onboarding",
)
request_mock.assert_requested("post", "/v1/account_links")
def test_account_list(self, request_mock):
stripe.Account.list(limit=3)
request_mock.assert_requested("get", "/v1/accounts")
def test_account_create(self, request_mock):
stripe.Account.create(
type="custom",
country="US",
email="jenny.rosen@example.com",
capabilities={
"card_payments": {"requested": True},
"transfers": {"requested": True},
},
)
request_mock.assert_requested("post", "/v1/accounts")
def test_account_delete(self, request_mock):
stripe.Account.delete("acct_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete", "/v1/accounts/acct_xxxxxxxxxxxxx"
)
def test_account_retrieve(self, request_mock):
stripe.Account.retrieve("acct_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/accounts/acct_xxxxxxxxxxxxx")
def test_account_update(self, request_mock):
stripe.Account.modify(
"acct_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested(
"post", "/v1/accounts/acct_xxxxxxxxxxxxx"
)
def test_account_reject(self, request_mock):
stripe.Account.reject("acct_xxxxxxxxxxxxx", reason="fraud")
request_mock.assert_requested(
"post",
"/v1/accounts/acct_xxxxxxxxxxxxx/reject",
)
def test_account_capability_retrieve(self, request_mock):
stripe.Account.retrieve_capability(
"acct_xxxxxxxxxxxxx", "card_payments"
)
request_mock.assert_requested(
"get",
"/v1/accounts/acct_xxxxxxxxxxxxx/capabilities/card_payments",
)
def test_account_capability_update(self, request_mock):
stripe.Account.modify_capability(
"acct_xxxxxxxxxxxxx",
"card_payments",
requested=True,
)
request_mock.assert_requested(
"post",
"/v1/accounts/acct_xxxxxxxxxxxxx/capabilities/card_payments",
)
def test_account_person_retrieve(self, request_mock):
stripe.Account.retrieve_person(
"acct_xxxxxxxxxxxxx", "person_xxxxxxxxxxxxx"
)
request_mock.assert_requested(
"get",
"/v1/accounts/acct_xxxxxxxxxxxxx/persons/person_xxxxxxxxxxxxx",
)
def test_account_person_update(self, request_mock):
stripe.Account.modify_person(
"acct_xxxxxxxxxxxxx",
"person_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/accounts/acct_xxxxxxxxxxxxx/persons/person_xxxxxxxxxxxxx",
)
def test_applicationfee_list(self, request_mock):
stripe.ApplicationFee.list(limit=3)
request_mock.assert_requested("get", "/v1/application_fees")
def test_applicationfee_retrieve(self, request_mock):
stripe.ApplicationFee.retrieve("fee_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/application_fees/fee_xxxxxxxxxxxxx",
)
def test_applicationfee_feerefund_retrieve(self, request_mock):
stripe.ApplicationFee.retrieve_refund(
"fee_xxxxxxxxxxxxx",
"fr_xxxxxxxxxxxxx",
)
request_mock.assert_requested(
"get",
"/v1/application_fees/fee_xxxxxxxxxxxxx/refunds/fr_xxxxxxxxxxxxx",
)
def test_applicationfee_feerefund_update(self, request_mock):
stripe.ApplicationFee.modify_refund(
"fee_xxxxxxxxxxxxx",
"fr_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/application_fees/fee_xxxxxxxxxxxxx/refunds/fr_xxxxxxxxxxxxx",
)
def test_apps_secret_create2(self, request_mock):
stripe.apps.Secret.create(
name="my-api-key",
payload="secret_key_xxxxxx",
scope={"type": "account"},
)
request_mock.assert_requested("post", "/v1/apps/secrets")
def test_balancetransaction_list(self, request_mock):
stripe.BalanceTransaction.list(limit=3)
request_mock.assert_requested("get", "/v1/balance_transactions")
def test_balancetransaction_retrieve(self, request_mock):
stripe.BalanceTransaction.retrieve("txn_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/balance_transactions/txn_xxxxxxxxxxxxx",
)
def test_billing_portal_configuration_list(self, request_mock):
stripe.billing_portal.Configuration.list(limit=3)
request_mock.assert_requested(
"get", "/v1/billing_portal/configurations"
)
def test_billing_portal_configuration_create(self, request_mock):
stripe.billing_portal.Configuration.create(
features={
"customer_update": {
"allowed_updates": ["email", "tax_id"],
"enabled": True,
},
"invoice_history": {"enabled": True},
},
business_profile={
"privacy_policy_url": "https://example.com/privacy",
"terms_of_service_url": "https://example.com/terms",
},
)
request_mock.assert_requested(
"post", "/v1/billing_portal/configurations"
)
def test_billing_portal_configuration_retrieve(self, request_mock):
stripe.billing_portal.Configuration.retrieve("bpc_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/billing_portal/configurations/bpc_xxxxxxxxxxxxx",
)
def test_billing_portal_configuration_update(self, request_mock):
stripe.billing_portal.Configuration.modify(
"bpc_xxxxxxxxxxxxx",
business_profile={
"privacy_policy_url": "https://example.com/privacy",
"terms_of_service_url": "https://example.com/terms",
},
)
request_mock.assert_requested(
"post",
"/v1/billing_portal/configurations/bpc_xxxxxxxxxxxxx",
)
def test_billing_portal_session_create(self, request_mock):
stripe.billing_portal.Session.create(
customer="cus_xxxxxxxxxxxxx",
return_url="https://example.com/account",
)
request_mock.assert_requested("post", "/v1/billing_portal/sessions")
def test_charge_list(self, request_mock):
stripe.Charge.list(limit=3)
request_mock.assert_requested("get", "/v1/charges")
def test_charge_create(self, request_mock):
stripe.Charge.create(
amount=2000,
currency="usd",
source="tok_xxxx",
description="My First Test Charge (created for API docs)",
)
request_mock.assert_requested("post", "/v1/charges")
def test_charge_retrieve(self, request_mock):
stripe.Charge.retrieve("ch_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/charges/ch_xxxxxxxxxxxxx")
def test_charge_update(self, request_mock):
stripe.Charge.modify("ch_xxxxxxxxxxxxx", metadata={"order_id": "6735"})
request_mock.assert_requested("post", "/v1/charges/ch_xxxxxxxxxxxxx")
def test_charge_capture(self, request_mock):
stripe.Charge.capture("ch_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/charges/ch_xxxxxxxxxxxxx/capture",
)
def test_charge_search(self, request_mock):
stripe.Charge.search(
query="amount>999 AND metadata['order_id']:'6735'"
)
request_mock.assert_requested("get", "/v1/charges/search")
def test_checkout_session_list(self, request_mock):
stripe.checkout.Session.list(limit=3)
request_mock.assert_requested("get", "/v1/checkout/sessions")
def test_checkout_session_create2(self, request_mock):
stripe.checkout.Session.create(
success_url="https://example.com/success",
cancel_url="https://example.com/cancel",
line_items=[{"price": "price_xxxxxxxxxxxxx", "quantity": 2}],
mode="payment",
)
request_mock.assert_requested("post", "/v1/checkout/sessions")
def test_checkout_session_retrieve(self, request_mock):
stripe.checkout.Session.retrieve("cs_test_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/checkout/sessions/cs_test_xxxxxxxxxxxxx",
)
def test_checkout_session_expire2(self, request_mock):
stripe.checkout.Session.expire("cs_test_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/checkout/sessions/cs_test_xxxxxxxxxxxxx/expire",
)
def test_countryspec_list(self, request_mock):
stripe.CountrySpec.list(limit=3)
request_mock.assert_requested("get", "/v1/country_specs")
def test_countryspec_retrieve(self, request_mock):
stripe.CountrySpec.retrieve("US")
request_mock.assert_requested("get", "/v1/country_specs/US")
def test_coupon_list(self, request_mock):
stripe.Coupon.list(limit=3)
request_mock.assert_requested("get", "/v1/coupons")
def test_coupon_create(self, request_mock):
stripe.Coupon.create(
percent_off=25.5,
duration="repeating",
duration_in_months=3,
)
request_mock.assert_requested("post", "/v1/coupons")
def test_coupon_delete(self, request_mock):
stripe.Coupon.delete("Z4OV52SU")
request_mock.assert_requested("delete", "/v1/coupons/Z4OV52SU")
def test_coupon_retrieve(self, request_mock):
stripe.Coupon.retrieve("Z4OV52SU")
request_mock.assert_requested("get", "/v1/coupons/Z4OV52SU")
def test_coupon_update(self, request_mock):
stripe.Coupon.modify("Z4OV52SU", metadata={"order_id": "6735"})
request_mock.assert_requested("post", "/v1/coupons/Z4OV52SU")
def test_creditnote_list(self, request_mock):
stripe.CreditNote.list(limit=3)
request_mock.assert_requested("get", "/v1/credit_notes")
def test_creditnote_create(self, request_mock):
stripe.CreditNote.create(
invoice="in_xxxxxxxxxxxxx",
lines=[
{
"type": "invoice_line_item",
"invoice_line_item": "il_xxxxxxxxxxxxx",
"quantity": 1,
},
],
)
request_mock.assert_requested("post", "/v1/credit_notes")
def test_creditnote_void_credit_note(self, request_mock):
stripe.CreditNote.void_credit_note("cn_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/credit_notes/cn_xxxxxxxxxxxxx/void",
)
def test_creditnote_preview(self, request_mock):
stripe.CreditNote.preview(
invoice="in_xxxxxxxxxxxxx",
lines=[
{
"type": "invoice_line_item",
"invoice_line_item": "il_xxxxxxxxxxxxx",
"quantity": 1,
},
],
)
request_mock.assert_requested("get", "/v1/credit_notes/preview")
def test_customer_list(self, request_mock):
stripe.Customer.list(limit=3)
request_mock.assert_requested("get", "/v1/customers")
def test_customer_list2(self, request_mock):
stripe.Customer.list(limit=3)
request_mock.assert_requested("get", "/v1/customers")
def test_customer_create(self, request_mock):
stripe.Customer.create(
description="My First Test Customer (created for API docs)",
)
request_mock.assert_requested("post", "/v1/customers")
def test_customer_delete(self, request_mock):
stripe.Customer.delete("cus_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete", "/v1/customers/cus_xxxxxxxxxxxxx"
)
def test_customer_retrieve(self, request_mock):
stripe.Customer.retrieve("cus_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/customers/cus_xxxxxxxxxxxxx")
def test_customer_update(self, request_mock):
stripe.Customer.modify(
"cus_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested(
"post", "/v1/customers/cus_xxxxxxxxxxxxx"
)
def test_customer_customerbalancetransaction_retrieve(self, request_mock):
stripe.Customer.retrieve_balance_transaction(
"cus_xxxxxxxxxxxxx",
"cbtxn_xxxxxxxxxxxxx",
)
request_mock.assert_requested(
"get",
"/v1/customers/cus_xxxxxxxxxxxxx/balance_transactions/cbtxn_xxxxxxxxxxxxx",
)
def test_customer_list_payment_methods2(self, request_mock):
stripe.Customer.list_payment_methods("cus_xxxxxxxxxxxxx", type="card")
request_mock.assert_requested(
"get",
"/v1/customers/cus_xxxxxxxxxxxxx/payment_methods",
)
def test_customer_taxid_retrieve(self, request_mock):
stripe.Customer.retrieve_tax_id(
"cus_xxxxxxxxxxxxx", "txi_xxxxxxxxxxxxx"
)
request_mock.assert_requested(
"get",
"/v1/customers/cus_xxxxxxxxxxxxx/tax_ids/txi_xxxxxxxxxxxxx",
)
def test_customer_search(self, request_mock):
stripe.Customer.search(
query="name:'fakename' AND metadata['foo']:'bar'"
)
request_mock.assert_requested("get", "/v1/customers/search")
def test_customer_search2(self, request_mock):
stripe.Customer.search(
query="name:'fakename' AND metadata['foo']:'bar'"
)
request_mock.assert_requested("get", "/v1/customers/search")
def test_dispute_list(self, request_mock):
stripe.Dispute.list(limit=3)
request_mock.assert_requested("get", "/v1/disputes")
def test_dispute_retrieve(self, request_mock):
stripe.Dispute.retrieve("dp_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/disputes/dp_xxxxxxxxxxxxx")
def test_dispute_update(self, request_mock):
stripe.Dispute.modify(
"dp_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested("post", "/v1/disputes/dp_xxxxxxxxxxxxx")
def test_dispute_close(self, request_mock):
stripe.Dispute.close("dp_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post", "/v1/disputes/dp_xxxxxxxxxxxxx/close"
)
def test_event_list(self, request_mock):
stripe.Event.list(limit=3)
request_mock.assert_requested("get", "/v1/events")
def test_event_retrieve(self, request_mock):
stripe.Event.retrieve("evt_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/events/evt_xxxxxxxxxxxxx")
def test_filelink_list(self, request_mock):
stripe.FileLink.list(limit=3)
request_mock.assert_requested("get", "/v1/file_links")
def test_filelink_create(self, request_mock):
stripe.FileLink.create(file="file_xxxxxxxxxxxxx")
request_mock.assert_requested("post", "/v1/file_links")
def test_filelink_retrieve(self, request_mock):
stripe.FileLink.retrieve("link_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get", "/v1/file_links/link_xxxxxxxxxxxxx"
)
def test_filelink_update(self, request_mock):
stripe.FileLink.modify(
"link_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested(
"post", "/v1/file_links/link_xxxxxxxxxxxxx"
)
def test_file_list(self, request_mock):
stripe.File.list(limit=3)
request_mock.assert_requested("get", "/v1/files")
def test_file_retrieve(self, request_mock):
stripe.File.retrieve("file_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/files/file_xxxxxxxxxxxxx")
def test_financial_connections_account_list2(self, request_mock):
stripe.financial_connections.Account.list(
account_holder={"customer": "cus_xxxxxxxxxxxxx"},
)
request_mock.assert_requested(
"get", "/v1/financial_connections/accounts"
)
def test_financial_connections_account_retrieve2(self, request_mock):
stripe.financial_connections.Account.retrieve("fca_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/financial_connections/accounts/fca_xxxxxxxxxxxxx",
)
def test_financial_connections_account_list_owners2(self, request_mock):
stripe.financial_connections.Account.list_owners(
"fca_xxxxxxxxxxxxx",
limit=3,
ownership="fcaowns_xxxxxxxxxxxxx",
)
request_mock.assert_requested(
"get",
"/v1/financial_connections/accounts/fca_xxxxxxxxxxxxx/owners",
)
def test_financial_connections_session_create2(self, request_mock):
stripe.financial_connections.Session.create(
account_holder={
"type": "customer",
"customer": "cus_xxxxxxxxxxxxx",
},
permissions=["payment_method", "balances"],
filters={"countries": ["US"]},
)
request_mock.assert_requested(
"post", "/v1/financial_connections/sessions"
)
def test_financial_connections_session_retrieve2(self, request_mock):
stripe.financial_connections.Session.retrieve("fcsess_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/financial_connections/sessions/fcsess_xxxxxxxxxxxxx",
)
def test_identity_verificationreport_list(self, request_mock):
stripe.identity.VerificationReport.list(limit=3)
request_mock.assert_requested(
"get", "/v1/identity/verification_reports"
)
def test_identity_verificationreport_retrieve(self, request_mock):
stripe.identity.VerificationReport.retrieve("vr_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/identity/verification_reports/vr_xxxxxxxxxxxxx",
)
def test_identity_verificationsession_list(self, request_mock):
stripe.identity.VerificationSession.list(limit=3)
request_mock.assert_requested(
"get", "/v1/identity/verification_sessions"
)
def test_identity_verificationsession_create(self, request_mock):
stripe.identity.VerificationSession.create(type="document")
request_mock.assert_requested(
"post", "/v1/identity/verification_sessions"
)
def test_identity_verificationsession_retrieve(self, request_mock):
stripe.identity.VerificationSession.retrieve("vs_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/identity/verification_sessions/vs_xxxxxxxxxxxxx",
)
def test_identity_verificationsession_update(self, request_mock):
stripe.identity.VerificationSession.modify(
"vs_xxxxxxxxxxxxx",
type="id_number",
)
request_mock.assert_requested(
"post",
"/v1/identity/verification_sessions/vs_xxxxxxxxxxxxx",
)
def test_identity_verificationsession_cancel(self, request_mock):
stripe.identity.VerificationSession.cancel("vs_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/identity/verification_sessions/vs_xxxxxxxxxxxxx/cancel",
)
def test_identity_verificationsession_redact(self, request_mock):
stripe.identity.VerificationSession.redact("vs_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/identity/verification_sessions/vs_xxxxxxxxxxxxx/redact",
)
def test_invoiceitem_list(self, request_mock):
stripe.InvoiceItem.list(limit=3)
request_mock.assert_requested("get", "/v1/invoiceitems")
def test_invoiceitem_create(self, request_mock):
stripe.InvoiceItem.create(
customer="cus_xxxxxxxxxxxxx",
price="price_xxxxxxxxxxxxx",
)
request_mock.assert_requested("post", "/v1/invoiceitems")
def test_invoiceitem_delete(self, request_mock):
stripe.InvoiceItem.delete("ii_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete", "/v1/invoiceitems/ii_xxxxxxxxxxxxx"
)
def test_invoiceitem_retrieve(self, request_mock):
stripe.InvoiceItem.retrieve("ii_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get", "/v1/invoiceitems/ii_xxxxxxxxxxxxx"
)
def test_invoiceitem_update(self, request_mock):
stripe.InvoiceItem.modify(
"ii_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested(
"post", "/v1/invoiceitems/ii_xxxxxxxxxxxxx"
)
def test_invoice_list(self, request_mock):
stripe.Invoice.list(limit=3)
request_mock.assert_requested("get", "/v1/invoices")
def test_invoice_create(self, request_mock):
stripe.Invoice.create(customer="cus_xxxxxxxxxxxxx")
request_mock.assert_requested("post", "/v1/invoices")
def test_invoice_delete(self, request_mock):
stripe.Invoice.delete("in_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete", "/v1/invoices/in_xxxxxxxxxxxxx"
)
def test_invoice_retrieve(self, request_mock):
stripe.Invoice.retrieve("in_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/invoices/in_xxxxxxxxxxxxx")
def test_invoice_update(self, request_mock):
stripe.Invoice.modify(
"in_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested("post", "/v1/invoices/in_xxxxxxxxxxxxx")
def test_invoice_finalize_invoice(self, request_mock):
stripe.Invoice.finalize_invoice("in_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/invoices/in_xxxxxxxxxxxxx/finalize",
)
def test_invoice_mark_uncollectible(self, request_mock):
stripe.Invoice.mark_uncollectible("in_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/invoices/in_xxxxxxxxxxxxx/mark_uncollectible",
)
def test_invoice_pay(self, request_mock):
stripe.Invoice.pay("in_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post", "/v1/invoices/in_xxxxxxxxxxxxx/pay"
)
def test_invoice_send_invoice(self, request_mock):
stripe.Invoice.send_invoice("in_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post", "/v1/invoices/in_xxxxxxxxxxxxx/send"
)
def test_invoice_void_invoice(self, request_mock):
stripe.Invoice.void_invoice("in_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post", "/v1/invoices/in_xxxxxxxxxxxxx/void"
)
def test_invoice_search(self, request_mock):
stripe.Invoice.search(
query="total>999 AND metadata['order_id']:'6735'"
)
request_mock.assert_requested("get", "/v1/invoices/search")
def test_issuing_authorization_list(self, request_mock):
stripe.issuing.Authorization.list(limit=3)
request_mock.assert_requested("get", "/v1/issuing/authorizations")
def test_issuing_authorization_retrieve(self, request_mock):
stripe.issuing.Authorization.retrieve("iauth_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx",
)
def test_issuing_authorization_update(self, request_mock):
stripe.issuing.Authorization.modify(
"iauth_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx",
)
def test_issuing_authorization_approve(self, request_mock):
stripe.issuing.Authorization.approve("iauth_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx/approve",
)
def test_issuing_authorization_decline(self, request_mock):
stripe.issuing.Authorization.decline("iauth_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx/decline",
)
def test_issuing_cardholder_list(self, request_mock):
stripe.issuing.Cardholder.list(limit=3)
request_mock.assert_requested("get", "/v1/issuing/cardholders")
def test_issuing_cardholder_create(self, request_mock):
stripe.issuing.Cardholder.create(
type="individual",
name="Jenny Rosen",
email="jenny.rosen@example.com",
phone_number="+18888675309",
billing={
"address": {
"line1": "1234 Main Street",
"city": "San Francisco",
"state": "CA",
"country": "US",
"postal_code": "94111",
},
},
)
request_mock.assert_requested("post", "/v1/issuing/cardholders")
def test_issuing_cardholder_retrieve(self, request_mock):
stripe.issuing.Cardholder.retrieve("ich_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/issuing/cardholders/ich_xxxxxxxxxxxxx",
)
def test_issuing_cardholder_update(self, request_mock):
stripe.issuing.Cardholder.modify(
"ich_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/issuing/cardholders/ich_xxxxxxxxxxxxx",
)
def test_issuing_card_list(self, request_mock):
stripe.issuing.Card.list(limit=3)
request_mock.assert_requested("get", "/v1/issuing/cards")
def test_issuing_card_create(self, request_mock):
stripe.issuing.Card.create(
cardholder="ich_xxxxxxxxxxxxx",
currency="usd",
type="virtual",
)
request_mock.assert_requested("post", "/v1/issuing/cards")
def test_issuing_card_retrieve(self, request_mock):
stripe.issuing.Card.retrieve("ic_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get", "/v1/issuing/cards/ic_xxxxxxxxxxxxx"
)
def test_issuing_card_update(self, request_mock):
stripe.issuing.Card.modify(
"ic_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post", "/v1/issuing/cards/ic_xxxxxxxxxxxxx"
)
def test_issuing_dispute_list(self, request_mock):
stripe.issuing.Dispute.list(limit=3)
request_mock.assert_requested("get", "/v1/issuing/disputes")
def test_issuing_dispute_create(self, request_mock):
stripe.issuing.Dispute.create(
transaction="ipi_xxxxxxxxxxxxx",
evidence={
"reason": "fraudulent",
"fraudulent": {"explanation": "Purchase was unrecognized."},
},
)
request_mock.assert_requested("post", "/v1/issuing/disputes")
def test_issuing_dispute_retrieve(self, request_mock):
stripe.issuing.Dispute.retrieve("idp_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/issuing/disputes/idp_xxxxxxxxxxxxx",
)
def test_issuing_dispute_submit(self, request_mock):
stripe.issuing.Dispute.submit("idp_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/issuing/disputes/idp_xxxxxxxxxxxxx/submit",
)
def test_issuing_transaction_list(self, request_mock):
stripe.issuing.Transaction.list(limit=3)
request_mock.assert_requested("get", "/v1/issuing/transactions")
def test_issuing_transaction_retrieve(self, request_mock):
stripe.issuing.Transaction.retrieve("ipi_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/issuing/transactions/ipi_xxxxxxxxxxxxx",
)
def test_issuing_transaction_update(self, request_mock):
stripe.issuing.Transaction.modify(
"ipi_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/issuing/transactions/ipi_xxxxxxxxxxxxx",
)
def test_mandate_retrieve(self, request_mock):
stripe.Mandate.retrieve("mandate_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get", "/v1/mandates/mandate_xxxxxxxxxxxxx"
)
def test_paymentintent_list(self, request_mock):
stripe.PaymentIntent.list(limit=3)
request_mock.assert_requested("get", "/v1/payment_intents")
def test_paymentintent_create2(self, request_mock):
stripe.PaymentIntent.create(
amount=2000,
currency="usd",
payment_method_types=["card"],
)
request_mock.assert_requested("post", "/v1/payment_intents")
def test_paymentintent_retrieve(self, request_mock):
stripe.PaymentIntent.retrieve("pi_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get", "/v1/payment_intents/pi_xxxxxxxxxxxxx"
)
def test_paymentintent_update(self, request_mock):
stripe.PaymentIntent.modify(
"pi_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/payment_intents/pi_xxxxxxxxxxxxx",
)
def test_paymentintent_apply_customer_balance(self, request_mock):
stripe.PaymentIntent.apply_customer_balance("pi_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/payment_intents/pi_xxxxxxxxxxxxx/apply_customer_balance",
)
def test_paymentintent_cancel(self, request_mock):
stripe.PaymentIntent.cancel("pi_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/payment_intents/pi_xxxxxxxxxxxxx/cancel",
)
def test_paymentintent_capture(self, request_mock):
stripe.PaymentIntent.capture("pi_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/payment_intents/pi_xxxxxxxxxxxxx/capture",
)
def test_paymentintent_confirm(self, request_mock):
stripe.PaymentIntent.confirm(
"pi_xxxxxxxxxxxxx",
payment_method="pm_card_visa",
)
request_mock.assert_requested(
"post",
"/v1/payment_intents/pi_xxxxxxxxxxxxx/confirm",
)
def test_paymentintent_increment_authorization(self, request_mock):
stripe.PaymentIntent.increment_authorization(
"pi_xxxxxxxxxxxxx",
amount=2099,
)
request_mock.assert_requested(
"post",
"/v1/payment_intents/pi_xxxxxxxxxxxxx/increment_authorization",
)
def test_paymentintent_search(self, request_mock):
stripe.PaymentIntent.search(
query="status:'succeeded' AND metadata['order_id']:'6735'",
)
request_mock.assert_requested("get", "/v1/payment_intents/search")
def test_paymentlink_list(self, request_mock):
stripe.PaymentLink.list(limit=3)
request_mock.assert_requested("get", "/v1/payment_links")
def test_paymentlink_create2(self, request_mock):
stripe.PaymentLink.create(
line_items=[{"price": "price_xxxxxxxxxxxxx", "quantity": 1}],
)
request_mock.assert_requested("post", "/v1/payment_links")
def test_paymentlink_retrieve2(self, request_mock):
stripe.PaymentLink.retrieve("plink_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/payment_links/plink_xxxxxxxxxxxxx",
)
def test_paymentlink_update(self, request_mock):
stripe.PaymentLink.modify("plink_xxxxxxxxxxxxx", active=False)
request_mock.assert_requested(
"post",
"/v1/payment_links/plink_xxxxxxxxxxxxx",
)
def test_paymentmethod_list(self, request_mock):
stripe.PaymentMethod.list(customer="cus_xxxxxxxxxxxxx", type="card")
request_mock.assert_requested("get", "/v1/payment_methods")
def test_paymentmethod_create(self, request_mock):
stripe.PaymentMethod.create(
type="card",
card={
"number": "4242424242424242",
"exp_month": 5,
"exp_year": 2023,
"cvc": "314",
},
)
request_mock.assert_requested("post", "/v1/payment_methods")
def test_paymentmethod_retrieve(self, request_mock):
stripe.PaymentMethod.retrieve("pm_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get", "/v1/payment_methods/pm_xxxxxxxxxxxxx"
)
def test_paymentmethod_update(self, request_mock):
stripe.PaymentMethod.modify(
"pm_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/payment_methods/pm_xxxxxxxxxxxxx",
)
def test_paymentmethod_attach(self, request_mock):
stripe.PaymentMethod.attach(
"pm_xxxxxxxxxxxxx",
customer="cus_xxxxxxxxxxxxx",
)
request_mock.assert_requested(
"post",
"/v1/payment_methods/pm_xxxxxxxxxxxxx/attach",
)
def test_paymentmethod_detach(self, request_mock):
stripe.PaymentMethod.detach("pm_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/payment_methods/pm_xxxxxxxxxxxxx/detach",
)
def test_payout_list(self, request_mock):
stripe.Payout.list(limit=3)
request_mock.assert_requested("get", "/v1/payouts")
def test_payout_create(self, request_mock):
stripe.Payout.create(amount=1100, currency="usd")
request_mock.assert_requested("post", "/v1/payouts")
def test_payout_retrieve(self, request_mock):
stripe.Payout.retrieve("po_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/payouts/po_xxxxxxxxxxxxx")
def test_payout_update(self, request_mock):
stripe.Payout.modify("po_xxxxxxxxxxxxx", metadata={"order_id": "6735"})
request_mock.assert_requested("post", "/v1/payouts/po_xxxxxxxxxxxxx")
def test_payout_cancel(self, request_mock):
stripe.Payout.cancel("po_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post", "/v1/payouts/po_xxxxxxxxxxxxx/cancel"
)
def test_payout_reverse(self, request_mock):
stripe.Payout.reverse("po_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/payouts/po_xxxxxxxxxxxxx/reverse",
)
def test_plan_list(self, request_mock):
stripe.Plan.list(limit=3)
request_mock.assert_requested("get", "/v1/plans")
def test_plan_create(self, request_mock):
stripe.Plan.create(
amount=2000,
currency="usd",
interval="month",
product="prod_xxxxxxxxxxxxx",
)
request_mock.assert_requested("post", "/v1/plans")
def test_plan_delete(self, request_mock):
stripe.Plan.delete("price_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete", "/v1/plans/price_xxxxxxxxxxxxx"
)
def test_plan_retrieve(self, request_mock):
stripe.Plan.retrieve("price_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/plans/price_xxxxxxxxxxxxx")
def test_plan_update(self, request_mock):
stripe.Plan.modify(
"price_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested("post", "/v1/plans/price_xxxxxxxxxxxxx")
def test_price_list(self, request_mock):
stripe.Price.list(limit=3)
request_mock.assert_requested("get", "/v1/prices")
def test_price_create2(self, request_mock):
stripe.Price.create(
unit_amount=2000,
currency="usd",
recurring={"interval": "month"},
product="prod_xxxxxxxxxxxxx",
)
request_mock.assert_requested("post", "/v1/prices")
def test_price_retrieve(self, request_mock):
stripe.Price.retrieve("price_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/prices/price_xxxxxxxxxxxxx")
def test_price_update(self, request_mock):
stripe.Price.modify(
"price_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested("post", "/v1/prices/price_xxxxxxxxxxxxx")
def test_price_search(self, request_mock):
stripe.Price.search(
query="active:'true' AND metadata['order_id']:'6735'"
)
request_mock.assert_requested("get", "/v1/prices/search")
def test_product_list(self, request_mock):
stripe.Product.list(limit=3)
request_mock.assert_requested("get", "/v1/products")
def test_product_create(self, request_mock):
stripe.Product.create(name="Gold Special")
request_mock.assert_requested("post", "/v1/products")
def test_product_delete(self, request_mock):
stripe.Product.delete("prod_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete", "/v1/products/prod_xxxxxxxxxxxxx"
)
def test_product_retrieve(self, request_mock):
stripe.Product.retrieve("prod_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/products/prod_xxxxxxxxxxxxx")
def test_product_update(self, request_mock):
stripe.Product.modify(
"prod_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested(
"post", "/v1/products/prod_xxxxxxxxxxxxx"
)
def test_product_search(self, request_mock):
stripe.Product.search(
query="active:'true' AND metadata['order_id']:'6735'"
)
request_mock.assert_requested("get", "/v1/products/search")
def test_promotioncode_list(self, request_mock):
stripe.PromotionCode.list(limit=3)
request_mock.assert_requested("get", "/v1/promotion_codes")
def test_promotioncode_create(self, request_mock):
stripe.PromotionCode.create(coupon="Z4OV52SU")
request_mock.assert_requested("post", "/v1/promotion_codes")
def test_promotioncode_retrieve(self, request_mock):
stripe.PromotionCode.retrieve("promo_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/promotion_codes/promo_xxxxxxxxxxxxx",
)
def test_promotioncode_update(self, request_mock):
stripe.PromotionCode.modify(
"promo_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/promotion_codes/promo_xxxxxxxxxxxxx",
)
def test_quote_list(self, request_mock):
stripe.Quote.list(limit=3)
request_mock.assert_requested("get", "/v1/quotes")
def test_quote_create(self, request_mock):
stripe.Quote.create(
customer="cus_xxxxxxxxxxxxx",
line_items=[{"price": "price_xxxxxxxxxxxxx", "quantity": 2}],
)
request_mock.assert_requested("post", "/v1/quotes")
def test_quote_retrieve(self, request_mock):
stripe.Quote.retrieve("qt_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/quotes/qt_xxxxxxxxxxxxx")
def test_quote_update(self, request_mock):
stripe.Quote.modify("qt_xxxxxxxxxxxxx", metadata={"order_id": "6735"})
request_mock.assert_requested("post", "/v1/quotes/qt_xxxxxxxxxxxxx")
def test_quote_accept(self, request_mock):
stripe.Quote.accept("qt_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post", "/v1/quotes/qt_xxxxxxxxxxxxx/accept"
)
def test_quote_cancel(self, request_mock):
stripe.Quote.cancel("qt_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post", "/v1/quotes/qt_xxxxxxxxxxxxx/cancel"
)
def test_quote_finalize_quote(self, request_mock):
stripe.Quote.finalize_quote("qt_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/quotes/qt_xxxxxxxxxxxxx/finalize",
)
def test_radar_earlyfraudwarning_list(self, request_mock):
stripe.radar.EarlyFraudWarning.list(limit=3)
request_mock.assert_requested("get", "/v1/radar/early_fraud_warnings")
def test_radar_earlyfraudwarning_retrieve(self, request_mock):
stripe.radar.EarlyFraudWarning.retrieve("issfr_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/radar/early_fraud_warnings/issfr_xxxxxxxxxxxxx",
)
def test_radar_valuelistitem_list(self, request_mock):
stripe.radar.ValueListItem.list(
limit=3, value_list="rsl_xxxxxxxxxxxxx"
)
request_mock.assert_requested("get", "/v1/radar/value_list_items")
def test_radar_valuelistitem_create(self, request_mock):
stripe.radar.ValueListItem.create(
value_list="rsl_xxxxxxxxxxxxx",
value="1.2.3.4",
)
request_mock.assert_requested("post", "/v1/radar/value_list_items")
def test_radar_valuelistitem_delete(self, request_mock):
stripe.radar.ValueListItem.delete("rsli_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete",
"/v1/radar/value_list_items/rsli_xxxxxxxxxxxxx",
)
def test_radar_valuelistitem_retrieve(self, request_mock):
stripe.radar.ValueListItem.retrieve("rsli_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/radar/value_list_items/rsli_xxxxxxxxxxxxx",
)
def test_radar_valuelist_list(self, request_mock):
stripe.radar.ValueList.list(limit=3)
request_mock.assert_requested("get", "/v1/radar/value_lists")
def test_radar_valuelist_create(self, request_mock):
stripe.radar.ValueList.create(
alias="custom_ip_xxxxxxxxxxxxx",
name="Custom IP Blocklist",
item_type="ip_address",
)
request_mock.assert_requested("post", "/v1/radar/value_lists")
def test_radar_valuelist_delete(self, request_mock):
stripe.radar.ValueList.delete("rsl_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete",
"/v1/radar/value_lists/rsl_xxxxxxxxxxxxx",
)
def test_radar_valuelist_retrieve(self, request_mock):
stripe.radar.ValueList.retrieve("rsl_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/radar/value_lists/rsl_xxxxxxxxxxxxx",
)
def test_radar_valuelist_update(self, request_mock):
stripe.radar.ValueList.modify(
"rsl_xxxxxxxxxxxxx",
name="Updated IP Block List",
)
request_mock.assert_requested(
"post",
"/v1/radar/value_lists/rsl_xxxxxxxxxxxxx",
)
def test_refund_list(self, request_mock):
stripe.Refund.list(limit=3)
request_mock.assert_requested("get", "/v1/refunds")
def test_refund_create(self, request_mock):
stripe.Refund.create(charge="ch_xxxxxxxxxxxxx")
request_mock.assert_requested("post", "/v1/refunds")
def test_refund_retrieve(self, request_mock):
stripe.Refund.retrieve("re_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/refunds/re_xxxxxxxxxxxxx")
def test_refund_update(self, request_mock):
stripe.Refund.modify("re_xxxxxxxxxxxxx", metadata={"order_id": "6735"})
request_mock.assert_requested("post", "/v1/refunds/re_xxxxxxxxxxxxx")
def test_refund_cancel(self, request_mock):
stripe.Refund.cancel("re_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post", "/v1/refunds/re_xxxxxxxxxxxxx/cancel"
)
def test_reporting_reportrun_list(self, request_mock):
stripe.reporting.ReportRun.list(limit=3)
request_mock.assert_requested("get", "/v1/reporting/report_runs")
def test_reporting_reportrun_create(self, request_mock):
stripe.reporting.ReportRun.create(
report_type="balance.summary.1",
parameters={
"interval_start": 1522540800,
"interval_end": 1525132800,
},
)
request_mock.assert_requested("post", "/v1/reporting/report_runs")
def test_reporting_reportrun_retrieve(self, request_mock):
stripe.reporting.ReportRun.retrieve("frr_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/reporting/report_runs/frr_xxxxxxxxxxxxx",
)
def test_reporting_reporttype_list(self, request_mock):
stripe.reporting.ReportType.list()
request_mock.assert_requested("get", "/v1/reporting/report_types")
def test_reporting_reporttype_retrieve(self, request_mock):
stripe.reporting.ReportType.retrieve("balance.summary.1")
request_mock.assert_requested(
"get",
"/v1/reporting/report_types/balance.summary.1",
)
def test_review_list(self, request_mock):
stripe.Review.list(limit=3)
request_mock.assert_requested("get", "/v1/reviews")
def test_review_retrieve(self, request_mock):
stripe.Review.retrieve("prv_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/reviews/prv_xxxxxxxxxxxxx")
def test_review_approve(self, request_mock):
stripe.Review.approve("prv_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/reviews/prv_xxxxxxxxxxxxx/approve",
)
def test_setupintent_list(self, request_mock):
stripe.SetupIntent.list(limit=3)
request_mock.assert_requested("get", "/v1/setup_intents")
def test_setupintent_create(self, request_mock):
stripe.SetupIntent.create(payment_method_types=["card"])
request_mock.assert_requested("post", "/v1/setup_intents")
def test_setupintent_retrieve(self, request_mock):
stripe.SetupIntent.retrieve("seti_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get", "/v1/setup_intents/seti_xxxxxxxxxxxxx"
)
def test_setupintent_update(self, request_mock):
stripe.SetupIntent.modify(
"seti_xxxxxxxxxxxxx",
metadata={"user_id": "3435453"},
)
request_mock.assert_requested(
"post",
"/v1/setup_intents/seti_xxxxxxxxxxxxx",
)
def test_setupintent_cancel(self, request_mock):
stripe.SetupIntent.cancel("seti_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/setup_intents/seti_xxxxxxxxxxxxx/cancel",
)
def test_setupintent_confirm(self, request_mock):
stripe.SetupIntent.confirm(
"seti_xxxxxxxxxxxxx",
payment_method="pm_card_visa",
)
request_mock.assert_requested(
"post",
"/v1/setup_intents/seti_xxxxxxxxxxxxx/confirm",
)
def test_shippingrate_list2(self, request_mock):
stripe.ShippingRate.list(limit=3)
request_mock.assert_requested("get", "/v1/shipping_rates")
def test_shippingrate_create2(self, request_mock):
stripe.ShippingRate.create(
display_name="Ground shipping",
type="fixed_amount",
fixed_amount={"amount": 500, "currency": "usd"},
)
request_mock.assert_requested("post", "/v1/shipping_rates")
def test_shippingrate_retrieve(self, request_mock):
stripe.ShippingRate.retrieve("shr_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get", "/v1/shipping_rates/shr_xxxxxxxxxxxxx"
)
def test_shippingrate_update(self, request_mock):
stripe.ShippingRate.modify(
"shr_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/shipping_rates/shr_xxxxxxxxxxxxx",
)
def test_sigma_scheduledqueryrun_list(self, request_mock):
stripe.sigma.ScheduledQueryRun.list(limit=3)
request_mock.assert_requested("get", "/v1/sigma/scheduled_query_runs")
def test_sigma_scheduledqueryrun_retrieve(self, request_mock):
stripe.sigma.ScheduledQueryRun.retrieve("sqr_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/sigma/scheduled_query_runs/sqr_xxxxxxxxxxxxx",
)
def test_source_retrieve(self, request_mock):
stripe.Source.retrieve("src_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/sources/src_xxxxxxxxxxxxx")
def test_source_retrieve2(self, request_mock):
stripe.Source.retrieve("src_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/sources/src_xxxxxxxxxxxxx")
def test_source_update(self, request_mock):
stripe.Source.modify(
"src_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested("post", "/v1/sources/src_xxxxxxxxxxxxx")
def test_subscriptionitem_list(self, request_mock):
stripe.SubscriptionItem.list(subscription="sub_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/subscription_items")
def test_subscriptionitem_create(self, request_mock):
stripe.SubscriptionItem.create(
subscription="sub_xxxxxxxxxxxxx",
price="price_xxxxxxxxxxxxx",
quantity=2,
)
request_mock.assert_requested("post", "/v1/subscription_items")
def test_subscriptionitem_delete(self, request_mock):
stripe.SubscriptionItem.delete("si_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete",
"/v1/subscription_items/si_xxxxxxxxxxxxx",
)
def test_subscriptionitem_retrieve(self, request_mock):
stripe.SubscriptionItem.retrieve("si_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/subscription_items/si_xxxxxxxxxxxxx",
)
def test_subscriptionitem_update(self, request_mock):
stripe.SubscriptionItem.modify(
"si_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/subscription_items/si_xxxxxxxxxxxxx",
)
def test_subscriptionschedule_list(self, request_mock):
stripe.SubscriptionSchedule.list(limit=3)
request_mock.assert_requested("get", "/v1/subscription_schedules")
def test_subscriptionschedule_create(self, request_mock):
stripe.SubscriptionSchedule.create(
customer="cus_xxxxxxxxxxxxx",
start_date=1652909005,
end_behavior="release",
phases=[
{
"items": [{"price": "price_xxxxxxxxxxxxx", "quantity": 1}],
"iterations": 12,
},
],
)
request_mock.assert_requested("post", "/v1/subscription_schedules")
def test_subscriptionschedule_retrieve(self, request_mock):
stripe.SubscriptionSchedule.retrieve("sub_sched_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx",
)
def test_subscriptionschedule_update(self, request_mock):
stripe.SubscriptionSchedule.modify(
"sub_sched_xxxxxxxxxxxxx",
end_behavior="release",
)
request_mock.assert_requested(
"post",
"/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx",
)
def test_subscriptionschedule_cancel(self, request_mock):
stripe.SubscriptionSchedule.cancel("sub_sched_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx/cancel",
)
def test_subscriptionschedule_release(self, request_mock):
stripe.SubscriptionSchedule.release("sub_sched_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx/release",
)
def test_subscription_list(self, request_mock):
stripe.Subscription.list(limit=3)
request_mock.assert_requested("get", "/v1/subscriptions")
def test_subscription_create(self, request_mock):
stripe.Subscription.create(
customer="cus_xxxxxxxxxxxxx",
items=[{"price": "price_xxxxxxxxxxxxx"}],
)
request_mock.assert_requested("post", "/v1/subscriptions")
def test_subscription_retrieve(self, request_mock):
stripe.Subscription.retrieve("sub_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get", "/v1/subscriptions/sub_xxxxxxxxxxxxx"
)
def test_subscription_update(self, request_mock):
stripe.Subscription.modify(
"sub_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post", "/v1/subscriptions/sub_xxxxxxxxxxxxx"
)
def test_subscription_search(self, request_mock):
stripe.Subscription.search(
query="status:'active' AND metadata['order_id']:'6735'",
)
request_mock.assert_requested("get", "/v1/subscriptions/search")
def test_taxcode_list(self, request_mock):
stripe.TaxCode.list(limit=3)
request_mock.assert_requested("get", "/v1/tax_codes")
def test_taxcode_retrieve(self, request_mock):
stripe.TaxCode.retrieve("txcd_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get", "/v1/tax_codes/txcd_xxxxxxxxxxxxx"
)
def test_taxrate_list(self, request_mock):
stripe.TaxRate.list(limit=3)
request_mock.assert_requested("get", "/v1/tax_rates")
def test_taxrate_create(self, request_mock):
stripe.TaxRate.create(
display_name="VAT",
description="VAT Germany",
jurisdiction="DE",
percentage=16,
inclusive=False,
)
request_mock.assert_requested("post", "/v1/tax_rates")
def test_taxrate_retrieve(self, request_mock):
stripe.TaxRate.retrieve("txr_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/tax_rates/txr_xxxxxxxxxxxxx")
def test_taxrate_update(self, request_mock):
stripe.TaxRate.modify("txr_xxxxxxxxxxxxx", active=False)
request_mock.assert_requested(
"post", "/v1/tax_rates/txr_xxxxxxxxxxxxx"
)
def test_terminal_configuration_list2(self, request_mock):
stripe.terminal.Configuration.list(limit=3)
request_mock.assert_requested("get", "/v1/terminal/configurations")
def test_terminal_configuration_create2(self, request_mock):
stripe.terminal.Configuration.create(
bbpos_wisepos_e={"splashscreen": "file_xxxxxxxxxxxxx"},
)
request_mock.assert_requested("post", "/v1/terminal/configurations")
def test_terminal_configuration_delete2(self, request_mock):
stripe.terminal.Configuration.delete("tmc_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete",
"/v1/terminal/configurations/tmc_xxxxxxxxxxxxx",
)
def test_terminal_configuration_retrieve2(self, request_mock):
stripe.terminal.Configuration.retrieve("tmc_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/terminal/configurations/tmc_xxxxxxxxxxxxx",
)
def test_terminal_configuration_update2(self, request_mock):
stripe.terminal.Configuration.modify(
"tmc_xxxxxxxxxxxxx",
bbpos_wisepos_e={"splashscreen": "file_xxxxxxxxxxxxx"},
)
request_mock.assert_requested(
"post",
"/v1/terminal/configurations/tmc_xxxxxxxxxxxxx",
)
def test_terminal_connectiontoken_create(self, request_mock):
stripe.terminal.ConnectionToken.create()
request_mock.assert_requested("post", "/v1/terminal/connection_tokens")
def test_terminal_location_list(self, request_mock):
stripe.terminal.Location.list(limit=3)
request_mock.assert_requested("get", "/v1/terminal/locations")
def test_terminal_location_create(self, request_mock):
stripe.terminal.Location.create(
display_name="My First Store",
address={
"line1": "1234 Main Street",
"city": "San Francisco",
"country": "US",
"postal_code": "94111",
},
)
request_mock.assert_requested("post", "/v1/terminal/locations")
def test_terminal_location_delete(self, request_mock):
stripe.terminal.Location.delete("tml_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete",
"/v1/terminal/locations/tml_xxxxxxxxxxxxx",
)
def test_terminal_location_retrieve(self, request_mock):
stripe.terminal.Location.retrieve("tml_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/terminal/locations/tml_xxxxxxxxxxxxx",
)
def test_terminal_location_update(self, request_mock):
stripe.terminal.Location.modify(
"tml_xxxxxxxxxxxxx",
display_name="My First Store",
)
request_mock.assert_requested(
"post",
"/v1/terminal/locations/tml_xxxxxxxxxxxxx",
)
def test_terminal_reader_list(self, request_mock):
stripe.terminal.Reader.list(limit=3)
request_mock.assert_requested("get", "/v1/terminal/readers")
def test_terminal_reader_create(self, request_mock):
stripe.terminal.Reader.create(
registration_code="puppies-plug-could",
label="Blue Rabbit",
location="tml_1234",
)
request_mock.assert_requested("post", "/v1/terminal/readers")
def test_terminal_reader_delete(self, request_mock):
stripe.terminal.Reader.delete("tmr_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete",
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx",
)
def test_terminal_reader_retrieve(self, request_mock):
stripe.terminal.Reader.retrieve("tmr_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx",
)
def test_terminal_reader_update(self, request_mock):
stripe.terminal.Reader.modify("tmr_xxxxxxxxxxxxx", label="Blue Rabbit")
request_mock.assert_requested(
"post",
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx",
)
def test_terminal_reader_cancel_action(self, request_mock):
stripe.terminal.Reader.cancel_action("tmr_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx/cancel_action",
)
def test_terminal_reader_process_payment_intent(self, request_mock):
stripe.terminal.Reader.process_payment_intent(
"tmr_xxxxxxxxxxxxx",
payment_intent="pi_xxxxxxxxxxxxx",
)
request_mock.assert_requested(
"post",
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx/process_payment_intent",
)
def test_test_helpers_testclock_list2(self, request_mock):
stripe.test_helpers.TestClock.list(limit=3)
request_mock.assert_requested("get", "/v1/test_helpers/test_clocks")
def test_test_helpers_testclock_create2(self, request_mock):
stripe.test_helpers.TestClock.create(frozen_time=1577836800)
request_mock.assert_requested("post", "/v1/test_helpers/test_clocks")
def test_test_helpers_testclock_delete2(self, request_mock):
stripe.test_helpers.TestClock.delete("clock_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete",
"/v1/test_helpers/test_clocks/clock_xxxxxxxxxxxxx",
)
def test_test_helpers_testclock_retrieve2(self, request_mock):
stripe.test_helpers.TestClock.retrieve("clock_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/test_helpers/test_clocks/clock_xxxxxxxxxxxxx",
)
def test_test_helpers_testclock_advance2(self, request_mock):
stripe.test_helpers.TestClock.advance(
"clock_xxxxxxxxxxxxx",
frozen_time=1652390605,
)
request_mock.assert_requested(
"post",
"/v1/test_helpers/test_clocks/clock_xxxxxxxxxxxxx/advance",
)
def test_token_create2(self, request_mock):
stripe.Token.create(
bank_account={
"country": "US",
"currency": "usd",
"account_holder_name": "Jenny Rosen",
"account_holder_type": "individual",
"routing_number": "110000000",
"account_number": "000123456789",
},
)
request_mock.assert_requested("post", "/v1/tokens")
def test_token_create3(self, request_mock):
stripe.Token.create(pii={"id_number": "000000000"})
request_mock.assert_requested("post", "/v1/tokens")
def test_token_create4(self, request_mock):
stripe.Token.create(
account={
"individual": {"first_name": "Jane", "last_name": "Doe"},
"tos_shown_and_accepted": True,
},
)
request_mock.assert_requested("post", "/v1/tokens")
def test_token_create5(self, request_mock):
stripe.Token.create(
person={
"first_name": "Jane",
"last_name": "Doe",
"relationship": {"owner": True},
},
)
request_mock.assert_requested("post", "/v1/tokens")
def test_token_create6(self, request_mock):
stripe.Token.create(cvc_update={"cvc": "123"})
request_mock.assert_requested("post", "/v1/tokens")
def test_token_retrieve(self, request_mock):
stripe.Token.retrieve("tok_xxxx")
request_mock.assert_requested("get", "/v1/tokens/tok_xxxx")
def test_topup_list(self, request_mock):
stripe.Topup.list(limit=3)
request_mock.assert_requested("get", "/v1/topups")
def test_topup_create(self, request_mock):
stripe.Topup.create(
amount=2000,
currency="usd",
description="Top-up for Jenny Rosen",
statement_descriptor="Top-up",
)
request_mock.assert_requested("post", "/v1/topups")
def test_topup_retrieve(self, request_mock):
stripe.Topup.retrieve("tu_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/topups/tu_xxxxxxxxxxxxx")
def test_topup_update(self, request_mock):
stripe.Topup.modify("tu_xxxxxxxxxxxxx", metadata={"order_id": "6735"})
request_mock.assert_requested("post", "/v1/topups/tu_xxxxxxxxxxxxx")
def test_topup_cancel(self, request_mock):
stripe.Topup.cancel("tu_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post", "/v1/topups/tu_xxxxxxxxxxxxx/cancel"
)
def test_transfer_list(self, request_mock):
stripe.Transfer.list(limit=3)
request_mock.assert_requested("get", "/v1/transfers")
def test_transfer_create(self, request_mock):
stripe.Transfer.create(
amount=400,
currency="usd",
destination="acct_xxxxxxxxxxxxx",
transfer_group="ORDER_95",
)
request_mock.assert_requested("post", "/v1/transfers")
def test_transfer_retrieve(self, request_mock):
stripe.Transfer.retrieve("tr_xxxxxxxxxxxxx")
request_mock.assert_requested("get", "/v1/transfers/tr_xxxxxxxxxxxxx")
def test_transfer_update(self, request_mock):
stripe.Transfer.modify(
"tr_xxxxxxxxxxxxx", metadata={"order_id": "6735"}
)
request_mock.assert_requested("post", "/v1/transfers/tr_xxxxxxxxxxxxx")
def test_transfer_transferreversal_retrieve(self, request_mock):
stripe.Transfer.retrieve_reversal(
"tr_xxxxxxxxxxxxx", "trr_xxxxxxxxxxxxx"
)
request_mock.assert_requested(
"get",
"/v1/transfers/tr_xxxxxxxxxxxxx/reversals/trr_xxxxxxxxxxxxx",
)
def test_transfer_transferreversal_update(self, request_mock):
stripe.Transfer.modify_reversal(
"tr_xxxxxxxxxxxxx",
"trr_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/transfers/tr_xxxxxxxxxxxxx/reversals/trr_xxxxxxxxxxxxx",
)
def test_treasury_creditreversal_list(self, request_mock):
stripe.treasury.CreditReversal.list(
financial_account="fa_xxxxxxxxxxxxx",
limit=3,
)
request_mock.assert_requested("get", "/v1/treasury/credit_reversals")
def test_treasury_creditreversal_create(self, request_mock):
stripe.treasury.CreditReversal.create(
received_credit="rc_xxxxxxxxxxxxx"
)
request_mock.assert_requested("post", "/v1/treasury/credit_reversals")
def test_treasury_creditreversal_retrieve(self, request_mock):
stripe.treasury.CreditReversal.retrieve("credrev_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/credit_reversals/credrev_xxxxxxxxxxxxx",
)
def test_treasury_debitreversal_list(self, request_mock):
stripe.treasury.DebitReversal.list(
financial_account="fa_xxxxxxxxxxxxx",
limit=3,
)
request_mock.assert_requested("get", "/v1/treasury/debit_reversals")
def test_treasury_debitreversal_create(self, request_mock):
stripe.treasury.DebitReversal.create(received_debit="rd_xxxxxxxxxxxxx")
request_mock.assert_requested("post", "/v1/treasury/debit_reversals")
def test_treasury_debitreversal_retrieve(self, request_mock):
stripe.treasury.DebitReversal.retrieve("debrev_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/debit_reversals/debrev_xxxxxxxxxxxxx",
)
def test_treasury_financialaccount_list(self, request_mock):
stripe.treasury.FinancialAccount.list(limit=3)
request_mock.assert_requested("get", "/v1/treasury/financial_accounts")
def test_treasury_financialaccount_create(self, request_mock):
stripe.treasury.FinancialAccount.create(
supported_currencies=["usd"],
features={},
)
request_mock.assert_requested(
"post", "/v1/treasury/financial_accounts"
)
def test_treasury_financialaccount_retrieve(self, request_mock):
stripe.treasury.FinancialAccount.retrieve("fa_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/financial_accounts/fa_xxxxxxxxxxxxx",
)
def test_treasury_financialaccount_update(self, request_mock):
stripe.treasury.FinancialAccount.modify(
"fa_xxxxxxxxxxxxx",
metadata={"order_id": "6735"},
)
request_mock.assert_requested(
"post",
"/v1/treasury/financial_accounts/fa_xxxxxxxxxxxxx",
)
def test_treasury_financialaccount_retrieve_features(self, request_mock):
stripe.treasury.FinancialAccount.retrieve_features("fa_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/financial_accounts/fa_xxxxxxxxxxxxx/features",
)
def test_treasury_financialaccount_update_features(self, request_mock):
stripe.treasury.FinancialAccount.update_features(
"fa_xxxxxxxxxxxxx",
card_issuing={"requested": False},
)
request_mock.assert_requested(
"post",
"/v1/treasury/financial_accounts/fa_xxxxxxxxxxxxx/features",
)
def test_treasury_inboundtransfer_list(self, request_mock):
stripe.treasury.InboundTransfer.list(
financial_account="fa_xxxxxxxxxxxxx",
limit=3,
)
request_mock.assert_requested("get", "/v1/treasury/inbound_transfers")
def test_treasury_inboundtransfer_create(self, request_mock):
stripe.treasury.InboundTransfer.create(
financial_account="fa_xxxxxxxxxxxxx",
amount=10000,
currency="usd",
origin_payment_method="pm_xxxxxxxxxxxxx",
description="InboundTransfer from my bank account",
)
request_mock.assert_requested("post", "/v1/treasury/inbound_transfers")
def test_treasury_inboundtransfer_retrieve(self, request_mock):
stripe.treasury.InboundTransfer.retrieve("ibt_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/inbound_transfers/ibt_xxxxxxxxxxxxx",
)
def test_treasury_inboundtransfer_cancel(self, request_mock):
stripe.treasury.InboundTransfer.cancel("ibt_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/treasury/inbound_transfers/ibt_xxxxxxxxxxxxx/cancel",
)
def test_treasury_outboundpayment_list(self, request_mock):
stripe.treasury.OutboundPayment.list(
financial_account="fa_xxxxxxxxxxxxx",
limit=3,
)
request_mock.assert_requested("get", "/v1/treasury/outbound_payments")
def test_treasury_outboundpayment_create(self, request_mock):
stripe.treasury.OutboundPayment.create(
financial_account="fa_xxxxxxxxxxxxx",
amount=10000,
currency="usd",
customer="cu_xxxxxxxxxxxxx",
destination_payment_method="pm_xxxxxxxxxxxxx",
description="OutboundPayment to a 3rd party",
)
request_mock.assert_requested("post", "/v1/treasury/outbound_payments")
def test_treasury_outboundpayment_retrieve(self, request_mock):
stripe.treasury.OutboundPayment.retrieve("obp_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/outbound_payments/obp_xxxxxxxxxxxxx",
)
def test_treasury_outboundpayment_cancel(self, request_mock):
stripe.treasury.OutboundPayment.cancel("obp_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/treasury/outbound_payments/obp_xxxxxxxxxxxxx/cancel",
)
def test_treasury_outboundtransfer_list(self, request_mock):
stripe.treasury.OutboundTransfer.list(
financial_account="fa_xxxxxxxxxxxxx",
limit=3,
)
request_mock.assert_requested("get", "/v1/treasury/outbound_transfers")
def test_treasury_outboundtransfer_create(self, request_mock):
stripe.treasury.OutboundTransfer.create(
financial_account="fa_xxxxxxxxxxxxx",
destination_payment_method="pm_xxxxxxxxxxxxx",
amount=500,
currency="usd",
description="OutboundTransfer to my external bank account",
)
request_mock.assert_requested(
"post", "/v1/treasury/outbound_transfers"
)
def test_treasury_outboundtransfer_retrieve(self, request_mock):
stripe.treasury.OutboundTransfer.retrieve("obt_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/outbound_transfers/obt_xxxxxxxxxxxxx",
)
def test_treasury_outboundtransfer_cancel(self, request_mock):
stripe.treasury.OutboundTransfer.cancel("obt_xxxxxxxxxxxxx")
request_mock.assert_requested(
"post",
"/v1/treasury/outbound_transfers/obt_xxxxxxxxxxxxx/cancel",
)
def test_treasury_receivedcredit_list(self, request_mock):
stripe.treasury.ReceivedCredit.list(
financial_account="fa_xxxxxxxxxxxxx",
limit=3,
)
request_mock.assert_requested("get", "/v1/treasury/received_credits")
def test_treasury_receivedcredit_retrieve(self, request_mock):
stripe.treasury.ReceivedCredit.retrieve("rc_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/received_credits/rc_xxxxxxxxxxxxx",
)
def test_treasury_receiveddebit_list(self, request_mock):
stripe.treasury.ReceivedDebit.list(
financial_account="fa_xxxxxxxxxxxxx",
limit=3,
)
request_mock.assert_requested("get", "/v1/treasury/received_debits")
def test_treasury_receiveddebit_retrieve(self, request_mock):
stripe.treasury.ReceivedDebit.retrieve("rd_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/received_debits/rd_xxxxxxxxxxxxx",
)
def test_treasury_transactionentry_list(self, request_mock):
stripe.treasury.TransactionEntry.list(
financial_account="fa_xxxxxxxxxxxxx",
limit=3,
)
request_mock.assert_requested(
"get", "/v1/treasury/transaction_entries"
)
def test_treasury_transactionentry_retrieve(self, request_mock):
stripe.treasury.TransactionEntry.retrieve("trxne_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/transaction_entries/trxne_xxxxxxxxxxxxx",
)
def test_treasury_transaction_list(self, request_mock):
stripe.treasury.Transaction.list(
financial_account="fa_xxxxxxxxxxxxx",
limit=3,
)
request_mock.assert_requested("get", "/v1/treasury/transactions")
def test_treasury_transaction_retrieve(self, request_mock):
stripe.treasury.Transaction.retrieve("trxn_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/treasury/transactions/trxn_xxxxxxxxxxxxx",
)
def test_webhookendpoint_list(self, request_mock):
stripe.WebhookEndpoint.list(limit=3)
request_mock.assert_requested("get", "/v1/webhook_endpoints")
def test_webhookendpoint_create(self, request_mock):
stripe.WebhookEndpoint.create(
url="https://example.com/my/webhook/endpoint",
enabled_events=["charge.failed", "charge.succeeded"],
)
request_mock.assert_requested("post", "/v1/webhook_endpoints")
def test_webhookendpoint_delete(self, request_mock):
stripe.WebhookEndpoint.delete("we_xxxxxxxxxxxxx")
request_mock.assert_requested(
"delete",
"/v1/webhook_endpoints/we_xxxxxxxxxxxxx",
)
def test_webhookendpoint_retrieve(self, request_mock):
stripe.WebhookEndpoint.retrieve("we_xxxxxxxxxxxxx")
request_mock.assert_requested(
"get",
"/v1/webhook_endpoints/we_xxxxxxxxxxxxx",
)
def test_webhookendpoint_update(self, request_mock):
stripe.WebhookEndpoint.modify(
"we_xxxxxxxxxxxxx",
url="https://example.com/new_endpoint",
)
request_mock.assert_requested(
"post",
"/v1/webhook_endpoints/we_xxxxxxxxxxxxx",
)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/test_http_client.py 0000644 0001751 0000171 00000102561 14335240430 017514 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import pytest
import json
import stripe
import urllib3
from stripe import six, util
VALID_API_METHODS = ("get", "post", "delete")
class StripeClientTestCase(object):
REQUEST_LIBRARIES = ["urlfetch", "requests", "pycurl", "urllib.request"]
@pytest.fixture
def request_mocks(self, mocker):
request_mocks = {}
for lib in self.REQUEST_LIBRARIES:
request_mocks[lib] = mocker.patch("stripe.http_client.%s" % (lib,))
return request_mocks
class TestNewDefaultHttpClient(StripeClientTestCase):
@pytest.fixture(autouse=True)
def setup_warnings(self, request_mocks):
original_filters = stripe.http_client.warnings.filters[:]
stripe.http_client.warnings.simplefilter("ignore")
yield
stripe.http_client.warnings.filters = original_filters
def check_default(self, none_libs, expected):
for lib in none_libs:
setattr(stripe.http_client, lib, None)
inst = stripe.http_client.new_default_http_client()
assert isinstance(inst, expected)
def test_new_default_http_client_urlfetch(self):
self.check_default((), stripe.http_client.UrlFetchClient)
def test_new_default_http_client_requests(self):
self.check_default(("urlfetch",), stripe.http_client.RequestsClient)
def test_new_default_http_client_pycurl(self):
self.check_default(
("urlfetch", "requests"), stripe.http_client.PycurlClient
)
def test_new_default_http_client_urllib2(self):
self.check_default(
("urlfetch", "requests", "pycurl"),
stripe.http_client.Urllib2Client,
)
class TestRetrySleepTimeDefaultHttpClient(StripeClientTestCase):
from contextlib import contextmanager
def assert_sleep_times(self, client, expected):
until = len(expected)
actual = list(
map(lambda i: client._sleep_time_seconds(i + 1), range(until))
)
assert expected == actual
@contextmanager
def mock_max_delay(self, new_value):
original_value = stripe.http_client.HTTPClient.MAX_DELAY
stripe.http_client.HTTPClient.MAX_DELAY = new_value
try:
yield self
finally:
stripe.http_client.HTTPClient.MAX_DELAY = original_value
def test_sleep_time_exponential_back_off(self):
client = stripe.http_client.new_default_http_client()
client._add_jitter_time = lambda t: t
with self.mock_max_delay(10):
self.assert_sleep_times(client, [0.5, 1.0, 2.0, 4.0, 8.0])
def test_initial_delay_as_minimum(self):
client = stripe.http_client.new_default_http_client()
client._add_jitter_time = lambda t: t * 0.001
initial_delay = stripe.http_client.HTTPClient.INITIAL_DELAY
self.assert_sleep_times(client, [initial_delay] * 5)
def test_maximum_delay(self):
client = stripe.http_client.new_default_http_client()
client._add_jitter_time = lambda t: t
max_delay = stripe.http_client.HTTPClient.MAX_DELAY
expected = [0.5, 1.0, max_delay, max_delay, max_delay]
self.assert_sleep_times(client, expected)
def test_retry_after_header(self):
client = stripe.http_client.new_default_http_client()
client._add_jitter_time = lambda t: t
# Prefer retry-after if it's bigger
assert 30 == client._sleep_time_seconds(
2, (None, 409, {"retry-after": "30"})
)
# Prefer default if it's bigger
assert 2 == client._sleep_time_seconds(
3, (None, 409, {"retry-after": "1"})
)
# Ignore crazy-big values
assert 1 == client._sleep_time_seconds(
2, (None, 409, {"retry-after": "300"})
)
def test_randomness_added(self):
client = stripe.http_client.new_default_http_client()
random_value = 0.8
client._add_jitter_time = lambda t: t * random_value
base_value = stripe.http_client.HTTPClient.INITIAL_DELAY * random_value
with self.mock_max_delay(10):
expected = [
stripe.http_client.HTTPClient.INITIAL_DELAY,
base_value * 2,
base_value * 4,
base_value * 8,
base_value * 16,
]
self.assert_sleep_times(client, expected)
def test_jitter_has_randomness_but_within_range(self):
client = stripe.http_client.new_default_http_client()
jittered_ones = set(
map(lambda _: client._add_jitter_time(1), list(range(100)))
)
assert len(jittered_ones) > 1
assert all(0.5 <= val <= 1 for val in jittered_ones)
class TestRetryConditionsDefaultHttpClient(StripeClientTestCase):
def test_should_retry_on_codes(self):
one_xx = list(range(100, 104))
two_xx = list(range(200, 209))
three_xx = list(range(300, 308))
four_xx = list(range(400, 431))
client = stripe.http_client.new_default_http_client()
client._max_network_retries = lambda: 1
codes = one_xx + two_xx + three_xx + four_xx
codes.remove(409)
# These status codes should not be retried by default.
for code in codes:
assert client._should_retry((None, code, None), None, 0) is False
# These status codes should be retried by default.
assert client._should_retry((None, 409, None), None, 0) is True
assert client._should_retry((None, 500, None), None, 0) is True
assert client._should_retry((None, 503, None), None, 0) is True
def test_should_retry_on_error(self, mocker):
client = stripe.http_client.new_default_http_client()
client._max_network_retries = lambda: 1
api_connection_error = mocker.Mock()
api_connection_error.should_retry = True
assert client._should_retry(None, api_connection_error, 0) is True
api_connection_error.should_retry = False
assert client._should_retry(None, api_connection_error, 0) is False
def test_should_retry_on_stripe_should_retry_true(self, mocker):
client = stripe.http_client.new_default_http_client()
client._max_network_retries = lambda: 1
headers = {"stripe-should-retry": "true"}
# Ordinarily, we would not retry a 400, but with the header as true, we would.
assert client._should_retry((None, 400, {}), None, 0) is False
assert client._should_retry((None, 400, headers), None, 0) is True
def test_should_retry_on_stripe_should_retry_false(self, mocker):
client = stripe.http_client.new_default_http_client()
client._max_network_retries = lambda: 1
headers = {"stripe-should-retry": "false"}
# Ordinarily, we would retry a 500, but with the header as false, we would not.
assert client._should_retry((None, 500, {}), None, 0) is True
assert client._should_retry((None, 500, headers), None, 0) is False
def test_should_retry_on_num_retries(self, mocker):
client = stripe.http_client.new_default_http_client()
max_test_retries = 10
client._max_network_retries = lambda: max_test_retries
api_connection_error = mocker.Mock()
api_connection_error.should_retry = True
assert (
client._should_retry(
None, api_connection_error, max_test_retries + 1
)
is False
)
assert (
client._should_retry((None, 409, None), None, max_test_retries + 1)
is False
)
class TestHTTPClient(object):
@pytest.fixture(autouse=True)
def setup_stripe(self):
orig_attrs = {"enable_telemetry": stripe.enable_telemetry}
stripe.enable_telemetry = False
yield
stripe.enable_telemetry = orig_attrs["enable_telemetry"]
def test_sends_telemetry_on_second_request(self, mocker):
class TestClient(stripe.http_client.HTTPClient):
pass
stripe.enable_telemetry = True
url = "http://fake.url"
client = TestClient()
client.request = mocker.MagicMock(
return_value=["", 200, {"Request-Id": "req_123"}]
)
_, code, _ = client.request_with_retries("get", url, {}, None)
assert code == 200
client.request.assert_called_with("get", url, {}, None)
client.request = mocker.MagicMock(
return_value=["", 200, {"Request-Id": "req_234"}]
)
_, code, _ = client.request_with_retries("get", url, {}, None)
assert code == 200
args, _ = client.request.call_args
assert "X-Stripe-Client-Telemetry" in args[2]
telemetry = json.loads(args[2]["X-Stripe-Client-Telemetry"])
assert telemetry["last_request_metrics"]["request_id"] == "req_123"
class ClientTestBase(object):
@pytest.fixture
def request_mock(self, request_mocks):
return request_mocks[self.REQUEST_CLIENT.name]
@property
def valid_url(self, path="/foo"):
return "https://api.stripe.com%s" % (path,)
def make_request(self, method, url, headers, post_data):
client = self.REQUEST_CLIENT(verify_ssl_certs=True)
return client.request_with_retries(method, url, headers, post_data)
def make_request_stream(self, method, url, headers, post_data):
client = self.REQUEST_CLIENT(verify_ssl_certs=True)
return client.request_stream_with_retries(
method, url, headers, post_data
)
@pytest.fixture
def mock_response(self):
def mock_response(mock, body, code):
raise NotImplementedError(
"You must implement this in your test subclass"
)
return mock_response
@pytest.fixture
def mock_error(self):
def mock_error(mock, error):
raise NotImplementedError(
"You must implement this in your test subclass"
)
return mock_error
@pytest.fixture
def check_call(self):
def check_call(
mock, method, abs_url, headers, params, is_streaming=False
):
raise NotImplementedError(
"You must implement this in your test subclass"
)
return check_call
def test_request(self, request_mock, mock_response, check_call):
mock_response(request_mock, '{"foo": "baz"}', 200)
for method in VALID_API_METHODS:
abs_url = self.valid_url
data = ""
if method != "post":
abs_url = "%s?%s" % (abs_url, data)
data = None
headers = {"my-header": "header val"}
body, code, _ = self.make_request(method, abs_url, headers, data)
assert code == 200
assert body == '{"foo": "baz"}'
check_call(request_mock, method, abs_url, data, headers)
def test_request_stream(
self, mocker, request_mock, mock_response, check_call
):
for method in VALID_API_METHODS:
mock_response(request_mock, "some streamed content", 200)
abs_url = self.valid_url
data = ""
if method != "post":
abs_url = "%s?%s" % (abs_url, data)
data = None
headers = {"my-header": "header val"}
print(dir(self))
print("make_request_stream" in dir(self))
stream, code, _ = self.make_request_stream(
method, abs_url, headers, data
)
assert code == 200
# Here we need to convert and align all content on one type (string)
# as some clients return a string stream others a byte stream.
body_content = stream.read()
if hasattr(body_content, "decode"):
body_content = body_content.decode("utf-8")
assert body_content == "some streamed content"
mocker.resetall()
def test_exception(self, request_mock, mock_error):
mock_error(request_mock)
with pytest.raises(stripe.error.APIConnectionError):
self.make_request("get", self.valid_url, {}, None)
class RequestsVerify(object):
def __eq__(self, other):
return other and other.endswith("stripe/data/ca-certificates.crt")
class TestRequestsClient(StripeClientTestCase, ClientTestBase):
REQUEST_CLIENT = stripe.http_client.RequestsClient
@pytest.fixture
def session(self, mocker, request_mocks):
return mocker.MagicMock()
@pytest.fixture
def mock_response(self, mocker, session):
def mock_response(mock, body, code):
result = mocker.Mock()
result.content = body
result.status_code = code
result.headers = {}
result.raw = urllib3.response.HTTPResponse(
body=util.io.BytesIO(str.encode(body)),
preload_content=False,
status=code,
)
session.request = mocker.MagicMock(return_value=result)
mock.Session = mocker.MagicMock(return_value=session)
return mock_response
@pytest.fixture
def mock_error(self, mocker, session):
def mock_error(mock):
# The first kind of request exceptions we catch
mock.exceptions.SSLError = Exception
session.request.side_effect = mock.exceptions.SSLError()
mock.Session = mocker.MagicMock(return_value=session)
return mock_error
# Note that unlike other modules, we don't use the "mock" argument here
# because we need to run the request call against the internal mock
# session.
@pytest.fixture
def check_call(self, session):
def check_call(
mock,
method,
url,
post_data,
headers,
is_streaming=False,
timeout=80,
times=None,
):
times = times or 1
args = (method, url)
kwargs = {
"headers": headers,
"data": post_data,
"verify": RequestsVerify(),
"proxies": {"http": "http://slap/", "https": "http://slap/"},
"timeout": timeout,
}
if is_streaming:
kwargs["stream"] = True
calls = [(args, kwargs) for _ in range(times)]
session.request.assert_has_calls(calls)
return check_call
def make_request(self, method, url, headers, post_data, timeout=80):
client = self.REQUEST_CLIENT(
verify_ssl_certs=True, timeout=timeout, proxy="http://slap/"
)
return client.request_with_retries(method, url, headers, post_data)
def make_request_stream(self, method, url, headers, post_data, timeout=80):
client = self.REQUEST_CLIENT(
verify_ssl_certs=True, timeout=timeout, proxy="http://slap/"
)
return client.request_stream_with_retries(
method, url, headers, post_data
)
def test_timeout(self, request_mock, mock_response, check_call):
headers = {"my-header": "header val"}
data = ""
mock_response(request_mock, '{"foo": "baz"}', 200)
self.make_request("POST", self.valid_url, headers, data, timeout=5)
check_call(None, "POST", self.valid_url, data, headers, timeout=5)
def test_request_stream_forwards_stream_param(
self, mocker, request_mock, mock_response, check_call
):
mock_response(request_mock, "some streamed content", 200)
self.make_request_stream("GET", self.valid_url, {}, None)
check_call(
None,
"GET",
self.valid_url,
None,
{},
is_streaming=True,
)
class TestRequestClientRetryBehavior(TestRequestsClient):
@pytest.fixture
def response(self, mocker):
def response(code=200, headers={}):
result = mocker.Mock()
result.content = "{}"
result.status_code = code
result.headers = headers
result.raw = urllib3.response.HTTPResponse(
body=util.io.BytesIO(str.encode(result.content)),
preload_content=False,
status=code,
)
return result
return response
@pytest.fixture
def mock_retry(self, mocker, session, request_mock):
def mock_retry(retry_error_num=0, no_retry_error_num=0, responses=[]):
# Mocking classes of exception we catch. Any group of exceptions
# with the same inheritance pattern will work
request_root_error_class = Exception
request_mock.exceptions.RequestException = request_root_error_class
no_retry_parent_class = LookupError
no_retry_child_class = KeyError
request_mock.exceptions.SSLError = no_retry_parent_class
no_retry_errors = [no_retry_child_class()] * no_retry_error_num
retry_parent_class = EnvironmentError
retry_child_class = IOError
request_mock.exceptions.Timeout = retry_parent_class
request_mock.exceptions.ConnectionError = retry_parent_class
retry_errors = [retry_child_class()] * retry_error_num
# Include mock responses as possible side-effects
# to simulate returning proper results after some exceptions
session.request.side_effect = (
retry_errors + no_retry_errors + responses
)
request_mock.Session = mocker.MagicMock(return_value=session)
return request_mock
return mock_retry
@pytest.fixture
def check_call_numbers(self, check_call):
valid_url = self.valid_url
def check_call_numbers(times, is_streaming=False):
check_call(
None,
"GET",
valid_url,
None,
{},
times=times,
is_streaming=is_streaming,
)
return check_call_numbers
def max_retries(self):
return 3
def make_client(self):
client = self.REQUEST_CLIENT(
verify_ssl_certs=True, timeout=80, proxy="http://slap/"
)
# Override sleep time to speed up tests
client._sleep_time = lambda _: 0.0001
# Override configured max retries
client._max_network_retries = lambda: self.max_retries()
return client
def make_request(self, *args, **kwargs):
client = self.make_client()
return client.request_with_retries("GET", self.valid_url, {}, None)
def make_request_stream(self, *args, **kwargs):
client = self.make_client()
return client.request_stream_with_retries(
"GET", self.valid_url, {}, None
)
def test_retry_error_until_response(
self, mock_retry, response, check_call_numbers
):
mock_retry(retry_error_num=1, responses=[response(code=202)])
_, code, _ = self.make_request()
assert code == 202
check_call_numbers(2)
def test_retry_error_until_exceeded(
self, mock_retry, response, check_call_numbers
):
mock_retry(retry_error_num=self.max_retries())
with pytest.raises(stripe.error.APIConnectionError):
self.make_request()
check_call_numbers(self.max_retries())
def test_no_retry_error(self, mock_retry, response, check_call_numbers):
mock_retry(no_retry_error_num=self.max_retries())
with pytest.raises(stripe.error.APIConnectionError):
self.make_request()
check_call_numbers(1)
def test_retry_codes(self, mock_retry, response, check_call_numbers):
mock_retry(responses=[response(code=409), response(code=202)])
_, code, _ = self.make_request()
assert code == 202
check_call_numbers(2)
def test_retry_codes_until_exceeded(
self, mock_retry, response, check_call_numbers
):
mock_retry(responses=[response(code=409)] * (self.max_retries() + 1))
_, code, _ = self.make_request()
assert code == 409
check_call_numbers(self.max_retries() + 1)
def test_retry_request_stream_error_until_response(
self, mock_retry, response, check_call_numbers
):
mock_retry(retry_error_num=1, responses=[response(code=202)])
_, code, _ = self.make_request_stream()
assert code == 202
check_call_numbers(2, is_streaming=True)
def test_retry_request_stream_error_until_exceeded(
self, mock_retry, response, check_call_numbers
):
mock_retry(retry_error_num=self.max_retries())
with pytest.raises(stripe.error.APIConnectionError):
self.make_request_stream()
check_call_numbers(self.max_retries(), is_streaming=True)
def test_no_retry_request_stream_error(
self, mock_retry, response, check_call_numbers
):
mock_retry(no_retry_error_num=self.max_retries())
with pytest.raises(stripe.error.APIConnectionError):
self.make_request_stream()
check_call_numbers(1, is_streaming=True)
def test_retry_request_stream_codes(
self, mock_retry, response, check_call_numbers
):
mock_retry(responses=[response(code=409), response(code=202)])
_, code, _ = self.make_request_stream()
assert code == 202
check_call_numbers(2, is_streaming=True)
def test_retry_request_stream_codes_until_exceeded(
self, mock_retry, response, check_call_numbers
):
mock_retry(responses=[response(code=409)] * (self.max_retries() + 1))
_, code, _ = self.make_request_stream()
assert code == 409
check_call_numbers(self.max_retries() + 1, is_streaming=True)
@pytest.fixture
def connection_error(self, session):
client = self.REQUEST_CLIENT()
def connection_error(given_exception):
with pytest.raises(stripe.error.APIConnectionError) as error:
client._handle_request_error(given_exception)
return error.value
return connection_error
def test_handle_request_error_should_retry(
self, connection_error, mock_retry
):
request_mock = mock_retry()
error = connection_error(request_mock.exceptions.Timeout())
assert error.should_retry
error = connection_error(request_mock.exceptions.ConnectionError())
assert error.should_retry
def test_handle_request_error_should_not_retry(
self, connection_error, mock_retry
):
request_mock = mock_retry()
error = connection_error(request_mock.exceptions.SSLError())
assert error.should_retry is False
assert "not verify Stripe's SSL certificate" in error.user_message
error = connection_error(request_mock.exceptions.RequestException())
assert error.should_retry is False
# Mimic non-requests exception as not being children of Exception,
# See mock_retry for the exceptions setup
error = connection_error(BaseException(""))
assert error.should_retry is False
assert "configuration issue locally" in error.user_message
# Skip inherited basic requests client tests
def test_request(self, request_mock, mock_response, check_call):
pass
def test_exception(self, request_mock, mock_error):
pass
def test_timeout(self, request_mock, mock_response, check_call):
pass
class TestUrlFetchClient(StripeClientTestCase, ClientTestBase):
REQUEST_CLIENT = stripe.http_client.UrlFetchClient
@pytest.fixture
def mock_response(self, mocker):
def mock_response(mock, body, code):
result = mocker.Mock()
result.content = body
result.status_code = code
result.headers = {}
mock.fetch = mocker.Mock(return_value=result)
return mock_response
@pytest.fixture
def mock_error(self):
def mock_error(mock):
mock.Error = mock.InvalidURLError = Exception
mock.fetch.side_effect = mock.InvalidURLError()
return mock_error
@pytest.fixture
def check_call(self):
def check_call(
mock, method, url, post_data, headers, is_streaming=False
):
mock.fetch.assert_called_with(
url=url,
method=method,
headers=headers,
validate_certificate=True,
deadline=55,
payload=post_data,
)
return check_call
class TestUrllib2Client(StripeClientTestCase, ClientTestBase):
REQUEST_CLIENT = stripe.http_client.Urllib2Client
def make_client(self, proxy):
self.client = self.REQUEST_CLIENT(verify_ssl_certs=True, proxy=proxy)
self.proxy = proxy
def make_request(self, method, url, headers, post_data, proxy=None):
self.make_client(proxy)
return self.client.request_with_retries(
method, url, headers, post_data
)
def make_request_stream(self, method, url, headers, post_data, proxy=None):
self.make_client(proxy)
return self.client.request_stream_with_retries(
method, url, headers, post_data
)
@pytest.fixture
def mock_response(self, mocker):
def mock_response(mock, body, code):
response = mocker.Mock()
response.read = mocker.MagicMock(return_value=body)
response.code = code
response.info = mocker.Mock(return_value={})
self.request_object = mocker.Mock()
mock.Request = mocker.Mock(return_value=self.request_object)
mock.urlopen = mocker.Mock(return_value=response)
opener = mocker.Mock()
opener.open = mocker.Mock(return_value=response)
mock.build_opener = mocker.Mock(return_value=opener)
mock.build_opener.open = opener.open
mock.ProxyHandler = mocker.Mock(return_value=opener)
mock.urlopen = mocker.Mock(return_value=response)
return mock_response
@pytest.fixture
def mock_error(self):
def mock_error(mock):
mock.urlopen.side_effect = ValueError
mock.build_opener().open.side_effect = ValueError
mock.build_opener.reset_mock()
return mock_error
@pytest.fixture
def check_call(self):
def check_call(
mock, method, url, post_data, headers, is_streaming=False
):
if six.PY3 and isinstance(post_data, six.string_types):
post_data = post_data.encode("utf-8")
mock.Request.assert_called_with(url, post_data, headers)
if self.client._proxy:
assert isinstance(self.client._proxy, dict)
mock.ProxyHandler.assert_called_with(self.client._proxy)
mock.build_opener.open.assert_called_with(self.request_object)
assert not mock.urlopen.called
if not self.client._proxy:
mock.urlopen.assert_called_with(self.request_object)
assert not mock.build_opener.called
assert not mock.build_opener.open.called
return check_call
class TestUrllib2ClientHttpsProxy(TestUrllib2Client):
def make_request(self, method, url, headers, post_data, proxy=None):
return super(TestUrllib2ClientHttpsProxy, self).make_request(
method,
url,
headers,
post_data,
{"http": "http://slap/", "https": "http://slap/"},
)
def make_request_stream(self, method, url, headers, post_data, proxy=None):
return super(TestUrllib2ClientHttpsProxy, self).make_request_stream(
method,
url,
headers,
post_data,
{"http": "http://slap/", "https": "http://slap/"},
)
class TestUrllib2ClientHttpProxy(TestUrllib2Client):
def make_request(self, method, url, headers, post_data, proxy=None):
return super(TestUrllib2ClientHttpProxy, self).make_request(
method, url, headers, post_data, "http://slap/"
)
def make_request_stream(self, method, url, headers, post_data, proxy=None):
return super(TestUrllib2ClientHttpProxy, self).make_request_stream(
method, url, headers, post_data, "http://slap/"
)
class TestPycurlClient(StripeClientTestCase, ClientTestBase):
REQUEST_CLIENT = stripe.http_client.PycurlClient
def make_client(self, proxy):
self.client = self.REQUEST_CLIENT(verify_ssl_certs=True, proxy=proxy)
self.proxy = proxy
def make_request(self, method, url, headers, post_data, proxy=None):
self.make_client(proxy)
return self.client.request_with_retries(
method, url, headers, post_data
)
def make_request_stream(self, method, url, headers, post_data, proxy=None):
self.make_client(proxy)
return self.client.request_stream_with_retries(
method, url, headers, post_data
)
@pytest.fixture
def curl_mock(self, mocker):
return mocker.Mock()
@pytest.fixture
def request_mock(self, mocker, request_mocks, curl_mock):
lib_mock = request_mocks[self.REQUEST_CLIENT.name]
lib_mock.Curl = mocker.Mock(return_value=curl_mock)
return curl_mock
@pytest.fixture
def bio_mock(self, mocker):
bio_patcher = mocker.patch("stripe.util.io.BytesIO")
bio_mock = mocker.Mock()
bio_patcher.return_value = bio_mock
return bio_mock
@pytest.fixture
def mock_response(self, mocker, bio_mock):
def mock_response(mock, body, code):
bio_mock.getvalue = mocker.MagicMock(
return_value=body.encode("utf-8")
)
bio_mock.read = mocker.MagicMock(return_value=body.encode("utf-8"))
mock.getinfo.return_value = code
return mock_response
@pytest.fixture
def mock_error(self):
def mock_error(mock):
class FakeException(BaseException):
@property
def args(self):
return ("foo", "bar")
stripe.http_client.pycurl.error = FakeException
mock.perform.side_effect = stripe.http_client.pycurl.error
return mock_error
@pytest.fixture
def check_call(self, request_mocks):
def check_call(
mock, method, url, post_data, headers, is_streaming=False
):
lib_mock = request_mocks[self.REQUEST_CLIENT.name]
if self.client._proxy:
proxy = self.client._get_proxy(url)
assert proxy is not None
if proxy.hostname:
mock.setopt.assert_any_call(lib_mock.PROXY, proxy.hostname)
if proxy.port:
mock.setopt.assert_any_call(lib_mock.PROXYPORT, proxy.port)
if proxy.username or proxy.password:
mock.setopt.assert_any_call(
lib_mock.PROXYUSERPWD,
"%s:%s" % (proxy.username, proxy.password),
)
# A note on methodology here: we don't necessarily need to verify
# _every_ call to setopt, but check a few of them to make sure the
# right thing is happening. Keep an eye specifically on conditional
# statements where things are more likely to go wrong.
mock.setopt.assert_any_call(lib_mock.NOSIGNAL, 1)
mock.setopt.assert_any_call(lib_mock.URL, stripe.util.utf8(url))
if method == "get":
mock.setopt.assert_any_call(lib_mock.HTTPGET, 1)
elif method == "post":
mock.setopt.assert_any_call(lib_mock.POST, 1)
else:
mock.setopt.assert_any_call(
lib_mock.CUSTOMREQUEST, method.upper()
)
mock.perform.assert_any_call()
return check_call
class TestPycurlClientHttpProxy(TestPycurlClient):
def make_request(self, method, url, headers, post_data, proxy=None):
return super(TestPycurlClientHttpProxy, self).make_request(
method,
url,
headers,
post_data,
"http://user:withPwd@slap:8888/",
)
def make_request_stream(self, method, url, headers, post_data, proxy=None):
return super(TestPycurlClientHttpProxy, self).make_request_stream(
method,
url,
headers,
post_data,
"http://user:withPwd@slap:8888/",
)
class TestPycurlClientHttpsProxy(TestPycurlClient):
def make_request(self, method, url, headers, post_data, proxy=None):
return super(TestPycurlClientHttpsProxy, self).make_request(
method,
url,
headers,
post_data,
{"http": "http://slap:8888/", "https": "http://slap2:444/"},
)
def make_request_stream(self, method, url, headers, post_data, proxy=None):
return super(TestPycurlClientHttpsProxy, self).make_request_stream(
method,
url,
headers,
post_data,
{"http": "http://slap:8888/", "https": "http://slap2:444/"},
)
class TestAPIEncode(StripeClientTestCase):
def test_encode_dict(self):
body = {"foo": {"dob": {"month": 1}, "name": "bat"}}
values = [t for t in stripe.api_requestor._api_encode(body)]
assert ("foo[dob][month]", 1) in values
assert ("foo[name]", "bat") in values
def test_encode_array(self):
body = {"foo": [{"dob": {"month": 1}, "name": "bat"}]}
values = [t for t in stripe.api_requestor._api_encode(body)]
assert ("foo[0][dob][month]", 1) in values
assert ("foo[0][name]", "bat") in values
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/test_integration.py 0000644 0001751 0000171 00000023310 14335240430 017514 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import platform
import sys
from threading import Thread, Lock
import json
import warnings
import time
import stripe
import pytest
if platform.python_implementation() == "PyPy":
pytest.skip("skip integration tests with PyPy", allow_module_level=True)
if sys.version_info[0] < 3:
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
else:
from http.server import BaseHTTPRequestHandler, HTTPServer
class TestIntegration(object):
@pytest.fixture(autouse=True)
def close_mock_server(self):
yield
if self.mock_server:
self.mock_server.shutdown()
self.mock_server.server_close()
self.mock_server_thread.join()
@pytest.fixture(autouse=True)
def setup_stripe(self):
orig_attrs = {
"api_base": stripe.api_base,
"api_key": stripe.api_key,
"default_http_client": stripe.default_http_client,
"enable_telemetry": stripe.enable_telemetry,
"max_network_retries": stripe.max_network_retries,
"proxy": stripe.proxy,
}
stripe.api_base = "http://localhost:12111" # stripe-mock
stripe.api_key = "sk_test_123"
stripe.default_http_client = None
stripe.enable_telemetry = False
stripe.max_network_retries = 3
stripe.proxy = None
yield
stripe.api_base = orig_attrs["api_base"]
stripe.api_key = orig_attrs["api_key"]
stripe.default_http_client = orig_attrs["default_http_client"]
stripe.enable_telemetry = orig_attrs["enable_telemetry"]
stripe.max_network_retries = orig_attrs["max_network_retries"]
stripe.proxy = orig_attrs["proxy"]
def setup_mock_server(self, handler):
# Configure mock server.
# Passing 0 as the port will cause a random free port to be chosen.
self.mock_server = HTTPServer(("localhost", 0), handler)
_, self.mock_server_port = self.mock_server.server_address
# Start running mock server in a separate thread.
# Daemon threads automatically shut down when the main process exits.
self.mock_server_thread = Thread(target=self.mock_server.serve_forever)
self.mock_server_thread.daemon = True
self.mock_server_thread.start()
def test_hits_api_base(self):
class MockServerRequestHandler(BaseHTTPRequestHandler):
num_requests = 0
def do_GET(self):
self.__class__.num_requests += 1
self.send_response(200)
self.send_header(
"Content-Type", "application/json; charset=utf-8"
)
self.end_headers()
self.wfile.write(json.dumps({}).encode("utf-8"))
return
self.setup_mock_server(MockServerRequestHandler)
stripe.api_base = "http://localhost:%s" % self.mock_server_port
stripe.Balance.retrieve()
assert MockServerRequestHandler.num_requests == 1
def test_hits_proxy_through_default_http_client(self):
class MockServerRequestHandler(BaseHTTPRequestHandler):
num_requests = 0
def do_GET(self):
self.__class__.num_requests += 1
self.send_response(200)
self.send_header(
"Content-Type", "application/json; charset=utf-8"
)
self.end_headers()
self.wfile.write(json.dumps({}).encode("utf-8"))
return
self.setup_mock_server(MockServerRequestHandler)
stripe.proxy = "http://localhost:%s" % self.mock_server_port
stripe.Balance.retrieve()
assert MockServerRequestHandler.num_requests == 1
stripe.proxy = "http://bad-url"
with warnings.catch_warnings(record=True) as w:
stripe.Balance.retrieve()
assert len(w) == 1
assert "stripe.proxy was updated after sending a request" in str(
w[0].message
)
assert MockServerRequestHandler.num_requests == 2
def test_hits_proxy_through_custom_client(self):
class MockServerRequestHandler(BaseHTTPRequestHandler):
num_requests = 0
def do_GET(self):
self.__class__.num_requests += 1
self.send_response(200)
self.send_header(
"Content-Type", "application/json; charset=utf-8"
)
self.end_headers()
self.wfile.write(json.dumps({}).encode("utf-8"))
return
self.setup_mock_server(MockServerRequestHandler)
stripe.default_http_client = (
stripe.http_client.new_default_http_client(
proxy="http://localhost:%s" % self.mock_server_port
)
)
stripe.Balance.retrieve()
assert MockServerRequestHandler.num_requests == 1
def test_passes_client_telemetry_when_enabled(self):
class MockServerRequestHandler(BaseHTTPRequestHandler):
num_requests = 0
def do_GET(self):
try:
self.__class__.num_requests += 1
req_num = self.__class__.num_requests
if req_num == 1:
time.sleep(31 / 1000) # 31 ms
assert not self.headers.get(
"X-Stripe-Client-Telemetry"
)
elif req_num == 2:
assert self.headers.get("X-Stripe-Client-Telemetry")
telemetry = json.loads(
self.headers.get("x-stripe-client-telemetry")
)
assert "last_request_metrics" in telemetry
req_id = telemetry["last_request_metrics"][
"request_id"
]
duration_ms = telemetry["last_request_metrics"][
"request_duration_ms"
]
assert req_id == "req_1"
# The first request took 31 ms, so the client perceived
# latency shouldn't be outside this range.
assert 30 < duration_ms < 300
else:
assert False, (
"Should not have reached request %d" % req_num
)
self.send_response(200)
self.send_header(
"Content-Type", "application/json; charset=utf-8"
)
self.send_header("Request-Id", "req_%d" % req_num)
self.end_headers()
self.wfile.write(json.dumps({}).encode("utf-8"))
except AssertionError as ex:
# Throwing assertions on the server side causes a
# connection error to be logged instead of an assertion
# failure. Instead, we return the assertion failure as
# json so it can be logged as a StripeError.
self.send_response(400)
self.send_header(
"Content-Type", "application/json; charset=utf-8"
)
self.end_headers()
self.wfile.write(
json.dumps(
{
"error": {
"type": "invalid_request_error",
"message": str(ex),
}
}
).encode("utf-8")
)
self.setup_mock_server(MockServerRequestHandler)
stripe.api_base = "http://localhost:%s" % self.mock_server_port
stripe.enable_telemetry = True
stripe.Balance.retrieve()
stripe.Balance.retrieve()
assert MockServerRequestHandler.num_requests == 2
def test_uses_thread_local_client_telemetry(self):
class MockServerRequestHandler(BaseHTTPRequestHandler):
num_requests = 0
seen_metrics = set()
stats_lock = Lock()
def do_GET(self):
with self.__class__.stats_lock:
self.__class__.num_requests += 1
req_num = self.__class__.num_requests
if self.headers.get("X-Stripe-Client-Telemetry"):
telemetry = json.loads(
self.headers.get("X-Stripe-Client-Telemetry")
)
req_id = telemetry["last_request_metrics"]["request_id"]
with self.__class__.stats_lock:
self.__class__.seen_metrics.add(req_id)
self.send_response(200)
self.send_header(
"Content-Type", "application/json; charset=utf-8"
)
self.send_header("Request-Id", "req_%d" % req_num)
self.end_headers()
self.wfile.write(json.dumps({}).encode("utf-8"))
self.setup_mock_server(MockServerRequestHandler)
stripe.api_base = "http://localhost:%s" % self.mock_server_port
stripe.enable_telemetry = True
stripe.default_http_client = stripe.http_client.RequestsClient()
def work():
stripe.Balance.retrieve()
stripe.Balance.retrieve()
threads = [Thread(target=work) for _ in range(10)]
for t in threads:
t.start()
for t in threads:
t.join()
assert MockServerRequestHandler.num_requests == 20
assert len(MockServerRequestHandler.seen_metrics) == 10
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/test_multipart_data_generator.py 0000644 0001751 0000171 00000006110 14335240430 022250 0 ustar 00runner docker # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import re
from stripe import six
from stripe.multipart_data_generator import MultipartDataGenerator
class TestMultipartDataGenerator(object):
def run_test_multipart_data_with_file(self, test_file):
params = {
"key1": b"ASCII value",
"key2": u"Üñìçôdé value",
"key3": test_file,
"key4": {
"string": "Hello!",
"int": 234,
"float": 3.14159,
"bool": True,
"dict": {"foo": "bar"},
},
}
generator = MultipartDataGenerator()
generator.add_params(params)
http_body = generator.get_post_data()
if six.PY3:
http_body = http_body.decode("utf-8")
assert re.search(
r"Content-Disposition: form-data; name=\"key1\"", http_body
)
assert re.search(r"ASCII value", http_body)
assert re.search(
r"Content-Disposition: form-data; name=\"key2\"", http_body
)
assert re.search(r"Üñìçôdé value", http_body)
assert re.search(
r"Content-Disposition: form-data; name=\"key3\"; "
r"filename=\".+\"",
http_body,
)
assert re.search(r"Content-Type: application/octet-stream", http_body)
assert re.search(
r"Content-Disposition: form-data; name=\"key4\[string\]\"",
http_body,
)
assert re.search(r"Hello!", http_body)
assert re.search(
r"Content-Disposition: form-data; name=\"key4\[int\]\"", http_body
)
assert re.search(r"234", http_body)
assert re.search(
r"Content-Disposition: form-data; name=\"key4\[float\]\"",
http_body,
)
assert re.search(r"3.14159", http_body)
assert re.search(
r"Content-Disposition: form-data; name=\"key4\[bool\]\"", http_body
)
assert re.search(r"True", http_body)
assert re.search(
r"Content-Disposition: form-data; name=\"key4\[dict\]\[foo\]\"",
http_body,
)
assert re.search(r"bar", http_body)
test_file.seek(0)
file_contents = test_file.read()
if six.PY3 and isinstance(file_contents, bytes):
file_contents = file_contents.decode("utf-8")
assert http_body.find(file_contents) != -1
def test_multipart_data_file_text(self):
with open(__file__, mode="r") as test_file:
self.run_test_multipart_data_with_file(test_file)
def test_multipart_data_file_binary(self):
with open(__file__, mode="rb") as test_file:
self.run_test_multipart_data_with_file(test_file)
def test_multipart_data_stringio(self):
string = six.StringIO("foo")
self.run_test_multipart_data_with_file(string)
def test_multipart_data_unicode_file_name(self):
string = six.StringIO("foo")
string.name = u"паспорт.png"
self.run_test_multipart_data_with_file(string)
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/test_oauth.py 0000644 0001751 0000171 00000005172 14335240430 016317 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
from stripe.six.moves.urllib.parse import parse_qs, urlparse
import stripe
class TestOAuth(object):
def test_authorize_url(self, request_mock):
url = stripe.OAuth.authorize_url(
scope="read_write",
state="csrf_token",
stripe_user={
"email": "test@example.com",
"url": "https://example.com/profile/test",
"country": "US",
},
)
o = urlparse(url)
params = parse_qs(o.query)
url_express = stripe.OAuth.authorize_url(
express=True, scope="read_write", state="csrf_token"
)
o_express = urlparse(url_express)
assert o.scheme == "https"
assert o.netloc == "connect.stripe.com"
assert o.path == "/oauth/authorize"
assert o_express.path == "/express/oauth/authorize"
assert params["client_id"] == ["ca_123"]
assert params["scope"] == ["read_write"]
assert params["stripe_user[email]"] == ["test@example.com"]
assert params["stripe_user[url]"] == [
"https://example.com/profile/test"
]
assert params["stripe_user[country]"] == ["US"]
def test_token(self, request_mock):
request_mock.stub_request(
"post",
"/oauth/token",
{
"access_token": "sk_access_token",
"scope": "read_only",
"livemode": "false",
"token_type": "bearer",
"refresh_token": "sk_refresh_token",
"stripe_user_id": "acct_test",
"stripe_publishable_key": "pk_test",
},
)
resp = stripe.OAuth.token(
grant_type="authorization_code",
code="this_is_an_authorization_code",
)
request_mock.assert_requested(
"post",
"/oauth/token",
{
"grant_type": "authorization_code",
"code": "this_is_an_authorization_code",
},
)
assert resp["access_token"] == "sk_access_token"
def test_deauthorize(self, request_mock):
request_mock.stub_request(
"post",
"/oauth/deauthorize",
{"stripe_user_id": "acct_test_deauth"},
)
resp = stripe.OAuth.deauthorize(stripe_user_id="acct_test_deauth")
request_mock.assert_requested(
"post",
"/oauth/deauthorize",
{"client_id": "ca_123", "stripe_user_id": "acct_test_deauth"},
)
assert resp["stripe_user_id"] == "acct_test_deauth"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/test_oauth_error.py 0000644 0001751 0000171 00000000623 14335240430 017524 0 ustar 00runner docker # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from stripe import oauth_error
class TestOAuthError(object):
def test_error_object(self):
err = oauth_error.OAuthError(
"message", "description", json_body={"error": "some_oauth_error"}
)
assert err.error is not None
assert err.error.error == "some_oauth_error"
././@PaxHeader 0000000 0000000 0000000 00000000026 00000000000 010213 x ustar 00 22 mtime=1668628760.0
stripe-5.0.0/tests/test_stripe_object.py 0000644 0001751 0000171 00000026356 14335240430 020042 0 ustar 00runner docker from __future__ import absolute_import, division, print_function
import datetime
import json
import pickle
from copy import copy, deepcopy
import pytest
import stripe
from stripe import six
SAMPLE_INVOICE = json.loads(
"""
{
"amount_due": 1305,
"attempt_count": 0,
"attempted": true,
"charge": "ch_wajkQ5aDTzFs5v",
"closed": true,
"customer": "cus_osllUe2f1BzrRT",
"date": 1338238728,
"discount": null,
"ending_balance": 0,
"id": "in_t9mHb2hpK7mml1",
"livemode": false,
"next_payment_attempt": null,
"object": "invoice",
"paid": true,
"period_end": 1338238728,
"period_start": 1338238716,
"starting_balance": -8695,
"subtotal": 10000,
"total": 10000,
"lines": {
"object": "list",
"data": [
{
"id": "il_1LSiex2eZvKYlo2CZ5IspTNx",
"object": "line_item",
"amount": 2499,
"amount_excluding_tax": 2499,
"currency": "usd",
"description": "My First Invoice Item (created for API docs)",
"discount_amounts": [],
"discountable": true,
"discounts": [],
"invoice_item": "ii_1LSiex2eZvKYlo2C0X4adTLR",
"livemode": false,
"metadata": {},
"period": {
"end": 1659537295,
"start": 1659537295
},
"price": {
"id": "price_1LSicu2eZvKYlo2C4WSIaXEp",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1659537168,
"currency": "usd",
"custom_unit_amount": null,
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"product": "prod_MB4mvosUV5tObf",
"recurring": null,
"tax_behavior": "unspecified",
"tiers_mode": null,
"transform_quantity": null,
"type": "one_time",
"unit_amount": 2499,
"unit_amount_decimal": "2499"
},
"proration": false,
"proration_details": {
"credited_items": null
},
"quantity": 1,
"subscription": null,
"tax_amounts": [],
"tax_rates": [],
"type": "invoiceitem",
"unit_amount_excluding_tax": "2499"
}
],
"has_more": false,
"url": "/v1/invoices/in_t9mHb2hpK7mml1/lines"
}
}
"""
)
class TestStripeObject(object):
def test_initializes_with_parameters(self):
obj = stripe.stripe_object.StripeObject(
"foo", "bar", myparam=5, yourparam="boo"
)
assert obj.id == "foo"
assert obj.api_key == "bar"
def test_access(self):
obj = stripe.stripe_object.StripeObject("myid", "mykey", myparam=5)
# Empty
with pytest.raises(AttributeError):
obj.myattr
with pytest.raises(KeyError):
obj["myattr"]
assert obj.get("myattr", "def") == "def"
assert obj.get("myattr") is None
# Setters
obj.myattr = "myval"
obj["myitem"] = "itval"
assert obj.setdefault("mydef", "sdef") == "sdef"
# Getters
assert obj.setdefault("myattr", "sdef") == "myval"
assert obj.myattr == "myval"
assert obj["myattr"] == "myval"
assert obj.get("myattr") == "myval"
assert sorted(obj.keys()) == ["id", "myattr", "mydef", "myitem"]
assert sorted(obj.values()) == ["itval", "myid", "myval", "sdef"]
# Illegal operations
with pytest.raises(ValueError):
obj.foo = ""
def test_refresh_from(self, mocker):
obj = stripe.stripe_object.StripeObject.construct_from(
{"foo": "bar", "trans": "me"}, "mykey"
)
assert obj.api_key == "mykey"
assert obj.foo == "bar"
assert obj["trans"] == "me"
assert obj.stripe_version is None
assert obj.stripe_account is None
assert obj.last_response is None
last_response = mocker.Mock()
obj.refresh_from(
{"foo": "baz", "johnny": 5},
"key2",
stripe_version="2017-08-15",
stripe_account="acct_foo",
last_response=last_response,
)
assert obj.johnny == 5
assert obj.foo == "baz"
with pytest.raises(AttributeError):
obj.trans
assert obj.api_key == "key2"
assert obj.stripe_version == "2017-08-15"
assert obj.stripe_account == "acct_foo"
assert obj.last_response == last_response
obj.refresh_from(
{"trans": 4, "metadata": {"amount": 42}}, "key2", True
)
assert obj.foo == "baz"
assert obj.trans == 4
def test_passing_nested_refresh(self):
obj = stripe.stripe_object.StripeObject.construct_from(
{"foos": {"type": "list", "data": [{"id": "nested"}]}},
"key",
stripe_account="acct_foo",
)
nested = obj.foos.data[0]
assert obj.api_key == "key"
assert nested.id == "nested"
assert nested.api_key == "key"
assert nested.stripe_account == "acct_foo"
def test_refresh_from_nested_object(self):
obj = stripe.stripe_object.StripeObject.construct_from(
SAMPLE_INVOICE, "key"
)
assert len(obj.lines) == 1
assert isinstance(obj.lines, stripe.ListObject)
assert isinstance(obj.lines.data[0], stripe.InvoiceLineItem)
assert isinstance(
obj.lines.data[0].price, stripe.stripe_object.StripeObject
)
assert isinstance(obj.lines.data[0].price, stripe.Price)
assert obj.lines.data[0].price.billing_scheme == "per_unit"
def test_refresh_from_nested_object_can_be_paged(self):
obj = stripe.stripe_object.StripeObject.construct_from(
SAMPLE_INVOICE, "key"
)
assert len(obj.lines) == 1
assert isinstance(obj.lines, stripe.ListObject)
seen = [item["id"] for item in obj.lines.auto_paging_iter()]
assert seen == ["il_1LSiex2eZvKYlo2CZ5IspTNx"]
assert isinstance(obj.lines.data[0], stripe.InvoiceLineItem)
assert isinstance(
obj.lines.data[0].price, stripe.stripe_object.StripeObject
)
assert isinstance(obj.lines.data[0].price, stripe.Price)
assert obj.lines.data[0].price.billing_scheme == "per_unit"
def test_to_json(self):
obj = stripe.stripe_object.StripeObject.construct_from(
SAMPLE_INVOICE, "key"
)
self.check_invoice_data(json.loads(str(obj)))
def check_invoice_data(self, data):
# Check rough structure
assert len(list(data.keys())) == 20
assert len(list(data["lines"]["data"][0].keys())) == 22
assert len(data["lines"]["data"]) == 1
# Check various data types
assert data["date"] == 1338238728
assert data["next_payment_attempt"] is None
assert data["livemode"] is False
assert (
data["lines"]["data"][0]["price"]["billing_scheme"] == "per_unit"
)
def test_repr(self):
obj = stripe.stripe_object.StripeObject("foo", "bar", myparam=5)
obj["object"] = u"\u4e00boo\u1f00"
obj.date = datetime.datetime.fromtimestamp(1511136000)
res = repr(obj)
if six.PY2:
res = six.text_type(repr(obj), "utf-8")
assert u"