Package com.stripe.net
Class ApiResource
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
- All Implemented Interfaces:
StripeActiveObject
,StripeObjectInterface
- Direct Known Subclasses:
Account
,Account
,AccountLink
,AccountSession
,ActiveEntitlement
,Alert
,ApplePayDomain
,ApplicationFee
,Authorization
,Balance
,BalanceTransaction
,BankAccount
,Calculation
,Capability
,Card
,Card
,Cardholder
,CashBalance
,Charge
,Configuration
,Configuration
,ConfirmationToken
,ConnectionToken
,CountrySpec
,Coupon
,CreditNote
,CreditReversal
,Customer
,CustomerBalanceTransaction
,CustomerSession
,DebitReversal
,Dispute
,Dispute
,EarlyFraudWarning
,EphemeralKey
,Event
,ExchangeRate
,Feature
,FeeRefund
,File
,FileLink
,FinancialAccount
,InboundTransfer
,Invoice
,InvoiceItem
,InvoiceLineItem
,Location
,LoginLink
,Mandate
,Meter
,MeterEvent
,MeterEventAdjustment
,MeterEventSummary
,Order
,OutboundPayment
,OutboundTransfer
,PagingIterator
,PaymentIntent
,PaymentLink
,PaymentMethod
,PaymentMethodConfiguration
,PaymentMethodDomain
,Payout
,Person
,PersonalizationDesign
,PhysicalBundle
,Plan
,Price
,Product
,Product
,ProductFeature
,PromotionCode
,Quote
,Reader
,ReceivedCredit
,ReceivedDebit
,Refund
,Registration
,ReportRun
,ReportType
,Request
,Review
,ScheduledQueryRun
,SearchPagingIterator
,Secret
,Session
,Session
,Session
,Settings
,SetupAttempt
,SetupIntent
,ShippingRate
,Source
,Subscription
,SubscriptionItem
,SubscriptionSchedule
,Supplier
,TaxCode
,TaxId
,TaxRate
,TestClock
,Token
,Token
,Topup
,Transaction
,Transaction
,Transaction
,Transaction
,TransactionEntry
,Transfer
,TransferReversal
,UsageRecord
,ValueList
,ValueListItem
,VerificationReport
,VerificationSession
,WebhookEndpoint
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Charset
static final com.google.gson.Gson
static final com.google.gson.Gson
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkNullTypedParams
(String url, ApiRequestParams params) Invalidate null typed parameters.protected static StripeResponseGetter
protected StripeResponseGetter
static <T extends HasId>
ExpandableField<T>setExpandableFieldId
(String newId, ExpandableField<T> currentObject) When setting a String ID for an ExpandableField, we need to be careful about keeping the String ID and the expanded object in sync.void
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.static void
static String
URL-encodes a string.static String
urlEncodeId
(String id) URL-encode a string ID in url path formatting.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Field Details
-
CHARSET
-
INTERNAL_GSON
public static final com.google.gson.Gson INTERNAL_GSON -
GSON
public static final com.google.gson.Gson GSON
-
-
Constructor Details
-
ApiResource
public ApiResource()
-
-
Method Details
-
setStripeResponseGetter
-
getGlobalResponseGetter
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Parameters:
srg
- theStripeResponseGetter
instance to use for making further requests.
-
getResponseGetter
-
urlEncode
URL-encodes a string. -
urlEncodeId
URL-encode a string ID in url path formatting.- Throws:
InvalidRequestException
-
checkNullTypedParams
Invalidate null typed parameters.- Parameters:
url
- request url associated with the given parameters.params
- typed parameters to check for null value.
-
setExpandableFieldId
public static <T extends HasId> ExpandableField<T> setExpandableFieldId(String newId, ExpandableField<T> currentObject) When setting a String ID for an ExpandableField, we need to be careful about keeping the String ID and the expanded object in sync. If they specify a new String ID that is different from the ID within the expanded object, we don't keep the object.
-