From bba324cbda3e89ec117ae327fcbdf22103bda6ce Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Mon, 21 Sep 2020 12:54:53 -0700 Subject: [PATCH] Codegen for openapi 3c6f846 --- lib/ApplicationFeeRefund.php | 2 +- lib/BitcoinReceiver.php | 2 +- lib/Card.php | 4 ++-- lib/Charge.php | 1 + lib/Coupon.php | 2 +- lib/CreditNote.php | 2 +- lib/InvoiceItem.php | 2 +- lib/Order.php | 2 +- lib/PaymentMethod.php | 2 +- lib/Payout.php | 10 +++++----- lib/Plan.php | 2 +- lib/PromotionCode.php | 2 +- lib/Refund.php | 2 +- lib/Service/SubscriptionScheduleService.php | 2 +- lib/Service/SubscriptionService.php | 2 +- lib/SetupIntent.php | 2 +- lib/TaxRate.php | 4 ++-- lib/TransferReversal.php | 2 +- 18 files changed, 24 insertions(+), 23 deletions(-) diff --git a/lib/ApplicationFeeRefund.php b/lib/ApplicationFeeRefund.php index 07b01a4ed..dc7c34bac 100644 --- a/lib/ApplicationFeeRefund.php +++ b/lib/ApplicationFeeRefund.php @@ -20,7 +20,7 @@ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency. * @property string|\Stripe\ApplicationFee $fee ID of the application fee that was refunded. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ class ApplicationFeeRefund extends ApiResource { diff --git a/lib/BitcoinReceiver.php b/lib/BitcoinReceiver.php index a55af00cf..208610a0f 100644 --- a/lib/BitcoinReceiver.php +++ b/lib/BitcoinReceiver.php @@ -24,7 +24,7 @@ * @property bool $filled This flag is initially false and updates to true when the customer sends the bitcoin_amount to this receiver. * @property string $inbound_address A bitcoin address that is specific to this receiver. The customer can send bitcoin to this address to fill the receiver. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string $payment The ID of the payment created from the receiver, if any. Hidden when viewing the receiver with a publishable key. * @property null|string $refund_address The refund address of this bitcoin receiver. * @property \Stripe\Collection $transactions A list with one entry for each time that the customer sent bitcoin to the receiver. Hidden when viewing the receiver with a publishable key. diff --git a/lib/Card.php b/lib/Card.php index 9575400f7..f88484148 100644 --- a/lib/Card.php +++ b/lib/Card.php @@ -26,7 +26,7 @@ * @property null|string[] $available_payout_methods A set of available payout methods for this card. Only values from this set should be passed as the method when creating a payout. * @property string $brand Card brand. Can be American Express, Diners Club, Discover, JCB, MasterCard, UnionPay, Visa, or Unknown. * @property null|string $country Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. - * @property null|string $currency + * @property null|string $currency Three-letter ISO code for currency. Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. * @property null|string|\Stripe\Customer $customer The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead. * @property null|string $cvc_check If a CVC was provided, results of the check: pass, fail, unavailable, or unchecked. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see Check if a card is valid without a charge. * @property null|bool $default_for_currency Whether this card is the default external account for its currency. @@ -36,7 +36,7 @@ * @property null|string $fingerprint Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number,for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * @property string $funding Card funding type. Can be credit, debit, prepaid, or unknown. * @property string $last4 The last four digits of the card. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string $name Cardholder name. * @property null|string|\Stripe\Recipient $recipient The recipient that this card belongs to. This attribute will not be in the card object if the card belongs to a customer or account instead. * @property null|string $tokenization_method If the card number is tokenized, this is the method that was used. Can be android_pay (includes Google Pay), apple_pay, masterpass, visa_checkout, or null. diff --git a/lib/Charge.php b/lib/Charge.php index 0dbcda604..10fc11a2a 100644 --- a/lib/Charge.php +++ b/lib/Charge.php @@ -16,6 +16,7 @@ * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. * @property int $amount Amount intended to be collected by this payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + * @property int $amount_captured Amount in %s captured (can be less than the amount attribute on the charge if a partial capture was made). * @property int $amount_refunded Amount in %s refunded (can be less than the amount attribute on the charge if a partial refund was issued). * @property null|string|\Stripe\StripeObject $application ID of the Connect application that created the charge. * @property null|string|\Stripe\ApplicationFee $application_fee The application fee (if any) for the charge. See the Connect documentation for details. diff --git a/lib/Coupon.php b/lib/Coupon.php index 204f0ae9a..41afdcfc9 100644 --- a/lib/Coupon.php +++ b/lib/Coupon.php @@ -22,7 +22,7 @@ * @property null|int $duration_in_months If duration is repeating, the number of months the coupon applies. Null if coupon duration is forever or once. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|int $max_redemptions Maximum number of times this coupon can be redeemed, in total, across all customers, before it is no longer valid. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string $name Name of the coupon displayed to customers on for instance invoices or receipts. * @property null|float $percent_off Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with percent_off of 50 will make a %s100 invoice %s50 instead. * @property null|int $redeem_by Date after which the coupon can no longer be redeemed. diff --git a/lib/CreditNote.php b/lib/CreditNote.php index 673198a90..449ba3485 100644 --- a/lib/CreditNote.php +++ b/lib/CreditNote.php @@ -24,7 +24,7 @@ * @property \Stripe\Collection $lines Line items that make up the credit note * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|string $memo Customer-facing text that appears on the credit note PDF. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property string $number A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice. * @property null|int $out_of_band_amount Amount that was credited outside of Stripe. * @property string $pdf The link to download the PDF of the credit note. diff --git a/lib/InvoiceItem.php b/lib/InvoiceItem.php index f9c63ea31..041c277ea 100644 --- a/lib/InvoiceItem.php +++ b/lib/InvoiceItem.php @@ -25,7 +25,7 @@ * @property null|(string|\Stripe\Discount)[] $discounts The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use expand[]=discounts to expand each discount. * @property null|string|\Stripe\Invoice $invoice The ID of the invoice this invoice item belongs to. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property \Stripe\StripeObject $period * @property null|\Stripe\Plan $plan If the invoice item is a proration, the plan of the subscription that the proration was computed for. * @property null|\Stripe\Price $price The price of the invoice item. diff --git a/lib/Order.php b/lib/Order.php index e976e5607..fd3630edb 100644 --- a/lib/Order.php +++ b/lib/Order.php @@ -27,7 +27,7 @@ * @property string $external_coupon_code External coupon code to load for this order. * @property \Stripe\OrderItem[] $items List of items constituting the order. An order can have up to 25 items. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|\Stripe\Collection $returns A list of returns that have taken place for this order. * @property null|string $selected_shipping_method The shipping method that is currently selected for this order, if any. If present, it is equal to one of the ids of shipping methods in the shipping_methods array. At order creation time, if there are multiple shipping methods, Stripe will automatically selected the first method. * @property null|\Stripe\StripeObject $shipping The shipping address for the order. Present if the order is for goods to be shipped. diff --git a/lib/PaymentMethod.php b/lib/PaymentMethod.php index f280e2d46..63da19494 100644 --- a/lib/PaymentMethod.php +++ b/lib/PaymentMethod.php @@ -33,7 +33,7 @@ * @property \Stripe\StripeObject $ideal * @property \Stripe\StripeObject $interac_present * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property \Stripe\StripeObject $p24 * @property \Stripe\StripeObject $sepa_debit * @property \Stripe\StripeObject $sofort diff --git a/lib/Payout.php b/lib/Payout.php index bd5c8c187..9b366e070 100644 --- a/lib/Payout.php +++ b/lib/Payout.php @@ -7,10 +7,10 @@ /** * 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. You can retrieve - * individual payouts, as well as list all payouts. Payouts are made on varying schedules, depending on your - * country and industry. + * href="/docs/connect/bank-debit-card-payouts">connected Stripe account. You + * can retrieve individual payouts, as well as list all payouts. Payouts are made + * on varying schedules, + * depending on your country and industry. * * Related guide: Receiving Payouts. * @@ -28,7 +28,7 @@ * @property null|string $failure_code Error code explaining reason for payout failure if available. See Types of payout failures for a list of failure codes. * @property null|string $failure_message Message to user further explaining reason for payout failure if available. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property string $method The method used to send this payout, which can be standard or instant. instant is only supported for payouts to debit cards. (See Instant payouts for marketplaces for more information.) * @property string $source_type The source balance this payout came from. One of card, fpx, or bank_account. * @property null|string $statement_descriptor Extra information about a payout to be displayed on the user's bank statement. diff --git a/lib/Plan.php b/lib/Plan.php index e2f973fc1..bff735d78 100644 --- a/lib/Plan.php +++ b/lib/Plan.php @@ -36,7 +36,7 @@ * @property string $interval The frequency at which a subscription is billed. One of day, week, month or year. * @property int $interval_count The number of intervals (specified in the interval attribute) between subscription billings. For example, interval=month and interval_count=3 bills every 3 months. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string $nickname A brief description of the plan, hidden from customers. * @property null|string|\Stripe\Product $product The product whose pricing this plan determines. * @property \Stripe\StripeObject[] $tiers Each element represents a pricing tier. This parameter requires billing_scheme to be set to tiered. See also the documentation for billing_scheme. diff --git a/lib/PromotionCode.php b/lib/PromotionCode.php index c853e10d9..f4bb0f4f1 100644 --- a/lib/PromotionCode.php +++ b/lib/PromotionCode.php @@ -18,7 +18,7 @@ * @property null|int $expires_at Date at which the promotion code can no longer be redeemed. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|int $max_redemptions Maximum number of times this promotion code can be redeemed. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property \Stripe\StripeObject $restrictions * @property int $times_redeemed Number of times this promotion code has been used. */ diff --git a/lib/Refund.php b/lib/Refund.php index fd252f773..f5e975fd8 100644 --- a/lib/Refund.php +++ b/lib/Refund.php @@ -21,7 +21,7 @@ * @property string $description An arbitrary string attached to the object. Often useful for displaying to users. (Available on non-card refunds only) * @property string|\Stripe\BalanceTransaction $failure_balance_transaction If the refund failed, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction. * @property string $failure_reason If the refund failed, the reason for refund failure if known. Possible values are lost_or_stolen_card, expired_or_canceled_card, or unknown. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent that was refunded. * @property null|string $reason Reason for the refund, either user-provided (duplicate, fraudulent, or requested_by_customer) or generated by Stripe internally (expired_uncaptured_charge). * @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this refund. diff --git a/lib/Service/SubscriptionScheduleService.php b/lib/Service/SubscriptionScheduleService.php index 42a112fa3..9eed46060 100644 --- a/lib/Service/SubscriptionScheduleService.php +++ b/lib/Service/SubscriptionScheduleService.php @@ -41,7 +41,7 @@ public function cancel($id, $params = null, $opts = null) } /** - * Creates a new subscription schedule object. Each customer can have up to 25 + * Creates a new subscription schedule object. Each customer can have up to 500 * active or scheduled subscriptions. * * @param null|array $params diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php index 32e7dbc82..f3ac768c8 100644 --- a/lib/Service/SubscriptionService.php +++ b/lib/Service/SubscriptionService.php @@ -56,7 +56,7 @@ public function cancel($id, $params = null, $opts = null) /** * Creates a new subscription on an existing customer. Each customer can have up to - * 25 active or scheduled subscriptions. + * 500 active or scheduled subscriptions. * * @param null|array $params * @param null|array|\Stripe\Util\RequestOptions $opts diff --git a/lib/SetupIntent.php b/lib/SetupIntent.php index 7ff11c028..c1dc100ec 100644 --- a/lib/SetupIntent.php +++ b/lib/SetupIntent.php @@ -51,7 +51,7 @@ * @property null|\Stripe\ErrorObject $last_setup_error The error encountered in the previous SetupIntent confirmation. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|string|\Stripe\Mandate $mandate ID of the multi use Mandate generated by the SetupIntent. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|\Stripe\StripeObject $next_action If present, this property tells you what actions you need to take in order for your customer to continue payment setup. * @property null|string|\Stripe\Account $on_behalf_of The account (if any) for which the setup is intended. * @property null|string|\Stripe\PaymentMethod $payment_method ID of the payment method used with this SetupIntent. diff --git a/lib/TaxRate.php b/lib/TaxRate.php index e8221bc3c..2974f8383 100644 --- a/lib/TaxRate.php +++ b/lib/TaxRate.php @@ -22,9 +22,9 @@ * @property null|string $description An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers. * @property string $display_name The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page. * @property bool $inclusive This specifies if the tax rate is inclusive or exclusive. - * @property null|string $jurisdiction The jurisdiction for the tax rate. + * @property null|string $jurisdiction The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property float $percentage This represents the tax rate percent out of 100. */ class TaxRate extends ApiResource diff --git a/lib/TransferReversal.php b/lib/TransferReversal.php index 74c657ef2..b6167dbb3 100644 --- a/lib/TransferReversal.php +++ b/lib/TransferReversal.php @@ -29,7 +29,7 @@ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency. * @property null|string|\Stripe\Refund $destination_payment_refund Linked payment refund for the transfer reversal. - * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string|\Stripe\Refund $source_refund ID of the refund responsible for the transfer reversal. * @property string|\Stripe\Transfer $transfer ID of the transfer that was reversed. */