PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins
/
sf-booking
/
payment-gateway
/
stripe
/
lib
<?php namespace Stripe; /** * Class CreditNote * * @property string $id * @property string $object * @property int $amount * @property int $created * @property string $currency * @property string $customer * @property string|null $customer_balance_transaction * @property string $invoice * @property bool $livemode * @property string|null $memo * @property \Stripe\StripeObject $metadata * @property string $number * @property string $pdf * @property string|null $reason * @property string|null $refund * @property string $status * @property string $type * @property int|null $voided_at * * @package Stripe */ class CreditNote extends ApiResource { const OBJECT_NAME = 'credit_note'; use ApiOperations\All; use ApiOperations\Create; use ApiOperations\Retrieve; use ApiOperations\Update; use ApiOperations\NestedResource; /** * Possible string representations of the credit note reason. * @link https://stripe.com/docs/api/credit_notes/object#credit_note_object-reason */ const REASON_DUPLICATE = 'duplicate'; const REASON_FRAUDULENT = 'fraudulent'; const REASON_ORDER_CHANGE = 'order_change'; const REASON_PRODUCT_UNSATISFACTORY = 'product_unsatisfactory'; /** * Possible string representations of the credit note status. * @link https://stripe.com/docs/api/credit_notes/object#credit_note_object-status */ const STATUS_ISSUED = 'issued'; const STATUS_VOID = 'void'; /** * Possible string representations of the credit note type. * @link https://stripe.com/docs/api/credit_notes/object#credit_note_object-status */ const TYPE_POST_PAYMENT = 'post_payment'; const TYPE_PRE_PAYMENT = 'pre_payment'; const PATH_LINES = '/lines'; /** * @param array|null $params * @param array|string|null $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return CreditNote The previewed credit note. */ public static function preview($params = null, $opts = null) { $url = static::classUrl() . '/preview'; list($response, $opts) = static::_staticRequest('get', $url, $params, $opts); $obj = Util\Util::convertToStripeObject($response->json, $opts); $obj->setLastResponse($response); return $obj; } /** * @param array|null $params * @param array|string|null $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return CreditNote The voided credit note. */ public function voidCreditNote($params = null, $opts = null) { $url = $this->instanceUrl() . '/void'; list($response, $opts) = $this->_request('post', $url, $params, $opts); $this->refreshFrom($response, $opts); return $this; } /** * @param string $id The ID of the credit note on which to retrieve the lines. * @param array|null $params * @param array|string|null $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return Collection The list of lines (CreditNoteLineItem). */ public static function allLines($id, $params = null, $opts = null) { return self::_allNestedResources($id, static::PATH_LINES, $params, $opts); } }
[+]
..
[+]
Sigma
[-] Review.php
[edit]
[-] CustomerBalanceTransaction.php
[edit]
[-] BankAccount.php
[edit]
[-] WebhookSignature.php
[edit]
[+]
Radar
[-] PaymentMethod.php
[edit]
[-] LoginLink.php
[edit]
[-] Customer.php
[edit]
[-] SingletonApiResource.php
[edit]
[-] ApplicationFeeRefund.php
[edit]
[-] BalanceTransaction.php
[edit]
[-] Dispute.php
[edit]
[-] Topup.php
[edit]
[-] EphemeralKey.php
[edit]
[-] StripeObject.php
[edit]
[-] FileLink.php
[edit]
[+]
HttpClient
[-] ErrorObject.php
[edit]
[-] CreditNote.php
[edit]
[-] SubscriptionItem.php
[edit]
[-] ExchangeRate.php
[edit]
[+]
Issuing
[+]
Terminal
[-] RecipientTransfer.php
[edit]
[-] Coupon.php
[edit]
[-] Account.php
[edit]
[-] Stripe.php
[edit]
[-] WebhookEndpoint.php
[edit]
[-] File.php
[edit]
[-] Capability.php
[edit]
[-] Transfer.php
[edit]
[-] SubscriptionSchedule.php
[edit]
[+]
Util
[-] SourceTransaction.php
[edit]
[-] ApiRequestor.php
[edit]
[-] AccountLink.php
[edit]
[+]
ApiOperations
[+]
Exception
[-] Balance.php
[edit]
[-] InvoiceLineItem.php
[edit]
[-] OAuth.php
[edit]
[-] ApiResource.php
[edit]
[-] Collection.php
[edit]
[-] Webhook.php
[edit]
[-] PaymentIntent.php
[edit]
[-] UsageRecord.php
[edit]
[-] Subscription.php
[edit]
[-] SetupIntent.php
[edit]
[-] Token.php
[edit]
[-] Event.php
[edit]
[-] Recipient.php
[edit]
[-] ApplicationFee.php
[edit]
[-] Card.php
[edit]
[-] ApplePayDomain.php
[edit]
[-] Discount.php
[edit]
[-] BitcoinReceiver.php
[edit]
[-] CreditNoteLineItem.php
[edit]
[-] CountrySpec.php
[edit]
[-] TaxRate.php
[edit]
[+]
Reporting
[-] Plan.php
[edit]
[-] Source.php
[edit]
[-] OrderReturn.php
[edit]
[-] Order.php
[edit]
[-] TaxId.php
[edit]
[-] Mandate.php
[edit]
[-] Charge.php
[edit]
[-] OrderItem.php
[edit]
[-] RequestTelemetry.php
[edit]
[-] SKU.php
[edit]
[-] UsageRecordSummary.php
[edit]
[-] AlipayAccount.php
[edit]
[-] InvoiceItem.php
[edit]
[-] Product.php
[edit]
[-] TransferReversal.php
[edit]
[-] OAuthErrorObject.php
[edit]
[-] Refund.php
[edit]
[-] ThreeDSecure.php
[edit]
[-] Person.php
[edit]
[-] ApiResponse.php
[edit]
[-] Invoice.php
[edit]
[-] Payout.php
[edit]
[-] BitcoinTransaction.php
[edit]
[+]
Checkout