assets
data
dependencies
amphp
berlindb
composer
daverandom
delight-im
doctrine
guzzlehttp
hashids
ifsnop
jasny
kelunik
league
mexitek
mpdf
myclabs
nesbot
nyholm
pablo-sg-pacheco
paragonie
phpdocumentor
phpseclib
phpstan
psr
rakit
ralouphie
remotelyliving
rpnzl
scssphp
setasign
spatie
stripe
stripe-php
data
lib
ApiOperations
Apps
BillingPortal
Checkout
Exception
FinancialConnections
HttpClient
Identity
Issuing
Radar
Reporting
Service
Sigma
Tax
Terminal
TestHelpers
Treasury
Util
Account.php
AccountLink.php
ApiRequestor.php
ApiResource.php
ApiResponse.php
ApplePayDomain.php
ApplicationFee.php
ApplicationFeeRefund.php
Balance.php
BalanceTransaction.php
BankAccount.php
BaseStripeClient.php
BaseStripeClientInterface.php
Capability.php
Card.php
CashBalance.php
Charge.php
Collection.php
CountrySpec.php
Coupon.php
CreditNote.php
CreditNoteLineItem.php
Customer.php
CustomerBalanceTransaction.php
CustomerCashBalanceTransaction.php
Discount.php
Dispute.php
EphemeralKey.php
ErrorObject.php
Event.php
ExchangeRate.php
File.php
FileLink.php
FundingInstructions.php
Invoice.php
InvoiceItem.php
InvoiceLineItem.php
LineItem.php
LoginLink.php
Mandate.php
OAuth.php
OAuthErrorObject.php
PaymentIntent.php
PaymentLink.php
PaymentMethod.php
Payout.php
Person.php
Plan.php
Price.php
Product.php
PromotionCode.php
Quote.php
RecipientTransfer.php
Refund.php
RequestTelemetry.php
Review.php
SearchResult.php
SetupAttempt.php
SetupIntent.php
ShippingRate.php
SingletonApiResource.php
Source.php
SourceTransaction.php
Stripe.php
StripeClient.php
StripeClientInterface.php
StripeObject.php
StripeStreamingClientInterface.php
Subscription.php
SubscriptionItem.php
SubscriptionSchedule.php
TaxCode.php
TaxId.php
TaxRate.php
Token.php
Topup.php
Transfer.php
TransferReversal.php
UsageRecord.php
UsageRecordSummary.php
Webhook.php
WebhookEndpoint.php
WebhookSignature.php
OPENAPI_VERSION
VERSION
init.php
symfony
webmozart
woocommerce
yahnis-elsts
autoload.php
scoper-autoload.php
inc
lang
views
.gitignore
LICENSE
autoload.php
composer.json
constants.php
loco.xml
readme.txt
sunrise.php
uninstall.php
wp-multisite-waas.php
35 lines
2.4 KiB
PHP
35 lines
2.4 KiB
PHP
<?php
|
|
|
|
// File generated from our OpenAPI spec
|
|
namespace WP_Ultimo\Dependencies\Stripe;
|
|
|
|
/**
|
|
* Shipping rates describe the price of shipping presented to your customers and
|
|
* applied to a purchase. For more information, see <a href="https://stripe.com/docs/payments/during-payment/charge-shipping">Charge for shipping</a>.
|
|
*
|
|
* @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 bool $active Whether the shipping rate can be used for new purchases. Defaults to <code>true</code>.
|
|
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
* @property null|\Stripe\StripeObject $delivery_estimate The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
* @property null|string $display_name The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
* @property null|\Stripe\StripeObject $fixed_amount
|
|
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
|
|
* @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> 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 $tax_behavior Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of <code>inclusive</code>, <code>exclusive</code>, or <code>unspecified</code>.
|
|
* @property null|string|\Stripe\TaxCode $tax_code A <a href="https://stripe.com/docs/tax/tax-categories">tax code</a> ID. The Shipping tax code is <code>txcd_92010001</code>.
|
|
* @property string $type The type of calculation to use on the shipping rate. Can only be <code>fixed_amount</code> for now.
|
|
*/
|
|
class ShippingRate extends ApiResource
|
|
{
|
|
const OBJECT_NAME = 'shipping_rate';
|
|
use ApiOperations\All;
|
|
use ApiOperations\Create;
|
|
use ApiOperations\Retrieve;
|
|
use ApiOperations\Update;
|
|
const TAX_BEHAVIOR_EXCLUSIVE = 'exclusive';
|
|
const TAX_BEHAVIOR_INCLUSIVE = 'inclusive';
|
|
const TAX_BEHAVIOR_UNSPECIFIED = 'unspecified';
|
|
const TYPE_FIXED_AMOUNT = 'fixed_amount';
|
|
}
|