AdditionalRecipient.php
7 years ago
AdditionalRecipientReceivable.php
7 years ago
AdditionalRecipientReceivableRefund.php
7 years ago
Address.php
7 years ago
BalancePaymentDetails.php
7 years ago
BatchChangeInventoryRequest.php
7 years ago
BatchChangeInventoryResponse.php
7 years ago
BatchDeleteCatalogObjectsRequest.php
7 years ago
BatchDeleteCatalogObjectsResponse.php
7 years ago
BatchRetrieveCatalogObjectsRequest.php
7 years ago
BatchRetrieveCatalogObjectsResponse.php
7 years ago
BatchRetrieveInventoryChangesRequest.php
7 years ago
BatchRetrieveInventoryChangesResponse.php
7 years ago
BatchRetrieveInventoryCountsRequest.php
7 years ago
BatchRetrieveInventoryCountsResponse.php
7 years ago
BatchRetrieveOrdersRequest.php
7 years ago
BatchRetrieveOrdersResponse.php
7 years ago
BatchUpsertCatalogObjectsRequest.php
7 years ago
BatchUpsertCatalogObjectsResponse.php
7 years ago
BreakType.php
7 years ago
BusinessHours.php
7 years ago
BusinessHoursPeriod.php
7 years ago
CancelPaymentByIdempotencyKeyRequest.php
7 years ago
CancelPaymentByIdempotencyKeyResponse.php
7 years ago
CancelPaymentRequest.php
7 years ago
CancelPaymentResponse.php
7 years ago
CaptureTransactionRequest.php
7 years ago
CaptureTransactionResponse.php
7 years ago
Card.php
7 years ago
CardBrand.php
7 years ago
CardPaymentDetails.php
7 years ago
CatalogCategory.php
7 years ago
CatalogDiscount.php
7 years ago
CatalogDiscountType.php
7 years ago
CatalogIdMapping.php
7 years ago
CatalogImage.php
7 years ago
CatalogInfoRequest.php
7 years ago
CatalogInfoResponse.php
7 years ago
CatalogInfoResponseLimits.php
7 years ago
CatalogItem.php
7 years ago
CatalogItemModifierListInfo.php
7 years ago
CatalogItemOption.php
7 years ago
CatalogItemOptionForItem.php
7 years ago
CatalogItemOptionValue.php
7 years ago
CatalogItemOptionValueForItemVariation.php
7 years ago
CatalogItemProductType.php
7 years ago
CatalogItemVariation.php
7 years ago
CatalogMeasurementUnit.php
7 years ago
CatalogModifier.php
7 years ago
CatalogModifierList.php
7 years ago
CatalogModifierListSelectionType.php
7 years ago
CatalogModifierOverride.php
7 years ago
CatalogObject.php
7 years ago
CatalogObjectBatch.php
7 years ago
CatalogObjectType.php
7 years ago
CatalogPricingRule.php
7 years ago
CatalogPricingType.php
7 years ago
CatalogProductSet.php
7 years ago
CatalogQuery.php
7 years ago
CatalogQueryExact.php
7 years ago
CatalogQueryItemVariationsForItemOptionValues.php
7 years ago
CatalogQueryItemsForItemOptions.php
7 years ago
CatalogQueryItemsForModifierList.php
7 years ago
CatalogQueryItemsForTax.php
7 years ago
CatalogQueryPrefix.php
7 years ago
CatalogQueryRange.php
7 years ago
CatalogQuerySortedAttribute.php
7 years ago
CatalogQueryText.php
7 years ago
CatalogTax.php
7 years ago
CatalogTimePeriod.php
7 years ago
CatalogV1Id.php
7 years ago
ChargeRequest.php
7 years ago
ChargeRequestAdditionalRecipient.php
7 years ago
ChargeResponse.php
7 years ago
Checkout.php
7 years ago
CompletePaymentRequest.php
7 years ago
CompletePaymentResponse.php
7 years ago
Coordinates.php
7 years ago
Country.php
7 years ago
CreateBreakTypeRequest.php
7 years ago
CreateBreakTypeResponse.php
7 years ago
CreateCheckoutRequest.php
7 years ago
CreateCheckoutResponse.php
7 years ago
CreateCustomerCardRequest.php
7 years ago
CreateCustomerCardResponse.php
7 years ago
CreateCustomerRequest.php
7 years ago
CreateCustomerResponse.php
7 years ago
CreateMobileAuthorizationCodeRequest.php
7 years ago
CreateMobileAuthorizationCodeResponse.php
7 years ago
CreateOrderRequest.php
7 years ago
CreateOrderRequestDiscount.php
7 years ago
CreateOrderRequestLineItem.php
7 years ago
CreateOrderRequestModifier.php
7 years ago
CreateOrderRequestTax.php
7 years ago
CreateOrderResponse.php
7 years ago
CreatePaymentRequest.php
7 years ago
CreatePaymentResponse.php
7 years ago
CreateRefundRequest.php
7 years ago
CreateRefundResponse.php
7 years ago
CreateShiftRequest.php
7 years ago
CreateShiftResponse.php
7 years ago
Currency.php
7 years ago
Customer.php
7 years ago
CustomerCreationSource.php
7 years ago
CustomerCreationSourceFilter.php
7 years ago
CustomerFilter.php
7 years ago
CustomerGroupInfo.php
7 years ago
CustomerInclusionExclusion.php
7 years ago
CustomerPreferences.php
7 years ago
CustomerQuery.php
7 years ago
CustomerSort.php
7 years ago
CustomerSortField.php
7 years ago
DateRange.php
7 years ago
DayOfWeek.php
7 years ago
DeleteBreakTypeRequest.php
7 years ago
DeleteBreakTypeResponse.php
7 years ago
DeleteCatalogObjectRequest.php
7 years ago
DeleteCatalogObjectResponse.php
7 years ago
DeleteCustomerCardRequest.php
7 years ago
DeleteCustomerCardResponse.php
7 years ago
DeleteCustomerRequest.php
7 years ago
DeleteCustomerResponse.php
7 years ago
DeleteShiftRequest.php
7 years ago
DeleteShiftResponse.php
7 years ago
Device.php
7 years ago
Employee.php
7 years ago
EmployeeStatus.php
7 years ago
EmployeeWage.php
7 years ago
Error.php
7 years ago
ErrorCategory.php
7 years ago
ErrorCode.php
7 years ago
GetBreakTypeRequest.php
7 years ago
GetBreakTypeResponse.php
7 years ago
GetEmployeeWageRequest.php
7 years ago
GetEmployeeWageResponse.php
7 years ago
GetPaymentRefundRequest.php
7 years ago
GetPaymentRefundResponse.php
7 years ago
GetPaymentRequest.php
7 years ago
GetPaymentResponse.php
7 years ago
GetShiftRequest.php
7 years ago
GetShiftResponse.php
7 years ago
InventoryAdjustment.php
7 years ago
InventoryAlertType.php
7 years ago
InventoryChange.php
7 years ago
InventoryChangeType.php
7 years ago
InventoryCount.php
7 years ago
InventoryPhysicalCount.php
7 years ago
InventoryState.php
7 years ago
InventoryTransfer.php
7 years ago
ItemVariationLocationOverrides.php
7 years ago
ListAdditionalRecipientReceivableRefundsRequest.php
7 years ago
ListAdditionalRecipientReceivableRefundsResponse.php
7 years ago
ListAdditionalRecipientReceivablesRequest.php
7 years ago
ListAdditionalRecipientReceivablesResponse.php
7 years ago
ListBreakTypesRequest.php
7 years ago
ListBreakTypesResponse.php
7 years ago
ListCatalogRequest.php
7 years ago
ListCatalogResponse.php
7 years ago
ListCustomersRequest.php
7 years ago
ListCustomersResponse.php
7 years ago
ListEmployeeWagesRequest.php
7 years ago
ListEmployeeWagesResponse.php
7 years ago
ListEmployeesRequest.php
7 years ago
ListEmployeesResponse.php
7 years ago
ListLocationsRequest.php
7 years ago
ListLocationsResponse.php
7 years ago
ListPaymentRefundsRequest.php
7 years ago
ListPaymentRefundsResponse.php
7 years ago
ListPaymentsRequest.php
7 years ago
ListPaymentsResponse.php
7 years ago
ListRefundsRequest.php
7 years ago
ListRefundsResponse.php
7 years ago
ListTransactionsRequest.php
7 years ago
ListTransactionsResponse.php
7 years ago
ListWorkweekConfigsRequest.php
7 years ago
ListWorkweekConfigsResponse.php
7 years ago
Location.php
7 years ago
LocationCapability.php
7 years ago
LocationStatus.php
7 years ago
LocationType.php
7 years ago
MeasurementUnit.php
7 years ago
MeasurementUnitArea.php
7 years ago
MeasurementUnitCustom.php
7 years ago
MeasurementUnitGeneric.php
7 years ago
MeasurementUnitLength.php
7 years ago
MeasurementUnitUnitType.php
7 years ago
MeasurementUnitVolume.php
7 years ago
MeasurementUnitWeight.php
7 years ago
ModelBreak.php
7 years ago
Money.php
7 years ago
ObtainTokenRequest.php
7 years ago
ObtainTokenResponse.php
7 years ago
Order.php
7 years ago
OrderEntry.php
7 years ago
OrderFulfillment.php
7 years ago
OrderFulfillmentPickupDetails.php
7 years ago
OrderFulfillmentPickupDetailsScheduleType.php
7 years ago
OrderFulfillmentRecipient.php
7 years ago
OrderFulfillmentShipmentDetails.php
7 years ago
OrderFulfillmentState.php
7 years ago
OrderFulfillmentType.php
7 years ago
OrderLineItem.php
7 years ago
OrderLineItemAppliedDiscount.php
7 years ago
OrderLineItemAppliedTax.php
7 years ago
OrderLineItemDiscount.php
7 years ago
OrderLineItemDiscountScope.php
7 years ago
OrderLineItemDiscountType.php
7 years ago
OrderLineItemModifier.php
7 years ago
OrderLineItemTax.php
7 years ago
OrderLineItemTaxScope.php
7 years ago
OrderLineItemTaxType.php
7 years ago
OrderMoneyAmounts.php
7 years ago
OrderQuantityUnit.php
7 years ago
OrderReturn.php
7 years ago
OrderReturnDiscount.php
7 years ago
OrderReturnLineItem.php
7 years ago
OrderReturnLineItemModifier.php
7 years ago
OrderReturnServiceCharge.php
7 years ago
OrderReturnTax.php
7 years ago
OrderRoundingAdjustment.php
7 years ago
OrderServiceCharge.php
7 years ago
OrderServiceChargeCalculationPhase.php
7 years ago
OrderSource.php
7 years ago
OrderState.php
7 years ago
PayOrderRequest.php
7 years ago
PayOrderResponse.php
7 years ago
Payment.php
7 years ago
PaymentRefund.php
7 years ago
ProcessingFee.php
7 years ago
Product.php
7 years ago
Refund.php
7 years ago
RefundPaymentRequest.php
7 years ago
RefundPaymentResponse.php
7 years ago
RefundStatus.php
7 years ago
RegisterDomainRequest.php
7 years ago
RegisterDomainResponse.php
7 years ago
RegisterDomainResponseStatus.php
7 years ago
RenewTokenRequest.php
7 years ago
RenewTokenResponse.php
7 years ago
RetrieveCatalogObjectRequest.php
7 years ago
RetrieveCatalogObjectResponse.php
7 years ago
RetrieveCustomerRequest.php
7 years ago
RetrieveCustomerResponse.php
7 years ago
RetrieveEmployeeRequest.php
7 years ago
RetrieveEmployeeResponse.php
7 years ago
RetrieveInventoryAdjustmentRequest.php
7 years ago
RetrieveInventoryAdjustmentResponse.php
7 years ago
RetrieveInventoryChangesRequest.php
7 years ago
RetrieveInventoryChangesResponse.php
7 years ago
RetrieveInventoryCountRequest.php
7 years ago
RetrieveInventoryCountResponse.php
7 years ago
RetrieveInventoryPhysicalCountRequest.php
7 years ago
RetrieveInventoryPhysicalCountResponse.php
7 years ago
RetrieveLocationRequest.php
7 years ago
RetrieveLocationResponse.php
7 years ago
RetrieveTransactionRequest.php
7 years ago
RetrieveTransactionResponse.php
7 years ago
RevokeTokenRequest.php
7 years ago
RevokeTokenResponse.php
7 years ago
SearchCatalogObjectsRequest.php
7 years ago
SearchCatalogObjectsResponse.php
7 years ago
SearchCustomersRequest.php
7 years ago
SearchCustomersResponse.php
7 years ago
SearchOrdersCustomerFilter.php
7 years ago
SearchOrdersDateTimeFilter.php
7 years ago
SearchOrdersFilter.php
7 years ago
SearchOrdersFulfillmentFilter.php
7 years ago
SearchOrdersQuery.php
7 years ago
SearchOrdersRequest.php
7 years ago
SearchOrdersResponse.php
7 years ago
SearchOrdersSort.php
7 years ago
SearchOrdersSortField.php
7 years ago
SearchOrdersSourceFilter.php
7 years ago
SearchOrdersStateFilter.php
7 years ago
SearchShiftsRequest.php
7 years ago
SearchShiftsResponse.php
7 years ago
Shift.php
7 years ago
ShiftFilter.php
7 years ago
ShiftFilterStatus.php
7 years ago
ShiftQuery.php
7 years ago
ShiftSort.php
7 years ago
ShiftSortField.php
7 years ago
ShiftStatus.php
7 years ago
ShiftWage.php
7 years ago
ShiftWorkday.php
7 years ago
ShiftWorkdayMatcher.php
7 years ago
SortOrder.php
7 years ago
SourceApplication.php
7 years ago
StandardUnitDescription.php
7 years ago
StandardUnitDescriptionGroup.php
7 years ago
TaxCalculationPhase.php
7 years ago
TaxInclusionType.php
7 years ago
Tender.php
7 years ago
TenderCardDetails.php
7 years ago
TenderCardDetailsEntryMethod.php
7 years ago
TenderCardDetailsStatus.php
7 years ago
TenderCashDetails.php
7 years ago
TenderType.php
7 years ago
TimeRange.php
7 years ago
Transaction.php
7 years ago
TransactionProduct.php
7 years ago
UpdateBreakTypeRequest.php
7 years ago
UpdateBreakTypeResponse.php
7 years ago
UpdateCustomerRequest.php
7 years ago
UpdateCustomerResponse.php
7 years ago
UpdateItemModifierListsRequest.php
7 years ago
UpdateItemModifierListsResponse.php
7 years ago
UpdateItemTaxesRequest.php
7 years ago
UpdateItemTaxesResponse.php
7 years ago
UpdateOrderRequest.php
7 years ago
UpdateOrderResponse.php
7 years ago
UpdateShiftRequest.php
7 years ago
UpdateShiftResponse.php
7 years ago
UpdateWorkweekConfigRequest.php
7 years ago
UpdateWorkweekConfigResponse.php
7 years ago
UpsertCatalogObjectRequest.php
7 years ago
UpsertCatalogObjectResponse.php
7 years ago
V1AdjustInventoryRequest.php
7 years ago
V1AdjustInventoryRequestAdjustmentType.php
7 years ago
V1ApplyFeeRequest.php
7 years ago
V1ApplyModifierListRequest.php
7 years ago
V1BankAccount.php
7 years ago
V1BankAccountType.php
7 years ago
V1CashDrawerEvent.php
7 years ago
V1CashDrawerEventEventType.php
7 years ago
V1CashDrawerShift.php
7 years ago
V1CashDrawerShiftEventType.php
7 years ago
V1Category.php
7 years ago
V1CreateCategoryRequest.php
7 years ago
V1CreateDiscountRequest.php
7 years ago
V1CreateEmployeeRoleRequest.php
7 years ago
V1CreateFeeRequest.php
7 years ago
V1CreateItemRequest.php
7 years ago
V1CreateModifierListRequest.php
7 years ago
V1CreateModifierOptionRequest.php
7 years ago
V1CreatePageRequest.php
7 years ago
V1CreateRefundRequest.php
7 years ago
V1CreateRefundRequestType.php
7 years ago
V1CreateVariationRequest.php
7 years ago
V1DeleteCategoryRequest.php
7 years ago
V1DeleteDiscountRequest.php
7 years ago
V1DeleteFeeRequest.php
7 years ago
V1DeleteItemRequest.php
7 years ago
V1DeleteModifierListRequest.php
7 years ago
V1DeleteModifierOptionRequest.php
7 years ago
V1DeletePageCellRequest.php
7 years ago
V1DeletePageRequest.php
7 years ago
V1DeleteTimecardRequest.php
7 years ago
V1DeleteTimecardResponse.php
7 years ago
V1DeleteVariationRequest.php
7 years ago
V1Discount.php
7 years ago
V1DiscountColor.php
7 years ago
V1DiscountDiscountType.php
7 years ago
V1Employee.php
7 years ago
V1EmployeeRole.php
7 years ago
V1EmployeeRolePermissions.php
7 years ago
V1EmployeeStatus.php
7 years ago
V1Fee.php
7 years ago
V1FeeAdjustmentType.php
7 years ago
V1FeeCalculationPhase.php
7 years ago
V1FeeInclusionType.php
7 years ago
V1FeeType.php
7 years ago
V1InventoryEntry.php
7 years ago
V1Item.php
7 years ago
V1ItemColor.php
7 years ago
V1ItemImage.php
7 years ago
V1ItemType.php
7 years ago
V1ItemVisibility.php
7 years ago
V1ListBankAccountsRequest.php
7 years ago
V1ListBankAccountsResponse.php
7 years ago
V1ListCashDrawerShiftsRequest.php
7 years ago
V1ListCashDrawerShiftsResponse.php
7 years ago
V1ListCategoriesRequest.php
7 years ago
V1ListCategoriesResponse.php
7 years ago
V1ListDiscountsRequest.php
7 years ago
V1ListDiscountsResponse.php
7 years ago
V1ListEmployeeRolesRequest.php
7 years ago
V1ListEmployeeRolesResponse.php
7 years ago
V1ListEmployeesRequest.php
7 years ago
V1ListEmployeesRequestStatus.php
7 years ago
V1ListEmployeesResponse.php
7 years ago
V1ListFeesRequest.php
7 years ago
V1ListFeesResponse.php
7 years ago
V1ListInventoryRequest.php
7 years ago
V1ListInventoryResponse.php
7 years ago
V1ListItemsRequest.php
7 years ago
V1ListItemsResponse.php
7 years ago
V1ListLocationsRequest.php
7 years ago
V1ListLocationsResponse.php
7 years ago
V1ListModifierListsRequest.php
7 years ago
V1ListModifierListsResponse.php
7 years ago
V1ListOrdersRequest.php
7 years ago
V1ListOrdersResponse.php
7 years ago
V1ListPagesRequest.php
7 years ago
V1ListPagesResponse.php
7 years ago
V1ListPaymentsRequest.php
7 years ago
V1ListPaymentsResponse.php
7 years ago
V1ListRefundsRequest.php
7 years ago
V1ListRefundsResponse.php
7 years ago
V1ListSettlementsRequest.php
7 years ago
V1ListSettlementsRequestStatus.php
7 years ago
V1ListSettlementsResponse.php
7 years ago
V1ListTimecardEventsRequest.php
7 years ago
V1ListTimecardEventsResponse.php
7 years ago
V1ListTimecardsRequest.php
7 years ago
V1ListTimecardsResponse.php
7 years ago
V1Merchant.php
7 years ago
V1MerchantAccountType.php
7 years ago
V1MerchantBusinessType.php
7 years ago
V1MerchantLocationDetails.php
7 years ago
V1ModifierList.php
7 years ago
V1ModifierListSelectionType.php
7 years ago
V1ModifierOption.php
7 years ago
V1Money.php
7 years ago
V1Order.php
7 years ago
V1OrderHistoryEntry.php
7 years ago
V1OrderHistoryEntryAction.php
7 years ago
V1OrderState.php
7 years ago
V1Page.php
7 years ago
V1PageCell.php
7 years ago
V1PageCellObjectType.php
7 years ago
V1PageCellPlaceholderType.php
7 years ago
V1Payment.php
7 years ago
V1PaymentDiscount.php
7 years ago
V1PaymentItemDetail.php
7 years ago
V1PaymentItemization.php
7 years ago
V1PaymentItemizationItemizationType.php
7 years ago
V1PaymentModifier.php
7 years ago
V1PaymentSurcharge.php
7 years ago
V1PaymentSurchargeType.php
7 years ago
V1PaymentTax.php
7 years ago
V1PaymentTaxInclusionType.php
7 years ago
V1PhoneNumber.php
7 years ago
V1Refund.php
7 years ago
V1RefundType.php
7 years ago
V1RemoveFeeRequest.php
7 years ago
V1RemoveModifierListRequest.php
7 years ago
V1RetrieveBankAccountRequest.php
7 years ago
V1RetrieveBusinessRequest.php
7 years ago
V1RetrieveCashDrawerShiftRequest.php
7 years ago
V1RetrieveEmployeeRequest.php
7 years ago
V1RetrieveEmployeeRoleRequest.php
7 years ago
V1RetrieveItemRequest.php
7 years ago
V1RetrieveModifierListRequest.php
7 years ago
V1RetrieveOrderRequest.php
7 years ago
V1RetrievePaymentRequest.php
7 years ago
V1RetrieveSettlementRequest.php
7 years ago
V1RetrieveTimecardRequest.php
7 years ago
V1Settlement.php
7 years ago
V1SettlementEntry.php
7 years ago
V1SettlementEntryType.php
7 years ago
V1SettlementStatus.php
7 years ago
V1Tender.php
7 years ago
V1TenderCardBrand.php
7 years ago
V1TenderEntryMethod.php
7 years ago
V1TenderType.php
7 years ago
V1Timecard.php
7 years ago
V1TimecardEvent.php
7 years ago
V1TimecardEventEventType.php
7 years ago
V1UpdateCategoryRequest.php
7 years ago
V1UpdateDiscountRequest.php
7 years ago
V1UpdateEmployeeRequest.php
7 years ago
V1UpdateEmployeeRoleRequest.php
7 years ago
V1UpdateFeeRequest.php
7 years ago
V1UpdateItemRequest.php
7 years ago
V1UpdateModifierListRequest.php
7 years ago
V1UpdateModifierListRequestSelectionType.php
7 years ago
V1UpdateModifierOptionRequest.php
7 years ago
V1UpdateOrderRequest.php
7 years ago
V1UpdateOrderRequestAction.php
7 years ago
V1UpdatePageCellRequest.php
7 years ago
V1UpdatePageRequest.php
7 years ago
V1UpdateTimecardRequest.php
7 years ago
V1UpdateVariationRequest.php
7 years ago
V1Variation.php
7 years ago
V1VariationInventoryAlertType.php
7 years ago
V1VariationPricingType.php
7 years ago
VoidTransactionRequest.php
7 years ago
VoidTransactionResponse.php
7 years ago
WebhookEvents.php
7 years ago
Weekday.php
7 years ago
WorkweekConfig.php
7 years ago
Refund.php
444 lines
| 1 | <?php |
| 2 | /** |
| 3 | * NOTE: This class is auto generated by the swagger code generator program. |
| 4 | * https://github.com/swagger-api/swagger-codegen |
| 5 | * Do not edit the class manually. |
| 6 | */ |
| 7 | |
| 8 | namespace SquareConnect\Model; |
| 9 | |
| 10 | use \ArrayAccess; |
| 11 | /** |
| 12 | * Refund Class Doc Comment |
| 13 | * |
| 14 | * @category Class |
| 15 | * @package SquareConnect |
| 16 | * @author Square Inc. |
| 17 | * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2 |
| 18 | * @link https://squareup.com/developers |
| 19 | */ |
| 20 | class Refund implements ArrayAccess |
| 21 | { |
| 22 | /** |
| 23 | * Array of property to type mappings. Used for (de)serialization |
| 24 | * @var string[] |
| 25 | */ |
| 26 | static $swaggerTypes = array( |
| 27 | 'id' => 'string', |
| 28 | 'location_id' => 'string', |
| 29 | 'transaction_id' => 'string', |
| 30 | 'tender_id' => 'string', |
| 31 | 'created_at' => 'string', |
| 32 | 'reason' => 'string', |
| 33 | 'amount_money' => '\SquareConnect\Model\Money', |
| 34 | 'status' => 'string', |
| 35 | 'processing_fee_money' => '\SquareConnect\Model\Money', |
| 36 | 'additional_recipients' => '\SquareConnect\Model\AdditionalRecipient[]' |
| 37 | ); |
| 38 | |
| 39 | /** |
| 40 | * Array of attributes where the key is the local name, and the value is the original name |
| 41 | * @var string[] |
| 42 | */ |
| 43 | static $attributeMap = array( |
| 44 | 'id' => 'id', |
| 45 | 'location_id' => 'location_id', |
| 46 | 'transaction_id' => 'transaction_id', |
| 47 | 'tender_id' => 'tender_id', |
| 48 | 'created_at' => 'created_at', |
| 49 | 'reason' => 'reason', |
| 50 | 'amount_money' => 'amount_money', |
| 51 | 'status' => 'status', |
| 52 | 'processing_fee_money' => 'processing_fee_money', |
| 53 | 'additional_recipients' => 'additional_recipients' |
| 54 | ); |
| 55 | |
| 56 | /** |
| 57 | * Array of attributes to setter functions (for deserialization of responses) |
| 58 | * @var string[] |
| 59 | */ |
| 60 | static $setters = array( |
| 61 | 'id' => 'setId', |
| 62 | 'location_id' => 'setLocationId', |
| 63 | 'transaction_id' => 'setTransactionId', |
| 64 | 'tender_id' => 'setTenderId', |
| 65 | 'created_at' => 'setCreatedAt', |
| 66 | 'reason' => 'setReason', |
| 67 | 'amount_money' => 'setAmountMoney', |
| 68 | 'status' => 'setStatus', |
| 69 | 'processing_fee_money' => 'setProcessingFeeMoney', |
| 70 | 'additional_recipients' => 'setAdditionalRecipients' |
| 71 | ); |
| 72 | |
| 73 | /** |
| 74 | * Array of attributes to getter functions (for serialization of requests) |
| 75 | * @var string[] |
| 76 | */ |
| 77 | static $getters = array( |
| 78 | 'id' => 'getId', |
| 79 | 'location_id' => 'getLocationId', |
| 80 | 'transaction_id' => 'getTransactionId', |
| 81 | 'tender_id' => 'getTenderId', |
| 82 | 'created_at' => 'getCreatedAt', |
| 83 | 'reason' => 'getReason', |
| 84 | 'amount_money' => 'getAmountMoney', |
| 85 | 'status' => 'getStatus', |
| 86 | 'processing_fee_money' => 'getProcessingFeeMoney', |
| 87 | 'additional_recipients' => 'getAdditionalRecipients' |
| 88 | ); |
| 89 | |
| 90 | /** |
| 91 | * $id The refund's unique ID. |
| 92 | * @var string |
| 93 | */ |
| 94 | protected $id; |
| 95 | /** |
| 96 | * $location_id The ID of the refund's associated location. |
| 97 | * @var string |
| 98 | */ |
| 99 | protected $location_id; |
| 100 | /** |
| 101 | * $transaction_id The ID of the transaction that the refunded tender is part of. |
| 102 | * @var string |
| 103 | */ |
| 104 | protected $transaction_id; |
| 105 | /** |
| 106 | * $tender_id The ID of the refunded tender. |
| 107 | * @var string |
| 108 | */ |
| 109 | protected $tender_id; |
| 110 | /** |
| 111 | * $created_at The time when the refund was created, in RFC 3339 format. |
| 112 | * @var string |
| 113 | */ |
| 114 | protected $created_at; |
| 115 | /** |
| 116 | * $reason The reason for the refund being issued. |
| 117 | * @var string |
| 118 | */ |
| 119 | protected $reason; |
| 120 | /** |
| 121 | * $amount_money The amount of money refunded to the buyer. |
| 122 | * @var \SquareConnect\Model\Money |
| 123 | */ |
| 124 | protected $amount_money; |
| 125 | /** |
| 126 | * $status The current status of the refund (`PENDING`, `APPROVED`, `REJECTED`, or `FAILED`). See [RefundStatus](#type-refundstatus) for possible values |
| 127 | * @var string |
| 128 | */ |
| 129 | protected $status; |
| 130 | /** |
| 131 | * $processing_fee_money The amount of Square processing fee money refunded to the *merchant*. |
| 132 | * @var \SquareConnect\Model\Money |
| 133 | */ |
| 134 | protected $processing_fee_money; |
| 135 | /** |
| 136 | * $additional_recipients Additional recipients (other than the merchant) receiving a portion of this refund. For example, fees assessed on a refund of a purchase by a third party integration. |
| 137 | * @var \SquareConnect\Model\AdditionalRecipient[] |
| 138 | */ |
| 139 | protected $additional_recipients; |
| 140 | |
| 141 | /** |
| 142 | * Constructor |
| 143 | * @param mixed[] $data Associated array of property value initializing the model |
| 144 | */ |
| 145 | public function __construct(array $data = null) |
| 146 | { |
| 147 | if ($data != null) { |
| 148 | if (isset($data["id"])) { |
| 149 | $this->id = $data["id"]; |
| 150 | } else { |
| 151 | $this->id = null; |
| 152 | } |
| 153 | if (isset($data["location_id"])) { |
| 154 | $this->location_id = $data["location_id"]; |
| 155 | } else { |
| 156 | $this->location_id = null; |
| 157 | } |
| 158 | if (isset($data["transaction_id"])) { |
| 159 | $this->transaction_id = $data["transaction_id"]; |
| 160 | } else { |
| 161 | $this->transaction_id = null; |
| 162 | } |
| 163 | if (isset($data["tender_id"])) { |
| 164 | $this->tender_id = $data["tender_id"]; |
| 165 | } else { |
| 166 | $this->tender_id = null; |
| 167 | } |
| 168 | if (isset($data["created_at"])) { |
| 169 | $this->created_at = $data["created_at"]; |
| 170 | } else { |
| 171 | $this->created_at = null; |
| 172 | } |
| 173 | if (isset($data["reason"])) { |
| 174 | $this->reason = $data["reason"]; |
| 175 | } else { |
| 176 | $this->reason = null; |
| 177 | } |
| 178 | if (isset($data["amount_money"])) { |
| 179 | $this->amount_money = $data["amount_money"]; |
| 180 | } else { |
| 181 | $this->amount_money = null; |
| 182 | } |
| 183 | if (isset($data["status"])) { |
| 184 | $this->status = $data["status"]; |
| 185 | } else { |
| 186 | $this->status = null; |
| 187 | } |
| 188 | if (isset($data["processing_fee_money"])) { |
| 189 | $this->processing_fee_money = $data["processing_fee_money"]; |
| 190 | } else { |
| 191 | $this->processing_fee_money = null; |
| 192 | } |
| 193 | if (isset($data["additional_recipients"])) { |
| 194 | $this->additional_recipients = $data["additional_recipients"]; |
| 195 | } else { |
| 196 | $this->additional_recipients = null; |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | /** |
| 201 | * Gets id |
| 202 | * @return string |
| 203 | */ |
| 204 | public function getId() |
| 205 | { |
| 206 | return $this->id; |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Sets id |
| 211 | * @param string $id The refund's unique ID. |
| 212 | * @return $this |
| 213 | */ |
| 214 | public function setId($id) |
| 215 | { |
| 216 | $this->id = $id; |
| 217 | return $this; |
| 218 | } |
| 219 | /** |
| 220 | * Gets location_id |
| 221 | * @return string |
| 222 | */ |
| 223 | public function getLocationId() |
| 224 | { |
| 225 | return $this->location_id; |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Sets location_id |
| 230 | * @param string $location_id The ID of the refund's associated location. |
| 231 | * @return $this |
| 232 | */ |
| 233 | public function setLocationId($location_id) |
| 234 | { |
| 235 | $this->location_id = $location_id; |
| 236 | return $this; |
| 237 | } |
| 238 | /** |
| 239 | * Gets transaction_id |
| 240 | * @return string |
| 241 | */ |
| 242 | public function getTransactionId() |
| 243 | { |
| 244 | return $this->transaction_id; |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Sets transaction_id |
| 249 | * @param string $transaction_id The ID of the transaction that the refunded tender is part of. |
| 250 | * @return $this |
| 251 | */ |
| 252 | public function setTransactionId($transaction_id) |
| 253 | { |
| 254 | $this->transaction_id = $transaction_id; |
| 255 | return $this; |
| 256 | } |
| 257 | /** |
| 258 | * Gets tender_id |
| 259 | * @return string |
| 260 | */ |
| 261 | public function getTenderId() |
| 262 | { |
| 263 | return $this->tender_id; |
| 264 | } |
| 265 | |
| 266 | /** |
| 267 | * Sets tender_id |
| 268 | * @param string $tender_id The ID of the refunded tender. |
| 269 | * @return $this |
| 270 | */ |
| 271 | public function setTenderId($tender_id) |
| 272 | { |
| 273 | $this->tender_id = $tender_id; |
| 274 | return $this; |
| 275 | } |
| 276 | /** |
| 277 | * Gets created_at |
| 278 | * @return string |
| 279 | */ |
| 280 | public function getCreatedAt() |
| 281 | { |
| 282 | return $this->created_at; |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Sets created_at |
| 287 | * @param string $created_at The time when the refund was created, in RFC 3339 format. |
| 288 | * @return $this |
| 289 | */ |
| 290 | public function setCreatedAt($created_at) |
| 291 | { |
| 292 | $this->created_at = $created_at; |
| 293 | return $this; |
| 294 | } |
| 295 | /** |
| 296 | * Gets reason |
| 297 | * @return string |
| 298 | */ |
| 299 | public function getReason() |
| 300 | { |
| 301 | return $this->reason; |
| 302 | } |
| 303 | |
| 304 | /** |
| 305 | * Sets reason |
| 306 | * @param string $reason The reason for the refund being issued. |
| 307 | * @return $this |
| 308 | */ |
| 309 | public function setReason($reason) |
| 310 | { |
| 311 | $this->reason = $reason; |
| 312 | return $this; |
| 313 | } |
| 314 | /** |
| 315 | * Gets amount_money |
| 316 | * @return \SquareConnect\Model\Money |
| 317 | */ |
| 318 | public function getAmountMoney() |
| 319 | { |
| 320 | return $this->amount_money; |
| 321 | } |
| 322 | |
| 323 | /** |
| 324 | * Sets amount_money |
| 325 | * @param \SquareConnect\Model\Money $amount_money The amount of money refunded to the buyer. |
| 326 | * @return $this |
| 327 | */ |
| 328 | public function setAmountMoney($amount_money) |
| 329 | { |
| 330 | $this->amount_money = $amount_money; |
| 331 | return $this; |
| 332 | } |
| 333 | /** |
| 334 | * Gets status |
| 335 | * @return string |
| 336 | */ |
| 337 | public function getStatus() |
| 338 | { |
| 339 | return $this->status; |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * Sets status |
| 344 | * @param string $status The current status of the refund (`PENDING`, `APPROVED`, `REJECTED`, or `FAILED`). See [RefundStatus](#type-refundstatus) for possible values |
| 345 | * @return $this |
| 346 | */ |
| 347 | public function setStatus($status) |
| 348 | { |
| 349 | $this->status = $status; |
| 350 | return $this; |
| 351 | } |
| 352 | /** |
| 353 | * Gets processing_fee_money |
| 354 | * @return \SquareConnect\Model\Money |
| 355 | */ |
| 356 | public function getProcessingFeeMoney() |
| 357 | { |
| 358 | return $this->processing_fee_money; |
| 359 | } |
| 360 | |
| 361 | /** |
| 362 | * Sets processing_fee_money |
| 363 | * @param \SquareConnect\Model\Money $processing_fee_money The amount of Square processing fee money refunded to the *merchant*. |
| 364 | * @return $this |
| 365 | */ |
| 366 | public function setProcessingFeeMoney($processing_fee_money) |
| 367 | { |
| 368 | $this->processing_fee_money = $processing_fee_money; |
| 369 | return $this; |
| 370 | } |
| 371 | /** |
| 372 | * Gets additional_recipients |
| 373 | * @return \SquareConnect\Model\AdditionalRecipient[] |
| 374 | */ |
| 375 | public function getAdditionalRecipients() |
| 376 | { |
| 377 | return $this->additional_recipients; |
| 378 | } |
| 379 | |
| 380 | /** |
| 381 | * Sets additional_recipients |
| 382 | * @param \SquareConnect\Model\AdditionalRecipient[] $additional_recipients Additional recipients (other than the merchant) receiving a portion of this refund. For example, fees assessed on a refund of a purchase by a third party integration. |
| 383 | * @return $this |
| 384 | */ |
| 385 | public function setAdditionalRecipients($additional_recipients) |
| 386 | { |
| 387 | $this->additional_recipients = $additional_recipients; |
| 388 | return $this; |
| 389 | } |
| 390 | /** |
| 391 | * Returns true if offset exists. False otherwise. |
| 392 | * @param integer $offset Offset |
| 393 | * @return boolean |
| 394 | */ |
| 395 | public function offsetExists($offset) |
| 396 | { |
| 397 | return isset($this->$offset); |
| 398 | } |
| 399 | |
| 400 | /** |
| 401 | * Gets offset. |
| 402 | * @param integer $offset Offset |
| 403 | * @return mixed |
| 404 | */ |
| 405 | public function offsetGet($offset) |
| 406 | { |
| 407 | return $this->$offset; |
| 408 | } |
| 409 | |
| 410 | /** |
| 411 | * Sets value based on offset. |
| 412 | * @param integer $offset Offset |
| 413 | * @param mixed $value Value to be set |
| 414 | * @return void |
| 415 | */ |
| 416 | public function offsetSet($offset, $value) |
| 417 | { |
| 418 | $this->$offset = $value; |
| 419 | } |
| 420 | |
| 421 | /** |
| 422 | * Unsets offset. |
| 423 | * @param integer $offset Offset |
| 424 | * @return void |
| 425 | */ |
| 426 | public function offsetUnset($offset) |
| 427 | { |
| 428 | unset($this->$offset); |
| 429 | } |
| 430 | |
| 431 | /** |
| 432 | * Gets the string presentation of the object |
| 433 | * @return string |
| 434 | */ |
| 435 | public function __toString() |
| 436 | { |
| 437 | if (defined('JSON_PRETTY_PRINT')) { |
| 438 | return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); |
| 439 | } else { |
| 440 | return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this)); |
| 441 | } |
| 442 | } |
| 443 | } |
| 444 |