Skip to content

Commit

Permalink
Update generated code for v425
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jul 19, 2023
1 parent 869dd32 commit e2b090c
Show file tree
Hide file tree
Showing 19 changed files with 196 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v424
v425
4 changes: 4 additions & 0 deletions lib/Coupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ class Coupon extends ApiResource
use ApiOperations\Delete;
use ApiOperations\Retrieve;
use ApiOperations\Update;

const DURATION_FOREVER = 'forever';
const DURATION_ONCE = 'once';
const DURATION_REPEATING = 'repeating';
}
4 changes: 4 additions & 0 deletions lib/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ class Invoice extends ApiResource
const COLLECTION_METHOD_CHARGE_AUTOMATICALLY = 'charge_automatically';
const COLLECTION_METHOD_SEND_INVOICE = 'send_invoice';

const CUSTOMER_TAX_EXEMPT_EXEMPT = 'exempt';
const CUSTOMER_TAX_EXEMPT_NONE = 'none';
const CUSTOMER_TAX_EXEMPT_REVERSE = 'reverse';

/** @deprecated */
const STATUS_DELETED = 'deleted';
const STATUS_DRAFT = 'draft';
Expand Down
10 changes: 10 additions & 0 deletions lib/Issuing/Authorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ class Authorization extends \Stripe\ApiResource
use \Stripe\ApiOperations\Retrieve;
use \Stripe\ApiOperations\Update;

const AUTHORIZATION_METHOD_CHIP = 'chip';
const AUTHORIZATION_METHOD_CONTACTLESS = 'contactless';
const AUTHORIZATION_METHOD_KEYED_IN = 'keyed_in';
const AUTHORIZATION_METHOD_ONLINE = 'online';
const AUTHORIZATION_METHOD_SWIPE = 'swipe';

const STATUS_CLOSED = 'closed';
const STATUS_PENDING = 'pending';
const STATUS_REVERSED = 'reversed';

/**
* @param null|array $params
* @param null|array|string $opts
Expand Down
16 changes: 16 additions & 0 deletions lib/Issuing/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,20 @@ class Card extends \Stripe\ApiResource
use \Stripe\ApiOperations\Create;
use \Stripe\ApiOperations\Retrieve;
use \Stripe\ApiOperations\Update;

const CANCELLATION_REASON_DESIGN_REJECTED = 'design_rejected';
const CANCELLATION_REASON_LOST = 'lost';
const CANCELLATION_REASON_STOLEN = 'stolen';

const REPLACEMENT_REASON_DAMAGED = 'damaged';
const REPLACEMENT_REASON_EXPIRED = 'expired';
const REPLACEMENT_REASON_LOST = 'lost';
const REPLACEMENT_REASON_STOLEN = 'stolen';

const STATUS_ACTIVE = 'active';
const STATUS_CANCELED = 'canceled';
const STATUS_INACTIVE = 'inactive';

const TYPE_PHYSICAL = 'physical';
const TYPE_VIRTUAL = 'virtual';
}
7 changes: 7 additions & 0 deletions lib/Issuing/Cardholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ class Cardholder extends \Stripe\ApiResource
use \Stripe\ApiOperations\Create;
use \Stripe\ApiOperations\Retrieve;
use \Stripe\ApiOperations\Update;

const STATUS_ACTIVE = 'active';
const STATUS_BLOCKED = 'blocked';
const STATUS_INACTIVE = 'inactive';

const TYPE_COMPANY = 'company';
const TYPE_INDIVIDUAL = 'individual';
}
6 changes: 6 additions & 0 deletions lib/Issuing/Dispute.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ class Dispute extends \Stripe\ApiResource
use \Stripe\ApiOperations\Retrieve;
use \Stripe\ApiOperations\Update;

const STATUS_EXPIRED = 'expired';
const STATUS_LOST = 'lost';
const STATUS_SUBMITTED = 'submitted';
const STATUS_UNSUBMITTED = 'unsubmitted';
const STATUS_WON = 'won';

/**
* @param null|array $params
* @param null|array|string $opts
Expand Down
7 changes: 7 additions & 0 deletions lib/Issuing/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,11 @@ class Transaction extends \Stripe\ApiResource
use \Stripe\ApiOperations\All;
use \Stripe\ApiOperations\Retrieve;
use \Stripe\ApiOperations\Update;

const TYPE_CAPTURE = 'capture';
const TYPE_REFUND = 'refund';

const WALLET_APPLE_PAY = 'apple_pay';
const WALLET_GOOGLE_PAY = 'google_pay';
const WALLET_SAMSUNG_PAY = 'samsung_pay';
}
7 changes: 7 additions & 0 deletions lib/Mandate.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,11 @@ class Mandate extends ApiResource
const OBJECT_NAME = 'mandate';

use ApiOperations\Retrieve;

const STATUS_ACTIVE = 'active';
const STATUS_INACTIVE = 'inactive';
const STATUS_PENDING = 'pending';

const TYPE_MULTI_USE = 'multi_use';
const TYPE_SINGLE_USE = 'single_use';
}
18 changes: 18 additions & 0 deletions lib/PaymentIntent.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,24 @@ class PaymentIntent extends ApiResource
use ApiOperations\Search;
use ApiOperations\Update;

const CANCELLATION_REASON_ABANDONED = 'abandoned';
const CANCELLATION_REASON_AUTOMATIC = 'automatic';
const CANCELLATION_REASON_DUPLICATE = 'duplicate';
const CANCELLATION_REASON_FAILED_INVOICE = 'failed_invoice';
const CANCELLATION_REASON_FRAUDULENT = 'fraudulent';
const CANCELLATION_REASON_REQUESTED_BY_CUSTOMER = 'requested_by_customer';
const CANCELLATION_REASON_VOID_INVOICE = 'void_invoice';

const CAPTURE_METHOD_AUTOMATIC = 'automatic';
const CAPTURE_METHOD_AUTOMATIC_ASYNC = 'automatic_async';
const CAPTURE_METHOD_MANUAL = 'manual';

const CONFIRMATION_METHOD_AUTOMATIC = 'automatic';
const CONFIRMATION_METHOD_MANUAL = 'manual';

const SETUP_FUTURE_USAGE_OFF_SESSION = 'off_session';
const SETUP_FUTURE_USAGE_ON_SESSION = 'on_session';

const STATUS_CANCELED = 'canceled';
const STATUS_PROCESSING = 'processing';
const STATUS_REQUIRES_ACTION = 'requires_action';
Expand Down
34 changes: 34 additions & 0 deletions lib/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,40 @@ class PaymentMethod extends ApiResource
use ApiOperations\Retrieve;
use ApiOperations\Update;

const TYPE_ACSS_DEBIT = 'acss_debit';
const TYPE_AFFIRM = 'affirm';
const TYPE_AFTERPAY_CLEARPAY = 'afterpay_clearpay';
const TYPE_ALIPAY = 'alipay';
const TYPE_AU_BECS_DEBIT = 'au_becs_debit';
const TYPE_BACS_DEBIT = 'bacs_debit';
const TYPE_BANCONTACT = 'bancontact';
const TYPE_BLIK = 'blik';
const TYPE_BOLETO = 'boleto';
const TYPE_CARD = 'card';
const TYPE_CARD_PRESENT = 'card_present';
const TYPE_CASHAPP = 'cashapp';
const TYPE_CUSTOMER_BALANCE = 'customer_balance';
const TYPE_EPS = 'eps';
const TYPE_FPX = 'fpx';
const TYPE_GIROPAY = 'giropay';
const TYPE_GRABPAY = 'grabpay';
const TYPE_IDEAL = 'ideal';
const TYPE_INTERAC_PRESENT = 'interac_present';
const TYPE_KLARNA = 'klarna';
const TYPE_KONBINI = 'konbini';
const TYPE_LINK = 'link';
const TYPE_OXXO = 'oxxo';
const TYPE_P24 = 'p24';
const TYPE_PAYNOW = 'paynow';
const TYPE_PAYPAL = 'paypal';
const TYPE_PIX = 'pix';
const TYPE_PROMPTPAY = 'promptpay';
const TYPE_SEPA_DEBIT = 'sepa_debit';
const TYPE_SOFORT = 'sofort';
const TYPE_US_BANK_ACCOUNT = 'us_bank_account';
const TYPE_WECHAT_PAY = 'wechat_pay';
const TYPE_ZIP = 'zip';

/**
* @param null|array $params
* @param null|array|string $opts
Expand Down
19 changes: 19 additions & 0 deletions lib/Plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,23 @@ class Plan extends ApiResource
use ApiOperations\Delete;
use ApiOperations\Retrieve;
use ApiOperations\Update;

const AGGREGATE_USAGE_LAST_DURING_PERIOD = 'last_during_period';
const AGGREGATE_USAGE_LAST_EVER = 'last_ever';
const AGGREGATE_USAGE_MAX = 'max';
const AGGREGATE_USAGE_SUM = 'sum';

const BILLING_SCHEME_PER_UNIT = 'per_unit';
const BILLING_SCHEME_TIERED = 'tiered';

const INTERVAL_DAY = 'day';
const INTERVAL_MONTH = 'month';
const INTERVAL_WEEK = 'week';
const INTERVAL_YEAR = 'year';

const TIERS_MODE_GRADUATED = 'graduated';
const TIERS_MODE_VOLUME = 'volume';

const USAGE_TYPE_LICENSED = 'licensed';
const USAGE_TYPE_METERED = 'metered';
}
9 changes: 9 additions & 0 deletions lib/Radar/ValueList.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,13 @@ class ValueList extends \Stripe\ApiResource
use \Stripe\ApiOperations\Delete;
use \Stripe\ApiOperations\Retrieve;
use \Stripe\ApiOperations\Update;

const ITEM_TYPE_CARD_BIN = 'card_bin';
const ITEM_TYPE_CARD_FINGERPRINT = 'card_fingerprint';
const ITEM_TYPE_CASE_SENSITIVE_STRING = 'case_sensitive_string';
const ITEM_TYPE_COUNTRY = 'country';
const ITEM_TYPE_CUSTOMER_ID = 'customer_id';
const ITEM_TYPE_EMAIL = 'email';
const ITEM_TYPE_IP_ADDRESS = 'ip_address';
const ITEM_TYPE_STRING = 'string';
}
9 changes: 9 additions & 0 deletions lib/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ class Review extends ApiResource
use ApiOperations\All;
use ApiOperations\Retrieve;

const CLOSED_REASON_APPROVED = 'approved';
const CLOSED_REASON_DISPUTED = 'disputed';
const CLOSED_REASON_REDACTED = 'redacted';
const CLOSED_REASON_REFUNDED = 'refunded';
const CLOSED_REASON_REFUNDED_AS_FRAUD = 'refunded_as_fraud';

const OPENED_REASON_MANUAL = 'manual';
const OPENED_REASON_RULE = 'rule';

/**
* Possible string representations of the current, the opening or the closure reason of the review.
* Not all of these enumeration apply to all of the ´reason´ fields. Please consult the Review object to
Expand Down
4 changes: 4 additions & 0 deletions lib/SetupIntent.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ class SetupIntent extends ApiResource
use ApiOperations\Retrieve;
use ApiOperations\Update;

const CANCELLATION_REASON_ABANDONED = 'abandoned';
const CANCELLATION_REASON_DUPLICATE = 'duplicate';
const CANCELLATION_REASON_REQUESTED_BY_CUSTOMER = 'requested_by_customer';

const STATUS_CANCELED = 'canceled';
const STATUS_PROCESSING = 'processing';
const STATUS_REQUIRES_ACTION = 'requires_action';
Expand Down
20 changes: 20 additions & 0 deletions lib/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,26 @@ class Source extends ApiResource
const STATUS_FAILED = 'failed';
const STATUS_PENDING = 'pending';

const TYPE_ACH_CREDIT_TRANSFER = 'ach_credit_transfer';
const TYPE_ACH_DEBIT = 'ach_debit';
const TYPE_ACSS_DEBIT = 'acss_debit';
const TYPE_ALIPAY = 'alipay';
const TYPE_AU_BECS_DEBIT = 'au_becs_debit';
const TYPE_BANCONTACT = 'bancontact';
const TYPE_CARD = 'card';
const TYPE_CARD_PRESENT = 'card_present';
const TYPE_EPS = 'eps';
const TYPE_GIROPAY = 'giropay';
const TYPE_IDEAL = 'ideal';
const TYPE_KLARNA = 'klarna';
const TYPE_MULTIBANCO = 'multibanco';
const TYPE_P24 = 'p24';
const TYPE_SEPA_CREDIT_TRANSFER = 'sepa_credit_transfer';
const TYPE_SEPA_DEBIT = 'sepa_debit';
const TYPE_SOFORT = 'sofort';
const TYPE_THREE_D_SECURE = 'three_d_secure';
const TYPE_WECHAT = 'wechat';

const USAGE_REUSABLE = 'reusable';
const USAGE_SINGLE_USE = 'single_use';

Expand Down
3 changes: 3 additions & 0 deletions lib/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class Subscription extends ApiResource
use ApiOperations\Search;
use ApiOperations\Update;

const COLLECTION_METHOD_CHARGE_AUTOMATICALLY = 'charge_automatically';
const COLLECTION_METHOD_SEND_INVOICE = 'send_invoice';

const PAYMENT_BEHAVIOR_ALLOW_INCOMPLETE = 'allow_incomplete';
const PAYMENT_BEHAVIOR_DEFAULT_INCOMPLETE = 'default_incomplete';
const PAYMENT_BEHAVIOR_ERROR_IF_INCOMPLETE = 'error_if_incomplete';
Expand Down
11 changes: 11 additions & 0 deletions lib/SubscriptionSchedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ class SubscriptionSchedule extends ApiResource
use ApiOperations\Retrieve;
use ApiOperations\Update;

const END_BEHAVIOR_CANCEL = 'cancel';
const END_BEHAVIOR_NONE = 'none';
const END_BEHAVIOR_RELEASE = 'release';
const END_BEHAVIOR_RENEW = 'renew';

const STATUS_ACTIVE = 'active';
const STATUS_CANCELED = 'canceled';
const STATUS_COMPLETED = 'completed';
const STATUS_NOT_STARTED = 'not_started';
const STATUS_RELEASED = 'released';

/**
* @param null|array $params
* @param null|array|string $opts
Expand Down
7 changes: 7 additions & 0 deletions lib/Terminal/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ class Reader extends \Stripe\ApiResource
use \Stripe\ApiOperations\Retrieve;
use \Stripe\ApiOperations\Update;

const DEVICE_TYPE_BBPOS_CHIPPER2X = 'bbpos_chipper2x';
const DEVICE_TYPE_BBPOS_WISEPAD3 = 'bbpos_wisepad3';
const DEVICE_TYPE_BBPOS_WISEPOS_E = 'bbpos_wisepos_e';
const DEVICE_TYPE_SIMULATED_WISEPOS_E = 'simulated_wisepos_e';
const DEVICE_TYPE_STRIPE_M2 = 'stripe_m2';
const DEVICE_TYPE_VERIFONE_P400 = 'verifone_P400';

/**
* @param null|array $params
* @param null|array|string $opts
Expand Down

0 comments on commit e2b090c

Please sign in to comment.