From 343c50a422a07944e2ac7efdc793b2a161493ebe Mon Sep 17 00:00:00 2001 From: JonPurvis Date: Sat, 10 Aug 2024 12:43:43 +0100 Subject: [PATCH] add new methods for climate and forwarding --- .gitignore | 3 +- README.md | 127 ++++++++++++--------- src/Stripe.php | 101 ++++++++++++++--- tests/StripeTest.php | 264 ++++++++++++++++++++++++++----------------- 4 files changed, 323 insertions(+), 172 deletions(-) diff --git a/.gitignore b/.gitignore index bf12543..db6e5c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ composer.lock vendor -.idea \ No newline at end of file +.idea +.phpunit.cache \ No newline at end of file diff --git a/README.md b/README.md index 6da0a05..06eeceb 100644 --- a/README.md +++ b/README.md @@ -20,33 +20,34 @@ the names of resources _should_ match what's in this package. ### Core Resources -| API Resource | Method | Example | -|-------------------------------------------------------------------------------|--------------------------------------------------------|-------------------------------------------------------------------------| -| [Balance Transactions](https://stripe.com/docs/api/balance_transactions) | `stripeCoreBalanceTransactionId()` | `txn_na40ulkbDvvegzALfY8w61udH` | -| [Charges](https://stripe.com/docs/api/charges) | `stripeCoreChargeId()` | `ch_Dxy18EPyj6XXvqQiqApPQ8dA` | -| [Customers](https://stripe.com/docs/api/customers) | `stripeCoreCustomerId()` | `cus_uW8qUwsTwKKtY3` | -| [Disputes](https://stripe.com/docs/api/disputes) | `stripeCoreDisputeId()` | `dp_e3ZeEytdlpOxMtRg9M88RMcq` | -| [Events](https://stripe.com/docs/api/events) | `stripeCoreEventId()` | `evt_diyd59RDTVw8ZxrnkOt62mFS` | -| [Files](https://stripe.com/docs/api/files) | `stripeCoreFileId()` | `file_qrbRTo7XbytwvE6w3SQU8QXK` | -| [File Links](https://stripe.com/docs/api/file_links) | `stripeCoreFileLinkId()` | `link_Z5Tesn6zQYYdov5R3bCblM8A` | -| [Mandates](https://stripe.com/docs/api/mandates) | `stripeCoreMandateId()` | `mandate_S4EbkGH8MFAOWUXivQqcV7wx` | -| [PaymentIntents](https://stripe.com/docs/api/payment_intents) | `stripeCorePaymentIntentId()` | `pi_KiAjc3WFzvswIhq8IkCLXNBW` | -| [PaymentIntents](https://stripe.com/docs/api/payment_intents) | `stripeCorePaymentIntentClientSecret()` | `pi_rZh1PKbBkmMFkHve9GKRKyg4_secret_dr3lRVfoKD8ew3BUmYZYuVONV` | -| [SetupAttempts](https://stripe.com/docs/api/setup_attempts) | `stripeCoreSetupAttemptId()` | `setatt_JBHfYghz8HiScAnOcOKin75X` | -| [SetupIntents](https://stripe.com/docs/api/setup_intents) | `stripeCoreSetupIntentId()` | `seti_yeYZcpT970pn6sBXlAkj8AbK` | -| [SetupIntents](https://stripe.com/docs/api/setup_intents) | `stripeCoreSetupIntentClientSecret()` | `seti_xFyqGss1WNuKVCKf1KnXfD3b_secret_Yy5L7jzP4RuoQrCiIBqXn9FWuSvX3z6` | -| [Payouts](https://stripe.com/docs/api/payouts) | `stripeCorePayoutId()` | `po_YqFWOxztWRuLCJezThbHktTP` | -| [Refunds](https://stripe.com/docs/api/refunds) | `stripeCoreRefundId()` | `re_3BebPOs89OAgEtXAOG0c1eF4` | -| [Card Tokens](https://stripe.com/docs/api/tokens/create_card) | `stripeCoreTokenId()` | `tok_q1KiYddcC48Tqney3T8Vnkzu` | -| [Bank Account Tokens](https://stripe.com/docs/api/tokens/create_bank_account) | `stripeCoreBankAccountTokenId()` | `btok_8RnxS6Y358qBuRRYS4el8LEo` | -| [PII Tokens](https://stripe.com/docs/api/tokens/create_pii) | `stripeCorePersonallyIdentifiableInformationTokenId()` | `pii_uCbQpWwZu3tJEUm18GiQsKAa` | -| [Account Tokens](https://stripe.com/docs/api/tokens/create_account) | `stripeCoreAccountTokenId()` | `ct_XPKqNZwOTjWJatx4A5zW2Myh` | -| [Person Tokens](https://stripe.com/docs/api/tokens/create_person) | `stripeCorePersonTokenId()` | `cpt_MtqTlVzM2qmAIv0KhZJ0qV4g` | -| [CVC Update Tokens](https://stripe.com/docs/api/tokens/create_cvc_update) | `stripeCoreCvcUpdateTokenId()` | `cvctok_wWV1bniJ16gsBjJlIMrN8T87` | +| API Resource | Method | Example | +|:-----------------------------------------------------------------------------------------|-----------------------------------------------------------|--------------------------------------------------------------------------| +| [Balance Transactions](https://stripe.com/docs/api/balance_transactions) | `stripeCoreBalanceTransactionId()` | `txn_na40ulkbDvvegzALfY8w61udH` | +| [Charges](https://stripe.com/docs/api/charges) | `stripeCoreChargeId()` | `ch_Dxy18EPyj6XXvqQiqApPQ8dA` | +| [Customers](https://stripe.com/docs/api/customers) | `stripeCoreCustomerId()` | `cus_uW8qUwsTwKKtY3` | +| [Disputes](https://stripe.com/docs/api/disputes) | `stripeCoreDisputeId()` | `dp_e3ZeEytdlpOxMtRg9M88RMcq` | +| [Events](https://stripe.com/docs/api/events) | `stripeCoreEventId()` | `evt_diyd59RDTVw8ZxrnkOt62mFS` | +| [Files](https://stripe.com/docs/api/files) | `stripeCoreFileId()` | `file_qrbRTo7XbytwvE6w3SQU8QXK` | +| [File Links](https://stripe.com/docs/api/file_links) | `stripeCoreFileLinkId()` | `link_Z5Tesn6zQYYdov5R3bCblM8A` | +| [Mandates](https://stripe.com/docs/api/mandates) | `stripeCoreMandateId()` | `mandate_S4EbkGH8MFAOWUXivQqcV7wx` | +| [PaymentIntents](https://stripe.com/docs/api/payment_intents) | `stripeCorePaymentIntentId()` | `pi_KiAjc3WFzvswIhq8IkCLXNBW` | +| [PaymentIntents](https://stripe.com/docs/api/payment_intents) | `stripeCorePaymentIntentClientSecret()` | `pi_rZh1PKbBkmMFkHve9GKRKyg4_secret_dr3lRVfoKD8ew3BUmYZYuVONV` | +| [SetupAttempts](https://stripe.com/docs/api/setup_attempts) | `stripeCoreSetupAttemptId()` | `setatt_JBHfYghz8HiScAnOcOKin75X` | +| [SetupIntents](https://stripe.com/docs/api/setup_intents) | `stripeCoreSetupIntentId()` | `seti_yeYZcpT970pn6sBXlAkj8AbK` | +| [SetupIntents](https://stripe.com/docs/api/setup_intents) | `stripeCoreSetupIntentClientSecret()` | `seti_xFyqGss1WNuKVCKf1KnXfD3b_secret_Yy5L7jzP4RuoQrCiIBqXn9FWuSvX3z6` | +| [Payouts](https://stripe.com/docs/api/payouts) | `stripeCorePayoutId()` | `po_YqFWOxztWRuLCJezThbHktTP` | +| [Refunds](https://stripe.com/docs/api/refunds) | `stripeCoreRefundId()` | `re_3BebPOs89OAgEtXAOG0c1eF4` | +| [Confirmation Tokens](https://docs.stripe.com/api/confirmation_tokens) | `stripeCoreConfirmationTokenId()` | `ctoken_UDlKXzYnsCqEJvomcWWqCnTF` | +| [Card Tokens](https://stripe.com/docs/api/tokens/create_card) | `stripeCoreTokenId()` | `tok_q1KiYddcC48Tqney3T8Vnkzu` | +| [Bank Account Tokens](https://stripe.com/docs/api/tokens/create_bank_account) | `stripeCoreBankAccountTokenId()` | `btok_8RnxS6Y358qBuRRYS4el8LEo` | +| [PII Tokens](https://stripe.com/docs/api/tokens/create_pii) | `stripeCorePersonallyIdentifiableInformationTokenId()` | `pii_uCbQpWwZu3tJEUm18GiQsKAa` | +| [Account Tokens](https://stripe.com/docs/api/tokens/create_account) | `stripeCoreAccountTokenId()` | `ct_XPKqNZwOTjWJatx4A5zW2Myh` | +| [Person Tokens](https://stripe.com/docs/api/tokens/create_person) | `stripeCorePersonTokenId()` | `cpt_MtqTlVzM2qmAIv0KhZJ0qV4g` | +| [CVC Update Tokens](https://stripe.com/docs/api/tokens/create_cvc_update) | `stripeCoreCvcUpdateTokenId()` | `cvctok_wWV1bniJ16gsBjJlIMrN8T87` | ### Payment Methods | API Resource | Method | Example | -|--------------------------------------------------------------------------------------------|-----------------------------------------------------|-----------------------------------------------------| +|:-------------------------------------------------------------------------------------------|-----------------------------------------------------|-----------------------------------------------------| | [Payment Methods](https://stripe.com/docs/api/payment_methods) | `stripePaymentMethodId()` | `pm_jkztRiUi5yqTNqHJTzTAVolI` | | [Payment Method Configurations](https://stripe.com/docs/api/payment_method_configurations) | `stripePaymentMethodConfigurationId()` | `pmc_BS6va641BwHZCexJscZ9LNH8` | | [Payment Method Domains](https://stripe.com/docs/api/payment_method_domains) | `stripePaymentMethodDomainId()` | `pmd_FcObWHJ3gtwujiuUhVhWSe2c` | @@ -67,7 +68,7 @@ the names of resources _should_ match what's in this package. ### Checkout | API Resource | Method | Example | -|--------------------------------------------------------------------|-----------------------------|-----------------------------------------------------------------| +|:-------------------------------------------------------------------|-----------------------------|-----------------------------------------------------------------| | [Checkout Sessions](https://stripe.com/docs/api/checkout/sessions) | `stripeCheckoutSessionId()` | `cs_A1caKuWyEPOrovEkpYJLfId5uOpWzynW8ZunRYnA0J9RsPzdM6YeBfDG03` | ### Payment Links @@ -76,23 +77,27 @@ the names of resources _should_ match what's in this package. | [Payment Links](https://stripe.com/docs/api/payment_links/payment_links) | `stripePaymentLinkId()` | `plink_L85n1vZMv4QS0aYwj11TKjTy` | ### Billing -| API Resource | Method | Example | -|----------------------------------------------------------------------------------------------|-------------------------------------------------|--------------------------------------| -| [Credit Notes](https://stripe.com/docs/api/credit_notes) | `stripeBillingCreditNoteId()` | `cn_37b9KW8lODWCDSilck1hs0on` | -| [Credit Note Line Items](https://stripe.com/docs/api/credit_notes/line_item) | `stripeBillingCreditNoteLineItemId()` | `il_75E91IzYCJaaSbESOZl5GQiF` | -| [Customer Balance Transactions](https://stripe.com/docs/api/customer_balance_transactions) | `stripeBillingCustomerBalanceTransactionId()` | `cbtxn_SboO9vmMCUoTg6iGGdsOQ18R` | -| [Customer Portal](https://stripe.com/docs/api/customer_portal) | `stripeBillingCustomerPortalId()` | `bps_HFXl8fnSxXjVUvepP0g7cfEH` | -| [Customer Portal Configuration](https://stripe.com/docs/api/customer_portal/configuration) | `stripeBillingCustomerPortalConfigurationId()` | `bpc_sfteIfmkKXSNTxL7nA5dNKVS` | -| [Customer Tax IDs](https://stripe.com/docs/api/customer_tax_ids) | `stripeBillingCustomerTaxIdId()` | `txi_Vs7BSOcldH5QIN35U8lSlJuc` | -| [Invoices](https://stripe.com/docs/api/invoices) | `stripeBillingInvoiceId()` | `in_pBNUeaVUmJ8I44Fx1OajNLQn` | -| [Invoice Items](https://stripe.com/docs/api/invoiceitems) | `stripeBillingInvoiceItemId()` | `ii_gOWpZpoGoMOE5IYVS86mmGXS` | -| [Plans](https://stripe.com/docs/api/plans) | `stripeBillingPlanId()` | `price_9wWZ7dtmQSWvQDhFBJB49sv8` | -| [Quotes](https://stripe.com/docs/api/quotes) | `stripeBillingQuoteId()` | `qt_qrx3tn3rnQ1USENFK1gJcXLv` | -| [Subscriptions](https://stripe.com/docs/api/subscriptions) | `stripeBillingSubscriptionId()` | `sub_wMwsJiaZpdRfrF7WXkP0ibmc` | -| [Subscription Items](https://stripe.com/docs/api/subscription_items) | `stripeBillingSubscriptionItemId()` | `si_3OdBLaD7p37H2A` | -| [Subscription Schedules](https://stripe.com/docs/api/subscription_schedules) | `stripeBillingSubscriptionScheduleId()` | `sub_sched_OnyC6GSR3kjse08ehVNsB5U0` | -| [Test Clocks](https://stripe.com/docs/api/test_clocks) | `stripeBillingTestClockId()` | `clock_6QR6dCPpUhhBg81wmyFF4VtJ` | -| [Usage Records](https://stripe.com/docs/api/usage_records) | `stripeBillingUsageRecordId()` | `mbur_ppVgDLt5HcG8zP48Grk7NZfP` | +| API Resource | Method | Example | +|----------------------------------------------------------------------------------------------|-------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [Credit Notes](https://stripe.com/docs/api/credit_notes) | `stripeBillingCreditNoteId()` | `cn_37b9KW8lODWCDSilck1hs0on` | +| [Credit Note Line Items](https://stripe.com/docs/api/credit_notes/line_item) | `stripeBillingCreditNoteLineItemId()` | `il_75E91IzYCJaaSbESOZl5GQiF` | +| [Customer Balance Transactions](https://stripe.com/docs/api/customer_balance_transactions) | `stripeBillingCustomerBalanceTransactionId()` | `cbtxn_SboO9vmMCUoTg6iGGdsOQ18R` | +| [Customer Portal](https://stripe.com/docs/api/customer_portal) | `stripeBillingCustomerPortalId()` | `bps_HFXl8fnSxXjVUvepP0g7cfEH` | +| [Customer Portal Configuration](https://stripe.com/docs/api/customer_portal/configuration) | `stripeBillingCustomerPortalConfigurationId()` | `bpc_sfteIfmkKXSNTxL7nA5dNKVS` | +| [Customer Tax IDs](https://stripe.com/docs/api/customer_tax_ids) | `stripeBillingCustomerTaxIdId()` | `txi_Vs7BSOcldH5QIN35U8lSlJuc` | +| [Invoices](https://stripe.com/docs/api/invoices) | `stripeBillingInvoiceId()` | `in_pBNUeaVUmJ8I44Fx1OajNLQn` | +| [Invoice Items](https://stripe.com/docs/api/invoiceitems) | `stripeBillingInvoiceItemId()` | `ii_gOWpZpoGoMOE5IYVS86mmGXS` | +| [Invoice Line Item](https://docs.stripe.com/api/invoice-line_item) | `stripeBillingInvoiceLineItemId()` | `il_tmp_lZHqliBZKLzgXuBajqYaAhxz` | +| [Alerts](https://docs.stripe.com/api/billing/alert) | `stripeBillingAlertId()` | `alrt_39061` | +| [Meters](https://docs.stripe.com/api/billing/meter) | `stripeBillingMeterId()` | `mtr_53464` | +| [Meter Event Summary](https://docs.stripe.com/api/billing/meter-event_summary) | `stripeBillingMeterEventSummaryId()` | `mtrusg_Be99DBj9c2jnNh5IxKt2bULP2Mb36xnO29OpHiVsfIeuyyI3OGvdtem4qLZ5e0O3ZB0cT93uhqpQZWJdNtYNmOERzX7AOan9OHu373TqGQoVYVBtzghvVp0oMclD2iZfnGYdeePNUvi5gKtsE36tuhev4h62i79IM8uWTdS0U77j4cz0DDOMZCcvX` | +| [Plans](https://stripe.com/docs/api/plans) | `stripeBillingPlanId()` | `price_9wWZ7dtmQSWvQDhFBJB49sv8` | +| [Quotes](https://stripe.com/docs/api/quotes) | `stripeBillingQuoteId()` | `qt_qrx3tn3rnQ1USENFK1gJcXLv` | +| [Subscriptions](https://stripe.com/docs/api/subscriptions) | `stripeBillingSubscriptionId()` | `sub_wMwsJiaZpdRfrF7WXkP0ibmc` | +| [Subscription Items](https://stripe.com/docs/api/subscription_items) | `stripeBillingSubscriptionItemId()` | `si_3OdBLaD7p37H2A` | +| [Subscription Schedules](https://stripe.com/docs/api/subscription_schedules) | `stripeBillingSubscriptionScheduleId()` | `sub_sched_OnyC6GSR3kjse08ehVNsB5U0` | +| [Test Clocks](https://stripe.com/docs/api/test_clocks) | `stripeBillingTestClockId()` | `clock_6QR6dCPpUhhBg81wmyFF4VtJ` | +| [Usage Records](https://stripe.com/docs/api/usage_records) | `stripeBillingUsageRecordId()` | `mbur_ppVgDLt5HcG8zP48Grk7NZfP` | ### Connect | API Resource | Method | Example | @@ -117,14 +122,16 @@ the names of resources _should_ match what's in this package. | [Value List Items](https://stripe.com/docs/api/radar/value_list_items) | `stripeFraudValueListItemId()` | `rsli_QQdPv6uWYm7nZUlX3g65TfGV` | ### Issuing -| API Resource | Method | Example | -|----------------------------------------------------------------------|----------------------------------|----------------------------------| -| [Authorizations](https://stripe.com/docs/api/issuing/authorizations) | `stripeIssuingAuthorizationId()` | `iauth_GyuotdxkKEHCNNYHohzBBuBh` | -| [Cardholders](https://stripe.com/docs/api/issuing/cardholders) | `stripeIssuingCardholderId()` | `ich_EyqQ6EcYkhzgyrGEQSCY68EB` | -| [Cards](https://stripe.com/docs/api/issuing/cards) | `stripeIssuingCardId()` | `ic_IsXAmEVzInXUPtq4uttDZ2g2` | -| [Disputes](https://stripe.com/docs/api/issuing/disputes) | `stripeIssuingDisputeId()` | `idp_lXR4WsU6fhdpErzWVNOr24Ux` | -| [Tokens](https://stripe.com/docs/api/issuing/tokens) | `stripeIssuingTokenId()` | `intok_HMkTW4FnWckzqqNGGFJP4I7E` | -| [Transactions](https://stripe.com/docs/api/issuing/transactions) | `stripeIssuingTransactionId()` | `ipi_FqGAHy3JUvUsjWdqyaViRFm2` | +| API Resource | Method | Example | +|----------------------------------------------------------------------------------------|-------------------------------------------|-------------------------------------| +| [Authorizations](https://stripe.com/docs/api/issuing/authorizations) | `stripeIssuingAuthorizationId()` | `iauth_GyuotdxkKEHCNNYHohzBBuBh` | +| [Cardholders](https://stripe.com/docs/api/issuing/cardholders) | `stripeIssuingCardholderId()` | `ich_EyqQ6EcYkhzgyrGEQSCY68EB` | +| [Cards](https://stripe.com/docs/api/issuing/cards) | `stripeIssuingCardId()` | `ic_IsXAmEVzInXUPtq4uttDZ2g2` | +| [Disputes](https://stripe.com/docs/api/issuing/disputes) | `stripeIssuingDisputeId()` | `idp_lXR4WsU6fhdpErzWVNOr24Ux` | +| [Personalization Designs](https://docs.stripe.com/api/issuing/personalization_designs) | `stripeIssuingPersonalizationDesignsId()` | `ipcd_ulVGQxe21jR4vx` | +| [Physical Bundles](https://docs.stripe.com/api/issuing/physical_bundles) | `stripeIssuingPhysicalBundlesId()` | `ics_Kd7CQOUvHjJelX` | +| [Tokens](https://stripe.com/docs/api/issuing/tokens) | `stripeIssuingTokenId()` | `intok_HMkTW4FnWckzqqNGGFJP4I7E` | +| [Transactions](https://stripe.com/docs/api/issuing/transactions) | `stripeIssuingTransactionId()` | `ipi_FqGAHy3JUvUsjWdqyaViRFm2` | ### Terminal | API Resource | Method | Example | @@ -151,6 +158,13 @@ the names of resources _should_ match what's in this package. | [CreditReversals](https://stripe.com/docs/api/treasury/credit_reversals) | `stripeTreasuryCreditReversalId()` | `credrev_awpfYT4hppBEmsz9KPgtOYDm` | | [DebitReversals](https://stripe.com/docs/api/treasury/debit_reversals) | `stripeTreasuryDebitReversalId()` | `debrev_ykpt4Mi6yZAPrm8upq3yKI5r` | +### Entitlements +| API Resource | Method | Example | +|-----------------------------------------------------------------------------------|-------------------------------------------|------------------------------------------| +| [Feature](https://docs.stripe.com/api/entitlements/feature) | `stripeEntitlementFeatureId()` | `feat_YZF6aSsx1eTNhEYrsMw6xdUeZ6lESQjt` | +| [Product Feature](https://docs.stripe.com/api/product-feature) | `stripeEntitlementProductFeatureId()` | `prodft_8qi4lJKVjxGy8u` | +| [Active Entitlement](https://docs.stripe.com/api/entitlements/active-entitlement) | `stripeEntitlementActiveEntitlementId()` | `ent_avB0r4MuPxc66IVgc2EF4lK50OznONZu` | + ### Sigma | API Resource | Method | Example | |--------------------------------------------------------------------------|------------------------------------|--------------------------------| @@ -163,7 +177,7 @@ the names of resources _should_ match what's in this package. ### Financial Connections | API Resource | Method | Example | -|---------------------------------------------------------------------------------------------------|-------------------------------------------------------|-------------------------------------| +|:--------------------------------------------------------------------------------------------------|-------------------------------------------------------|-------------------------------------| | [Accounts](https://stripe.com/docs/api/financial_connections/accounts) | `stripeFinancialConnectionAccountId()` | `fca_z3JzQ1OCkYved5uWOqh3b387` | | [Account Ownership](https://stripe.com/docs/api/financial_connections/ownership) | `stripeFinancialConnectionAccountOwnershipId()` | `fcaowns_XwyWHMQFo9koh9U1TuOMW43D` | | [Sessions](https://stripe.com/docs/api/financial_connections/session) | `stripeFinancialConnectionSessionId()` | `fcsess_ZnomHexUQ68qiad2GWqQsvsa` | @@ -189,6 +203,17 @@ the names of resources _should_ match what's in this package. | [Onramp Sessions](https://stripe.com/docs/api/crypto/onramp_sessions) | `stripeCryptoOnrampSessionId()` | `cos_wlo5PYZC2j8lFHnMaxbuFBK8` | | [Onramp Sessions](https://stripe.com/docs/api/crypto/onramp_sessions) | `stripeCryptoOnrampSessionClientSecret()` | `cos_Wjo3OVUVusWY54RHF6oCM0Jm_secret_Bm9iRlLbb82K19mwOxQE9jVdA0U8rMEmKO6` | +### Climate +| API Resource | Method | Example | +|-------------------------------------------------------------------|------------------------------------------|--------------------------------------| +| [Climate Order](https://docs.stripe.com/api/climate/order) | `stripeClimateOrderId()` | `climorder_zPgRtPy8onKSuWtEHoNZidD9` | +| [Climate Product](https://docs.stripe.com/api/climate/product) | `stripeClimateProductId()` | `climsku_zhSJ6n8xrB3iLS4yHNVxzpBq` | +| [Climate Supplier](https://docs.stripe.com/api/climate/supplier) | `stripeClimateSupplierId()` | `climsup_YKxeDsj2hhmR2cqmangtVy02` | + +### Forwarding +| API Resource | Method | Example | +|----------------------------------------------------------------------|-------------------------------|------------------| +| [Forwarding Request](https://docs.stripe.com/api/forwarding/request) | `stripeForwardingRequestId()` | `fwd_req_90746` | ### Webhooks | API Resource | Method | Example | diff --git a/src/Stripe.php b/src/Stripe.php index a56d4d8..11c0ae2 100644 --- a/src/Stripe.php +++ b/src/Stripe.php @@ -24,7 +24,7 @@ private function generateRandomString($length = 24, $numericOnly = false): strin public function stripeConnectAccountId(): string { - return 'acct_' . $this->generateRandomString(16); + return 'acct_' . $this->generateRandomString(length: 16); } public function stripeConnectApplicationFeeId(): string @@ -34,7 +34,7 @@ public function stripeConnectApplicationFeeId(): string public function stripeCoreBalanceTransactionId(): string { - return 'txn_' . $this->generateRandomString(25); + return 'txn_' . $this->generateRandomString(length: 25); } public function stripeCoreChargeId(): string @@ -44,7 +44,7 @@ public function stripeCoreChargeId(): string public function stripeCoreCustomerId(): string { - return 'cus_' . $this->generateRandomString(14); + return 'cus_' . $this->generateRandomString(length: 14); } public function stripeCoreDisputeId(): string @@ -129,7 +129,7 @@ public function stripePaymentMethodCardId(): string public function stripeProductId(): string { - return 'prod_' . $this->generateRandomString(14); + return 'prod_' . $this->generateRandomString(length: 14); } public function stripeProductPriceId(): string @@ -149,7 +149,7 @@ public function stripeProductDiscountId(): string public function stripeProductTaxCodeId(): string { - return 'txcd_' . $this->generateRandomString(8, true); + return 'txcd_' . $this->generateRandomString(length: 8, numericOnly: true); } public function stripeProductTaxRateId(): string @@ -164,7 +164,7 @@ public function stripeProductShippingRateId(): string public function stripeCheckoutSessionId(): string { - return 'cs_' . $this->generateRandomString(58); + return 'cs_' . $this->generateRandomString(length: 58); } public function stripePaymentLinkId(): string @@ -209,7 +209,7 @@ public function stripeBillingSubscriptionId(): string public function stripeBillingSubscriptionItemId(): string { - return 'si_' . $this->generateRandomString(14); + return 'si_' . $this->generateRandomString(length: 14); } public function stripeBillingSubscriptionScheduleId(): string @@ -323,22 +323,22 @@ public function stripeTerminalHardwareOrderId(): string public function stripeTerminalHardwareProductId(): string { - return 'thpr_' . $this->generateRandomString(14); + return 'thpr_' . $this->generateRandomString(length: 14); } public function stripeTerminalHardwareSkuId(): string { - return 'thsku_' . $this->generateRandomString(14); + return 'thsku_' . $this->generateRandomString(length: 14); } public function stripeTerminalHardwareShippingMethodId(): string { - return 'thsm_' . $this->generateRandomString(14); + return 'thsm_' . $this->generateRandomString(length: 14); } public function stripeTerminalConfigurationId(): string { - return 'tmc_' . $this->generateRandomString(14); + return 'tmc_' . $this->generateRandomString(length: 14); } public function stripeTreasuryFinancialAccountId(): string @@ -453,12 +453,12 @@ public function stripeFinancialConnectionTransactionRefreshId(): string public function stripeTaxTransactionLineItemId(): string { - return 'tax_li_' . $this->generateRandomString(14); + return 'tax_li_' . $this->generateRandomString(length: 14); } public function stripeWebhookApplicationId(): string { - return 'ca_' . $this->generateRandomString(32); + return 'ca_' . $this->generateRandomString(length: 32); } public function stripeCryptoOnrampSessionId(): string @@ -468,12 +468,12 @@ public function stripeCryptoOnrampSessionId(): string public function stripeCorePaymentIntentClientSecret(): string { - return 'pi_' . $this->generateRandomString() . '_secret_' . $this->generateRandomString(25); + return 'pi_' . $this->generateRandomString() . '_secret_' . $this->generateRandomString(length: 25); } public function stripeCryptoOnrampSessionClientSecret(): string { - return 'cos_' . $this->generateRandomString() . '_secret_' . $this->generateRandomString(35); + return 'cos_' . $this->generateRandomString() . '_secret_' . $this->generateRandomString(length: 35); } public function stripeConnectCapabilityId(): string @@ -503,7 +503,7 @@ public function stripePaymentMethodDomainId(): string public function stripeCoreSetupIntentClientSecret(): string { - return 'seti_' . $this->generateRandomString() . '_secret_' . $this->generateRandomString(31); + return 'seti_' . $this->generateRandomString() . '_secret_' . $this->generateRandomString(length: 31); } public function stripeCoreBankAccountTokenId(): string @@ -541,4 +541,73 @@ public function stripeBillingCustomerPortalConfigurationId(): string return 'bpc_' . $this->generateRandomString(); } + public function stripeCoreConfirmationTokenId(): string + { + return 'ctoken_' . $this->generateRandomString(); + } + + public function stripeBillingInvoiceLineItemId(): string + { + return 'il_tmp_' . $this->generateRandomString(); + } + + public function stripeBillingAlertId(): string + { + return 'alrt_' . $this->generateRandomString(length: 5, numericOnly: true); + } + + public function stripeBillingMeterId(): string + { + return 'mtr_' . $this->generateRandomString(length: 5, numericOnly: true); + } + + public function stripeBillingMeterEventSummaryId(): string + { + return 'mtrusg_' . $this->generateRandomString(length: 185); + } + + public function stripeIssuingPersonalizationDesignsId(): string + { + return 'ipcd_' . $this->generateRandomString(length: 14); + } + + public function stripeIssuingPhysicalBundlesId(): string + { + return 'ics_' . $this->generateRandomString(length: 14); + } + + public function stripeEntitlementFeatureId(): string + { + return 'feat_' . $this->generateRandomString(length: 32); + } + + public function stripeEntitlementProductFeatureId(): string + { + return 'prodft_' . $this->generateRandomString(length: 14); + } + + public function stripeEntitlementActiveEntitlementId(): string + { + return 'ent_' . $this->generateRandomString(length: 32); + } + + public function stripeClimateOrderId(): string + { + return 'climorder_' . $this->generateRandomString(); + } + + public function stripeClimateProductId(): string + { + return 'climsku_' . $this->generateRandomString(); + } + + public function stripeClimateSupplierId(): string + { + return 'climsup_' . $this->generateRandomString(); + } + + public function stripeForwardingRequestId(): string + { + return 'fwd_req_' . $this->generateRandomString(length: 5, numericOnly: true); + } } \ No newline at end of file diff --git a/tests/StripeTest.php b/tests/StripeTest.php index 2f7196b..59bdd03 100644 --- a/tests/StripeTest.php +++ b/tests/StripeTest.php @@ -10,416 +10,472 @@ it('generates a connect account id', function () { expect($this->fake->stripeConnectAccountId())->toStartWith('acct_')->toHaveLength(21)->toBeString(); -})->repeat(2); +}); it('generates a connect application fee id', function () { expect($this->fake->stripeConnectApplicationFeeId())->toStartWith('fee_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a core balance transaction id', function () { expect($this->fake->stripeCoreBalanceTransactionId())->toStartWith('txn_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates a core charge id', function () { expect($this->fake->stripeCoreChargeId())->toStartWith('ch_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a core customer id', function () { expect($this->fake->stripeCoreCustomerId())->toStartWith('cus_')->toHaveLength(18)->toBeString(); -})->repeat(2); +}); it('generates a core dispute id', function () { expect($this->fake->stripeCoreDisputeId())->toStartWith('dp_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a core event id', function () { expect($this->fake->stripeCoreEventId())->toStartWith('evt_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a core file id', function () { expect($this->fake->stripeCoreFileId())->toStartWith('file_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates a core file link id', function () { expect($this->fake->stripeCoreFileLinkId())->toStartWith('link_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates a billing invoice id', function () { expect($this->fake->stripeBillingInvoiceId())->toStartWith('in_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a billing invoice item id', function () { expect($this->fake->stripeBillingInvoiceItemId())->toStartWith('ii_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a core mandate id', function () { expect($this->fake->stripeCoreMandateId())->toStartWith('mandate_')->toHaveLength(32)->toBeString(); -})->repeat(2); +}); it('generates a core payment intent id', function () { expect($this->fake->stripeCorePaymentIntentId())->toStartWith('pi_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a core payout id', function () { expect($this->fake->stripeCorePayoutId())->toStartWith('po_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a core refund id', function () { expect($this->fake->stripeCoreRefundId())->toStartWith('re_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a core setup intent id', function () { expect($this->fake->stripeCoreSetupIntentId())->toStartWith('seti_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates a core setup attempt id', function () { expect($this->fake->stripeCoreSetupAttemptId())->toStartWith('setatt_')->toHaveLength(31)->toBeString(); -})->repeat(2); +}); it('generates a core token id', function () { expect($this->fake->stripeCoreTokenId())->toStartWith('tok_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a payment method id', function () { expect($this->fake->stripePaymentMethodId())->toStartWith('pm_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a payment method bank account id', function () { expect($this->fake->stripePaymentMethodBankAccountId())->toStartWith('ba_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a payment method card id', function () { expect($this->fake->stripePaymentMethodCardId())->toStartWith('card_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates a product id', function () { expect($this->fake->stripeProductId())->toStartWith('prod_')->toHaveLength(19)->toBeString(); -})->repeat(2); +}); it('generates a product price id', function () { expect($this->fake->stripeProductPriceId())->toStartWith('price_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates a product promotion code id', function () { expect($this->fake->stripeProductPromotionCodeId())->toStartWith('promo_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates a product discount id', function () { expect($this->fake->stripeProductDiscountId())->toStartWith('di_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a product tax code id', function () { expect($this->fake->stripeProductTaxCodeId())->toStartWith('txcd_')->toHaveLength(13)->toBeString(); -})->repeat(2); +}); it('generates a product tax rate id', function () { expect($this->fake->stripeProductTaxRateId())->toStartWith('txr_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a product shipping rate id', function () { expect($this->fake->stripeProductShippingRateId())->toStartWith('shr_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a checkout session id', function () { expect($this->fake->stripeCheckoutSessionId())->toStartWith('cs_')->toHaveLength(61)->toBeString(); -})->repeat(2); +}); it('generates a payment link id', function () { expect($this->fake->stripePaymentLinkId())->toStartWith('plink_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates a billing credit note id', function () { expect($this->fake->stripeBillingCreditNoteId())->toStartWith('cn_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a billing customer balance transaction id', function () { expect($this->fake->stripeBillingCustomerBalanceTransactionId())->toStartWith('cbtxn_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates a billing customer portal id', function () { expect($this->fake->stripeBillingCustomerPortalId())->toStartWith('bps_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a billing customer tax id id', function () { expect($this->fake->stripeBillingCustomerTaxIdId())->toStartWith('txi_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a billing plan id', function () { expect($this->fake->stripeBillingPlanId())->toStartWith('price_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates a billing quote id', function () { expect($this->fake->stripeBillingQuoteId())->toStartWith('qt_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a billing subscription id', function () { expect($this->fake->stripeBillingSubscriptionId())->toStartWith('sub_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a billing subscription item id', function () { expect($this->fake->stripeBillingSubscriptionItemId())->toStartWith('si_')->toHaveLength(17)->toBeString(); -})->repeat(2); +}); it('generates a billing subscription schedule id', function () { expect($this->fake->stripeBillingSubscriptionScheduleId())->toStartWith('sub_sched_')->toHaveLength(34)->toBeString(); -})->repeat(2); +}); it('generates a billing test clock id', function () { expect($this->fake->stripeBillingTestClockId())->toStartWith('clock_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates a billing usage record id', function () { expect($this->fake->stripeBillingUsageRecordId())->toStartWith('mbur_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates a connect application fee refund id', function () { expect($this->fake->stripeConnectApplicationFeeRefundId())->toStartWith('fr_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a connect external account id', function () { expect($this->fake->stripeConnectExternalAccountId())->toStartWith('ba_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a connect person id', function () { expect($this->fake->stripeConnectPersonId())->toStartWith('person_')->toHaveLength(31)->toBeString(); -})->repeat(2); +}); it('generates a connect top up id', function () { expect($this->fake->stripeConnectTopUpId())->toStartWith('tu_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a connect transfer id', function () { expect($this->fake->stripeConnectTransferId())->toStartWith('tr_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a connect transfer reversal id', function () { expect($this->fake->stripeConnectTransferReversalId())->toStartWith('trr_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a connect secret management id', function () { expect($this->fake->stripeConnectSecretManagementId())->toStartWith('appsecret_')->toHaveLength(34)->toBeString(); -})->repeat(2); +}); it('generates a fraud early fraud warning id', function () { expect($this->fake->stripeFraudEarlyFraudWarningId())->toStartWith('issfr_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates a fraud review id', function () { expect($this->fake->stripeFraudReviewId())->toStartWith('prv_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a fraud value list id', function () { expect($this->fake->stripeFraudValueListId())->toStartWith('rsl_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a fraud value list item id', function () { expect($this->fake->stripeFraudValueListItemId())->toStartWith('rsli_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates an issuing authorization id', function () { expect($this->fake->stripeIssuingAuthorizationId())->toStartWith('iauth_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates an issuing cardholder id', function () { expect($this->fake->stripeIssuingCardholderId())->toStartWith('ich_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates an issuing card id', function () { expect($this->fake->stripeIssuingCardId())->toStartWith('ic_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates an issuing dispute id', function () { expect($this->fake->stripeIssuingDisputeId())->toStartWith('idp_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates an issuing transaction id', function () { expect($this->fake->stripeIssuingTransactionId())->toStartWith('ipi_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a terminal location id', function () { expect($this->fake->stripeTerminalLocationId())->toStartWith('tml_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a terminal reader id', function () { expect($this->fake->stripeTerminalReaderId())->toStartWith('tmr_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a terminal hardware order id', function () { expect($this->fake->stripeTerminalHardwareOrderId())->toStartWith('thor_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates a terminal hardware product id', function () { expect($this->fake->stripeTerminalHardwareProductId())->toStartWith('thpr_')->toHaveLength(19)->toBeString(); -})->repeat(2); +}); it('generates a terminal hardware sku', function () { expect($this->fake->stripeTerminalHardwareSkuId())->toStartWith('thsku_')->toHaveLength(20)->toBeString(); -})->repeat(2); +}); it('generates a terminal hardware shipping method id', function () { expect($this->fake->stripeTerminalHardwareShippingMethodId())->toStartWith('thsm_')->toHaveLength(19)->toBeString(); -})->repeat(2); +}); it('generates a terminal configuration id', function () { expect($this->fake->stripeTerminalConfigurationId())->toStartWith('tmc_')->toHaveLength(18)->toBeString(); -})->repeat(2); +}); it('generates a treasury financial account id', function () { expect($this->fake->stripeTreasuryFinancialAccountId())->toStartWith('fa_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a treasury transaction id', function () { expect($this->fake->stripeTreasuryTransactionId())->toStartWith('trxn_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates a treasury transaction entry id', function () { expect($this->fake->stripeTreasuryTransactionEntryId())->toStartWith('trxne_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates a treasury outbound transfer id', function () { expect($this->fake->stripeTreasuryOutboundTransferId())->toStartWith('obt_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a treasury outbound payment id', function () { expect($this->fake->stripeTreasuryOutboundPaymentId())->toStartWith('obp_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a treasury inbound transfer id', function () { expect($this->fake->stripeTreasuryInboundTransferId())->toStartWith('ibt_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a treasury received credit id', function () { expect($this->fake->stripeTreasuryReceivedCreditId())->toStartWith('rc_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a treasury received debit id', function () { expect($this->fake->stripeTreasuryReceivedDebitId())->toStartWith('rd_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a treasury credit reversal id', function () { expect($this->fake->stripeTreasuryCreditReversalId())->toStartWith('credrev_')->toHaveLength(32)->toBeString(); -})->repeat(2); +}); it('generates a treasury debit reversal id', function () { expect($this->fake->stripeTreasuryDebitReversalId())->toStartWith('debrev_')->toHaveLength(31)->toBeString(); -})->repeat(2); +}); it('generates a scheduled query run id', function () { expect($this->fake->stripeSigmaScheduledQueryRunId())->toStartWith('sqr_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a reporting report run id', function () { expect($this->fake->stripeReportingReportRunId())->toStartWith('frr_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a financial connection account id', function () { expect($this->fake->stripeFinancialConnectionAccountId())->toStartWith('fca_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a financial connection account ownership id', function () { expect($this->fake->stripeFinancialConnectionAccountOwnershipId())->toStartWith('fcaowns_')->toHaveLength(32)->toBeString(); -})->repeat(2); +}); it('generates a financial connection session id', function () { expect($this->fake->stripeFinancialConnectionSessionId())->toStartWith('fcsess_')->toHaveLength(31)->toBeString(); -})->repeat(2); +}); it('generates a financial connection transaction id', function () { expect($this->fake->stripeFinancialConnectionTransactionId())->toStartWith('fctxn_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates a tax calculation id', function () { expect($this->fake->stripeTaxCalculationId())->toStartWith('taxcalc_')->toHaveLength(32)->toBeString(); -})->repeat(2); +}); it('generates a tax transaction id', function () { expect($this->fake->stripeTaxTransactionId())->toStartWith('tax_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a identity verification session id', function () { expect($this->fake->stripeIdentityVerificationSessionId())->toStartWith('vs_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a identity verification report id', function () { expect($this->fake->stripeIdentityVerificationReportId())->toStartWith('vr_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a webhook endpoint id', function () { expect($this->fake->stripeWebhookEndpointId())->toStartWith('we_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a financial connection transaction refresh id', function () { expect($this->fake->stripeFinancialConnectionTransactionRefreshId())->toStartWith('fctxnref_')->toHaveLength(33)->toBeString(); -})->repeat(2); +}); it('generates a tax transaction line item id', function () { expect($this->fake->stripeTaxTransactionLineItemId())->toStartWith('tax_li_')->toHaveLength(21)->toBeString(); -})->repeat(2); +}); it('generates a webhook application id', function () { expect($this->fake->stripeWebhookApplicationId())->toStartWith('ca_')->toHaveLength(35)->toBeString(); -})->repeat(2); +}); it('generates a crypto onramp session id', function () { expect($this->fake->stripeCryptoOnrampSessionId())->toStartWith('cos_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a payment intent client secret', function () { expect($this->fake->stripeCorePaymentIntentClientSecret())->toStartWith('pi_')->toContain('_secret_')->toHaveLength(60)->toBeString(); -})->repeat(2); +}); it('generates a crypto onramp session client secret', function () { expect($this->fake->stripeCryptoOnrampSessionClientSecret())->toStartWith('cos_')->toContain('_secret_')->toHaveLength(71)->toBeString(); -})->repeat(2); +}); it('generates a connect capability id', function () { expect($this->fake->stripeConnectCapabilityId())->toStartWith('acap_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates a cash balance transaction id', function () { expect($this->fake->stripeCashBalanceTransactionId())->toStartWith('ccsbtxn_')->toHaveLength(32)->toBeString(); -})->repeat(2); +}); it('generates a issuing token id', function () { expect($this->fake->stripeIssuingTokenId())->toStartWith('intok_')->toHaveLength(30)->toBeString(); -})->repeat(2); +}); it('generates a payment method configuration id', function () { expect($this->fake->stripePaymentMethodConfigurationId())->toStartWith('pmc_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a payment method domain id', function () { expect($this->fake->stripePaymentMethodDomainId())->toStartWith('pmd_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a setup intent client secret', function () { expect($this->fake->stripeCoreSetupIntentClientSecret())->toStartWith('seti_')->toHaveLength(68)->toBeString(); -})->repeat(2); +}); it('generates a core bank account token id', function () { expect($this->fake->stripeCoreBankAccountTokenId())->toStartWith('btok_')->toHaveLength(29)->toBeString(); -})->repeat(2); +}); it('generates a core pii token id', function () { expect($this->fake->stripeCorePersonallyIdentifiableInformationTokenId())->toStartWith('pii_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a core account token id', function () { expect($this->fake->stripeCoreAccountTokenId())->toStartWith('ct_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a core person token id', function () { expect($this->fake->stripeCorePersonTokenId())->toStartWith('cpt_')->toHaveLength(28)->toBeString(); -})->repeat(2); +}); it('generates a core cvc token id', function () { expect($this->fake->stripeCoreCvcUpdateTokenId())->toStartWith('cvctok_')->toHaveLength(31)->toBeString(); -})->repeat(2); +}); it('generates a billing credit note line item id', function () { expect($this->fake->stripeBillingCreditNoteLineItemId())->toStartWith('il_')->toHaveLength(27)->toBeString(); -})->repeat(2); +}); it('generates a billing customer portal configuration id', function () { expect($this->fake->stripeBillingCustomerPortalConfigurationId())->toStartWith('bpc_')->toHaveLength(28)->toBeString(); -})->repeat(2); \ No newline at end of file +}); + +it('generates a confirmation token id', function () { + expect($this->fake->stripeCoreConfirmationTokenId())->toStartWith('ctoken_')->toHaveLength(31)->toBeString(); +}); + +it('generates a billing invoice line item id', function () { + expect($this->fake->stripeBillingInvoiceLineItemId())->toStartWith('il_tmp_')->toHaveLength(31)->toBeString(); +}); + +it('generates a billing alert id', function () { + expect($this->fake->stripeBillingAlertId())->toStartWith('alrt_')->toHaveLength(10)->toBeString(); +}); + +it('generates a billing meter id', function () { + expect($this->fake->stripeBillingMeterId())->toStartWith('mtr_')->toHaveLength(9)->toBeString(); +}); + +it('generates a billing meter event summary id', function () { + expect($this->fake->stripeBillingMeterEventSummaryId())->toStartWith('mtrusg_')->toHaveLength(192)->toBeString(); +}); + +it('generates an issuing personalization design id', function () { + expect($this->fake->stripeIssuingPersonalizationDesignsId())->toStartWith('ipcd_')->toHaveLength(19)->toBeString(); +}); + +it('generates an issuing physical bundles id', function () { + expect($this->fake->stripeIssuingPhysicalBundlesId())->toStartWith('ics_')->toHaveLength(18)->toBeString(); +}); + +it('generates an entitlement feature id', function () { + expect($this->fake->stripeEntitlementFeatureId())->toStartWith('feat_')->toHaveLength(37)->toBeString(); +}); + +it('generates an entitlement product feature id', function () { + expect($this->fake->stripeEntitlementProductFeatureId())->toStartWith('prodft_')->toHaveLength(21)->toBeString(); +}); + +it('generates an entitlement active entitlement id', function () { + expect($this->fake->stripeEntitlementActiveEntitlementId())->toStartWith('ent_')->toHaveLength(36)->toBeString(); +}); + +it('generates a climate order id', function () { + expect($this->fake->stripeClimateOrderId())->toStartWith('climorder_')->toHaveLength(34)->toBeString(); +}); + +it('generates a climate product id', function () { + expect($this->fake->stripeClimateProductId())->toStartWith('climsku_')->toHaveLength(32)->toBeString(); +}); + +it('generates a climate supplier id', function () { + expect($this->fake->stripeClimateSupplierId())->toStartWith('climsup_')->toHaveLength(32)->toBeString(); +}); + +it('generates a forwarding request id', function () { + expect($this->fake->stripeForwardingRequestId())->toStartWith('fwd_req_')->toHaveLength(13)->toBeString(); +}); \ No newline at end of file