@sellout/models 0.0.104 → 0.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/enums/DropDownEnum.d.ts +3 -0
- package/.dist/enums/DropDownEnum.js +8 -0
- package/.dist/enums/DropDownEnum.js.map +1 -0
- package/.dist/graphql/fragments/event.fragment.js +15 -14
- package/.dist/graphql/fragments/event.fragment.js.map +1 -1
- package/.dist/graphql/fragments/order.fragment.js +4 -2
- package/.dist/graphql/fragments/order.fragment.js.map +1 -1
- package/.dist/graphql/mutations/acceptRole.mutation.js +1 -1
- package/.dist/graphql/mutations/acceptRole.mutation.js.map +1 -1
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.js +1 -1
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.js.map +1 -1
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js +1 -1
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js.map +1 -1
- package/.dist/graphql/mutations/breakApartOrder.js +1 -1
- package/.dist/graphql/mutations/breakApartOrder.js.map +1 -1
- package/.dist/graphql/mutations/createArtist.mutation.js +1 -1
- package/.dist/graphql/mutations/createArtist.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createEvent.mutation.js +4 -1
- package/.dist/graphql/mutations/createEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createFee.mutation.js +1 -1
- package/.dist/graphql/mutations/createFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createOrder.mutation.js +1 -1
- package/.dist/graphql/mutations/createOrder.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.js +1 -1
- package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createOrganizationFee.mutation.js +1 -1
- package/.dist/graphql/mutations/createOrganizationFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createPlatformFee.mutation.js +1 -1
- package/.dist/graphql/mutations/createPlatformFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createRole.mutation.js +1 -1
- package/.dist/graphql/mutations/createRole.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.js +1 -1
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.js +1 -1
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createVenue.mutation.js +27 -26
- package/.dist/graphql/mutations/createVenue.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createWebFlowSite.mutation.js +1 -1
- package/.dist/graphql/mutations/createWebFlowSite.mutation.js.map +1 -1
- package/.dist/graphql/mutations/deleteEvent.mutation.js +25 -0
- package/.dist/graphql/mutations/deleteEvent.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deleteFee.mutation.js +1 -1
- package/.dist/graphql/mutations/deleteFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.js +1 -1
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/deletePlatformFee.mutation.js +1 -1
- package/.dist/graphql/mutations/deletePlatformFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/deleteRole.mutation.js +1 -1
- package/.dist/graphql/mutations/deleteRole.mutation.js.map +1 -1
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.js +1 -1
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.js.map +1 -1
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.js +1 -1
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.js.map +1 -1
- package/.dist/graphql/mutations/forgotPassword.mutation.js +1 -1
- package/.dist/graphql/mutations/forgotPassword.mutation.js.map +1 -1
- package/.dist/graphql/mutations/generateOrderReport.mutation.js +1 -1
- package/.dist/graphql/mutations/generateOrderReport.mutation.js.map +1 -1
- package/.dist/graphql/mutations/generateUserProfileReport.mutation.js +1 -1
- package/.dist/graphql/mutations/generateUserProfileReport.mutation.js.map +1 -1
- package/.dist/graphql/mutations/login.mutation.js +1 -1
- package/.dist/graphql/mutations/login.mutation.js.map +1 -1
- package/.dist/graphql/mutations/publishEvent.mutation.js +4 -1
- package/.dist/graphql/mutations/publishEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/refundOrder.mutation.js +130 -0
- package/.dist/graphql/mutations/refundOrder.mutation.js.map +1 -0
- package/.dist/graphql/mutations/register.mutation.js +1 -1
- package/.dist/graphql/mutations/register.mutation.js.map +1 -1
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.js +1 -1
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.js.map +1 -1
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.js +1 -1
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.js.map +1 -1
- package/.dist/graphql/mutations/resetUserPassword.mutation.js +1 -1
- package/.dist/graphql/mutations/resetUserPassword.mutation.js.map +1 -1
- package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.js +1 -1
- package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.js.map +1 -1
- package/.dist/graphql/mutations/{sendUserEmailVerification.js → sendOrderReceiptEmail.mutation.js} +4 -6
- package/.dist/graphql/mutations/sendOrderReceiptEmail.mutation.js.map +1 -0
- package/.dist/graphql/mutations/sendUserEmailVerification.mutation.js +1 -1
- package/.dist/graphql/mutations/sendUserEmailVerification.mutation.js.map +1 -1
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.js +1 -1
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.js.map +1 -1
- package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.js +1 -1
- package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.js.map +1 -1
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.js +1 -1
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.js.map +1 -1
- package/.dist/graphql/mutations/setUserPassword.mutation.js +1 -1
- package/.dist/graphql/mutations/setUserPassword.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateArtist.mutation.js +1 -1
- package/.dist/graphql/mutations/updateArtist.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateBasicUserInfo.mutation.js +1 -1
- package/.dist/graphql/mutations/updateBasicUserInfo.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateEvent.mutation.js +4 -1
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateFee.mutation.js +1 -1
- package/.dist/graphql/mutations/updateFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateOrganization.mutation.js +1 -1
- package/.dist/graphql/mutations/updateOrganization.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.js +1 -1
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updatePlatformFee.mutation.js +1 -1
- package/.dist/graphql/mutations/updatePlatformFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateUserEmail.mutation.js +1 -1
- package/.dist/graphql/mutations/updateUserEmail.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.js +1 -1
- package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateVenue.mutation.js +27 -26
- package/.dist/graphql/mutations/updateVenue.mutation.js.map +1 -1
- package/.dist/graphql/mutations/uploadFiles.mutation.js +1 -1
- package/.dist/graphql/mutations/uploadFiles.mutation.js.map +1 -1
- package/.dist/graphql/mutations/verifyUserEmail.mutation.js +1 -1
- package/.dist/graphql/mutations/verifyUserEmail.mutation.js.map +1 -1
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.js +1 -1
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.js.map +1 -1
- package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.js +1 -1
- package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.js.map +1 -1
- package/.dist/graphql/queries/analytics.query.js +1 -1
- package/.dist/graphql/queries/analytics.query.js.map +1 -1
- package/.dist/graphql/queries/artist.query.js +1 -1
- package/.dist/graphql/queries/artist.query.js.map +1 -1
- package/.dist/graphql/queries/artists.query.js +1 -1
- package/.dist/graphql/queries/artists.query.js.map +1 -1
- package/.dist/graphql/queries/context.query.js +1 -1
- package/.dist/graphql/queries/context.query.js.map +1 -1
- package/.dist/graphql/queries/customerOrders.query.js +1 -1
- package/.dist/graphql/queries/customerOrders.query.js.map +1 -1
- package/.dist/graphql/queries/customerProfile.query.js +1 -1
- package/.dist/graphql/queries/customerProfile.query.js.map +1 -1
- package/.dist/graphql/queries/event.query.js +5 -1
- package/.dist/graphql/queries/event.query.js.map +1 -1
- package/.dist/graphql/queries/events.query.js +5 -1
- package/.dist/graphql/queries/events.query.js.map +1 -1
- package/.dist/graphql/queries/fee.query.js +1 -1
- package/.dist/graphql/queries/fee.query.js.map +1 -1
- package/.dist/graphql/queries/fees.query.js +30 -0
- package/.dist/graphql/queries/fees.query.js.map +1 -0
- package/.dist/graphql/queries/isSuperUser.query.js +1 -1
- package/.dist/graphql/queries/isSuperUser.query.js.map +1 -1
- package/.dist/graphql/queries/listStripeTerminalReaders.query.js +1 -1
- package/.dist/graphql/queries/listStripeTerminalReaders.query.js.map +1 -1
- package/.dist/graphql/queries/order.query.js +17 -1
- package/.dist/graphql/queries/order.query.js.map +1 -1
- package/.dist/graphql/queries/orders.query.js +1 -1
- package/.dist/graphql/queries/orders.query.js.map +1 -1
- package/.dist/graphql/queries/organizationFees.query.js +1 -1
- package/.dist/graphql/queries/organizationFees.query.js.map +1 -1
- package/.dist/graphql/queries/organizations.query.js +1 -1
- package/.dist/graphql/queries/organizations.query.js.map +1 -1
- package/.dist/graphql/queries/platformFees.query.js +1 -1
- package/.dist/graphql/queries/platformFees.query.js.map +1 -1
- package/.dist/graphql/queries/profile.query.js +1 -1
- package/.dist/graphql/queries/profile.query.js.map +1 -1
- package/.dist/graphql/queries/profiles.query.js +1 -1
- package/.dist/graphql/queries/profiles.query.js.map +1 -1
- package/.dist/graphql/queries/publicEvent.query.js +5 -1
- package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
- package/.dist/graphql/queries/role.query.js +1 -1
- package/.dist/graphql/queries/role.query.js.map +1 -1
- package/.dist/graphql/queries/roles.query.js +1 -1
- package/.dist/graphql/queries/roles.query.js.map +1 -1
- package/.dist/graphql/queries/seating.query.js +1 -1
- package/.dist/graphql/queries/seating.query.js.map +1 -1
- package/.dist/graphql/queries/userExists.query.js +1 -1
- package/.dist/graphql/queries/userExists.query.js.map +1 -1
- package/.dist/graphql/queries/userProfile.query.js +1 -1
- package/.dist/graphql/queries/userProfile.query.js.map +1 -1
- package/.dist/graphql/queries/userRoles.query.js +1 -1
- package/.dist/graphql/queries/userRoles.query.js.map +1 -1
- package/.dist/graphql/queries/venue.query.js +27 -26
- package/.dist/graphql/queries/venue.query.js.map +1 -1
- package/.dist/graphql/queries/venues.query.js +27 -26
- package/.dist/graphql/queries/venues.query.js.map +1 -1
- package/.dist/graphql/queries/webFlowSites.query.js +1 -1
- package/.dist/graphql/queries/webFlowSites.query.js.map +1 -1
- package/.dist/graphql/queries/webflow.query.js +1 -1
- package/.dist/graphql/queries/webflow.query.js.map +1 -1
- package/.dist/interfaces/IAddress.d.ts +1 -0
- package/.dist/interfaces/IEvent.d.ts +2 -0
- package/.dist/interfaces/IEventQuery.d.ts +1 -0
- package/.dist/interfaces/IOrder.d.ts +2 -0
- package/.dist/interfaces/IOrder.js.map +1 -1
- package/.dist/interfaces/IOrderQuery.d.ts +1 -0
- package/.dist/interfaces/IOrderState.d.ts +2 -1
- package/.dist/interfaces/IOrderState.js +1 -0
- package/.dist/interfaces/IOrderState.js.map +1 -1
- package/.dist/interfaces/IPayment.d.ts +1 -0
- package/.dist/interfaces/IProcessingFees.d.ts +5 -0
- package/.dist/interfaces/{IStripe.js → IProcessingFees.js} +2 -1
- package/.dist/interfaces/IProcessingFees.js.map +1 -0
- package/.dist/interfaces/IRefund.d.ts +1 -0
- package/.dist/interfaces/IRefundModal.d.ts +8 -0
- package/.dist/interfaces/{IMetrics.js → IRefundModal.js} +1 -1
- package/.dist/interfaces/IRefundModal.js.map +1 -0
- package/.dist/interfaces/ISearchDropdownItem.d.ts +4 -0
- package/.dist/interfaces/{IStripeSource.js → ISearchDropdownItem.js} +1 -1
- package/.dist/interfaces/ISearchDropdownItem.js.map +1 -0
- package/.dist/interfaces/ITicketType.d.ts +1 -0
- package/.dist/schemas/Address.d.ts +5 -0
- package/.dist/schemas/Address.js +5 -0
- package/.dist/schemas/Address.js.map +1 -1
- package/.dist/schemas/Event.d.ts +19 -0
- package/.dist/schemas/Event.js +15 -1
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/schemas/Order.d.ts +39 -0
- package/.dist/schemas/Order.js +7 -0
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/schemas/Organization.d.ts +5 -0
- package/.dist/schemas/UserProfile.d.ts +5 -0
- package/.dist/schemas/Venue.d.ts +5 -0
- package/.dist/sellout-proto.js +3278 -405
- package/.dist/utils/AnalyticsUtil.js +5 -2
- package/.dist/utils/AnalyticsUtil.js.map +1 -1
- package/.dist/utils/EventUtil.d.ts +20 -2
- package/.dist/utils/EventUtil.js +330 -52
- package/.dist/utils/EventUtil.js.map +1 -1
- package/.dist/utils/FeeUtil.d.ts +5 -0
- package/.dist/utils/FeeUtil.js +21 -0
- package/.dist/utils/FeeUtil.js.map +1 -1
- package/.dist/utils/OrderUtil.js.map +1 -1
- package/.dist/utils/SaveLogsToFile.d.ts +2 -0
- package/.dist/utils/SaveLogsToFile.js +43 -0
- package/.dist/utils/SaveLogsToFile.js.map +1 -0
- package/.dist/utils/TierUtil.js +1 -1
- package/.dist/utils/TierUtil.js.map +1 -1
- package/package.json +11 -11
- package/src/enums/DropDownEnum.ts +3 -0
- package/src/graphql/fragments/event.fragment.ts +1 -0
- package/src/graphql/fragments/order.fragment.ts +2 -0
- package/src/graphql/mutations/createEvent.mutation.ts +3 -0
- package/src/graphql/mutations/createVenue.mutation.ts +32 -31
- package/src/graphql/mutations/deleteEvent.mutation.ts +21 -0
- package/src/graphql/mutations/publishEvent.mutation.ts +3 -0
- package/src/graphql/mutations/refundOrder.mutation.ts +126 -0
- package/src/graphql/mutations/sendOrderReceiptEmail.mutation.ts +9 -0
- package/src/graphql/mutations/updateEvent.mutation.ts +3 -0
- package/src/graphql/mutations/updateVenue.mutation.ts +32 -31
- package/src/graphql/queries/event.query.ts +4 -0
- package/src/graphql/queries/events.query.ts +4 -0
- package/src/graphql/queries/fees.query.ts +26 -0
- package/src/graphql/queries/order.query.ts +16 -0
- package/src/graphql/queries/publicEvent.query.ts +4 -0
- package/src/graphql/queries/venue.query.ts +31 -30
- package/src/graphql/queries/venues.query.ts +32 -31
- package/src/interfaces/IAddress.ts +1 -0
- package/src/interfaces/IEvent.ts +2 -0
- package/src/interfaces/IEventQuery.ts +1 -0
- package/src/interfaces/IOrder.ts +3 -1
- package/src/interfaces/IOrderQuery.ts +1 -0
- package/src/interfaces/IOrderState.ts +1 -0
- package/src/interfaces/IPayment.ts +1 -0
- package/src/interfaces/IProcessingFees.ts +6 -0
- package/src/interfaces/IRefund.ts +1 -0
- package/src/interfaces/IRefundModal.ts +8 -0
- package/src/interfaces/ISearchDropdownItem.ts +5 -0
- package/src/interfaces/ITicketType.ts +1 -0
- package/src/proto/common.proto +74 -73
- package/src/proto/event.proto +38 -0
- package/src/proto/order.proto +20 -0
- package/src/proto/stripe.proto +13 -0
- package/src/schemas/Address.ts +62 -57
- package/src/schemas/Event.ts +15 -1
- package/src/schemas/Order.ts +7 -0
- package/src/utils/AnalyticsUtil.ts +9 -9
- package/src/utils/EventUtil.ts +416 -121
- package/src/utils/FeeUtil.ts +20 -0
- package/src/utils/SaveLogsToFile.ts +13 -0
- package/.dist/enums/OrderDeliveryMethodEnum.d.ts +0 -5
- package/.dist/enums/OrderDeliveryMethodEnum.js +0 -11
- package/.dist/enums/OrderDeliveryMethodEnum.js.map +0 -1
- package/.dist/enums/PaymentMethodEnum.d.ts +0 -5
- package/.dist/enums/PaymentMethodEnum.js +0 -10
- package/.dist/enums/PaymentMethodEnum.js.map +0 -1
- package/.dist/graphql/mutations/createStripeSetupIntent.js +0 -13
- package/.dist/graphql/mutations/createStripeSetupIntent.js.map +0 -1
- package/.dist/graphql/mutations/forgotPassword.js +0 -13
- package/.dist/graphql/mutations/forgotPassword.js.map +0 -1
- package/.dist/graphql/mutations/listStripeTerminalReaders.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/listStripeTerminalReaders.mutation.js +0 -21
- package/.dist/graphql/mutations/listStripeTerminalReaders.mutation.js.map +0 -1
- package/.dist/graphql/mutations/listStripeTerminalReaders.query.d.ts +0 -2
- package/.dist/graphql/mutations/listStripeTerminalReaders.query.js +0 -21
- package/.dist/graphql/mutations/listStripeTerminalReaders.query.js.map +0 -1
- package/.dist/graphql/mutations/login.d.ts +0 -2
- package/.dist/graphql/mutations/login.js +0 -23
- package/.dist/graphql/mutations/login.js.map +0 -1
- package/.dist/graphql/mutations/register.d.ts +0 -2
- package/.dist/graphql/mutations/register.js +0 -23
- package/.dist/graphql/mutations/register.js.map +0 -1
- package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.js +0 -13
- package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.js.map +0 -1
- package/.dist/graphql/mutations/registerStripeTerminalReader.d.ts +0 -2
- package/.dist/graphql/mutations/registerStripeTerminalReader.js +0 -13
- package/.dist/graphql/mutations/registerStripeTerminalReader.js.map +0 -1
- package/.dist/graphql/mutations/sendUserEmailVerification.js.map +0 -1
- package/.dist/graphql/mutations/verifyPhoneAuthentication.mutation.js +0 -15
- package/.dist/graphql/mutations/verifyPhoneAuthentication.mutation.js.map +0 -1
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.d.ts +0 -2
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.js +0 -15
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.js.map +0 -1
- package/.dist/graphql/queries/metrics.query.d.ts +0 -2
- package/.dist/graphql/queries/metrics.query.js +0 -29
- package/.dist/graphql/queries/metrics.query.js.map +0 -1
- package/.dist/graphql/queries/metricsData.query.d.ts +0 -2
- package/.dist/graphql/queries/metricsData.query.js +0 -29
- package/.dist/graphql/queries/metricsData.query.js.map +0 -1
- package/.dist/interfaces/IMetricData.d.ts +0 -57
- package/.dist/interfaces/IMetricData.js +0 -70
- package/.dist/interfaces/IMetricData.js.map +0 -1
- package/.dist/interfaces/IMetrics.d.ts +0 -29
- package/.dist/interfaces/IMetrics.js.map +0 -1
- package/.dist/interfaces/IStripe.d.ts +0 -9
- package/.dist/interfaces/IStripe.js.map +0 -1
- package/.dist/interfaces/IStripeSource.d.ts +0 -10
- package/.dist/interfaces/IStripeSource.js.map +0 -1
- package/.dist/utils/MetricsUtil.d.ts +0 -7
- package/.dist/utils/MetricsUtil.js +0 -29
- package/.dist/utils/MetricsUtil.js.map +0 -1
- package/.dist/utils/fee-util-broken-but-why.d.ts +0 -8
- package/.dist/utils/fee-util-broken-but-why.js +0 -38
- package/.dist/utils/fee-util-broken-but-why.js.map +0 -1
- /package/.dist/graphql/mutations/{createStripeSetupIntent.d.ts → deleteEvent.mutation.d.ts} +0 -0
- /package/.dist/graphql/mutations/{forgotPassword.d.ts → refundOrder.mutation.d.ts} +0 -0
- /package/.dist/graphql/mutations/{sendUserEmailVerification.d.ts → sendOrderReceiptEmail.mutation.d.ts} +0 -0
- /package/.dist/graphql/{mutations/verifyPhoneAuthentication.mutation.d.ts → queries/fees.query.d.ts} +0 -0
package/.dist/sellout-proto.js
CHANGED
|
@@ -5976,6 +5976,7 @@ $root.Address = (function() {
|
|
|
5976
5976
|
* @property {number|null} [lat] Address lat
|
|
5977
5977
|
* @property {number|null} [lng] Address lng
|
|
5978
5978
|
* @property {string|null} [placeId] Address placeId
|
|
5979
|
+
* @property {string|null} [placeName] Address placeName
|
|
5979
5980
|
* @property {string|null} [timezone] Address timezone
|
|
5980
5981
|
*/
|
|
5981
5982
|
|
|
@@ -6074,6 +6075,14 @@ $root.Address = (function() {
|
|
|
6074
6075
|
*/
|
|
6075
6076
|
Address.prototype.placeId = "";
|
|
6076
6077
|
|
|
6078
|
+
/**
|
|
6079
|
+
* Address placeName.
|
|
6080
|
+
* @member {string} placeName
|
|
6081
|
+
* @memberof Address
|
|
6082
|
+
* @instance
|
|
6083
|
+
*/
|
|
6084
|
+
Address.prototype.placeName = "";
|
|
6085
|
+
|
|
6077
6086
|
/**
|
|
6078
6087
|
* Address timezone.
|
|
6079
6088
|
* @member {string} timezone
|
|
@@ -6126,8 +6135,10 @@ $root.Address = (function() {
|
|
|
6126
6135
|
writer.uint32(/* id 9, wireType 1 =*/73).double(message.lng);
|
|
6127
6136
|
if (message.placeId != null && Object.hasOwnProperty.call(message, "placeId"))
|
|
6128
6137
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.placeId);
|
|
6138
|
+
if (message.placeName != null && Object.hasOwnProperty.call(message, "placeName"))
|
|
6139
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.placeName);
|
|
6129
6140
|
if (message.timezone != null && Object.hasOwnProperty.call(message, "timezone"))
|
|
6130
|
-
writer.uint32(/* id
|
|
6141
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.timezone);
|
|
6131
6142
|
return writer;
|
|
6132
6143
|
};
|
|
6133
6144
|
|
|
@@ -6193,6 +6204,9 @@ $root.Address = (function() {
|
|
|
6193
6204
|
message.placeId = reader.string();
|
|
6194
6205
|
break;
|
|
6195
6206
|
case 11:
|
|
6207
|
+
message.placeName = reader.string();
|
|
6208
|
+
break;
|
|
6209
|
+
case 12:
|
|
6196
6210
|
message.timezone = reader.string();
|
|
6197
6211
|
break;
|
|
6198
6212
|
default:
|
|
@@ -6260,6 +6274,9 @@ $root.Address = (function() {
|
|
|
6260
6274
|
if (message.placeId != null && message.hasOwnProperty("placeId"))
|
|
6261
6275
|
if (!$util.isString(message.placeId))
|
|
6262
6276
|
return "placeId: string expected";
|
|
6277
|
+
if (message.placeName != null && message.hasOwnProperty("placeName"))
|
|
6278
|
+
if (!$util.isString(message.placeName))
|
|
6279
|
+
return "placeName: string expected";
|
|
6263
6280
|
if (message.timezone != null && message.hasOwnProperty("timezone"))
|
|
6264
6281
|
if (!$util.isString(message.timezone))
|
|
6265
6282
|
return "timezone: string expected";
|
|
@@ -6298,6 +6315,8 @@ $root.Address = (function() {
|
|
|
6298
6315
|
message.lng = Number(object.lng);
|
|
6299
6316
|
if (object.placeId != null)
|
|
6300
6317
|
message.placeId = String(object.placeId);
|
|
6318
|
+
if (object.placeName != null)
|
|
6319
|
+
message.placeName = String(object.placeName);
|
|
6301
6320
|
if (object.timezone != null)
|
|
6302
6321
|
message.timezone = String(object.timezone);
|
|
6303
6322
|
return message;
|
|
@@ -6327,6 +6346,7 @@ $root.Address = (function() {
|
|
|
6327
6346
|
object.lat = 0;
|
|
6328
6347
|
object.lng = 0;
|
|
6329
6348
|
object.placeId = "";
|
|
6349
|
+
object.placeName = "";
|
|
6330
6350
|
object.timezone = "";
|
|
6331
6351
|
}
|
|
6332
6352
|
if (message.address1 != null && message.hasOwnProperty("address1"))
|
|
@@ -6349,6 +6369,8 @@ $root.Address = (function() {
|
|
|
6349
6369
|
object.lng = options.json && !isFinite(message.lng) ? String(message.lng) : message.lng;
|
|
6350
6370
|
if (message.placeId != null && message.hasOwnProperty("placeId"))
|
|
6351
6371
|
object.placeId = message.placeId;
|
|
6372
|
+
if (message.placeName != null && message.hasOwnProperty("placeName"))
|
|
6373
|
+
object.placeName = message.placeName;
|
|
6352
6374
|
if (message.timezone != null && message.hasOwnProperty("timezone"))
|
|
6353
6375
|
object.timezone = message.timezone;
|
|
6354
6376
|
return object;
|
|
@@ -12429,6 +12451,7 @@ $root.Order = (function() {
|
|
|
12429
12451
|
* @property {Array.<IOrderCustomField>|null} [customFields] Order customFields
|
|
12430
12452
|
* @property {string|null} [refundReason] Order refundReason
|
|
12431
12453
|
* @property {Array.<IPayment>|null} [payments] Order payments
|
|
12454
|
+
* @property {IProcessingFees|null} [processingFee] Order processingFee
|
|
12432
12455
|
*/
|
|
12433
12456
|
|
|
12434
12457
|
/**
|
|
@@ -12654,6 +12677,14 @@ $root.Order = (function() {
|
|
|
12654
12677
|
*/
|
|
12655
12678
|
Order.prototype.payments = $util.emptyArray;
|
|
12656
12679
|
|
|
12680
|
+
/**
|
|
12681
|
+
* Order processingFee.
|
|
12682
|
+
* @member {IProcessingFees|null|undefined} processingFee
|
|
12683
|
+
* @memberof Order
|
|
12684
|
+
* @instance
|
|
12685
|
+
*/
|
|
12686
|
+
Order.prototype.processingFee = null;
|
|
12687
|
+
|
|
12657
12688
|
/**
|
|
12658
12689
|
* Creates a new Order instance using the specified properties.
|
|
12659
12690
|
* @function create
|
|
@@ -12736,6 +12767,8 @@ $root.Order = (function() {
|
|
|
12736
12767
|
if (message.payments != null && message.payments.length)
|
|
12737
12768
|
for (var i = 0; i < message.payments.length; ++i)
|
|
12738
12769
|
$root.Payment.encode(message.payments[i], writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
|
|
12770
|
+
if (message.processingFee != null && Object.hasOwnProperty.call(message, "processingFee"))
|
|
12771
|
+
$root.ProcessingFees.encode(message.processingFee, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
|
|
12739
12772
|
return writer;
|
|
12740
12773
|
};
|
|
12741
12774
|
|
|
@@ -12861,6 +12894,9 @@ $root.Order = (function() {
|
|
|
12861
12894
|
message.payments = [];
|
|
12862
12895
|
message.payments.push($root.Payment.decode(reader, reader.uint32()));
|
|
12863
12896
|
break;
|
|
12897
|
+
case 25:
|
|
12898
|
+
message.processingFee = $root.ProcessingFees.decode(reader, reader.uint32());
|
|
12899
|
+
break;
|
|
12864
12900
|
default:
|
|
12865
12901
|
reader.skipType(tag & 7);
|
|
12866
12902
|
break;
|
|
@@ -13013,6 +13049,11 @@ $root.Order = (function() {
|
|
|
13013
13049
|
return "payments." + error;
|
|
13014
13050
|
}
|
|
13015
13051
|
}
|
|
13052
|
+
if (message.processingFee != null && message.hasOwnProperty("processingFee")) {
|
|
13053
|
+
var error = $root.ProcessingFees.verify(message.processingFee);
|
|
13054
|
+
if (error)
|
|
13055
|
+
return "processingFee." + error;
|
|
13056
|
+
}
|
|
13016
13057
|
return null;
|
|
13017
13058
|
};
|
|
13018
13059
|
|
|
@@ -13133,6 +13174,11 @@ $root.Order = (function() {
|
|
|
13133
13174
|
message.payments[i] = $root.Payment.fromObject(object.payments[i]);
|
|
13134
13175
|
}
|
|
13135
13176
|
}
|
|
13177
|
+
if (object.processingFee != null) {
|
|
13178
|
+
if (typeof object.processingFee !== "object")
|
|
13179
|
+
throw TypeError(".Order.processingFee: object expected");
|
|
13180
|
+
message.processingFee = $root.ProcessingFees.fromObject(object.processingFee);
|
|
13181
|
+
}
|
|
13136
13182
|
return message;
|
|
13137
13183
|
};
|
|
13138
13184
|
|
|
@@ -13177,6 +13223,7 @@ $root.Order = (function() {
|
|
|
13177
13223
|
object.ipAddress = "";
|
|
13178
13224
|
object.address = null;
|
|
13179
13225
|
object.refundReason = "";
|
|
13226
|
+
object.processingFee = null;
|
|
13180
13227
|
}
|
|
13181
13228
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
13182
13229
|
object._id = message._id;
|
|
@@ -13252,6 +13299,8 @@ $root.Order = (function() {
|
|
|
13252
13299
|
for (var j = 0; j < message.payments.length; ++j)
|
|
13253
13300
|
object.payments[j] = $root.Payment.toObject(message.payments[j], options);
|
|
13254
13301
|
}
|
|
13302
|
+
if (message.processingFee != null && message.hasOwnProperty("processingFee"))
|
|
13303
|
+
object.processingFee = $root.ProcessingFees.toObject(message.processingFee, options);
|
|
13255
13304
|
return object;
|
|
13256
13305
|
};
|
|
13257
13306
|
|
|
@@ -13269,6 +13318,221 @@ $root.Order = (function() {
|
|
|
13269
13318
|
return Order;
|
|
13270
13319
|
})();
|
|
13271
13320
|
|
|
13321
|
+
$root.ProcessingFees = (function() {
|
|
13322
|
+
|
|
13323
|
+
/**
|
|
13324
|
+
* Properties of a ProcessingFees.
|
|
13325
|
+
* @exports IProcessingFees
|
|
13326
|
+
* @interface IProcessingFees
|
|
13327
|
+
* @property {IRefund|null} [refund] ProcessingFees refund
|
|
13328
|
+
* @property {number|null} [amount] ProcessingFees amount
|
|
13329
|
+
*/
|
|
13330
|
+
|
|
13331
|
+
/**
|
|
13332
|
+
* Constructs a new ProcessingFees.
|
|
13333
|
+
* @exports ProcessingFees
|
|
13334
|
+
* @classdesc Represents a ProcessingFees.
|
|
13335
|
+
* @implements IProcessingFees
|
|
13336
|
+
* @constructor
|
|
13337
|
+
* @param {IProcessingFees=} [properties] Properties to set
|
|
13338
|
+
*/
|
|
13339
|
+
function ProcessingFees(properties) {
|
|
13340
|
+
if (properties)
|
|
13341
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13342
|
+
if (properties[keys[i]] != null)
|
|
13343
|
+
this[keys[i]] = properties[keys[i]];
|
|
13344
|
+
}
|
|
13345
|
+
|
|
13346
|
+
/**
|
|
13347
|
+
* ProcessingFees refund.
|
|
13348
|
+
* @member {IRefund|null|undefined} refund
|
|
13349
|
+
* @memberof ProcessingFees
|
|
13350
|
+
* @instance
|
|
13351
|
+
*/
|
|
13352
|
+
ProcessingFees.prototype.refund = null;
|
|
13353
|
+
|
|
13354
|
+
/**
|
|
13355
|
+
* ProcessingFees amount.
|
|
13356
|
+
* @member {number} amount
|
|
13357
|
+
* @memberof ProcessingFees
|
|
13358
|
+
* @instance
|
|
13359
|
+
*/
|
|
13360
|
+
ProcessingFees.prototype.amount = 0;
|
|
13361
|
+
|
|
13362
|
+
/**
|
|
13363
|
+
* Creates a new ProcessingFees instance using the specified properties.
|
|
13364
|
+
* @function create
|
|
13365
|
+
* @memberof ProcessingFees
|
|
13366
|
+
* @static
|
|
13367
|
+
* @param {IProcessingFees=} [properties] Properties to set
|
|
13368
|
+
* @returns {ProcessingFees} ProcessingFees instance
|
|
13369
|
+
*/
|
|
13370
|
+
ProcessingFees.create = function create(properties) {
|
|
13371
|
+
return new ProcessingFees(properties);
|
|
13372
|
+
};
|
|
13373
|
+
|
|
13374
|
+
/**
|
|
13375
|
+
* Encodes the specified ProcessingFees message. Does not implicitly {@link ProcessingFees.verify|verify} messages.
|
|
13376
|
+
* @function encode
|
|
13377
|
+
* @memberof ProcessingFees
|
|
13378
|
+
* @static
|
|
13379
|
+
* @param {IProcessingFees} message ProcessingFees message or plain object to encode
|
|
13380
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13381
|
+
* @returns {$protobuf.Writer} Writer
|
|
13382
|
+
*/
|
|
13383
|
+
ProcessingFees.encode = function encode(message, writer) {
|
|
13384
|
+
if (!writer)
|
|
13385
|
+
writer = $Writer.create();
|
|
13386
|
+
if (message.refund != null && Object.hasOwnProperty.call(message, "refund"))
|
|
13387
|
+
$root.Refund.encode(message.refund, writer.uint32(/* id 0, wireType 2 =*/2).fork()).ldelim();
|
|
13388
|
+
if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
|
|
13389
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.amount);
|
|
13390
|
+
return writer;
|
|
13391
|
+
};
|
|
13392
|
+
|
|
13393
|
+
/**
|
|
13394
|
+
* Encodes the specified ProcessingFees message, length delimited. Does not implicitly {@link ProcessingFees.verify|verify} messages.
|
|
13395
|
+
* @function encodeDelimited
|
|
13396
|
+
* @memberof ProcessingFees
|
|
13397
|
+
* @static
|
|
13398
|
+
* @param {IProcessingFees} message ProcessingFees message or plain object to encode
|
|
13399
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13400
|
+
* @returns {$protobuf.Writer} Writer
|
|
13401
|
+
*/
|
|
13402
|
+
ProcessingFees.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13403
|
+
return this.encode(message, writer).ldelim();
|
|
13404
|
+
};
|
|
13405
|
+
|
|
13406
|
+
/**
|
|
13407
|
+
* Decodes a ProcessingFees message from the specified reader or buffer.
|
|
13408
|
+
* @function decode
|
|
13409
|
+
* @memberof ProcessingFees
|
|
13410
|
+
* @static
|
|
13411
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13412
|
+
* @param {number} [length] Message length if known beforehand
|
|
13413
|
+
* @returns {ProcessingFees} ProcessingFees
|
|
13414
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13415
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13416
|
+
*/
|
|
13417
|
+
ProcessingFees.decode = function decode(reader, length) {
|
|
13418
|
+
if (!(reader instanceof $Reader))
|
|
13419
|
+
reader = $Reader.create(reader);
|
|
13420
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ProcessingFees();
|
|
13421
|
+
while (reader.pos < end) {
|
|
13422
|
+
var tag = reader.uint32();
|
|
13423
|
+
switch (tag >>> 3) {
|
|
13424
|
+
case 0:
|
|
13425
|
+
message.refund = $root.Refund.decode(reader, reader.uint32());
|
|
13426
|
+
break;
|
|
13427
|
+
case 1:
|
|
13428
|
+
message.amount = reader.int32();
|
|
13429
|
+
break;
|
|
13430
|
+
default:
|
|
13431
|
+
reader.skipType(tag & 7);
|
|
13432
|
+
break;
|
|
13433
|
+
}
|
|
13434
|
+
}
|
|
13435
|
+
return message;
|
|
13436
|
+
};
|
|
13437
|
+
|
|
13438
|
+
/**
|
|
13439
|
+
* Decodes a ProcessingFees message from the specified reader or buffer, length delimited.
|
|
13440
|
+
* @function decodeDelimited
|
|
13441
|
+
* @memberof ProcessingFees
|
|
13442
|
+
* @static
|
|
13443
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13444
|
+
* @returns {ProcessingFees} ProcessingFees
|
|
13445
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13446
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13447
|
+
*/
|
|
13448
|
+
ProcessingFees.decodeDelimited = function decodeDelimited(reader) {
|
|
13449
|
+
if (!(reader instanceof $Reader))
|
|
13450
|
+
reader = new $Reader(reader);
|
|
13451
|
+
return this.decode(reader, reader.uint32());
|
|
13452
|
+
};
|
|
13453
|
+
|
|
13454
|
+
/**
|
|
13455
|
+
* Verifies a ProcessingFees message.
|
|
13456
|
+
* @function verify
|
|
13457
|
+
* @memberof ProcessingFees
|
|
13458
|
+
* @static
|
|
13459
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
13460
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13461
|
+
*/
|
|
13462
|
+
ProcessingFees.verify = function verify(message) {
|
|
13463
|
+
if (typeof message !== "object" || message === null)
|
|
13464
|
+
return "object expected";
|
|
13465
|
+
if (message.refund != null && message.hasOwnProperty("refund")) {
|
|
13466
|
+
var error = $root.Refund.verify(message.refund);
|
|
13467
|
+
if (error)
|
|
13468
|
+
return "refund." + error;
|
|
13469
|
+
}
|
|
13470
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
13471
|
+
if (!$util.isInteger(message.amount))
|
|
13472
|
+
return "amount: integer expected";
|
|
13473
|
+
return null;
|
|
13474
|
+
};
|
|
13475
|
+
|
|
13476
|
+
/**
|
|
13477
|
+
* Creates a ProcessingFees message from a plain object. Also converts values to their respective internal types.
|
|
13478
|
+
* @function fromObject
|
|
13479
|
+
* @memberof ProcessingFees
|
|
13480
|
+
* @static
|
|
13481
|
+
* @param {Object.<string,*>} object Plain object
|
|
13482
|
+
* @returns {ProcessingFees} ProcessingFees
|
|
13483
|
+
*/
|
|
13484
|
+
ProcessingFees.fromObject = function fromObject(object) {
|
|
13485
|
+
if (object instanceof $root.ProcessingFees)
|
|
13486
|
+
return object;
|
|
13487
|
+
var message = new $root.ProcessingFees();
|
|
13488
|
+
if (object.refund != null) {
|
|
13489
|
+
if (typeof object.refund !== "object")
|
|
13490
|
+
throw TypeError(".ProcessingFees.refund: object expected");
|
|
13491
|
+
message.refund = $root.Refund.fromObject(object.refund);
|
|
13492
|
+
}
|
|
13493
|
+
if (object.amount != null)
|
|
13494
|
+
message.amount = object.amount | 0;
|
|
13495
|
+
return message;
|
|
13496
|
+
};
|
|
13497
|
+
|
|
13498
|
+
/**
|
|
13499
|
+
* Creates a plain object from a ProcessingFees message. Also converts values to other types if specified.
|
|
13500
|
+
* @function toObject
|
|
13501
|
+
* @memberof ProcessingFees
|
|
13502
|
+
* @static
|
|
13503
|
+
* @param {ProcessingFees} message ProcessingFees
|
|
13504
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13505
|
+
* @returns {Object.<string,*>} Plain object
|
|
13506
|
+
*/
|
|
13507
|
+
ProcessingFees.toObject = function toObject(message, options) {
|
|
13508
|
+
if (!options)
|
|
13509
|
+
options = {};
|
|
13510
|
+
var object = {};
|
|
13511
|
+
if (options.defaults) {
|
|
13512
|
+
object.refund = null;
|
|
13513
|
+
object.amount = 0;
|
|
13514
|
+
}
|
|
13515
|
+
if (message.refund != null && message.hasOwnProperty("refund"))
|
|
13516
|
+
object.refund = $root.Refund.toObject(message.refund, options);
|
|
13517
|
+
if (message.amount != null && message.hasOwnProperty("amount"))
|
|
13518
|
+
object.amount = message.amount;
|
|
13519
|
+
return object;
|
|
13520
|
+
};
|
|
13521
|
+
|
|
13522
|
+
/**
|
|
13523
|
+
* Converts this ProcessingFees to JSON.
|
|
13524
|
+
* @function toJSON
|
|
13525
|
+
* @memberof ProcessingFees
|
|
13526
|
+
* @instance
|
|
13527
|
+
* @returns {Object.<string,*>} JSON object
|
|
13528
|
+
*/
|
|
13529
|
+
ProcessingFees.prototype.toJSON = function toJSON() {
|
|
13530
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13531
|
+
};
|
|
13532
|
+
|
|
13533
|
+
return ProcessingFees;
|
|
13534
|
+
})();
|
|
13535
|
+
|
|
13272
13536
|
$root.OrderTicket = (function() {
|
|
13273
13537
|
|
|
13274
13538
|
/**
|
|
@@ -14347,6 +14611,7 @@ $root.Refund = (function() {
|
|
|
14347
14611
|
* @property {number|null} [refundedAt] Refund refundedAt
|
|
14348
14612
|
* @property {string|null} [refundedBy] Refund refundedBy
|
|
14349
14613
|
* @property {number|null} [refundedAmount] Refund refundedAmount
|
|
14614
|
+
* @property {string|null} [refundReason] Refund refundReason
|
|
14350
14615
|
*/
|
|
14351
14616
|
|
|
14352
14617
|
/**
|
|
@@ -14396,6 +14661,14 @@ $root.Refund = (function() {
|
|
|
14396
14661
|
*/
|
|
14397
14662
|
Refund.prototype.refundedAmount = 0;
|
|
14398
14663
|
|
|
14664
|
+
/**
|
|
14665
|
+
* Refund refundReason.
|
|
14666
|
+
* @member {string} refundReason
|
|
14667
|
+
* @memberof Refund
|
|
14668
|
+
* @instance
|
|
14669
|
+
*/
|
|
14670
|
+
Refund.prototype.refundReason = "";
|
|
14671
|
+
|
|
14399
14672
|
/**
|
|
14400
14673
|
* Creates a new Refund instance using the specified properties.
|
|
14401
14674
|
* @function create
|
|
@@ -14428,6 +14701,8 @@ $root.Refund = (function() {
|
|
|
14428
14701
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.refundedBy);
|
|
14429
14702
|
if (message.refundedAmount != null && Object.hasOwnProperty.call(message, "refundedAmount"))
|
|
14430
14703
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.refundedAmount);
|
|
14704
|
+
if (message.refundReason != null && Object.hasOwnProperty.call(message, "refundReason"))
|
|
14705
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.refundReason);
|
|
14431
14706
|
return writer;
|
|
14432
14707
|
};
|
|
14433
14708
|
|
|
@@ -14474,6 +14749,9 @@ $root.Refund = (function() {
|
|
|
14474
14749
|
case 3:
|
|
14475
14750
|
message.refundedAmount = reader.int32();
|
|
14476
14751
|
break;
|
|
14752
|
+
case 4:
|
|
14753
|
+
message.refundReason = reader.string();
|
|
14754
|
+
break;
|
|
14477
14755
|
default:
|
|
14478
14756
|
reader.skipType(tag & 7);
|
|
14479
14757
|
break;
|
|
@@ -14521,6 +14799,9 @@ $root.Refund = (function() {
|
|
|
14521
14799
|
if (message.refundedAmount != null && message.hasOwnProperty("refundedAmount"))
|
|
14522
14800
|
if (!$util.isInteger(message.refundedAmount))
|
|
14523
14801
|
return "refundedAmount: integer expected";
|
|
14802
|
+
if (message.refundReason != null && message.hasOwnProperty("refundReason"))
|
|
14803
|
+
if (!$util.isString(message.refundReason))
|
|
14804
|
+
return "refundReason: string expected";
|
|
14524
14805
|
return null;
|
|
14525
14806
|
};
|
|
14526
14807
|
|
|
@@ -14544,6 +14825,8 @@ $root.Refund = (function() {
|
|
|
14544
14825
|
message.refundedBy = String(object.refundedBy);
|
|
14545
14826
|
if (object.refundedAmount != null)
|
|
14546
14827
|
message.refundedAmount = object.refundedAmount | 0;
|
|
14828
|
+
if (object.refundReason != null)
|
|
14829
|
+
message.refundReason = String(object.refundReason);
|
|
14547
14830
|
return message;
|
|
14548
14831
|
};
|
|
14549
14832
|
|
|
@@ -14565,6 +14848,7 @@ $root.Refund = (function() {
|
|
|
14565
14848
|
object.refundedAt = 0;
|
|
14566
14849
|
object.refundedBy = "";
|
|
14567
14850
|
object.refundedAmount = 0;
|
|
14851
|
+
object.refundReason = "";
|
|
14568
14852
|
}
|
|
14569
14853
|
if (message.refunded != null && message.hasOwnProperty("refunded"))
|
|
14570
14854
|
object.refunded = message.refunded;
|
|
@@ -14574,6 +14858,8 @@ $root.Refund = (function() {
|
|
|
14574
14858
|
object.refundedBy = message.refundedBy;
|
|
14575
14859
|
if (message.refundedAmount != null && message.hasOwnProperty("refundedAmount"))
|
|
14576
14860
|
object.refundedAmount = message.refundedAmount;
|
|
14861
|
+
if (message.refundReason != null && message.hasOwnProperty("refundReason"))
|
|
14862
|
+
object.refundReason = message.refundReason;
|
|
14577
14863
|
return object;
|
|
14578
14864
|
};
|
|
14579
14865
|
|
|
@@ -17856,6 +18142,8 @@ $root.RefundOrderRequest = (function() {
|
|
|
17856
18142
|
* @property {Array.<string>|null} [upgradeIds] RefundOrderRequest upgradeIds
|
|
17857
18143
|
* @property {string|null} [refundedBy] RefundOrderRequest refundedBy
|
|
17858
18144
|
* @property {string|null} [refundReason] RefundOrderRequest refundReason
|
|
18145
|
+
* @property {boolean|null} [processingFee] RefundOrderRequest processingFee
|
|
18146
|
+
* @property {string|null} [eventType] RefundOrderRequest eventType
|
|
17859
18147
|
*/
|
|
17860
18148
|
|
|
17861
18149
|
/**
|
|
@@ -17939,6 +18227,22 @@ $root.RefundOrderRequest = (function() {
|
|
|
17939
18227
|
*/
|
|
17940
18228
|
RefundOrderRequest.prototype.refundReason = "";
|
|
17941
18229
|
|
|
18230
|
+
/**
|
|
18231
|
+
* RefundOrderRequest processingFee.
|
|
18232
|
+
* @member {boolean} processingFee
|
|
18233
|
+
* @memberof RefundOrderRequest
|
|
18234
|
+
* @instance
|
|
18235
|
+
*/
|
|
18236
|
+
RefundOrderRequest.prototype.processingFee = false;
|
|
18237
|
+
|
|
18238
|
+
/**
|
|
18239
|
+
* RefundOrderRequest eventType.
|
|
18240
|
+
* @member {string} eventType
|
|
18241
|
+
* @memberof RefundOrderRequest
|
|
18242
|
+
* @instance
|
|
18243
|
+
*/
|
|
18244
|
+
RefundOrderRequest.prototype.eventType = "";
|
|
18245
|
+
|
|
17942
18246
|
/**
|
|
17943
18247
|
* Creates a new RefundOrderRequest instance using the specified properties.
|
|
17944
18248
|
* @function create
|
|
@@ -17981,6 +18285,10 @@ $root.RefundOrderRequest = (function() {
|
|
|
17981
18285
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.refundedBy);
|
|
17982
18286
|
if (message.refundReason != null && Object.hasOwnProperty.call(message, "refundReason"))
|
|
17983
18287
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.refundReason);
|
|
18288
|
+
if (message.processingFee != null && Object.hasOwnProperty.call(message, "processingFee"))
|
|
18289
|
+
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.processingFee);
|
|
18290
|
+
if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType"))
|
|
18291
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.eventType);
|
|
17984
18292
|
return writer;
|
|
17985
18293
|
};
|
|
17986
18294
|
|
|
@@ -18043,6 +18351,12 @@ $root.RefundOrderRequest = (function() {
|
|
|
18043
18351
|
case 7:
|
|
18044
18352
|
message.refundReason = reader.string();
|
|
18045
18353
|
break;
|
|
18354
|
+
case 8:
|
|
18355
|
+
message.processingFee = reader.bool();
|
|
18356
|
+
break;
|
|
18357
|
+
case 9:
|
|
18358
|
+
message.eventType = reader.string();
|
|
18359
|
+
break;
|
|
18046
18360
|
default:
|
|
18047
18361
|
reader.skipType(tag & 7);
|
|
18048
18362
|
break;
|
|
@@ -18110,6 +18424,12 @@ $root.RefundOrderRequest = (function() {
|
|
|
18110
18424
|
if (message.refundReason != null && message.hasOwnProperty("refundReason"))
|
|
18111
18425
|
if (!$util.isString(message.refundReason))
|
|
18112
18426
|
return "refundReason: string expected";
|
|
18427
|
+
if (message.processingFee != null && message.hasOwnProperty("processingFee"))
|
|
18428
|
+
if (typeof message.processingFee !== "boolean")
|
|
18429
|
+
return "processingFee: boolean expected";
|
|
18430
|
+
if (message.eventType != null && message.hasOwnProperty("eventType"))
|
|
18431
|
+
if (!$util.isString(message.eventType))
|
|
18432
|
+
return "eventType: string expected";
|
|
18113
18433
|
return null;
|
|
18114
18434
|
};
|
|
18115
18435
|
|
|
@@ -18151,6 +18471,10 @@ $root.RefundOrderRequest = (function() {
|
|
|
18151
18471
|
message.refundedBy = String(object.refundedBy);
|
|
18152
18472
|
if (object.refundReason != null)
|
|
18153
18473
|
message.refundReason = String(object.refundReason);
|
|
18474
|
+
if (object.processingFee != null)
|
|
18475
|
+
message.processingFee = Boolean(object.processingFee);
|
|
18476
|
+
if (object.eventType != null)
|
|
18477
|
+
message.eventType = String(object.eventType);
|
|
18154
18478
|
return message;
|
|
18155
18479
|
};
|
|
18156
18480
|
|
|
@@ -18178,6 +18502,8 @@ $root.RefundOrderRequest = (function() {
|
|
|
18178
18502
|
object.refundAmount = 0;
|
|
18179
18503
|
object.refundedBy = "";
|
|
18180
18504
|
object.refundReason = "";
|
|
18505
|
+
object.processingFee = false;
|
|
18506
|
+
object.eventType = "";
|
|
18181
18507
|
}
|
|
18182
18508
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
18183
18509
|
object.spanContext = message.spanContext;
|
|
@@ -18201,6 +18527,10 @@ $root.RefundOrderRequest = (function() {
|
|
|
18201
18527
|
object.refundedBy = message.refundedBy;
|
|
18202
18528
|
if (message.refundReason != null && message.hasOwnProperty("refundReason"))
|
|
18203
18529
|
object.refundReason = message.refundReason;
|
|
18530
|
+
if (message.processingFee != null && message.hasOwnProperty("processingFee"))
|
|
18531
|
+
object.processingFee = message.processingFee;
|
|
18532
|
+
if (message.eventType != null && message.hasOwnProperty("eventType"))
|
|
18533
|
+
object.eventType = message.eventType;
|
|
18204
18534
|
return object;
|
|
18205
18535
|
};
|
|
18206
18536
|
|
|
@@ -18532,6 +18862,7 @@ $root.RefundEventOrdersRequest = (function() {
|
|
|
18532
18862
|
* @property {string|null} [refundedBy] RefundEventOrdersRequest refundedBy
|
|
18533
18863
|
* @property {boolean|null} [dryRun] RefundEventOrdersRequest dryRun
|
|
18534
18864
|
* @property {string|null} [refundReason] RefundEventOrdersRequest refundReason
|
|
18865
|
+
* @property {string|null} [eventType] RefundEventOrdersRequest eventType
|
|
18535
18866
|
*/
|
|
18536
18867
|
|
|
18537
18868
|
/**
|
|
@@ -18597,6 +18928,14 @@ $root.RefundEventOrdersRequest = (function() {
|
|
|
18597
18928
|
*/
|
|
18598
18929
|
RefundEventOrdersRequest.prototype.refundReason = "";
|
|
18599
18930
|
|
|
18931
|
+
/**
|
|
18932
|
+
* RefundEventOrdersRequest eventType.
|
|
18933
|
+
* @member {string} eventType
|
|
18934
|
+
* @memberof RefundEventOrdersRequest
|
|
18935
|
+
* @instance
|
|
18936
|
+
*/
|
|
18937
|
+
RefundEventOrdersRequest.prototype.eventType = "";
|
|
18938
|
+
|
|
18600
18939
|
/**
|
|
18601
18940
|
* Creates a new RefundEventOrdersRequest instance using the specified properties.
|
|
18602
18941
|
* @function create
|
|
@@ -18633,6 +18972,8 @@ $root.RefundEventOrdersRequest = (function() {
|
|
|
18633
18972
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.dryRun);
|
|
18634
18973
|
if (message.refundReason != null && Object.hasOwnProperty.call(message, "refundReason"))
|
|
18635
18974
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.refundReason);
|
|
18975
|
+
if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType"))
|
|
18976
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.eventType);
|
|
18636
18977
|
return writer;
|
|
18637
18978
|
};
|
|
18638
18979
|
|
|
@@ -18685,6 +19026,9 @@ $root.RefundEventOrdersRequest = (function() {
|
|
|
18685
19026
|
case 5:
|
|
18686
19027
|
message.refundReason = reader.string();
|
|
18687
19028
|
break;
|
|
19029
|
+
case 6:
|
|
19030
|
+
message.eventType = reader.string();
|
|
19031
|
+
break;
|
|
18688
19032
|
default:
|
|
18689
19033
|
reader.skipType(tag & 7);
|
|
18690
19034
|
break;
|
|
@@ -18738,6 +19082,9 @@ $root.RefundEventOrdersRequest = (function() {
|
|
|
18738
19082
|
if (message.refundReason != null && message.hasOwnProperty("refundReason"))
|
|
18739
19083
|
if (!$util.isString(message.refundReason))
|
|
18740
19084
|
return "refundReason: string expected";
|
|
19085
|
+
if (message.eventType != null && message.hasOwnProperty("eventType"))
|
|
19086
|
+
if (!$util.isString(message.eventType))
|
|
19087
|
+
return "eventType: string expected";
|
|
18741
19088
|
return null;
|
|
18742
19089
|
};
|
|
18743
19090
|
|
|
@@ -18765,6 +19112,8 @@ $root.RefundEventOrdersRequest = (function() {
|
|
|
18765
19112
|
message.dryRun = Boolean(object.dryRun);
|
|
18766
19113
|
if (object.refundReason != null)
|
|
18767
19114
|
message.refundReason = String(object.refundReason);
|
|
19115
|
+
if (object.eventType != null)
|
|
19116
|
+
message.eventType = String(object.eventType);
|
|
18768
19117
|
return message;
|
|
18769
19118
|
};
|
|
18770
19119
|
|
|
@@ -18788,6 +19137,7 @@ $root.RefundEventOrdersRequest = (function() {
|
|
|
18788
19137
|
object.refundedBy = "";
|
|
18789
19138
|
object.dryRun = false;
|
|
18790
19139
|
object.refundReason = "";
|
|
19140
|
+
object.eventType = "";
|
|
18791
19141
|
}
|
|
18792
19142
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
18793
19143
|
object.spanContext = message.spanContext;
|
|
@@ -18801,6 +19151,8 @@ $root.RefundEventOrdersRequest = (function() {
|
|
|
18801
19151
|
object.dryRun = message.dryRun;
|
|
18802
19152
|
if (message.refundReason != null && message.hasOwnProperty("refundReason"))
|
|
18803
19153
|
object.refundReason = message.refundReason;
|
|
19154
|
+
if (message.eventType != null && message.hasOwnProperty("eventType"))
|
|
19155
|
+
object.eventType = message.eventType;
|
|
18804
19156
|
return object;
|
|
18805
19157
|
};
|
|
18806
19158
|
|
|
@@ -25355,243 +25707,727 @@ $root.BreakApartOrderResponse = (function() {
|
|
|
25355
25707
|
return BreakApartOrderResponse;
|
|
25356
25708
|
})();
|
|
25357
25709
|
|
|
25358
|
-
$root.
|
|
25710
|
+
$root.OrdersChargeUpdateRequest = (function() {
|
|
25359
25711
|
|
|
25360
25712
|
/**
|
|
25361
|
-
*
|
|
25362
|
-
* @exports
|
|
25363
|
-
* @
|
|
25364
|
-
* @
|
|
25713
|
+
* Properties of an OrdersChargeUpdateRequest.
|
|
25714
|
+
* @exports IOrdersChargeUpdateRequest
|
|
25715
|
+
* @interface IOrdersChargeUpdateRequest
|
|
25716
|
+
* @property {string|null} [spanContext] OrdersChargeUpdateRequest spanContext
|
|
25717
|
+
*/
|
|
25718
|
+
|
|
25719
|
+
/**
|
|
25720
|
+
* Constructs a new OrdersChargeUpdateRequest.
|
|
25721
|
+
* @exports OrdersChargeUpdateRequest
|
|
25722
|
+
* @classdesc Represents an OrdersChargeUpdateRequest.
|
|
25723
|
+
* @implements IOrdersChargeUpdateRequest
|
|
25365
25724
|
* @constructor
|
|
25366
|
-
* @param {
|
|
25367
|
-
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
25368
|
-
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
25725
|
+
* @param {IOrdersChargeUpdateRequest=} [properties] Properties to set
|
|
25369
25726
|
*/
|
|
25370
|
-
function
|
|
25371
|
-
|
|
25727
|
+
function OrdersChargeUpdateRequest(properties) {
|
|
25728
|
+
if (properties)
|
|
25729
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25730
|
+
if (properties[keys[i]] != null)
|
|
25731
|
+
this[keys[i]] = properties[keys[i]];
|
|
25372
25732
|
}
|
|
25373
25733
|
|
|
25374
|
-
|
|
25734
|
+
/**
|
|
25735
|
+
* OrdersChargeUpdateRequest spanContext.
|
|
25736
|
+
* @member {string} spanContext
|
|
25737
|
+
* @memberof OrdersChargeUpdateRequest
|
|
25738
|
+
* @instance
|
|
25739
|
+
*/
|
|
25740
|
+
OrdersChargeUpdateRequest.prototype.spanContext = "";
|
|
25375
25741
|
|
|
25376
25742
|
/**
|
|
25377
|
-
* Creates new
|
|
25743
|
+
* Creates a new OrdersChargeUpdateRequest instance using the specified properties.
|
|
25378
25744
|
* @function create
|
|
25379
|
-
* @memberof
|
|
25745
|
+
* @memberof OrdersChargeUpdateRequest
|
|
25380
25746
|
* @static
|
|
25381
|
-
* @param {
|
|
25382
|
-
* @
|
|
25383
|
-
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
25384
|
-
* @returns {OrderService} RPC service. Useful where requests and/or responses are streamed.
|
|
25747
|
+
* @param {IOrdersChargeUpdateRequest=} [properties] Properties to set
|
|
25748
|
+
* @returns {OrdersChargeUpdateRequest} OrdersChargeUpdateRequest instance
|
|
25385
25749
|
*/
|
|
25386
|
-
|
|
25387
|
-
return new
|
|
25750
|
+
OrdersChargeUpdateRequest.create = function create(properties) {
|
|
25751
|
+
return new OrdersChargeUpdateRequest(properties);
|
|
25388
25752
|
};
|
|
25389
25753
|
|
|
25390
25754
|
/**
|
|
25391
|
-
*
|
|
25392
|
-
* @
|
|
25393
|
-
* @
|
|
25394
|
-
* @
|
|
25395
|
-
* @param {
|
|
25396
|
-
* @param {
|
|
25397
|
-
|
|
25398
|
-
|
|
25399
|
-
/**
|
|
25400
|
-
* Calls createOrder.
|
|
25401
|
-
* @function createOrder
|
|
25402
|
-
* @memberof OrderService
|
|
25403
|
-
* @instance
|
|
25404
|
-
* @param {ICreateOrderRequest} request CreateOrderRequest message or plain object
|
|
25405
|
-
* @param {OrderService.createOrderCallback} callback Node-style callback called with the error, if any, and CreateOrderResponse
|
|
25406
|
-
* @returns {undefined}
|
|
25407
|
-
* @variation 1
|
|
25755
|
+
* Encodes the specified OrdersChargeUpdateRequest message. Does not implicitly {@link OrdersChargeUpdateRequest.verify|verify} messages.
|
|
25756
|
+
* @function encode
|
|
25757
|
+
* @memberof OrdersChargeUpdateRequest
|
|
25758
|
+
* @static
|
|
25759
|
+
* @param {IOrdersChargeUpdateRequest} message OrdersChargeUpdateRequest message or plain object to encode
|
|
25760
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25761
|
+
* @returns {$protobuf.Writer} Writer
|
|
25408
25762
|
*/
|
|
25409
|
-
|
|
25410
|
-
|
|
25411
|
-
|
|
25763
|
+
OrdersChargeUpdateRequest.encode = function encode(message, writer) {
|
|
25764
|
+
if (!writer)
|
|
25765
|
+
writer = $Writer.create();
|
|
25766
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
25767
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
25768
|
+
return writer;
|
|
25769
|
+
};
|
|
25412
25770
|
|
|
25413
25771
|
/**
|
|
25414
|
-
*
|
|
25415
|
-
* @function
|
|
25416
|
-
* @memberof
|
|
25417
|
-
* @
|
|
25418
|
-
* @param {
|
|
25419
|
-
* @
|
|
25420
|
-
* @
|
|
25772
|
+
* Encodes the specified OrdersChargeUpdateRequest message, length delimited. Does not implicitly {@link OrdersChargeUpdateRequest.verify|verify} messages.
|
|
25773
|
+
* @function encodeDelimited
|
|
25774
|
+
* @memberof OrdersChargeUpdateRequest
|
|
25775
|
+
* @static
|
|
25776
|
+
* @param {IOrdersChargeUpdateRequest} message OrdersChargeUpdateRequest message or plain object to encode
|
|
25777
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25778
|
+
* @returns {$protobuf.Writer} Writer
|
|
25421
25779
|
*/
|
|
25780
|
+
OrdersChargeUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25781
|
+
return this.encode(message, writer).ldelim();
|
|
25782
|
+
};
|
|
25422
25783
|
|
|
25423
25784
|
/**
|
|
25424
|
-
*
|
|
25425
|
-
* @
|
|
25426
|
-
* @
|
|
25427
|
-
* @
|
|
25428
|
-
* @param {
|
|
25429
|
-
* @param {
|
|
25785
|
+
* Decodes an OrdersChargeUpdateRequest message from the specified reader or buffer.
|
|
25786
|
+
* @function decode
|
|
25787
|
+
* @memberof OrdersChargeUpdateRequest
|
|
25788
|
+
* @static
|
|
25789
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25790
|
+
* @param {number} [length] Message length if known beforehand
|
|
25791
|
+
* @returns {OrdersChargeUpdateRequest} OrdersChargeUpdateRequest
|
|
25792
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25793
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25430
25794
|
*/
|
|
25795
|
+
OrdersChargeUpdateRequest.decode = function decode(reader, length) {
|
|
25796
|
+
if (!(reader instanceof $Reader))
|
|
25797
|
+
reader = $Reader.create(reader);
|
|
25798
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrdersChargeUpdateRequest();
|
|
25799
|
+
while (reader.pos < end) {
|
|
25800
|
+
var tag = reader.uint32();
|
|
25801
|
+
switch (tag >>> 3) {
|
|
25802
|
+
case 0:
|
|
25803
|
+
message.spanContext = reader.string();
|
|
25804
|
+
break;
|
|
25805
|
+
default:
|
|
25806
|
+
reader.skipType(tag & 7);
|
|
25807
|
+
break;
|
|
25808
|
+
}
|
|
25809
|
+
}
|
|
25810
|
+
return message;
|
|
25811
|
+
};
|
|
25431
25812
|
|
|
25432
25813
|
/**
|
|
25433
|
-
*
|
|
25434
|
-
* @function
|
|
25435
|
-
* @memberof
|
|
25436
|
-
* @
|
|
25437
|
-
* @param {
|
|
25438
|
-
* @
|
|
25439
|
-
* @
|
|
25440
|
-
* @
|
|
25814
|
+
* Decodes an OrdersChargeUpdateRequest message from the specified reader or buffer, length delimited.
|
|
25815
|
+
* @function decodeDelimited
|
|
25816
|
+
* @memberof OrdersChargeUpdateRequest
|
|
25817
|
+
* @static
|
|
25818
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25819
|
+
* @returns {OrdersChargeUpdateRequest} OrdersChargeUpdateRequest
|
|
25820
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25821
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25441
25822
|
*/
|
|
25442
|
-
|
|
25443
|
-
|
|
25444
|
-
|
|
25823
|
+
OrdersChargeUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
25824
|
+
if (!(reader instanceof $Reader))
|
|
25825
|
+
reader = new $Reader(reader);
|
|
25826
|
+
return this.decode(reader, reader.uint32());
|
|
25827
|
+
};
|
|
25445
25828
|
|
|
25446
25829
|
/**
|
|
25447
|
-
*
|
|
25448
|
-
* @function
|
|
25449
|
-
* @memberof
|
|
25450
|
-
* @
|
|
25451
|
-
* @param {
|
|
25452
|
-
* @returns {
|
|
25453
|
-
* @variation 2
|
|
25830
|
+
* Verifies an OrdersChargeUpdateRequest message.
|
|
25831
|
+
* @function verify
|
|
25832
|
+
* @memberof OrdersChargeUpdateRequest
|
|
25833
|
+
* @static
|
|
25834
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
25835
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
25454
25836
|
*/
|
|
25837
|
+
OrdersChargeUpdateRequest.verify = function verify(message) {
|
|
25838
|
+
if (typeof message !== "object" || message === null)
|
|
25839
|
+
return "object expected";
|
|
25840
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
25841
|
+
if (!$util.isString(message.spanContext))
|
|
25842
|
+
return "spanContext: string expected";
|
|
25843
|
+
return null;
|
|
25844
|
+
};
|
|
25455
25845
|
|
|
25456
25846
|
/**
|
|
25457
|
-
*
|
|
25458
|
-
* @
|
|
25459
|
-
* @
|
|
25460
|
-
* @
|
|
25461
|
-
* @param {
|
|
25462
|
-
* @
|
|
25847
|
+
* Creates an OrdersChargeUpdateRequest message from a plain object. Also converts values to their respective internal types.
|
|
25848
|
+
* @function fromObject
|
|
25849
|
+
* @memberof OrdersChargeUpdateRequest
|
|
25850
|
+
* @static
|
|
25851
|
+
* @param {Object.<string,*>} object Plain object
|
|
25852
|
+
* @returns {OrdersChargeUpdateRequest} OrdersChargeUpdateRequest
|
|
25463
25853
|
*/
|
|
25854
|
+
OrdersChargeUpdateRequest.fromObject = function fromObject(object) {
|
|
25855
|
+
if (object instanceof $root.OrdersChargeUpdateRequest)
|
|
25856
|
+
return object;
|
|
25857
|
+
var message = new $root.OrdersChargeUpdateRequest();
|
|
25858
|
+
if (object.spanContext != null)
|
|
25859
|
+
message.spanContext = String(object.spanContext);
|
|
25860
|
+
return message;
|
|
25861
|
+
};
|
|
25464
25862
|
|
|
25465
25863
|
/**
|
|
25466
|
-
*
|
|
25467
|
-
* @function
|
|
25468
|
-
* @memberof
|
|
25469
|
-
* @
|
|
25470
|
-
* @param {
|
|
25471
|
-
* @param {
|
|
25472
|
-
* @returns {
|
|
25473
|
-
* @variation 1
|
|
25864
|
+
* Creates a plain object from an OrdersChargeUpdateRequest message. Also converts values to other types if specified.
|
|
25865
|
+
* @function toObject
|
|
25866
|
+
* @memberof OrdersChargeUpdateRequest
|
|
25867
|
+
* @static
|
|
25868
|
+
* @param {OrdersChargeUpdateRequest} message OrdersChargeUpdateRequest
|
|
25869
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
25870
|
+
* @returns {Object.<string,*>} Plain object
|
|
25474
25871
|
*/
|
|
25475
|
-
|
|
25476
|
-
|
|
25477
|
-
|
|
25872
|
+
OrdersChargeUpdateRequest.toObject = function toObject(message, options) {
|
|
25873
|
+
if (!options)
|
|
25874
|
+
options = {};
|
|
25875
|
+
var object = {};
|
|
25876
|
+
if (options.defaults)
|
|
25877
|
+
object.spanContext = "";
|
|
25878
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
25879
|
+
object.spanContext = message.spanContext;
|
|
25880
|
+
return object;
|
|
25881
|
+
};
|
|
25478
25882
|
|
|
25479
25883
|
/**
|
|
25480
|
-
*
|
|
25481
|
-
* @function
|
|
25482
|
-
* @memberof
|
|
25884
|
+
* Converts this OrdersChargeUpdateRequest to JSON.
|
|
25885
|
+
* @function toJSON
|
|
25886
|
+
* @memberof OrdersChargeUpdateRequest
|
|
25483
25887
|
* @instance
|
|
25484
|
-
* @
|
|
25485
|
-
* @returns {Promise<SendOrderQRCodeEmailResponse>} Promise
|
|
25486
|
-
* @variation 2
|
|
25888
|
+
* @returns {Object.<string,*>} JSON object
|
|
25487
25889
|
*/
|
|
25890
|
+
OrdersChargeUpdateRequest.prototype.toJSON = function toJSON() {
|
|
25891
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25892
|
+
};
|
|
25488
25893
|
|
|
25489
|
-
|
|
25490
|
-
|
|
25491
|
-
* @memberof OrderService
|
|
25492
|
-
* @typedef sendOrderReceiptEmailCallback
|
|
25493
|
-
* @type {function}
|
|
25494
|
-
* @param {Error|null} error Error, if any
|
|
25495
|
-
* @param {SendOrderReceiptEmailResponse} [response] SendOrderReceiptEmailResponse
|
|
25496
|
-
*/
|
|
25894
|
+
return OrdersChargeUpdateRequest;
|
|
25895
|
+
})();
|
|
25497
25896
|
|
|
25498
|
-
|
|
25499
|
-
* Calls sendOrderReceiptEmail.
|
|
25500
|
-
* @function sendOrderReceiptEmail
|
|
25501
|
-
* @memberof OrderService
|
|
25502
|
-
* @instance
|
|
25503
|
-
* @param {ISendOrderReceiptEmailRequest} request SendOrderReceiptEmailRequest message or plain object
|
|
25504
|
-
* @param {OrderService.sendOrderReceiptEmailCallback} callback Node-style callback called with the error, if any, and SendOrderReceiptEmailResponse
|
|
25505
|
-
* @returns {undefined}
|
|
25506
|
-
* @variation 1
|
|
25507
|
-
*/
|
|
25508
|
-
Object.defineProperty(OrderService.prototype.sendOrderReceiptEmail = function sendOrderReceiptEmail(request, callback) {
|
|
25509
|
-
return this.rpcCall(sendOrderReceiptEmail, $root.SendOrderReceiptEmailRequest, $root.SendOrderReceiptEmailResponse, request, callback);
|
|
25510
|
-
}, "name", { value: "sendOrderReceiptEmail" });
|
|
25897
|
+
$root.OrdersChargeUpdateResponse = (function() {
|
|
25511
25898
|
|
|
25512
25899
|
/**
|
|
25513
|
-
*
|
|
25514
|
-
* @
|
|
25515
|
-
* @
|
|
25516
|
-
* @
|
|
25517
|
-
* @
|
|
25518
|
-
* @
|
|
25519
|
-
* @variation 2
|
|
25900
|
+
* Properties of an OrdersChargeUpdateResponse.
|
|
25901
|
+
* @exports IOrdersChargeUpdateResponse
|
|
25902
|
+
* @interface IOrdersChargeUpdateResponse
|
|
25903
|
+
* @property {StatusCode|null} [status] OrdersChargeUpdateResponse status
|
|
25904
|
+
* @property {Array.<IError>|null} [errors] OrdersChargeUpdateResponse errors
|
|
25905
|
+
* @property {string|null} [message] OrdersChargeUpdateResponse message
|
|
25520
25906
|
*/
|
|
25521
25907
|
|
|
25522
25908
|
/**
|
|
25523
|
-
*
|
|
25524
|
-
* @
|
|
25525
|
-
* @
|
|
25526
|
-
* @
|
|
25527
|
-
* @
|
|
25528
|
-
* @param {
|
|
25909
|
+
* Constructs a new OrdersChargeUpdateResponse.
|
|
25910
|
+
* @exports OrdersChargeUpdateResponse
|
|
25911
|
+
* @classdesc Represents an OrdersChargeUpdateResponse.
|
|
25912
|
+
* @implements IOrdersChargeUpdateResponse
|
|
25913
|
+
* @constructor
|
|
25914
|
+
* @param {IOrdersChargeUpdateResponse=} [properties] Properties to set
|
|
25529
25915
|
*/
|
|
25916
|
+
function OrdersChargeUpdateResponse(properties) {
|
|
25917
|
+
this.errors = [];
|
|
25918
|
+
if (properties)
|
|
25919
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25920
|
+
if (properties[keys[i]] != null)
|
|
25921
|
+
this[keys[i]] = properties[keys[i]];
|
|
25922
|
+
}
|
|
25530
25923
|
|
|
25531
25924
|
/**
|
|
25532
|
-
*
|
|
25533
|
-
* @
|
|
25534
|
-
* @memberof
|
|
25925
|
+
* OrdersChargeUpdateResponse status.
|
|
25926
|
+
* @member {StatusCode} status
|
|
25927
|
+
* @memberof OrdersChargeUpdateResponse
|
|
25535
25928
|
* @instance
|
|
25536
|
-
* @param {ISendOrderRefundEmailRequest} request SendOrderRefundEmailRequest message or plain object
|
|
25537
|
-
* @param {OrderService.sendOrderRefundEmailCallback} callback Node-style callback called with the error, if any, and SendOrderRefundEmailResponse
|
|
25538
|
-
* @returns {undefined}
|
|
25539
|
-
* @variation 1
|
|
25540
25929
|
*/
|
|
25541
|
-
|
|
25542
|
-
return this.rpcCall(sendOrderRefundEmail, $root.SendOrderRefundEmailRequest, $root.SendOrderRefundEmailResponse, request, callback);
|
|
25543
|
-
}, "name", { value: "sendOrderRefundEmail" });
|
|
25930
|
+
OrdersChargeUpdateResponse.prototype.status = 0;
|
|
25544
25931
|
|
|
25545
25932
|
/**
|
|
25546
|
-
*
|
|
25547
|
-
* @
|
|
25548
|
-
* @memberof
|
|
25933
|
+
* OrdersChargeUpdateResponse errors.
|
|
25934
|
+
* @member {Array.<IError>} errors
|
|
25935
|
+
* @memberof OrdersChargeUpdateResponse
|
|
25549
25936
|
* @instance
|
|
25550
|
-
* @param {ISendOrderRefundEmailRequest} request SendOrderRefundEmailRequest message or plain object
|
|
25551
|
-
* @returns {Promise<SendOrderRefundEmailResponse>} Promise
|
|
25552
|
-
* @variation 2
|
|
25553
25937
|
*/
|
|
25938
|
+
OrdersChargeUpdateResponse.prototype.errors = $util.emptyArray;
|
|
25554
25939
|
|
|
25555
25940
|
/**
|
|
25556
|
-
*
|
|
25557
|
-
* @
|
|
25558
|
-
* @
|
|
25559
|
-
* @
|
|
25560
|
-
* @param {Error|null} error Error, if any
|
|
25561
|
-
* @param {ScanOrderResponse} [response] ScanOrderResponse
|
|
25941
|
+
* OrdersChargeUpdateResponse message.
|
|
25942
|
+
* @member {string} message
|
|
25943
|
+
* @memberof OrdersChargeUpdateResponse
|
|
25944
|
+
* @instance
|
|
25562
25945
|
*/
|
|
25946
|
+
OrdersChargeUpdateResponse.prototype.message = "";
|
|
25563
25947
|
|
|
25564
25948
|
/**
|
|
25565
|
-
*
|
|
25566
|
-
* @function
|
|
25567
|
-
* @memberof
|
|
25568
|
-
* @
|
|
25569
|
-
* @param {
|
|
25570
|
-
* @
|
|
25571
|
-
* @returns {undefined}
|
|
25572
|
-
* @variation 1
|
|
25949
|
+
* Creates a new OrdersChargeUpdateResponse instance using the specified properties.
|
|
25950
|
+
* @function create
|
|
25951
|
+
* @memberof OrdersChargeUpdateResponse
|
|
25952
|
+
* @static
|
|
25953
|
+
* @param {IOrdersChargeUpdateResponse=} [properties] Properties to set
|
|
25954
|
+
* @returns {OrdersChargeUpdateResponse} OrdersChargeUpdateResponse instance
|
|
25573
25955
|
*/
|
|
25574
|
-
|
|
25575
|
-
return
|
|
25576
|
-
}
|
|
25956
|
+
OrdersChargeUpdateResponse.create = function create(properties) {
|
|
25957
|
+
return new OrdersChargeUpdateResponse(properties);
|
|
25958
|
+
};
|
|
25577
25959
|
|
|
25578
25960
|
/**
|
|
25579
|
-
*
|
|
25580
|
-
* @function
|
|
25581
|
-
* @memberof
|
|
25582
|
-
* @
|
|
25583
|
-
* @param {
|
|
25584
|
-
* @
|
|
25585
|
-
* @
|
|
25961
|
+
* Encodes the specified OrdersChargeUpdateResponse message. Does not implicitly {@link OrdersChargeUpdateResponse.verify|verify} messages.
|
|
25962
|
+
* @function encode
|
|
25963
|
+
* @memberof OrdersChargeUpdateResponse
|
|
25964
|
+
* @static
|
|
25965
|
+
* @param {IOrdersChargeUpdateResponse} message OrdersChargeUpdateResponse message or plain object to encode
|
|
25966
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25967
|
+
* @returns {$protobuf.Writer} Writer
|
|
25586
25968
|
*/
|
|
25969
|
+
OrdersChargeUpdateResponse.encode = function encode(message, writer) {
|
|
25970
|
+
if (!writer)
|
|
25971
|
+
writer = $Writer.create();
|
|
25972
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
25973
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
25974
|
+
if (message.errors != null && message.errors.length)
|
|
25975
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
25976
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
25977
|
+
if (message.message != null && Object.hasOwnProperty.call(message, "message"))
|
|
25978
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
|
|
25979
|
+
return writer;
|
|
25980
|
+
};
|
|
25587
25981
|
|
|
25588
25982
|
/**
|
|
25589
|
-
*
|
|
25590
|
-
* @
|
|
25591
|
-
* @
|
|
25592
|
-
* @
|
|
25593
|
-
* @param {
|
|
25594
|
-
* @param {
|
|
25983
|
+
* Encodes the specified OrdersChargeUpdateResponse message, length delimited. Does not implicitly {@link OrdersChargeUpdateResponse.verify|verify} messages.
|
|
25984
|
+
* @function encodeDelimited
|
|
25985
|
+
* @memberof OrdersChargeUpdateResponse
|
|
25986
|
+
* @static
|
|
25987
|
+
* @param {IOrdersChargeUpdateResponse} message OrdersChargeUpdateResponse message or plain object to encode
|
|
25988
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25989
|
+
* @returns {$protobuf.Writer} Writer
|
|
25990
|
+
*/
|
|
25991
|
+
OrdersChargeUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25992
|
+
return this.encode(message, writer).ldelim();
|
|
25993
|
+
};
|
|
25994
|
+
|
|
25995
|
+
/**
|
|
25996
|
+
* Decodes an OrdersChargeUpdateResponse message from the specified reader or buffer.
|
|
25997
|
+
* @function decode
|
|
25998
|
+
* @memberof OrdersChargeUpdateResponse
|
|
25999
|
+
* @static
|
|
26000
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26001
|
+
* @param {number} [length] Message length if known beforehand
|
|
26002
|
+
* @returns {OrdersChargeUpdateResponse} OrdersChargeUpdateResponse
|
|
26003
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26004
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26005
|
+
*/
|
|
26006
|
+
OrdersChargeUpdateResponse.decode = function decode(reader, length) {
|
|
26007
|
+
if (!(reader instanceof $Reader))
|
|
26008
|
+
reader = $Reader.create(reader);
|
|
26009
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrdersChargeUpdateResponse();
|
|
26010
|
+
while (reader.pos < end) {
|
|
26011
|
+
var tag = reader.uint32();
|
|
26012
|
+
switch (tag >>> 3) {
|
|
26013
|
+
case 0:
|
|
26014
|
+
message.status = reader.int32();
|
|
26015
|
+
break;
|
|
26016
|
+
case 1:
|
|
26017
|
+
if (!(message.errors && message.errors.length))
|
|
26018
|
+
message.errors = [];
|
|
26019
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
26020
|
+
break;
|
|
26021
|
+
case 2:
|
|
26022
|
+
message.message = reader.string();
|
|
26023
|
+
break;
|
|
26024
|
+
default:
|
|
26025
|
+
reader.skipType(tag & 7);
|
|
26026
|
+
break;
|
|
26027
|
+
}
|
|
26028
|
+
}
|
|
26029
|
+
return message;
|
|
26030
|
+
};
|
|
26031
|
+
|
|
26032
|
+
/**
|
|
26033
|
+
* Decodes an OrdersChargeUpdateResponse message from the specified reader or buffer, length delimited.
|
|
26034
|
+
* @function decodeDelimited
|
|
26035
|
+
* @memberof OrdersChargeUpdateResponse
|
|
26036
|
+
* @static
|
|
26037
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26038
|
+
* @returns {OrdersChargeUpdateResponse} OrdersChargeUpdateResponse
|
|
26039
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26040
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26041
|
+
*/
|
|
26042
|
+
OrdersChargeUpdateResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
26043
|
+
if (!(reader instanceof $Reader))
|
|
26044
|
+
reader = new $Reader(reader);
|
|
26045
|
+
return this.decode(reader, reader.uint32());
|
|
26046
|
+
};
|
|
26047
|
+
|
|
26048
|
+
/**
|
|
26049
|
+
* Verifies an OrdersChargeUpdateResponse message.
|
|
26050
|
+
* @function verify
|
|
26051
|
+
* @memberof OrdersChargeUpdateResponse
|
|
26052
|
+
* @static
|
|
26053
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
26054
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26055
|
+
*/
|
|
26056
|
+
OrdersChargeUpdateResponse.verify = function verify(message) {
|
|
26057
|
+
if (typeof message !== "object" || message === null)
|
|
26058
|
+
return "object expected";
|
|
26059
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
26060
|
+
switch (message.status) {
|
|
26061
|
+
default:
|
|
26062
|
+
return "status: enum value expected";
|
|
26063
|
+
case 0:
|
|
26064
|
+
case 200:
|
|
26065
|
+
case 400:
|
|
26066
|
+
case 401:
|
|
26067
|
+
case 403:
|
|
26068
|
+
case 422:
|
|
26069
|
+
case 500:
|
|
26070
|
+
case 504:
|
|
26071
|
+
break;
|
|
26072
|
+
}
|
|
26073
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
26074
|
+
if (!Array.isArray(message.errors))
|
|
26075
|
+
return "errors: array expected";
|
|
26076
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
26077
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
26078
|
+
if (error)
|
|
26079
|
+
return "errors." + error;
|
|
26080
|
+
}
|
|
26081
|
+
}
|
|
26082
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
26083
|
+
if (!$util.isString(message.message))
|
|
26084
|
+
return "message: string expected";
|
|
26085
|
+
return null;
|
|
26086
|
+
};
|
|
26087
|
+
|
|
26088
|
+
/**
|
|
26089
|
+
* Creates an OrdersChargeUpdateResponse message from a plain object. Also converts values to their respective internal types.
|
|
26090
|
+
* @function fromObject
|
|
26091
|
+
* @memberof OrdersChargeUpdateResponse
|
|
26092
|
+
* @static
|
|
26093
|
+
* @param {Object.<string,*>} object Plain object
|
|
26094
|
+
* @returns {OrdersChargeUpdateResponse} OrdersChargeUpdateResponse
|
|
26095
|
+
*/
|
|
26096
|
+
OrdersChargeUpdateResponse.fromObject = function fromObject(object) {
|
|
26097
|
+
if (object instanceof $root.OrdersChargeUpdateResponse)
|
|
26098
|
+
return object;
|
|
26099
|
+
var message = new $root.OrdersChargeUpdateResponse();
|
|
26100
|
+
switch (object.status) {
|
|
26101
|
+
case "UNKNOWN_CODE":
|
|
26102
|
+
case 0:
|
|
26103
|
+
message.status = 0;
|
|
26104
|
+
break;
|
|
26105
|
+
case "OK":
|
|
26106
|
+
case 200:
|
|
26107
|
+
message.status = 200;
|
|
26108
|
+
break;
|
|
26109
|
+
case "BAD_REQUEST":
|
|
26110
|
+
case 400:
|
|
26111
|
+
message.status = 400;
|
|
26112
|
+
break;
|
|
26113
|
+
case "UNAUTHORIZED":
|
|
26114
|
+
case 401:
|
|
26115
|
+
message.status = 401;
|
|
26116
|
+
break;
|
|
26117
|
+
case "FORBIDDEN":
|
|
26118
|
+
case 403:
|
|
26119
|
+
message.status = 403;
|
|
26120
|
+
break;
|
|
26121
|
+
case "UNPROCESSABLE_ENTITY":
|
|
26122
|
+
case 422:
|
|
26123
|
+
message.status = 422;
|
|
26124
|
+
break;
|
|
26125
|
+
case "INTERNAL_SERVER_ERROR":
|
|
26126
|
+
case 500:
|
|
26127
|
+
message.status = 500;
|
|
26128
|
+
break;
|
|
26129
|
+
case "GATEWAY_TIMEOUT":
|
|
26130
|
+
case 504:
|
|
26131
|
+
message.status = 504;
|
|
26132
|
+
break;
|
|
26133
|
+
}
|
|
26134
|
+
if (object.errors) {
|
|
26135
|
+
if (!Array.isArray(object.errors))
|
|
26136
|
+
throw TypeError(".OrdersChargeUpdateResponse.errors: array expected");
|
|
26137
|
+
message.errors = [];
|
|
26138
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
26139
|
+
if (typeof object.errors[i] !== "object")
|
|
26140
|
+
throw TypeError(".OrdersChargeUpdateResponse.errors: object expected");
|
|
26141
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
26142
|
+
}
|
|
26143
|
+
}
|
|
26144
|
+
if (object.message != null)
|
|
26145
|
+
message.message = String(object.message);
|
|
26146
|
+
return message;
|
|
26147
|
+
};
|
|
26148
|
+
|
|
26149
|
+
/**
|
|
26150
|
+
* Creates a plain object from an OrdersChargeUpdateResponse message. Also converts values to other types if specified.
|
|
26151
|
+
* @function toObject
|
|
26152
|
+
* @memberof OrdersChargeUpdateResponse
|
|
26153
|
+
* @static
|
|
26154
|
+
* @param {OrdersChargeUpdateResponse} message OrdersChargeUpdateResponse
|
|
26155
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26156
|
+
* @returns {Object.<string,*>} Plain object
|
|
26157
|
+
*/
|
|
26158
|
+
OrdersChargeUpdateResponse.toObject = function toObject(message, options) {
|
|
26159
|
+
if (!options)
|
|
26160
|
+
options = {};
|
|
26161
|
+
var object = {};
|
|
26162
|
+
if (options.arrays || options.defaults)
|
|
26163
|
+
object.errors = [];
|
|
26164
|
+
if (options.defaults) {
|
|
26165
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
26166
|
+
object.message = "";
|
|
26167
|
+
}
|
|
26168
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
26169
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
26170
|
+
if (message.errors && message.errors.length) {
|
|
26171
|
+
object.errors = [];
|
|
26172
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
26173
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
26174
|
+
}
|
|
26175
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
26176
|
+
object.message = message.message;
|
|
26177
|
+
return object;
|
|
26178
|
+
};
|
|
26179
|
+
|
|
26180
|
+
/**
|
|
26181
|
+
* Converts this OrdersChargeUpdateResponse to JSON.
|
|
26182
|
+
* @function toJSON
|
|
26183
|
+
* @memberof OrdersChargeUpdateResponse
|
|
26184
|
+
* @instance
|
|
26185
|
+
* @returns {Object.<string,*>} JSON object
|
|
26186
|
+
*/
|
|
26187
|
+
OrdersChargeUpdateResponse.prototype.toJSON = function toJSON() {
|
|
26188
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
26189
|
+
};
|
|
26190
|
+
|
|
26191
|
+
return OrdersChargeUpdateResponse;
|
|
26192
|
+
})();
|
|
26193
|
+
|
|
26194
|
+
$root.OrderService = (function() {
|
|
26195
|
+
|
|
26196
|
+
/**
|
|
26197
|
+
* Constructs a new OrderService service.
|
|
26198
|
+
* @exports OrderService
|
|
26199
|
+
* @classdesc Represents an OrderService
|
|
26200
|
+
* @extends $protobuf.rpc.Service
|
|
26201
|
+
* @constructor
|
|
26202
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
26203
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
26204
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
26205
|
+
*/
|
|
26206
|
+
function OrderService(rpcImpl, requestDelimited, responseDelimited) {
|
|
26207
|
+
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
26208
|
+
}
|
|
26209
|
+
|
|
26210
|
+
(OrderService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = OrderService;
|
|
26211
|
+
|
|
26212
|
+
/**
|
|
26213
|
+
* Creates new OrderService service using the specified rpc implementation.
|
|
26214
|
+
* @function create
|
|
26215
|
+
* @memberof OrderService
|
|
26216
|
+
* @static
|
|
26217
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
26218
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
26219
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
26220
|
+
* @returns {OrderService} RPC service. Useful where requests and/or responses are streamed.
|
|
26221
|
+
*/
|
|
26222
|
+
OrderService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
|
|
26223
|
+
return new this(rpcImpl, requestDelimited, responseDelimited);
|
|
26224
|
+
};
|
|
26225
|
+
|
|
26226
|
+
/**
|
|
26227
|
+
* Callback as used by {@link OrderService#createOrder}.
|
|
26228
|
+
* @memberof OrderService
|
|
26229
|
+
* @typedef createOrderCallback
|
|
26230
|
+
* @type {function}
|
|
26231
|
+
* @param {Error|null} error Error, if any
|
|
26232
|
+
* @param {CreateOrderResponse} [response] CreateOrderResponse
|
|
26233
|
+
*/
|
|
26234
|
+
|
|
26235
|
+
/**
|
|
26236
|
+
* Calls createOrder.
|
|
26237
|
+
* @function createOrder
|
|
26238
|
+
* @memberof OrderService
|
|
26239
|
+
* @instance
|
|
26240
|
+
* @param {ICreateOrderRequest} request CreateOrderRequest message or plain object
|
|
26241
|
+
* @param {OrderService.createOrderCallback} callback Node-style callback called with the error, if any, and CreateOrderResponse
|
|
26242
|
+
* @returns {undefined}
|
|
26243
|
+
* @variation 1
|
|
26244
|
+
*/
|
|
26245
|
+
Object.defineProperty(OrderService.prototype.createOrder = function createOrder(request, callback) {
|
|
26246
|
+
return this.rpcCall(createOrder, $root.CreateOrderRequest, $root.CreateOrderResponse, request, callback);
|
|
26247
|
+
}, "name", { value: "createOrder" });
|
|
26248
|
+
|
|
26249
|
+
/**
|
|
26250
|
+
* Calls createOrder.
|
|
26251
|
+
* @function createOrder
|
|
26252
|
+
* @memberof OrderService
|
|
26253
|
+
* @instance
|
|
26254
|
+
* @param {ICreateOrderRequest} request CreateOrderRequest message or plain object
|
|
26255
|
+
* @returns {Promise<CreateOrderResponse>} Promise
|
|
26256
|
+
* @variation 2
|
|
26257
|
+
*/
|
|
26258
|
+
|
|
26259
|
+
/**
|
|
26260
|
+
* Callback as used by {@link OrderService#createOrderPaymentIntent}.
|
|
26261
|
+
* @memberof OrderService
|
|
26262
|
+
* @typedef createOrderPaymentIntentCallback
|
|
26263
|
+
* @type {function}
|
|
26264
|
+
* @param {Error|null} error Error, if any
|
|
26265
|
+
* @param {CreateOrderPaymentIntentResponse} [response] CreateOrderPaymentIntentResponse
|
|
26266
|
+
*/
|
|
26267
|
+
|
|
26268
|
+
/**
|
|
26269
|
+
* Calls createOrderPaymentIntent.
|
|
26270
|
+
* @function createOrderPaymentIntent
|
|
26271
|
+
* @memberof OrderService
|
|
26272
|
+
* @instance
|
|
26273
|
+
* @param {ICreateOrderPaymentIntentRequest} request CreateOrderPaymentIntentRequest message or plain object
|
|
26274
|
+
* @param {OrderService.createOrderPaymentIntentCallback} callback Node-style callback called with the error, if any, and CreateOrderPaymentIntentResponse
|
|
26275
|
+
* @returns {undefined}
|
|
26276
|
+
* @variation 1
|
|
26277
|
+
*/
|
|
26278
|
+
Object.defineProperty(OrderService.prototype.createOrderPaymentIntent = function createOrderPaymentIntent(request, callback) {
|
|
26279
|
+
return this.rpcCall(createOrderPaymentIntent, $root.CreateOrderPaymentIntentRequest, $root.CreateOrderPaymentIntentResponse, request, callback);
|
|
26280
|
+
}, "name", { value: "createOrderPaymentIntent" });
|
|
26281
|
+
|
|
26282
|
+
/**
|
|
26283
|
+
* Calls createOrderPaymentIntent.
|
|
26284
|
+
* @function createOrderPaymentIntent
|
|
26285
|
+
* @memberof OrderService
|
|
26286
|
+
* @instance
|
|
26287
|
+
* @param {ICreateOrderPaymentIntentRequest} request CreateOrderPaymentIntentRequest message or plain object
|
|
26288
|
+
* @returns {Promise<CreateOrderPaymentIntentResponse>} Promise
|
|
26289
|
+
* @variation 2
|
|
26290
|
+
*/
|
|
26291
|
+
|
|
26292
|
+
/**
|
|
26293
|
+
* Callback as used by {@link OrderService#sendOrderQRCodeEmail}.
|
|
26294
|
+
* @memberof OrderService
|
|
26295
|
+
* @typedef sendOrderQRCodeEmailCallback
|
|
26296
|
+
* @type {function}
|
|
26297
|
+
* @param {Error|null} error Error, if any
|
|
26298
|
+
* @param {SendOrderQRCodeEmailResponse} [response] SendOrderQRCodeEmailResponse
|
|
26299
|
+
*/
|
|
26300
|
+
|
|
26301
|
+
/**
|
|
26302
|
+
* Calls sendOrderQRCodeEmail.
|
|
26303
|
+
* @function sendOrderQRCodeEmail
|
|
26304
|
+
* @memberof OrderService
|
|
26305
|
+
* @instance
|
|
26306
|
+
* @param {ISendOrderQRCodeEmailRequest} request SendOrderQRCodeEmailRequest message or plain object
|
|
26307
|
+
* @param {OrderService.sendOrderQRCodeEmailCallback} callback Node-style callback called with the error, if any, and SendOrderQRCodeEmailResponse
|
|
26308
|
+
* @returns {undefined}
|
|
26309
|
+
* @variation 1
|
|
26310
|
+
*/
|
|
26311
|
+
Object.defineProperty(OrderService.prototype.sendOrderQRCodeEmail = function sendOrderQRCodeEmail(request, callback) {
|
|
26312
|
+
return this.rpcCall(sendOrderQRCodeEmail, $root.SendOrderQRCodeEmailRequest, $root.SendOrderQRCodeEmailResponse, request, callback);
|
|
26313
|
+
}, "name", { value: "sendOrderQRCodeEmail" });
|
|
26314
|
+
|
|
26315
|
+
/**
|
|
26316
|
+
* Calls sendOrderQRCodeEmail.
|
|
26317
|
+
* @function sendOrderQRCodeEmail
|
|
26318
|
+
* @memberof OrderService
|
|
26319
|
+
* @instance
|
|
26320
|
+
* @param {ISendOrderQRCodeEmailRequest} request SendOrderQRCodeEmailRequest message or plain object
|
|
26321
|
+
* @returns {Promise<SendOrderQRCodeEmailResponse>} Promise
|
|
26322
|
+
* @variation 2
|
|
26323
|
+
*/
|
|
26324
|
+
|
|
26325
|
+
/**
|
|
26326
|
+
* Callback as used by {@link OrderService#sendOrderReceiptEmail}.
|
|
26327
|
+
* @memberof OrderService
|
|
26328
|
+
* @typedef sendOrderReceiptEmailCallback
|
|
26329
|
+
* @type {function}
|
|
26330
|
+
* @param {Error|null} error Error, if any
|
|
26331
|
+
* @param {SendOrderReceiptEmailResponse} [response] SendOrderReceiptEmailResponse
|
|
26332
|
+
*/
|
|
26333
|
+
|
|
26334
|
+
/**
|
|
26335
|
+
* Calls sendOrderReceiptEmail.
|
|
26336
|
+
* @function sendOrderReceiptEmail
|
|
26337
|
+
* @memberof OrderService
|
|
26338
|
+
* @instance
|
|
26339
|
+
* @param {ISendOrderReceiptEmailRequest} request SendOrderReceiptEmailRequest message or plain object
|
|
26340
|
+
* @param {OrderService.sendOrderReceiptEmailCallback} callback Node-style callback called with the error, if any, and SendOrderReceiptEmailResponse
|
|
26341
|
+
* @returns {undefined}
|
|
26342
|
+
* @variation 1
|
|
26343
|
+
*/
|
|
26344
|
+
Object.defineProperty(OrderService.prototype.sendOrderReceiptEmail = function sendOrderReceiptEmail(request, callback) {
|
|
26345
|
+
return this.rpcCall(sendOrderReceiptEmail, $root.SendOrderReceiptEmailRequest, $root.SendOrderReceiptEmailResponse, request, callback);
|
|
26346
|
+
}, "name", { value: "sendOrderReceiptEmail" });
|
|
26347
|
+
|
|
26348
|
+
/**
|
|
26349
|
+
* Calls sendOrderReceiptEmail.
|
|
26350
|
+
* @function sendOrderReceiptEmail
|
|
26351
|
+
* @memberof OrderService
|
|
26352
|
+
* @instance
|
|
26353
|
+
* @param {ISendOrderReceiptEmailRequest} request SendOrderReceiptEmailRequest message or plain object
|
|
26354
|
+
* @returns {Promise<SendOrderReceiptEmailResponse>} Promise
|
|
26355
|
+
* @variation 2
|
|
26356
|
+
*/
|
|
26357
|
+
|
|
26358
|
+
/**
|
|
26359
|
+
* Callback as used by {@link OrderService#sendOrderRefundEmail}.
|
|
26360
|
+
* @memberof OrderService
|
|
26361
|
+
* @typedef sendOrderRefundEmailCallback
|
|
26362
|
+
* @type {function}
|
|
26363
|
+
* @param {Error|null} error Error, if any
|
|
26364
|
+
* @param {SendOrderRefundEmailResponse} [response] SendOrderRefundEmailResponse
|
|
26365
|
+
*/
|
|
26366
|
+
|
|
26367
|
+
/**
|
|
26368
|
+
* Calls sendOrderRefundEmail.
|
|
26369
|
+
* @function sendOrderRefundEmail
|
|
26370
|
+
* @memberof OrderService
|
|
26371
|
+
* @instance
|
|
26372
|
+
* @param {ISendOrderRefundEmailRequest} request SendOrderRefundEmailRequest message or plain object
|
|
26373
|
+
* @param {OrderService.sendOrderRefundEmailCallback} callback Node-style callback called with the error, if any, and SendOrderRefundEmailResponse
|
|
26374
|
+
* @returns {undefined}
|
|
26375
|
+
* @variation 1
|
|
26376
|
+
*/
|
|
26377
|
+
Object.defineProperty(OrderService.prototype.sendOrderRefundEmail = function sendOrderRefundEmail(request, callback) {
|
|
26378
|
+
return this.rpcCall(sendOrderRefundEmail, $root.SendOrderRefundEmailRequest, $root.SendOrderRefundEmailResponse, request, callback);
|
|
26379
|
+
}, "name", { value: "sendOrderRefundEmail" });
|
|
26380
|
+
|
|
26381
|
+
/**
|
|
26382
|
+
* Calls sendOrderRefundEmail.
|
|
26383
|
+
* @function sendOrderRefundEmail
|
|
26384
|
+
* @memberof OrderService
|
|
26385
|
+
* @instance
|
|
26386
|
+
* @param {ISendOrderRefundEmailRequest} request SendOrderRefundEmailRequest message or plain object
|
|
26387
|
+
* @returns {Promise<SendOrderRefundEmailResponse>} Promise
|
|
26388
|
+
* @variation 2
|
|
26389
|
+
*/
|
|
26390
|
+
|
|
26391
|
+
/**
|
|
26392
|
+
* Callback as used by {@link OrderService#scanOrder}.
|
|
26393
|
+
* @memberof OrderService
|
|
26394
|
+
* @typedef scanOrderCallback
|
|
26395
|
+
* @type {function}
|
|
26396
|
+
* @param {Error|null} error Error, if any
|
|
26397
|
+
* @param {ScanOrderResponse} [response] ScanOrderResponse
|
|
26398
|
+
*/
|
|
26399
|
+
|
|
26400
|
+
/**
|
|
26401
|
+
* Calls scanOrder.
|
|
26402
|
+
* @function scanOrder
|
|
26403
|
+
* @memberof OrderService
|
|
26404
|
+
* @instance
|
|
26405
|
+
* @param {IScanOrderRequest} request ScanOrderRequest message or plain object
|
|
26406
|
+
* @param {OrderService.scanOrderCallback} callback Node-style callback called with the error, if any, and ScanOrderResponse
|
|
26407
|
+
* @returns {undefined}
|
|
26408
|
+
* @variation 1
|
|
26409
|
+
*/
|
|
26410
|
+
Object.defineProperty(OrderService.prototype.scanOrder = function scanOrder(request, callback) {
|
|
26411
|
+
return this.rpcCall(scanOrder, $root.ScanOrderRequest, $root.ScanOrderResponse, request, callback);
|
|
26412
|
+
}, "name", { value: "scanOrder" });
|
|
26413
|
+
|
|
26414
|
+
/**
|
|
26415
|
+
* Calls scanOrder.
|
|
26416
|
+
* @function scanOrder
|
|
26417
|
+
* @memberof OrderService
|
|
26418
|
+
* @instance
|
|
26419
|
+
* @param {IScanOrderRequest} request ScanOrderRequest message or plain object
|
|
26420
|
+
* @returns {Promise<ScanOrderResponse>} Promise
|
|
26421
|
+
* @variation 2
|
|
26422
|
+
*/
|
|
26423
|
+
|
|
26424
|
+
/**
|
|
26425
|
+
* Callback as used by {@link OrderService#breakApartOrder}.
|
|
26426
|
+
* @memberof OrderService
|
|
26427
|
+
* @typedef breakApartOrderCallback
|
|
26428
|
+
* @type {function}
|
|
26429
|
+
* @param {Error|null} error Error, if any
|
|
26430
|
+
* @param {BreakApartOrderResponse} [response] BreakApartOrderResponse
|
|
25595
26431
|
*/
|
|
25596
26432
|
|
|
25597
26433
|
/**
|
|
@@ -25849,6 +26685,39 @@ $root.OrderService = (function() {
|
|
|
25849
26685
|
* @variation 2
|
|
25850
26686
|
*/
|
|
25851
26687
|
|
|
26688
|
+
/**
|
|
26689
|
+
* Callback as used by {@link OrderService#ordersChargeUpdate}.
|
|
26690
|
+
* @memberof OrderService
|
|
26691
|
+
* @typedef ordersChargeUpdateCallback
|
|
26692
|
+
* @type {function}
|
|
26693
|
+
* @param {Error|null} error Error, if any
|
|
26694
|
+
* @param {OrdersChargeUpdateResponse} [response] OrdersChargeUpdateResponse
|
|
26695
|
+
*/
|
|
26696
|
+
|
|
26697
|
+
/**
|
|
26698
|
+
* Calls ordersChargeUpdate.
|
|
26699
|
+
* @function ordersChargeUpdate
|
|
26700
|
+
* @memberof OrderService
|
|
26701
|
+
* @instance
|
|
26702
|
+
* @param {IOrdersChargeUpdateRequest} request OrdersChargeUpdateRequest message or plain object
|
|
26703
|
+
* @param {OrderService.ordersChargeUpdateCallback} callback Node-style callback called with the error, if any, and OrdersChargeUpdateResponse
|
|
26704
|
+
* @returns {undefined}
|
|
26705
|
+
* @variation 1
|
|
26706
|
+
*/
|
|
26707
|
+
Object.defineProperty(OrderService.prototype.ordersChargeUpdate = function ordersChargeUpdate(request, callback) {
|
|
26708
|
+
return this.rpcCall(ordersChargeUpdate, $root.OrdersChargeUpdateRequest, $root.OrdersChargeUpdateResponse, request, callback);
|
|
26709
|
+
}, "name", { value: "ordersChargeUpdate" });
|
|
26710
|
+
|
|
26711
|
+
/**
|
|
26712
|
+
* Calls ordersChargeUpdate.
|
|
26713
|
+
* @function ordersChargeUpdate
|
|
26714
|
+
* @memberof OrderService
|
|
26715
|
+
* @instance
|
|
26716
|
+
* @param {IOrdersChargeUpdateRequest} request OrdersChargeUpdateRequest message or plain object
|
|
26717
|
+
* @returns {Promise<OrdersChargeUpdateResponse>} Promise
|
|
26718
|
+
* @variation 2
|
|
26719
|
+
*/
|
|
26720
|
+
|
|
25852
26721
|
return OrderService;
|
|
25853
26722
|
})();
|
|
25854
26723
|
|
|
@@ -30615,6 +31484,8 @@ $root.Event = (function() {
|
|
|
30615
31484
|
* @property {ITicketExchange|null} [exchange] Event exchange
|
|
30616
31485
|
* @property {IMetrics|null} [metrics] Event metrics
|
|
30617
31486
|
* @property {boolean|null} [published] Event published
|
|
31487
|
+
* @property {boolean|null} [salesBeginImmediately] Event salesBeginImmediately
|
|
31488
|
+
* @property {boolean|null} [cancel] Event cancel
|
|
30618
31489
|
*/
|
|
30619
31490
|
|
|
30620
31491
|
/**
|
|
@@ -30854,6 +31725,22 @@ $root.Event = (function() {
|
|
|
30854
31725
|
*/
|
|
30855
31726
|
Event.prototype.published = false;
|
|
30856
31727
|
|
|
31728
|
+
/**
|
|
31729
|
+
* Event salesBeginImmediately.
|
|
31730
|
+
* @member {boolean} salesBeginImmediately
|
|
31731
|
+
* @memberof Event
|
|
31732
|
+
* @instance
|
|
31733
|
+
*/
|
|
31734
|
+
Event.prototype.salesBeginImmediately = false;
|
|
31735
|
+
|
|
31736
|
+
/**
|
|
31737
|
+
* Event cancel.
|
|
31738
|
+
* @member {boolean} cancel
|
|
31739
|
+
* @memberof Event
|
|
31740
|
+
* @instance
|
|
31741
|
+
*/
|
|
31742
|
+
Event.prototype.cancel = false;
|
|
31743
|
+
|
|
30857
31744
|
/**
|
|
30858
31745
|
* Creates a new Event instance using the specified properties.
|
|
30859
31746
|
* @function create
|
|
@@ -30938,6 +31825,10 @@ $root.Event = (function() {
|
|
|
30938
31825
|
$root.Metrics.encode(message.metrics, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
30939
31826
|
if (message.published != null && Object.hasOwnProperty.call(message, "published"))
|
|
30940
31827
|
writer.uint32(/* id 27, wireType 0 =*/216).bool(message.published);
|
|
31828
|
+
if (message.salesBeginImmediately != null && Object.hasOwnProperty.call(message, "salesBeginImmediately"))
|
|
31829
|
+
writer.uint32(/* id 28, wireType 0 =*/224).bool(message.salesBeginImmediately);
|
|
31830
|
+
if (message.cancel != null && Object.hasOwnProperty.call(message, "cancel"))
|
|
31831
|
+
writer.uint32(/* id 29, wireType 0 =*/232).bool(message.cancel);
|
|
30941
31832
|
return writer;
|
|
30942
31833
|
};
|
|
30943
31834
|
|
|
@@ -31065,6 +31956,12 @@ $root.Event = (function() {
|
|
|
31065
31956
|
case 27:
|
|
31066
31957
|
message.published = reader.bool();
|
|
31067
31958
|
break;
|
|
31959
|
+
case 28:
|
|
31960
|
+
message.salesBeginImmediately = reader.bool();
|
|
31961
|
+
break;
|
|
31962
|
+
case 29:
|
|
31963
|
+
message.cancel = reader.bool();
|
|
31964
|
+
break;
|
|
31068
31965
|
default:
|
|
31069
31966
|
reader.skipType(tag & 7);
|
|
31070
31967
|
break;
|
|
@@ -31225,6 +32122,12 @@ $root.Event = (function() {
|
|
|
31225
32122
|
if (message.published != null && message.hasOwnProperty("published"))
|
|
31226
32123
|
if (typeof message.published !== "boolean")
|
|
31227
32124
|
return "published: boolean expected";
|
|
32125
|
+
if (message.salesBeginImmediately != null && message.hasOwnProperty("salesBeginImmediately"))
|
|
32126
|
+
if (typeof message.salesBeginImmediately !== "boolean")
|
|
32127
|
+
return "salesBeginImmediately: boolean expected";
|
|
32128
|
+
if (message.cancel != null && message.hasOwnProperty("cancel"))
|
|
32129
|
+
if (typeof message.cancel !== "boolean")
|
|
32130
|
+
return "cancel: boolean expected";
|
|
31228
32131
|
return null;
|
|
31229
32132
|
};
|
|
31230
32133
|
|
|
@@ -31354,6 +32257,10 @@ $root.Event = (function() {
|
|
|
31354
32257
|
}
|
|
31355
32258
|
if (object.published != null)
|
|
31356
32259
|
message.published = Boolean(object.published);
|
|
32260
|
+
if (object.salesBeginImmediately != null)
|
|
32261
|
+
message.salesBeginImmediately = Boolean(object.salesBeginImmediately);
|
|
32262
|
+
if (object.cancel != null)
|
|
32263
|
+
message.cancel = Boolean(object.cancel);
|
|
31357
32264
|
return message;
|
|
31358
32265
|
};
|
|
31359
32266
|
|
|
@@ -31400,6 +32307,8 @@ $root.Event = (function() {
|
|
|
31400
32307
|
object.exchange = null;
|
|
31401
32308
|
object.metrics = null;
|
|
31402
32309
|
object.published = false;
|
|
32310
|
+
object.salesBeginImmediately = false;
|
|
32311
|
+
object.cancel = false;
|
|
31403
32312
|
}
|
|
31404
32313
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
31405
32314
|
object._id = message._id;
|
|
@@ -31473,6 +32382,10 @@ $root.Event = (function() {
|
|
|
31473
32382
|
object.metrics = $root.Metrics.toObject(message.metrics, options);
|
|
31474
32383
|
if (message.published != null && message.hasOwnProperty("published"))
|
|
31475
32384
|
object.published = message.published;
|
|
32385
|
+
if (message.salesBeginImmediately != null && message.hasOwnProperty("salesBeginImmediately"))
|
|
32386
|
+
object.salesBeginImmediately = message.salesBeginImmediately;
|
|
32387
|
+
if (message.cancel != null && message.hasOwnProperty("cancel"))
|
|
32388
|
+
object.cancel = message.cancel;
|
|
31476
32389
|
return object;
|
|
31477
32390
|
};
|
|
31478
32391
|
|
|
@@ -32417,6 +33330,7 @@ $root.TicketType = (function() {
|
|
|
32417
33330
|
* @property {boolean|null} [visible] TicketType visible
|
|
32418
33331
|
* @property {string|null} [description] TicketType description
|
|
32419
33332
|
* @property {boolean|null} [rollFees] TicketType rollFees
|
|
33333
|
+
* @property {string|null} [promo] TicketType promo
|
|
32420
33334
|
*/
|
|
32421
33335
|
|
|
32422
33336
|
/**
|
|
@@ -32516,6 +33430,14 @@ $root.TicketType = (function() {
|
|
|
32516
33430
|
*/
|
|
32517
33431
|
TicketType.prototype.rollFees = false;
|
|
32518
33432
|
|
|
33433
|
+
/**
|
|
33434
|
+
* TicketType promo.
|
|
33435
|
+
* @member {string} promo
|
|
33436
|
+
* @memberof TicketType
|
|
33437
|
+
* @instance
|
|
33438
|
+
*/
|
|
33439
|
+
TicketType.prototype.promo = "";
|
|
33440
|
+
|
|
32519
33441
|
/**
|
|
32520
33442
|
* Creates a new TicketType instance using the specified properties.
|
|
32521
33443
|
* @function create
|
|
@@ -32562,6 +33484,8 @@ $root.TicketType = (function() {
|
|
|
32562
33484
|
writer.uint32(/* id 9, wireType 2 =*/74).string(message.description);
|
|
32563
33485
|
if (message.rollFees != null && Object.hasOwnProperty.call(message, "rollFees"))
|
|
32564
33486
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.rollFees);
|
|
33487
|
+
if (message.promo != null && Object.hasOwnProperty.call(message, "promo"))
|
|
33488
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.promo);
|
|
32565
33489
|
return writer;
|
|
32566
33490
|
};
|
|
32567
33491
|
|
|
@@ -32630,6 +33554,9 @@ $root.TicketType = (function() {
|
|
|
32630
33554
|
case 10:
|
|
32631
33555
|
message.rollFees = reader.bool();
|
|
32632
33556
|
break;
|
|
33557
|
+
case 11:
|
|
33558
|
+
message.promo = reader.string();
|
|
33559
|
+
break;
|
|
32633
33560
|
default:
|
|
32634
33561
|
reader.skipType(tag & 7);
|
|
32635
33562
|
break;
|
|
@@ -32705,6 +33632,9 @@ $root.TicketType = (function() {
|
|
|
32705
33632
|
if (message.rollFees != null && message.hasOwnProperty("rollFees"))
|
|
32706
33633
|
if (typeof message.rollFees !== "boolean")
|
|
32707
33634
|
return "rollFees: boolean expected";
|
|
33635
|
+
if (message.promo != null && message.hasOwnProperty("promo"))
|
|
33636
|
+
if (!$util.isString(message.promo))
|
|
33637
|
+
return "promo: string expected";
|
|
32708
33638
|
return null;
|
|
32709
33639
|
};
|
|
32710
33640
|
|
|
@@ -32753,6 +33683,8 @@ $root.TicketType = (function() {
|
|
|
32753
33683
|
message.description = String(object.description);
|
|
32754
33684
|
if (object.rollFees != null)
|
|
32755
33685
|
message.rollFees = Boolean(object.rollFees);
|
|
33686
|
+
if (object.promo != null)
|
|
33687
|
+
message.promo = String(object.promo);
|
|
32756
33688
|
return message;
|
|
32757
33689
|
};
|
|
32758
33690
|
|
|
@@ -32782,6 +33714,7 @@ $root.TicketType = (function() {
|
|
|
32782
33714
|
object.visible = false;
|
|
32783
33715
|
object.description = "";
|
|
32784
33716
|
object.rollFees = false;
|
|
33717
|
+
object.promo = "";
|
|
32785
33718
|
}
|
|
32786
33719
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
32787
33720
|
object._id = message._id;
|
|
@@ -32809,6 +33742,8 @@ $root.TicketType = (function() {
|
|
|
32809
33742
|
object.description = message.description;
|
|
32810
33743
|
if (message.rollFees != null && message.hasOwnProperty("rollFees"))
|
|
32811
33744
|
object.rollFees = message.rollFees;
|
|
33745
|
+
if (message.promo != null && message.hasOwnProperty("promo"))
|
|
33746
|
+
object.promo = message.promo;
|
|
32812
33747
|
return object;
|
|
32813
33748
|
};
|
|
32814
33749
|
|
|
@@ -34437,35 +35372,35 @@ $root.EventCustomFields = (function() {
|
|
|
34437
35372
|
|
|
34438
35373
|
/**
|
|
34439
35374
|
* EventCustomFields minLength.
|
|
34440
|
-
* @member {number} minLength
|
|
35375
|
+
* @member {number|null|undefined} minLength
|
|
34441
35376
|
* @memberof EventCustomFields
|
|
34442
35377
|
* @instance
|
|
34443
35378
|
*/
|
|
34444
|
-
EventCustomFields.prototype.minLength =
|
|
35379
|
+
EventCustomFields.prototype.minLength = null;
|
|
34445
35380
|
|
|
34446
35381
|
/**
|
|
34447
35382
|
* EventCustomFields maxLength.
|
|
34448
|
-
* @member {number} maxLength
|
|
35383
|
+
* @member {number|null|undefined} maxLength
|
|
34449
35384
|
* @memberof EventCustomFields
|
|
34450
35385
|
* @instance
|
|
34451
35386
|
*/
|
|
34452
|
-
EventCustomFields.prototype.maxLength =
|
|
35387
|
+
EventCustomFields.prototype.maxLength = null;
|
|
34453
35388
|
|
|
34454
35389
|
/**
|
|
34455
35390
|
* EventCustomFields minValue.
|
|
34456
|
-
* @member {number} minValue
|
|
35391
|
+
* @member {number|null|undefined} minValue
|
|
34457
35392
|
* @memberof EventCustomFields
|
|
34458
35393
|
* @instance
|
|
34459
35394
|
*/
|
|
34460
|
-
EventCustomFields.prototype.minValue =
|
|
35395
|
+
EventCustomFields.prototype.minValue = null;
|
|
34461
35396
|
|
|
34462
35397
|
/**
|
|
34463
35398
|
* EventCustomFields maxValue.
|
|
34464
|
-
* @member {number} maxValue
|
|
35399
|
+
* @member {number|null|undefined} maxValue
|
|
34465
35400
|
* @memberof EventCustomFields
|
|
34466
35401
|
* @instance
|
|
34467
35402
|
*/
|
|
34468
|
-
EventCustomFields.prototype.maxValue =
|
|
35403
|
+
EventCustomFields.prototype.maxValue = null;
|
|
34469
35404
|
|
|
34470
35405
|
/**
|
|
34471
35406
|
* EventCustomFields required.
|
|
@@ -34491,6 +35426,53 @@ $root.EventCustomFields = (function() {
|
|
|
34491
35426
|
*/
|
|
34492
35427
|
EventCustomFields.prototype.active = false;
|
|
34493
35428
|
|
|
35429
|
+
// OneOf field names bound to virtual getters and setters
|
|
35430
|
+
var $oneOfFields;
|
|
35431
|
+
|
|
35432
|
+
/**
|
|
35433
|
+
* EventCustomFields _minLength.
|
|
35434
|
+
* @member {"minLength"|undefined} _minLength
|
|
35435
|
+
* @memberof EventCustomFields
|
|
35436
|
+
* @instance
|
|
35437
|
+
*/
|
|
35438
|
+
Object.defineProperty(EventCustomFields.prototype, "_minLength", {
|
|
35439
|
+
get: $util.oneOfGetter($oneOfFields = ["minLength"]),
|
|
35440
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35441
|
+
});
|
|
35442
|
+
|
|
35443
|
+
/**
|
|
35444
|
+
* EventCustomFields _maxLength.
|
|
35445
|
+
* @member {"maxLength"|undefined} _maxLength
|
|
35446
|
+
* @memberof EventCustomFields
|
|
35447
|
+
* @instance
|
|
35448
|
+
*/
|
|
35449
|
+
Object.defineProperty(EventCustomFields.prototype, "_maxLength", {
|
|
35450
|
+
get: $util.oneOfGetter($oneOfFields = ["maxLength"]),
|
|
35451
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35452
|
+
});
|
|
35453
|
+
|
|
35454
|
+
/**
|
|
35455
|
+
* EventCustomFields _minValue.
|
|
35456
|
+
* @member {"minValue"|undefined} _minValue
|
|
35457
|
+
* @memberof EventCustomFields
|
|
35458
|
+
* @instance
|
|
35459
|
+
*/
|
|
35460
|
+
Object.defineProperty(EventCustomFields.prototype, "_minValue", {
|
|
35461
|
+
get: $util.oneOfGetter($oneOfFields = ["minValue"]),
|
|
35462
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35463
|
+
});
|
|
35464
|
+
|
|
35465
|
+
/**
|
|
35466
|
+
* EventCustomFields _maxValue.
|
|
35467
|
+
* @member {"maxValue"|undefined} _maxValue
|
|
35468
|
+
* @memberof EventCustomFields
|
|
35469
|
+
* @instance
|
|
35470
|
+
*/
|
|
35471
|
+
Object.defineProperty(EventCustomFields.prototype, "_maxValue", {
|
|
35472
|
+
get: $util.oneOfGetter($oneOfFields = ["maxValue"]),
|
|
35473
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35474
|
+
});
|
|
35475
|
+
|
|
34494
35476
|
/**
|
|
34495
35477
|
* Creates a new EventCustomFields instance using the specified properties.
|
|
34496
35478
|
* @function create
|
|
@@ -34637,6 +35619,7 @@ $root.EventCustomFields = (function() {
|
|
|
34637
35619
|
EventCustomFields.verify = function verify(message) {
|
|
34638
35620
|
if (typeof message !== "object" || message === null)
|
|
34639
35621
|
return "object expected";
|
|
35622
|
+
var properties = {};
|
|
34640
35623
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
34641
35624
|
if (!$util.isString(message._id))
|
|
34642
35625
|
return "_id: string expected";
|
|
@@ -34646,18 +35629,26 @@ $root.EventCustomFields = (function() {
|
|
|
34646
35629
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
34647
35630
|
if (!$util.isString(message.type))
|
|
34648
35631
|
return "type: string expected";
|
|
34649
|
-
if (message.minLength != null && message.hasOwnProperty("minLength"))
|
|
35632
|
+
if (message.minLength != null && message.hasOwnProperty("minLength")) {
|
|
35633
|
+
properties._minLength = 1;
|
|
34650
35634
|
if (!$util.isInteger(message.minLength))
|
|
34651
35635
|
return "minLength: integer expected";
|
|
34652
|
-
|
|
35636
|
+
}
|
|
35637
|
+
if (message.maxLength != null && message.hasOwnProperty("maxLength")) {
|
|
35638
|
+
properties._maxLength = 1;
|
|
34653
35639
|
if (!$util.isInteger(message.maxLength))
|
|
34654
35640
|
return "maxLength: integer expected";
|
|
34655
|
-
|
|
35641
|
+
}
|
|
35642
|
+
if (message.minValue != null && message.hasOwnProperty("minValue")) {
|
|
35643
|
+
properties._minValue = 1;
|
|
34656
35644
|
if (!$util.isInteger(message.minValue))
|
|
34657
35645
|
return "minValue: integer expected";
|
|
34658
|
-
|
|
35646
|
+
}
|
|
35647
|
+
if (message.maxValue != null && message.hasOwnProperty("maxValue")) {
|
|
35648
|
+
properties._maxValue = 1;
|
|
34659
35649
|
if (!$util.isInteger(message.maxValue))
|
|
34660
35650
|
return "maxValue: integer expected";
|
|
35651
|
+
}
|
|
34661
35652
|
if (message.required != null && message.hasOwnProperty("required"))
|
|
34662
35653
|
if (typeof message.required !== "boolean")
|
|
34663
35654
|
return "required: boolean expected";
|
|
@@ -34733,10 +35724,6 @@ $root.EventCustomFields = (function() {
|
|
|
34733
35724
|
object._id = "";
|
|
34734
35725
|
object.label = "";
|
|
34735
35726
|
object.type = "";
|
|
34736
|
-
object.minLength = 0;
|
|
34737
|
-
object.maxLength = 0;
|
|
34738
|
-
object.minValue = 0;
|
|
34739
|
-
object.maxValue = 0;
|
|
34740
35727
|
object.required = false;
|
|
34741
35728
|
object.active = false;
|
|
34742
35729
|
}
|
|
@@ -34746,14 +35733,26 @@ $root.EventCustomFields = (function() {
|
|
|
34746
35733
|
object.label = message.label;
|
|
34747
35734
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
34748
35735
|
object.type = message.type;
|
|
34749
|
-
if (message.minLength != null && message.hasOwnProperty("minLength"))
|
|
35736
|
+
if (message.minLength != null && message.hasOwnProperty("minLength")) {
|
|
34750
35737
|
object.minLength = message.minLength;
|
|
34751
|
-
|
|
35738
|
+
if (options.oneofs)
|
|
35739
|
+
object._minLength = "minLength";
|
|
35740
|
+
}
|
|
35741
|
+
if (message.maxLength != null && message.hasOwnProperty("maxLength")) {
|
|
34752
35742
|
object.maxLength = message.maxLength;
|
|
34753
|
-
|
|
35743
|
+
if (options.oneofs)
|
|
35744
|
+
object._maxLength = "maxLength";
|
|
35745
|
+
}
|
|
35746
|
+
if (message.minValue != null && message.hasOwnProperty("minValue")) {
|
|
34754
35747
|
object.minValue = message.minValue;
|
|
34755
|
-
|
|
35748
|
+
if (options.oneofs)
|
|
35749
|
+
object._minValue = "minValue";
|
|
35750
|
+
}
|
|
35751
|
+
if (message.maxValue != null && message.hasOwnProperty("maxValue")) {
|
|
34756
35752
|
object.maxValue = message.maxValue;
|
|
35753
|
+
if (options.oneofs)
|
|
35754
|
+
object._maxValue = "maxValue";
|
|
35755
|
+
}
|
|
34757
35756
|
if (message.required != null && message.hasOwnProperty("required"))
|
|
34758
35757
|
object.required = message.required;
|
|
34759
35758
|
if (message.options && message.options.length) {
|
|
@@ -36719,6 +37718,7 @@ $root.EventQuery = (function() {
|
|
|
36719
37718
|
* @property {number|null} [orderBy] EventQuery orderBy
|
|
36720
37719
|
* @property {boolean|null} [published] EventQuery published
|
|
36721
37720
|
* @property {boolean|null} [any] EventQuery any
|
|
37721
|
+
* @property {boolean|null} [cancel] EventQuery cancel
|
|
36722
37722
|
*/
|
|
36723
37723
|
|
|
36724
37724
|
/**
|
|
@@ -36828,6 +37828,14 @@ $root.EventQuery = (function() {
|
|
|
36828
37828
|
*/
|
|
36829
37829
|
EventQuery.prototype.any = false;
|
|
36830
37830
|
|
|
37831
|
+
/**
|
|
37832
|
+
* EventQuery cancel.
|
|
37833
|
+
* @member {boolean} cancel
|
|
37834
|
+
* @memberof EventQuery
|
|
37835
|
+
* @instance
|
|
37836
|
+
*/
|
|
37837
|
+
EventQuery.prototype.cancel = false;
|
|
37838
|
+
|
|
36831
37839
|
/**
|
|
36832
37840
|
* Creates a new EventQuery instance using the specified properties.
|
|
36833
37841
|
* @function create
|
|
@@ -36878,6 +37886,8 @@ $root.EventQuery = (function() {
|
|
|
36878
37886
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.published);
|
|
36879
37887
|
if (message.any != null && Object.hasOwnProperty.call(message, "any"))
|
|
36880
37888
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.any);
|
|
37889
|
+
if (message.cancel != null && Object.hasOwnProperty.call(message, "cancel"))
|
|
37890
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.cancel);
|
|
36881
37891
|
return writer;
|
|
36882
37892
|
};
|
|
36883
37893
|
|
|
@@ -36953,6 +37963,9 @@ $root.EventQuery = (function() {
|
|
|
36953
37963
|
case 10:
|
|
36954
37964
|
message.any = reader.bool();
|
|
36955
37965
|
break;
|
|
37966
|
+
case 11:
|
|
37967
|
+
message.cancel = reader.bool();
|
|
37968
|
+
break;
|
|
36956
37969
|
default:
|
|
36957
37970
|
reader.skipType(tag & 7);
|
|
36958
37971
|
break;
|
|
@@ -37037,6 +38050,9 @@ $root.EventQuery = (function() {
|
|
|
37037
38050
|
if (message.any != null && message.hasOwnProperty("any"))
|
|
37038
38051
|
if (typeof message.any !== "boolean")
|
|
37039
38052
|
return "any: boolean expected";
|
|
38053
|
+
if (message.cancel != null && message.hasOwnProperty("cancel"))
|
|
38054
|
+
if (typeof message.cancel !== "boolean")
|
|
38055
|
+
return "cancel: boolean expected";
|
|
37040
38056
|
return null;
|
|
37041
38057
|
};
|
|
37042
38058
|
|
|
@@ -37094,6 +38110,8 @@ $root.EventQuery = (function() {
|
|
|
37094
38110
|
message.published = Boolean(object.published);
|
|
37095
38111
|
if (object.any != null)
|
|
37096
38112
|
message.any = Boolean(object.any);
|
|
38113
|
+
if (object.cancel != null)
|
|
38114
|
+
message.cancel = Boolean(object.cancel);
|
|
37097
38115
|
return message;
|
|
37098
38116
|
};
|
|
37099
38117
|
|
|
@@ -37124,6 +38142,7 @@ $root.EventQuery = (function() {
|
|
|
37124
38142
|
object.orderBy = 0;
|
|
37125
38143
|
object.published = false;
|
|
37126
38144
|
object.any = false;
|
|
38145
|
+
object.cancel = false;
|
|
37127
38146
|
}
|
|
37128
38147
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
37129
38148
|
object.name = message.name;
|
|
@@ -37159,6 +38178,8 @@ $root.EventQuery = (function() {
|
|
|
37159
38178
|
object.published = message.published;
|
|
37160
38179
|
if (message.any != null && message.hasOwnProperty("any"))
|
|
37161
38180
|
object.any = message.any;
|
|
38181
|
+
if (message.cancel != null && message.hasOwnProperty("cancel"))
|
|
38182
|
+
object.cancel = message.cancel;
|
|
37162
38183
|
return object;
|
|
37163
38184
|
};
|
|
37164
38185
|
|
|
@@ -38729,46 +39750,1191 @@ $root.ListEventsResponse = (function() {
|
|
|
38729
39750
|
}
|
|
38730
39751
|
if (object.errors) {
|
|
38731
39752
|
if (!Array.isArray(object.errors))
|
|
38732
|
-
throw TypeError(".ListEventsResponse.errors: array expected");
|
|
39753
|
+
throw TypeError(".ListEventsResponse.errors: array expected");
|
|
39754
|
+
message.errors = [];
|
|
39755
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
39756
|
+
if (typeof object.errors[i] !== "object")
|
|
39757
|
+
throw TypeError(".ListEventsResponse.errors: object expected");
|
|
39758
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
39759
|
+
}
|
|
39760
|
+
}
|
|
39761
|
+
if (object.events) {
|
|
39762
|
+
if (!Array.isArray(object.events))
|
|
39763
|
+
throw TypeError(".ListEventsResponse.events: array expected");
|
|
39764
|
+
message.events = [];
|
|
39765
|
+
for (var i = 0; i < object.events.length; ++i) {
|
|
39766
|
+
if (typeof object.events[i] !== "object")
|
|
39767
|
+
throw TypeError(".ListEventsResponse.events: object expected");
|
|
39768
|
+
message.events[i] = $root.Event.fromObject(object.events[i]);
|
|
39769
|
+
}
|
|
39770
|
+
}
|
|
39771
|
+
return message;
|
|
39772
|
+
};
|
|
39773
|
+
|
|
39774
|
+
/**
|
|
39775
|
+
* Creates a plain object from a ListEventsResponse message. Also converts values to other types if specified.
|
|
39776
|
+
* @function toObject
|
|
39777
|
+
* @memberof ListEventsResponse
|
|
39778
|
+
* @static
|
|
39779
|
+
* @param {ListEventsResponse} message ListEventsResponse
|
|
39780
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39781
|
+
* @returns {Object.<string,*>} Plain object
|
|
39782
|
+
*/
|
|
39783
|
+
ListEventsResponse.toObject = function toObject(message, options) {
|
|
39784
|
+
if (!options)
|
|
39785
|
+
options = {};
|
|
39786
|
+
var object = {};
|
|
39787
|
+
if (options.arrays || options.defaults) {
|
|
39788
|
+
object.errors = [];
|
|
39789
|
+
object.events = [];
|
|
39790
|
+
}
|
|
39791
|
+
if (options.defaults)
|
|
39792
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
39793
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
39794
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
39795
|
+
if (message.errors && message.errors.length) {
|
|
39796
|
+
object.errors = [];
|
|
39797
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
39798
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
39799
|
+
}
|
|
39800
|
+
if (message.events && message.events.length) {
|
|
39801
|
+
object.events = [];
|
|
39802
|
+
for (var j = 0; j < message.events.length; ++j)
|
|
39803
|
+
object.events[j] = $root.Event.toObject(message.events[j], options);
|
|
39804
|
+
}
|
|
39805
|
+
return object;
|
|
39806
|
+
};
|
|
39807
|
+
|
|
39808
|
+
/**
|
|
39809
|
+
* Converts this ListEventsResponse to JSON.
|
|
39810
|
+
* @function toJSON
|
|
39811
|
+
* @memberof ListEventsResponse
|
|
39812
|
+
* @instance
|
|
39813
|
+
* @returns {Object.<string,*>} JSON object
|
|
39814
|
+
*/
|
|
39815
|
+
ListEventsResponse.prototype.toJSON = function toJSON() {
|
|
39816
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39817
|
+
};
|
|
39818
|
+
|
|
39819
|
+
return ListEventsResponse;
|
|
39820
|
+
})();
|
|
39821
|
+
|
|
39822
|
+
$root.DeleteEventRequest = (function() {
|
|
39823
|
+
|
|
39824
|
+
/**
|
|
39825
|
+
* Properties of a DeleteEventRequest.
|
|
39826
|
+
* @exports IDeleteEventRequest
|
|
39827
|
+
* @interface IDeleteEventRequest
|
|
39828
|
+
* @property {string|null} [spanContext] DeleteEventRequest spanContext
|
|
39829
|
+
* @property {string|null} [orgId] DeleteEventRequest orgId
|
|
39830
|
+
* @property {string|null} [eventId] DeleteEventRequest eventId
|
|
39831
|
+
*/
|
|
39832
|
+
|
|
39833
|
+
/**
|
|
39834
|
+
* Constructs a new DeleteEventRequest.
|
|
39835
|
+
* @exports DeleteEventRequest
|
|
39836
|
+
* @classdesc Represents a DeleteEventRequest.
|
|
39837
|
+
* @implements IDeleteEventRequest
|
|
39838
|
+
* @constructor
|
|
39839
|
+
* @param {IDeleteEventRequest=} [properties] Properties to set
|
|
39840
|
+
*/
|
|
39841
|
+
function DeleteEventRequest(properties) {
|
|
39842
|
+
if (properties)
|
|
39843
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39844
|
+
if (properties[keys[i]] != null)
|
|
39845
|
+
this[keys[i]] = properties[keys[i]];
|
|
39846
|
+
}
|
|
39847
|
+
|
|
39848
|
+
/**
|
|
39849
|
+
* DeleteEventRequest spanContext.
|
|
39850
|
+
* @member {string} spanContext
|
|
39851
|
+
* @memberof DeleteEventRequest
|
|
39852
|
+
* @instance
|
|
39853
|
+
*/
|
|
39854
|
+
DeleteEventRequest.prototype.spanContext = "";
|
|
39855
|
+
|
|
39856
|
+
/**
|
|
39857
|
+
* DeleteEventRequest orgId.
|
|
39858
|
+
* @member {string} orgId
|
|
39859
|
+
* @memberof DeleteEventRequest
|
|
39860
|
+
* @instance
|
|
39861
|
+
*/
|
|
39862
|
+
DeleteEventRequest.prototype.orgId = "";
|
|
39863
|
+
|
|
39864
|
+
/**
|
|
39865
|
+
* DeleteEventRequest eventId.
|
|
39866
|
+
* @member {string} eventId
|
|
39867
|
+
* @memberof DeleteEventRequest
|
|
39868
|
+
* @instance
|
|
39869
|
+
*/
|
|
39870
|
+
DeleteEventRequest.prototype.eventId = "";
|
|
39871
|
+
|
|
39872
|
+
/**
|
|
39873
|
+
* Creates a new DeleteEventRequest instance using the specified properties.
|
|
39874
|
+
* @function create
|
|
39875
|
+
* @memberof DeleteEventRequest
|
|
39876
|
+
* @static
|
|
39877
|
+
* @param {IDeleteEventRequest=} [properties] Properties to set
|
|
39878
|
+
* @returns {DeleteEventRequest} DeleteEventRequest instance
|
|
39879
|
+
*/
|
|
39880
|
+
DeleteEventRequest.create = function create(properties) {
|
|
39881
|
+
return new DeleteEventRequest(properties);
|
|
39882
|
+
};
|
|
39883
|
+
|
|
39884
|
+
/**
|
|
39885
|
+
* Encodes the specified DeleteEventRequest message. Does not implicitly {@link DeleteEventRequest.verify|verify} messages.
|
|
39886
|
+
* @function encode
|
|
39887
|
+
* @memberof DeleteEventRequest
|
|
39888
|
+
* @static
|
|
39889
|
+
* @param {IDeleteEventRequest} message DeleteEventRequest message or plain object to encode
|
|
39890
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39891
|
+
* @returns {$protobuf.Writer} Writer
|
|
39892
|
+
*/
|
|
39893
|
+
DeleteEventRequest.encode = function encode(message, writer) {
|
|
39894
|
+
if (!writer)
|
|
39895
|
+
writer = $Writer.create();
|
|
39896
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
39897
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
39898
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
39899
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
|
|
39900
|
+
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
39901
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventId);
|
|
39902
|
+
return writer;
|
|
39903
|
+
};
|
|
39904
|
+
|
|
39905
|
+
/**
|
|
39906
|
+
* Encodes the specified DeleteEventRequest message, length delimited. Does not implicitly {@link DeleteEventRequest.verify|verify} messages.
|
|
39907
|
+
* @function encodeDelimited
|
|
39908
|
+
* @memberof DeleteEventRequest
|
|
39909
|
+
* @static
|
|
39910
|
+
* @param {IDeleteEventRequest} message DeleteEventRequest message or plain object to encode
|
|
39911
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39912
|
+
* @returns {$protobuf.Writer} Writer
|
|
39913
|
+
*/
|
|
39914
|
+
DeleteEventRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39915
|
+
return this.encode(message, writer).ldelim();
|
|
39916
|
+
};
|
|
39917
|
+
|
|
39918
|
+
/**
|
|
39919
|
+
* Decodes a DeleteEventRequest message from the specified reader or buffer.
|
|
39920
|
+
* @function decode
|
|
39921
|
+
* @memberof DeleteEventRequest
|
|
39922
|
+
* @static
|
|
39923
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39924
|
+
* @param {number} [length] Message length if known beforehand
|
|
39925
|
+
* @returns {DeleteEventRequest} DeleteEventRequest
|
|
39926
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39927
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39928
|
+
*/
|
|
39929
|
+
DeleteEventRequest.decode = function decode(reader, length) {
|
|
39930
|
+
if (!(reader instanceof $Reader))
|
|
39931
|
+
reader = $Reader.create(reader);
|
|
39932
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteEventRequest();
|
|
39933
|
+
while (reader.pos < end) {
|
|
39934
|
+
var tag = reader.uint32();
|
|
39935
|
+
switch (tag >>> 3) {
|
|
39936
|
+
case 0:
|
|
39937
|
+
message.spanContext = reader.string();
|
|
39938
|
+
break;
|
|
39939
|
+
case 1:
|
|
39940
|
+
message.orgId = reader.string();
|
|
39941
|
+
break;
|
|
39942
|
+
case 2:
|
|
39943
|
+
message.eventId = reader.string();
|
|
39944
|
+
break;
|
|
39945
|
+
default:
|
|
39946
|
+
reader.skipType(tag & 7);
|
|
39947
|
+
break;
|
|
39948
|
+
}
|
|
39949
|
+
}
|
|
39950
|
+
return message;
|
|
39951
|
+
};
|
|
39952
|
+
|
|
39953
|
+
/**
|
|
39954
|
+
* Decodes a DeleteEventRequest message from the specified reader or buffer, length delimited.
|
|
39955
|
+
* @function decodeDelimited
|
|
39956
|
+
* @memberof DeleteEventRequest
|
|
39957
|
+
* @static
|
|
39958
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39959
|
+
* @returns {DeleteEventRequest} DeleteEventRequest
|
|
39960
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39961
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39962
|
+
*/
|
|
39963
|
+
DeleteEventRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
39964
|
+
if (!(reader instanceof $Reader))
|
|
39965
|
+
reader = new $Reader(reader);
|
|
39966
|
+
return this.decode(reader, reader.uint32());
|
|
39967
|
+
};
|
|
39968
|
+
|
|
39969
|
+
/**
|
|
39970
|
+
* Verifies a DeleteEventRequest message.
|
|
39971
|
+
* @function verify
|
|
39972
|
+
* @memberof DeleteEventRequest
|
|
39973
|
+
* @static
|
|
39974
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
39975
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39976
|
+
*/
|
|
39977
|
+
DeleteEventRequest.verify = function verify(message) {
|
|
39978
|
+
if (typeof message !== "object" || message === null)
|
|
39979
|
+
return "object expected";
|
|
39980
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
39981
|
+
if (!$util.isString(message.spanContext))
|
|
39982
|
+
return "spanContext: string expected";
|
|
39983
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
39984
|
+
if (!$util.isString(message.orgId))
|
|
39985
|
+
return "orgId: string expected";
|
|
39986
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
39987
|
+
if (!$util.isString(message.eventId))
|
|
39988
|
+
return "eventId: string expected";
|
|
39989
|
+
return null;
|
|
39990
|
+
};
|
|
39991
|
+
|
|
39992
|
+
/**
|
|
39993
|
+
* Creates a DeleteEventRequest message from a plain object. Also converts values to their respective internal types.
|
|
39994
|
+
* @function fromObject
|
|
39995
|
+
* @memberof DeleteEventRequest
|
|
39996
|
+
* @static
|
|
39997
|
+
* @param {Object.<string,*>} object Plain object
|
|
39998
|
+
* @returns {DeleteEventRequest} DeleteEventRequest
|
|
39999
|
+
*/
|
|
40000
|
+
DeleteEventRequest.fromObject = function fromObject(object) {
|
|
40001
|
+
if (object instanceof $root.DeleteEventRequest)
|
|
40002
|
+
return object;
|
|
40003
|
+
var message = new $root.DeleteEventRequest();
|
|
40004
|
+
if (object.spanContext != null)
|
|
40005
|
+
message.spanContext = String(object.spanContext);
|
|
40006
|
+
if (object.orgId != null)
|
|
40007
|
+
message.orgId = String(object.orgId);
|
|
40008
|
+
if (object.eventId != null)
|
|
40009
|
+
message.eventId = String(object.eventId);
|
|
40010
|
+
return message;
|
|
40011
|
+
};
|
|
40012
|
+
|
|
40013
|
+
/**
|
|
40014
|
+
* Creates a plain object from a DeleteEventRequest message. Also converts values to other types if specified.
|
|
40015
|
+
* @function toObject
|
|
40016
|
+
* @memberof DeleteEventRequest
|
|
40017
|
+
* @static
|
|
40018
|
+
* @param {DeleteEventRequest} message DeleteEventRequest
|
|
40019
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40020
|
+
* @returns {Object.<string,*>} Plain object
|
|
40021
|
+
*/
|
|
40022
|
+
DeleteEventRequest.toObject = function toObject(message, options) {
|
|
40023
|
+
if (!options)
|
|
40024
|
+
options = {};
|
|
40025
|
+
var object = {};
|
|
40026
|
+
if (options.defaults) {
|
|
40027
|
+
object.spanContext = "";
|
|
40028
|
+
object.orgId = "";
|
|
40029
|
+
object.eventId = "";
|
|
40030
|
+
}
|
|
40031
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
40032
|
+
object.spanContext = message.spanContext;
|
|
40033
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
40034
|
+
object.orgId = message.orgId;
|
|
40035
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
40036
|
+
object.eventId = message.eventId;
|
|
40037
|
+
return object;
|
|
40038
|
+
};
|
|
40039
|
+
|
|
40040
|
+
/**
|
|
40041
|
+
* Converts this DeleteEventRequest to JSON.
|
|
40042
|
+
* @function toJSON
|
|
40043
|
+
* @memberof DeleteEventRequest
|
|
40044
|
+
* @instance
|
|
40045
|
+
* @returns {Object.<string,*>} JSON object
|
|
40046
|
+
*/
|
|
40047
|
+
DeleteEventRequest.prototype.toJSON = function toJSON() {
|
|
40048
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40049
|
+
};
|
|
40050
|
+
|
|
40051
|
+
return DeleteEventRequest;
|
|
40052
|
+
})();
|
|
40053
|
+
|
|
40054
|
+
$root.DeleteEventResponse = (function() {
|
|
40055
|
+
|
|
40056
|
+
/**
|
|
40057
|
+
* Properties of a DeleteEventResponse.
|
|
40058
|
+
* @exports IDeleteEventResponse
|
|
40059
|
+
* @interface IDeleteEventResponse
|
|
40060
|
+
* @property {StatusCode|null} [status] DeleteEventResponse status
|
|
40061
|
+
* @property {Array.<IError>|null} [errors] DeleteEventResponse errors
|
|
40062
|
+
* @property {number|null} [ordersCount] DeleteEventResponse ordersCount
|
|
40063
|
+
* @property {number|null} [ordersRefundedCount] DeleteEventResponse ordersRefundedCount
|
|
40064
|
+
* @property {boolean|null} [deleted] DeleteEventResponse deleted
|
|
40065
|
+
*/
|
|
40066
|
+
|
|
40067
|
+
/**
|
|
40068
|
+
* Constructs a new DeleteEventResponse.
|
|
40069
|
+
* @exports DeleteEventResponse
|
|
40070
|
+
* @classdesc Represents a DeleteEventResponse.
|
|
40071
|
+
* @implements IDeleteEventResponse
|
|
40072
|
+
* @constructor
|
|
40073
|
+
* @param {IDeleteEventResponse=} [properties] Properties to set
|
|
40074
|
+
*/
|
|
40075
|
+
function DeleteEventResponse(properties) {
|
|
40076
|
+
this.errors = [];
|
|
40077
|
+
if (properties)
|
|
40078
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40079
|
+
if (properties[keys[i]] != null)
|
|
40080
|
+
this[keys[i]] = properties[keys[i]];
|
|
40081
|
+
}
|
|
40082
|
+
|
|
40083
|
+
/**
|
|
40084
|
+
* DeleteEventResponse status.
|
|
40085
|
+
* @member {StatusCode} status
|
|
40086
|
+
* @memberof DeleteEventResponse
|
|
40087
|
+
* @instance
|
|
40088
|
+
*/
|
|
40089
|
+
DeleteEventResponse.prototype.status = 0;
|
|
40090
|
+
|
|
40091
|
+
/**
|
|
40092
|
+
* DeleteEventResponse errors.
|
|
40093
|
+
* @member {Array.<IError>} errors
|
|
40094
|
+
* @memberof DeleteEventResponse
|
|
40095
|
+
* @instance
|
|
40096
|
+
*/
|
|
40097
|
+
DeleteEventResponse.prototype.errors = $util.emptyArray;
|
|
40098
|
+
|
|
40099
|
+
/**
|
|
40100
|
+
* DeleteEventResponse ordersCount.
|
|
40101
|
+
* @member {number} ordersCount
|
|
40102
|
+
* @memberof DeleteEventResponse
|
|
40103
|
+
* @instance
|
|
40104
|
+
*/
|
|
40105
|
+
DeleteEventResponse.prototype.ordersCount = 0;
|
|
40106
|
+
|
|
40107
|
+
/**
|
|
40108
|
+
* DeleteEventResponse ordersRefundedCount.
|
|
40109
|
+
* @member {number} ordersRefundedCount
|
|
40110
|
+
* @memberof DeleteEventResponse
|
|
40111
|
+
* @instance
|
|
40112
|
+
*/
|
|
40113
|
+
DeleteEventResponse.prototype.ordersRefundedCount = 0;
|
|
40114
|
+
|
|
40115
|
+
/**
|
|
40116
|
+
* DeleteEventResponse deleted.
|
|
40117
|
+
* @member {boolean} deleted
|
|
40118
|
+
* @memberof DeleteEventResponse
|
|
40119
|
+
* @instance
|
|
40120
|
+
*/
|
|
40121
|
+
DeleteEventResponse.prototype.deleted = false;
|
|
40122
|
+
|
|
40123
|
+
/**
|
|
40124
|
+
* Creates a new DeleteEventResponse instance using the specified properties.
|
|
40125
|
+
* @function create
|
|
40126
|
+
* @memberof DeleteEventResponse
|
|
40127
|
+
* @static
|
|
40128
|
+
* @param {IDeleteEventResponse=} [properties] Properties to set
|
|
40129
|
+
* @returns {DeleteEventResponse} DeleteEventResponse instance
|
|
40130
|
+
*/
|
|
40131
|
+
DeleteEventResponse.create = function create(properties) {
|
|
40132
|
+
return new DeleteEventResponse(properties);
|
|
40133
|
+
};
|
|
40134
|
+
|
|
40135
|
+
/**
|
|
40136
|
+
* Encodes the specified DeleteEventResponse message. Does not implicitly {@link DeleteEventResponse.verify|verify} messages.
|
|
40137
|
+
* @function encode
|
|
40138
|
+
* @memberof DeleteEventResponse
|
|
40139
|
+
* @static
|
|
40140
|
+
* @param {IDeleteEventResponse} message DeleteEventResponse message or plain object to encode
|
|
40141
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40142
|
+
* @returns {$protobuf.Writer} Writer
|
|
40143
|
+
*/
|
|
40144
|
+
DeleteEventResponse.encode = function encode(message, writer) {
|
|
40145
|
+
if (!writer)
|
|
40146
|
+
writer = $Writer.create();
|
|
40147
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
40148
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
40149
|
+
if (message.errors != null && message.errors.length)
|
|
40150
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
40151
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
40152
|
+
if (message.ordersCount != null && Object.hasOwnProperty.call(message, "ordersCount"))
|
|
40153
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ordersCount);
|
|
40154
|
+
if (message.ordersRefundedCount != null && Object.hasOwnProperty.call(message, "ordersRefundedCount"))
|
|
40155
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.ordersRefundedCount);
|
|
40156
|
+
if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted"))
|
|
40157
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.deleted);
|
|
40158
|
+
return writer;
|
|
40159
|
+
};
|
|
40160
|
+
|
|
40161
|
+
/**
|
|
40162
|
+
* Encodes the specified DeleteEventResponse message, length delimited. Does not implicitly {@link DeleteEventResponse.verify|verify} messages.
|
|
40163
|
+
* @function encodeDelimited
|
|
40164
|
+
* @memberof DeleteEventResponse
|
|
40165
|
+
* @static
|
|
40166
|
+
* @param {IDeleteEventResponse} message DeleteEventResponse message or plain object to encode
|
|
40167
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40168
|
+
* @returns {$protobuf.Writer} Writer
|
|
40169
|
+
*/
|
|
40170
|
+
DeleteEventResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40171
|
+
return this.encode(message, writer).ldelim();
|
|
40172
|
+
};
|
|
40173
|
+
|
|
40174
|
+
/**
|
|
40175
|
+
* Decodes a DeleteEventResponse message from the specified reader or buffer.
|
|
40176
|
+
* @function decode
|
|
40177
|
+
* @memberof DeleteEventResponse
|
|
40178
|
+
* @static
|
|
40179
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40180
|
+
* @param {number} [length] Message length if known beforehand
|
|
40181
|
+
* @returns {DeleteEventResponse} DeleteEventResponse
|
|
40182
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40183
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40184
|
+
*/
|
|
40185
|
+
DeleteEventResponse.decode = function decode(reader, length) {
|
|
40186
|
+
if (!(reader instanceof $Reader))
|
|
40187
|
+
reader = $Reader.create(reader);
|
|
40188
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteEventResponse();
|
|
40189
|
+
while (reader.pos < end) {
|
|
40190
|
+
var tag = reader.uint32();
|
|
40191
|
+
switch (tag >>> 3) {
|
|
40192
|
+
case 0:
|
|
40193
|
+
message.status = reader.int32();
|
|
40194
|
+
break;
|
|
40195
|
+
case 1:
|
|
40196
|
+
if (!(message.errors && message.errors.length))
|
|
40197
|
+
message.errors = [];
|
|
40198
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
40199
|
+
break;
|
|
40200
|
+
case 2:
|
|
40201
|
+
message.ordersCount = reader.int32();
|
|
40202
|
+
break;
|
|
40203
|
+
case 3:
|
|
40204
|
+
message.ordersRefundedCount = reader.int32();
|
|
40205
|
+
break;
|
|
40206
|
+
case 4:
|
|
40207
|
+
message.deleted = reader.bool();
|
|
40208
|
+
break;
|
|
40209
|
+
default:
|
|
40210
|
+
reader.skipType(tag & 7);
|
|
40211
|
+
break;
|
|
40212
|
+
}
|
|
40213
|
+
}
|
|
40214
|
+
return message;
|
|
40215
|
+
};
|
|
40216
|
+
|
|
40217
|
+
/**
|
|
40218
|
+
* Decodes a DeleteEventResponse message from the specified reader or buffer, length delimited.
|
|
40219
|
+
* @function decodeDelimited
|
|
40220
|
+
* @memberof DeleteEventResponse
|
|
40221
|
+
* @static
|
|
40222
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40223
|
+
* @returns {DeleteEventResponse} DeleteEventResponse
|
|
40224
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40225
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40226
|
+
*/
|
|
40227
|
+
DeleteEventResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
40228
|
+
if (!(reader instanceof $Reader))
|
|
40229
|
+
reader = new $Reader(reader);
|
|
40230
|
+
return this.decode(reader, reader.uint32());
|
|
40231
|
+
};
|
|
40232
|
+
|
|
40233
|
+
/**
|
|
40234
|
+
* Verifies a DeleteEventResponse message.
|
|
40235
|
+
* @function verify
|
|
40236
|
+
* @memberof DeleteEventResponse
|
|
40237
|
+
* @static
|
|
40238
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40239
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40240
|
+
*/
|
|
40241
|
+
DeleteEventResponse.verify = function verify(message) {
|
|
40242
|
+
if (typeof message !== "object" || message === null)
|
|
40243
|
+
return "object expected";
|
|
40244
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
40245
|
+
switch (message.status) {
|
|
40246
|
+
default:
|
|
40247
|
+
return "status: enum value expected";
|
|
40248
|
+
case 0:
|
|
40249
|
+
case 200:
|
|
40250
|
+
case 400:
|
|
40251
|
+
case 401:
|
|
40252
|
+
case 403:
|
|
40253
|
+
case 422:
|
|
40254
|
+
case 500:
|
|
40255
|
+
case 504:
|
|
40256
|
+
break;
|
|
40257
|
+
}
|
|
40258
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
40259
|
+
if (!Array.isArray(message.errors))
|
|
40260
|
+
return "errors: array expected";
|
|
40261
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
40262
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
40263
|
+
if (error)
|
|
40264
|
+
return "errors." + error;
|
|
40265
|
+
}
|
|
40266
|
+
}
|
|
40267
|
+
if (message.ordersCount != null && message.hasOwnProperty("ordersCount"))
|
|
40268
|
+
if (!$util.isInteger(message.ordersCount))
|
|
40269
|
+
return "ordersCount: integer expected";
|
|
40270
|
+
if (message.ordersRefundedCount != null && message.hasOwnProperty("ordersRefundedCount"))
|
|
40271
|
+
if (!$util.isInteger(message.ordersRefundedCount))
|
|
40272
|
+
return "ordersRefundedCount: integer expected";
|
|
40273
|
+
if (message.deleted != null && message.hasOwnProperty("deleted"))
|
|
40274
|
+
if (typeof message.deleted !== "boolean")
|
|
40275
|
+
return "deleted: boolean expected";
|
|
40276
|
+
return null;
|
|
40277
|
+
};
|
|
40278
|
+
|
|
40279
|
+
/**
|
|
40280
|
+
* Creates a DeleteEventResponse message from a plain object. Also converts values to their respective internal types.
|
|
40281
|
+
* @function fromObject
|
|
40282
|
+
* @memberof DeleteEventResponse
|
|
40283
|
+
* @static
|
|
40284
|
+
* @param {Object.<string,*>} object Plain object
|
|
40285
|
+
* @returns {DeleteEventResponse} DeleteEventResponse
|
|
40286
|
+
*/
|
|
40287
|
+
DeleteEventResponse.fromObject = function fromObject(object) {
|
|
40288
|
+
if (object instanceof $root.DeleteEventResponse)
|
|
40289
|
+
return object;
|
|
40290
|
+
var message = new $root.DeleteEventResponse();
|
|
40291
|
+
switch (object.status) {
|
|
40292
|
+
case "UNKNOWN_CODE":
|
|
40293
|
+
case 0:
|
|
40294
|
+
message.status = 0;
|
|
40295
|
+
break;
|
|
40296
|
+
case "OK":
|
|
40297
|
+
case 200:
|
|
40298
|
+
message.status = 200;
|
|
40299
|
+
break;
|
|
40300
|
+
case "BAD_REQUEST":
|
|
40301
|
+
case 400:
|
|
40302
|
+
message.status = 400;
|
|
40303
|
+
break;
|
|
40304
|
+
case "UNAUTHORIZED":
|
|
40305
|
+
case 401:
|
|
40306
|
+
message.status = 401;
|
|
40307
|
+
break;
|
|
40308
|
+
case "FORBIDDEN":
|
|
40309
|
+
case 403:
|
|
40310
|
+
message.status = 403;
|
|
40311
|
+
break;
|
|
40312
|
+
case "UNPROCESSABLE_ENTITY":
|
|
40313
|
+
case 422:
|
|
40314
|
+
message.status = 422;
|
|
40315
|
+
break;
|
|
40316
|
+
case "INTERNAL_SERVER_ERROR":
|
|
40317
|
+
case 500:
|
|
40318
|
+
message.status = 500;
|
|
40319
|
+
break;
|
|
40320
|
+
case "GATEWAY_TIMEOUT":
|
|
40321
|
+
case 504:
|
|
40322
|
+
message.status = 504;
|
|
40323
|
+
break;
|
|
40324
|
+
}
|
|
40325
|
+
if (object.errors) {
|
|
40326
|
+
if (!Array.isArray(object.errors))
|
|
40327
|
+
throw TypeError(".DeleteEventResponse.errors: array expected");
|
|
40328
|
+
message.errors = [];
|
|
40329
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
40330
|
+
if (typeof object.errors[i] !== "object")
|
|
40331
|
+
throw TypeError(".DeleteEventResponse.errors: object expected");
|
|
40332
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
40333
|
+
}
|
|
40334
|
+
}
|
|
40335
|
+
if (object.ordersCount != null)
|
|
40336
|
+
message.ordersCount = object.ordersCount | 0;
|
|
40337
|
+
if (object.ordersRefundedCount != null)
|
|
40338
|
+
message.ordersRefundedCount = object.ordersRefundedCount | 0;
|
|
40339
|
+
if (object.deleted != null)
|
|
40340
|
+
message.deleted = Boolean(object.deleted);
|
|
40341
|
+
return message;
|
|
40342
|
+
};
|
|
40343
|
+
|
|
40344
|
+
/**
|
|
40345
|
+
* Creates a plain object from a DeleteEventResponse message. Also converts values to other types if specified.
|
|
40346
|
+
* @function toObject
|
|
40347
|
+
* @memberof DeleteEventResponse
|
|
40348
|
+
* @static
|
|
40349
|
+
* @param {DeleteEventResponse} message DeleteEventResponse
|
|
40350
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40351
|
+
* @returns {Object.<string,*>} Plain object
|
|
40352
|
+
*/
|
|
40353
|
+
DeleteEventResponse.toObject = function toObject(message, options) {
|
|
40354
|
+
if (!options)
|
|
40355
|
+
options = {};
|
|
40356
|
+
var object = {};
|
|
40357
|
+
if (options.arrays || options.defaults)
|
|
40358
|
+
object.errors = [];
|
|
40359
|
+
if (options.defaults) {
|
|
40360
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
40361
|
+
object.ordersCount = 0;
|
|
40362
|
+
object.ordersRefundedCount = 0;
|
|
40363
|
+
object.deleted = false;
|
|
40364
|
+
}
|
|
40365
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
40366
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
40367
|
+
if (message.errors && message.errors.length) {
|
|
40368
|
+
object.errors = [];
|
|
40369
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
40370
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
40371
|
+
}
|
|
40372
|
+
if (message.ordersCount != null && message.hasOwnProperty("ordersCount"))
|
|
40373
|
+
object.ordersCount = message.ordersCount;
|
|
40374
|
+
if (message.ordersRefundedCount != null && message.hasOwnProperty("ordersRefundedCount"))
|
|
40375
|
+
object.ordersRefundedCount = message.ordersRefundedCount;
|
|
40376
|
+
if (message.deleted != null && message.hasOwnProperty("deleted"))
|
|
40377
|
+
object.deleted = message.deleted;
|
|
40378
|
+
return object;
|
|
40379
|
+
};
|
|
40380
|
+
|
|
40381
|
+
/**
|
|
40382
|
+
* Converts this DeleteEventResponse to JSON.
|
|
40383
|
+
* @function toJSON
|
|
40384
|
+
* @memberof DeleteEventResponse
|
|
40385
|
+
* @instance
|
|
40386
|
+
* @returns {Object.<string,*>} JSON object
|
|
40387
|
+
*/
|
|
40388
|
+
DeleteEventResponse.prototype.toJSON = function toJSON() {
|
|
40389
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40390
|
+
};
|
|
40391
|
+
|
|
40392
|
+
return DeleteEventResponse;
|
|
40393
|
+
})();
|
|
40394
|
+
|
|
40395
|
+
$root.CancelEventRequest = (function() {
|
|
40396
|
+
|
|
40397
|
+
/**
|
|
40398
|
+
* Properties of a CancelEventRequest.
|
|
40399
|
+
* @exports ICancelEventRequest
|
|
40400
|
+
* @interface ICancelEventRequest
|
|
40401
|
+
* @property {string|null} [spanContext] CancelEventRequest spanContext
|
|
40402
|
+
* @property {string|null} [orgId] CancelEventRequest orgId
|
|
40403
|
+
* @property {string|null} [eventId] CancelEventRequest eventId
|
|
40404
|
+
*/
|
|
40405
|
+
|
|
40406
|
+
/**
|
|
40407
|
+
* Constructs a new CancelEventRequest.
|
|
40408
|
+
* @exports CancelEventRequest
|
|
40409
|
+
* @classdesc Represents a CancelEventRequest.
|
|
40410
|
+
* @implements ICancelEventRequest
|
|
40411
|
+
* @constructor
|
|
40412
|
+
* @param {ICancelEventRequest=} [properties] Properties to set
|
|
40413
|
+
*/
|
|
40414
|
+
function CancelEventRequest(properties) {
|
|
40415
|
+
if (properties)
|
|
40416
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40417
|
+
if (properties[keys[i]] != null)
|
|
40418
|
+
this[keys[i]] = properties[keys[i]];
|
|
40419
|
+
}
|
|
40420
|
+
|
|
40421
|
+
/**
|
|
40422
|
+
* CancelEventRequest spanContext.
|
|
40423
|
+
* @member {string} spanContext
|
|
40424
|
+
* @memberof CancelEventRequest
|
|
40425
|
+
* @instance
|
|
40426
|
+
*/
|
|
40427
|
+
CancelEventRequest.prototype.spanContext = "";
|
|
40428
|
+
|
|
40429
|
+
/**
|
|
40430
|
+
* CancelEventRequest orgId.
|
|
40431
|
+
* @member {string} orgId
|
|
40432
|
+
* @memberof CancelEventRequest
|
|
40433
|
+
* @instance
|
|
40434
|
+
*/
|
|
40435
|
+
CancelEventRequest.prototype.orgId = "";
|
|
40436
|
+
|
|
40437
|
+
/**
|
|
40438
|
+
* CancelEventRequest eventId.
|
|
40439
|
+
* @member {string} eventId
|
|
40440
|
+
* @memberof CancelEventRequest
|
|
40441
|
+
* @instance
|
|
40442
|
+
*/
|
|
40443
|
+
CancelEventRequest.prototype.eventId = "";
|
|
40444
|
+
|
|
40445
|
+
/**
|
|
40446
|
+
* Creates a new CancelEventRequest instance using the specified properties.
|
|
40447
|
+
* @function create
|
|
40448
|
+
* @memberof CancelEventRequest
|
|
40449
|
+
* @static
|
|
40450
|
+
* @param {ICancelEventRequest=} [properties] Properties to set
|
|
40451
|
+
* @returns {CancelEventRequest} CancelEventRequest instance
|
|
40452
|
+
*/
|
|
40453
|
+
CancelEventRequest.create = function create(properties) {
|
|
40454
|
+
return new CancelEventRequest(properties);
|
|
40455
|
+
};
|
|
40456
|
+
|
|
40457
|
+
/**
|
|
40458
|
+
* Encodes the specified CancelEventRequest message. Does not implicitly {@link CancelEventRequest.verify|verify} messages.
|
|
40459
|
+
* @function encode
|
|
40460
|
+
* @memberof CancelEventRequest
|
|
40461
|
+
* @static
|
|
40462
|
+
* @param {ICancelEventRequest} message CancelEventRequest message or plain object to encode
|
|
40463
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40464
|
+
* @returns {$protobuf.Writer} Writer
|
|
40465
|
+
*/
|
|
40466
|
+
CancelEventRequest.encode = function encode(message, writer) {
|
|
40467
|
+
if (!writer)
|
|
40468
|
+
writer = $Writer.create();
|
|
40469
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
40470
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
40471
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
40472
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
|
|
40473
|
+
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
40474
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventId);
|
|
40475
|
+
return writer;
|
|
40476
|
+
};
|
|
40477
|
+
|
|
40478
|
+
/**
|
|
40479
|
+
* Encodes the specified CancelEventRequest message, length delimited. Does not implicitly {@link CancelEventRequest.verify|verify} messages.
|
|
40480
|
+
* @function encodeDelimited
|
|
40481
|
+
* @memberof CancelEventRequest
|
|
40482
|
+
* @static
|
|
40483
|
+
* @param {ICancelEventRequest} message CancelEventRequest message or plain object to encode
|
|
40484
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40485
|
+
* @returns {$protobuf.Writer} Writer
|
|
40486
|
+
*/
|
|
40487
|
+
CancelEventRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40488
|
+
return this.encode(message, writer).ldelim();
|
|
40489
|
+
};
|
|
40490
|
+
|
|
40491
|
+
/**
|
|
40492
|
+
* Decodes a CancelEventRequest message from the specified reader or buffer.
|
|
40493
|
+
* @function decode
|
|
40494
|
+
* @memberof CancelEventRequest
|
|
40495
|
+
* @static
|
|
40496
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40497
|
+
* @param {number} [length] Message length if known beforehand
|
|
40498
|
+
* @returns {CancelEventRequest} CancelEventRequest
|
|
40499
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40500
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40501
|
+
*/
|
|
40502
|
+
CancelEventRequest.decode = function decode(reader, length) {
|
|
40503
|
+
if (!(reader instanceof $Reader))
|
|
40504
|
+
reader = $Reader.create(reader);
|
|
40505
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CancelEventRequest();
|
|
40506
|
+
while (reader.pos < end) {
|
|
40507
|
+
var tag = reader.uint32();
|
|
40508
|
+
switch (tag >>> 3) {
|
|
40509
|
+
case 0:
|
|
40510
|
+
message.spanContext = reader.string();
|
|
40511
|
+
break;
|
|
40512
|
+
case 1:
|
|
40513
|
+
message.orgId = reader.string();
|
|
40514
|
+
break;
|
|
40515
|
+
case 2:
|
|
40516
|
+
message.eventId = reader.string();
|
|
40517
|
+
break;
|
|
40518
|
+
default:
|
|
40519
|
+
reader.skipType(tag & 7);
|
|
40520
|
+
break;
|
|
40521
|
+
}
|
|
40522
|
+
}
|
|
40523
|
+
return message;
|
|
40524
|
+
};
|
|
40525
|
+
|
|
40526
|
+
/**
|
|
40527
|
+
* Decodes a CancelEventRequest message from the specified reader or buffer, length delimited.
|
|
40528
|
+
* @function decodeDelimited
|
|
40529
|
+
* @memberof CancelEventRequest
|
|
40530
|
+
* @static
|
|
40531
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40532
|
+
* @returns {CancelEventRequest} CancelEventRequest
|
|
40533
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40534
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40535
|
+
*/
|
|
40536
|
+
CancelEventRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
40537
|
+
if (!(reader instanceof $Reader))
|
|
40538
|
+
reader = new $Reader(reader);
|
|
40539
|
+
return this.decode(reader, reader.uint32());
|
|
40540
|
+
};
|
|
40541
|
+
|
|
40542
|
+
/**
|
|
40543
|
+
* Verifies a CancelEventRequest message.
|
|
40544
|
+
* @function verify
|
|
40545
|
+
* @memberof CancelEventRequest
|
|
40546
|
+
* @static
|
|
40547
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40548
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40549
|
+
*/
|
|
40550
|
+
CancelEventRequest.verify = function verify(message) {
|
|
40551
|
+
if (typeof message !== "object" || message === null)
|
|
40552
|
+
return "object expected";
|
|
40553
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
40554
|
+
if (!$util.isString(message.spanContext))
|
|
40555
|
+
return "spanContext: string expected";
|
|
40556
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
40557
|
+
if (!$util.isString(message.orgId))
|
|
40558
|
+
return "orgId: string expected";
|
|
40559
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
40560
|
+
if (!$util.isString(message.eventId))
|
|
40561
|
+
return "eventId: string expected";
|
|
40562
|
+
return null;
|
|
40563
|
+
};
|
|
40564
|
+
|
|
40565
|
+
/**
|
|
40566
|
+
* Creates a CancelEventRequest message from a plain object. Also converts values to their respective internal types.
|
|
40567
|
+
* @function fromObject
|
|
40568
|
+
* @memberof CancelEventRequest
|
|
40569
|
+
* @static
|
|
40570
|
+
* @param {Object.<string,*>} object Plain object
|
|
40571
|
+
* @returns {CancelEventRequest} CancelEventRequest
|
|
40572
|
+
*/
|
|
40573
|
+
CancelEventRequest.fromObject = function fromObject(object) {
|
|
40574
|
+
if (object instanceof $root.CancelEventRequest)
|
|
40575
|
+
return object;
|
|
40576
|
+
var message = new $root.CancelEventRequest();
|
|
40577
|
+
if (object.spanContext != null)
|
|
40578
|
+
message.spanContext = String(object.spanContext);
|
|
40579
|
+
if (object.orgId != null)
|
|
40580
|
+
message.orgId = String(object.orgId);
|
|
40581
|
+
if (object.eventId != null)
|
|
40582
|
+
message.eventId = String(object.eventId);
|
|
40583
|
+
return message;
|
|
40584
|
+
};
|
|
40585
|
+
|
|
40586
|
+
/**
|
|
40587
|
+
* Creates a plain object from a CancelEventRequest message. Also converts values to other types if specified.
|
|
40588
|
+
* @function toObject
|
|
40589
|
+
* @memberof CancelEventRequest
|
|
40590
|
+
* @static
|
|
40591
|
+
* @param {CancelEventRequest} message CancelEventRequest
|
|
40592
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40593
|
+
* @returns {Object.<string,*>} Plain object
|
|
40594
|
+
*/
|
|
40595
|
+
CancelEventRequest.toObject = function toObject(message, options) {
|
|
40596
|
+
if (!options)
|
|
40597
|
+
options = {};
|
|
40598
|
+
var object = {};
|
|
40599
|
+
if (options.defaults) {
|
|
40600
|
+
object.spanContext = "";
|
|
40601
|
+
object.orgId = "";
|
|
40602
|
+
object.eventId = "";
|
|
40603
|
+
}
|
|
40604
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
40605
|
+
object.spanContext = message.spanContext;
|
|
40606
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
40607
|
+
object.orgId = message.orgId;
|
|
40608
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
40609
|
+
object.eventId = message.eventId;
|
|
40610
|
+
return object;
|
|
40611
|
+
};
|
|
40612
|
+
|
|
40613
|
+
/**
|
|
40614
|
+
* Converts this CancelEventRequest to JSON.
|
|
40615
|
+
* @function toJSON
|
|
40616
|
+
* @memberof CancelEventRequest
|
|
40617
|
+
* @instance
|
|
40618
|
+
* @returns {Object.<string,*>} JSON object
|
|
40619
|
+
*/
|
|
40620
|
+
CancelEventRequest.prototype.toJSON = function toJSON() {
|
|
40621
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40622
|
+
};
|
|
40623
|
+
|
|
40624
|
+
return CancelEventRequest;
|
|
40625
|
+
})();
|
|
40626
|
+
|
|
40627
|
+
$root.CancelEventResponse = (function() {
|
|
40628
|
+
|
|
40629
|
+
/**
|
|
40630
|
+
* Properties of a CancelEventResponse.
|
|
40631
|
+
* @exports ICancelEventResponse
|
|
40632
|
+
* @interface ICancelEventResponse
|
|
40633
|
+
* @property {StatusCode|null} [status] CancelEventResponse status
|
|
40634
|
+
* @property {Array.<IError>|null} [errors] CancelEventResponse errors
|
|
40635
|
+
* @property {number|null} [ordersCount] CancelEventResponse ordersCount
|
|
40636
|
+
* @property {number|null} [ordersRefundedCount] CancelEventResponse ordersRefundedCount
|
|
40637
|
+
* @property {boolean|null} [cancel] CancelEventResponse cancel
|
|
40638
|
+
*/
|
|
40639
|
+
|
|
40640
|
+
/**
|
|
40641
|
+
* Constructs a new CancelEventResponse.
|
|
40642
|
+
* @exports CancelEventResponse
|
|
40643
|
+
* @classdesc Represents a CancelEventResponse.
|
|
40644
|
+
* @implements ICancelEventResponse
|
|
40645
|
+
* @constructor
|
|
40646
|
+
* @param {ICancelEventResponse=} [properties] Properties to set
|
|
40647
|
+
*/
|
|
40648
|
+
function CancelEventResponse(properties) {
|
|
40649
|
+
this.errors = [];
|
|
40650
|
+
if (properties)
|
|
40651
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40652
|
+
if (properties[keys[i]] != null)
|
|
40653
|
+
this[keys[i]] = properties[keys[i]];
|
|
40654
|
+
}
|
|
40655
|
+
|
|
40656
|
+
/**
|
|
40657
|
+
* CancelEventResponse status.
|
|
40658
|
+
* @member {StatusCode} status
|
|
40659
|
+
* @memberof CancelEventResponse
|
|
40660
|
+
* @instance
|
|
40661
|
+
*/
|
|
40662
|
+
CancelEventResponse.prototype.status = 0;
|
|
40663
|
+
|
|
40664
|
+
/**
|
|
40665
|
+
* CancelEventResponse errors.
|
|
40666
|
+
* @member {Array.<IError>} errors
|
|
40667
|
+
* @memberof CancelEventResponse
|
|
40668
|
+
* @instance
|
|
40669
|
+
*/
|
|
40670
|
+
CancelEventResponse.prototype.errors = $util.emptyArray;
|
|
40671
|
+
|
|
40672
|
+
/**
|
|
40673
|
+
* CancelEventResponse ordersCount.
|
|
40674
|
+
* @member {number} ordersCount
|
|
40675
|
+
* @memberof CancelEventResponse
|
|
40676
|
+
* @instance
|
|
40677
|
+
*/
|
|
40678
|
+
CancelEventResponse.prototype.ordersCount = 0;
|
|
40679
|
+
|
|
40680
|
+
/**
|
|
40681
|
+
* CancelEventResponse ordersRefundedCount.
|
|
40682
|
+
* @member {number} ordersRefundedCount
|
|
40683
|
+
* @memberof CancelEventResponse
|
|
40684
|
+
* @instance
|
|
40685
|
+
*/
|
|
40686
|
+
CancelEventResponse.prototype.ordersRefundedCount = 0;
|
|
40687
|
+
|
|
40688
|
+
/**
|
|
40689
|
+
* CancelEventResponse cancel.
|
|
40690
|
+
* @member {boolean} cancel
|
|
40691
|
+
* @memberof CancelEventResponse
|
|
40692
|
+
* @instance
|
|
40693
|
+
*/
|
|
40694
|
+
CancelEventResponse.prototype.cancel = false;
|
|
40695
|
+
|
|
40696
|
+
/**
|
|
40697
|
+
* Creates a new CancelEventResponse instance using the specified properties.
|
|
40698
|
+
* @function create
|
|
40699
|
+
* @memberof CancelEventResponse
|
|
40700
|
+
* @static
|
|
40701
|
+
* @param {ICancelEventResponse=} [properties] Properties to set
|
|
40702
|
+
* @returns {CancelEventResponse} CancelEventResponse instance
|
|
40703
|
+
*/
|
|
40704
|
+
CancelEventResponse.create = function create(properties) {
|
|
40705
|
+
return new CancelEventResponse(properties);
|
|
40706
|
+
};
|
|
40707
|
+
|
|
40708
|
+
/**
|
|
40709
|
+
* Encodes the specified CancelEventResponse message. Does not implicitly {@link CancelEventResponse.verify|verify} messages.
|
|
40710
|
+
* @function encode
|
|
40711
|
+
* @memberof CancelEventResponse
|
|
40712
|
+
* @static
|
|
40713
|
+
* @param {ICancelEventResponse} message CancelEventResponse message or plain object to encode
|
|
40714
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40715
|
+
* @returns {$protobuf.Writer} Writer
|
|
40716
|
+
*/
|
|
40717
|
+
CancelEventResponse.encode = function encode(message, writer) {
|
|
40718
|
+
if (!writer)
|
|
40719
|
+
writer = $Writer.create();
|
|
40720
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
40721
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
40722
|
+
if (message.errors != null && message.errors.length)
|
|
40723
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
40724
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
40725
|
+
if (message.ordersCount != null && Object.hasOwnProperty.call(message, "ordersCount"))
|
|
40726
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ordersCount);
|
|
40727
|
+
if (message.ordersRefundedCount != null && Object.hasOwnProperty.call(message, "ordersRefundedCount"))
|
|
40728
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.ordersRefundedCount);
|
|
40729
|
+
if (message.cancel != null && Object.hasOwnProperty.call(message, "cancel"))
|
|
40730
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.cancel);
|
|
40731
|
+
return writer;
|
|
40732
|
+
};
|
|
40733
|
+
|
|
40734
|
+
/**
|
|
40735
|
+
* Encodes the specified CancelEventResponse message, length delimited. Does not implicitly {@link CancelEventResponse.verify|verify} messages.
|
|
40736
|
+
* @function encodeDelimited
|
|
40737
|
+
* @memberof CancelEventResponse
|
|
40738
|
+
* @static
|
|
40739
|
+
* @param {ICancelEventResponse} message CancelEventResponse message or plain object to encode
|
|
40740
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40741
|
+
* @returns {$protobuf.Writer} Writer
|
|
40742
|
+
*/
|
|
40743
|
+
CancelEventResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40744
|
+
return this.encode(message, writer).ldelim();
|
|
40745
|
+
};
|
|
40746
|
+
|
|
40747
|
+
/**
|
|
40748
|
+
* Decodes a CancelEventResponse message from the specified reader or buffer.
|
|
40749
|
+
* @function decode
|
|
40750
|
+
* @memberof CancelEventResponse
|
|
40751
|
+
* @static
|
|
40752
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40753
|
+
* @param {number} [length] Message length if known beforehand
|
|
40754
|
+
* @returns {CancelEventResponse} CancelEventResponse
|
|
40755
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40756
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40757
|
+
*/
|
|
40758
|
+
CancelEventResponse.decode = function decode(reader, length) {
|
|
40759
|
+
if (!(reader instanceof $Reader))
|
|
40760
|
+
reader = $Reader.create(reader);
|
|
40761
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CancelEventResponse();
|
|
40762
|
+
while (reader.pos < end) {
|
|
40763
|
+
var tag = reader.uint32();
|
|
40764
|
+
switch (tag >>> 3) {
|
|
40765
|
+
case 0:
|
|
40766
|
+
message.status = reader.int32();
|
|
40767
|
+
break;
|
|
40768
|
+
case 1:
|
|
40769
|
+
if (!(message.errors && message.errors.length))
|
|
40770
|
+
message.errors = [];
|
|
40771
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
40772
|
+
break;
|
|
40773
|
+
case 2:
|
|
40774
|
+
message.ordersCount = reader.int32();
|
|
40775
|
+
break;
|
|
40776
|
+
case 3:
|
|
40777
|
+
message.ordersRefundedCount = reader.int32();
|
|
40778
|
+
break;
|
|
40779
|
+
case 4:
|
|
40780
|
+
message.cancel = reader.bool();
|
|
40781
|
+
break;
|
|
40782
|
+
default:
|
|
40783
|
+
reader.skipType(tag & 7);
|
|
40784
|
+
break;
|
|
40785
|
+
}
|
|
40786
|
+
}
|
|
40787
|
+
return message;
|
|
40788
|
+
};
|
|
40789
|
+
|
|
40790
|
+
/**
|
|
40791
|
+
* Decodes a CancelEventResponse message from the specified reader or buffer, length delimited.
|
|
40792
|
+
* @function decodeDelimited
|
|
40793
|
+
* @memberof CancelEventResponse
|
|
40794
|
+
* @static
|
|
40795
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40796
|
+
* @returns {CancelEventResponse} CancelEventResponse
|
|
40797
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40798
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40799
|
+
*/
|
|
40800
|
+
CancelEventResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
40801
|
+
if (!(reader instanceof $Reader))
|
|
40802
|
+
reader = new $Reader(reader);
|
|
40803
|
+
return this.decode(reader, reader.uint32());
|
|
40804
|
+
};
|
|
40805
|
+
|
|
40806
|
+
/**
|
|
40807
|
+
* Verifies a CancelEventResponse message.
|
|
40808
|
+
* @function verify
|
|
40809
|
+
* @memberof CancelEventResponse
|
|
40810
|
+
* @static
|
|
40811
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40812
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40813
|
+
*/
|
|
40814
|
+
CancelEventResponse.verify = function verify(message) {
|
|
40815
|
+
if (typeof message !== "object" || message === null)
|
|
40816
|
+
return "object expected";
|
|
40817
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
40818
|
+
switch (message.status) {
|
|
40819
|
+
default:
|
|
40820
|
+
return "status: enum value expected";
|
|
40821
|
+
case 0:
|
|
40822
|
+
case 200:
|
|
40823
|
+
case 400:
|
|
40824
|
+
case 401:
|
|
40825
|
+
case 403:
|
|
40826
|
+
case 422:
|
|
40827
|
+
case 500:
|
|
40828
|
+
case 504:
|
|
40829
|
+
break;
|
|
40830
|
+
}
|
|
40831
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
40832
|
+
if (!Array.isArray(message.errors))
|
|
40833
|
+
return "errors: array expected";
|
|
40834
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
40835
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
40836
|
+
if (error)
|
|
40837
|
+
return "errors." + error;
|
|
40838
|
+
}
|
|
40839
|
+
}
|
|
40840
|
+
if (message.ordersCount != null && message.hasOwnProperty("ordersCount"))
|
|
40841
|
+
if (!$util.isInteger(message.ordersCount))
|
|
40842
|
+
return "ordersCount: integer expected";
|
|
40843
|
+
if (message.ordersRefundedCount != null && message.hasOwnProperty("ordersRefundedCount"))
|
|
40844
|
+
if (!$util.isInteger(message.ordersRefundedCount))
|
|
40845
|
+
return "ordersRefundedCount: integer expected";
|
|
40846
|
+
if (message.cancel != null && message.hasOwnProperty("cancel"))
|
|
40847
|
+
if (typeof message.cancel !== "boolean")
|
|
40848
|
+
return "cancel: boolean expected";
|
|
40849
|
+
return null;
|
|
40850
|
+
};
|
|
40851
|
+
|
|
40852
|
+
/**
|
|
40853
|
+
* Creates a CancelEventResponse message from a plain object. Also converts values to their respective internal types.
|
|
40854
|
+
* @function fromObject
|
|
40855
|
+
* @memberof CancelEventResponse
|
|
40856
|
+
* @static
|
|
40857
|
+
* @param {Object.<string,*>} object Plain object
|
|
40858
|
+
* @returns {CancelEventResponse} CancelEventResponse
|
|
40859
|
+
*/
|
|
40860
|
+
CancelEventResponse.fromObject = function fromObject(object) {
|
|
40861
|
+
if (object instanceof $root.CancelEventResponse)
|
|
40862
|
+
return object;
|
|
40863
|
+
var message = new $root.CancelEventResponse();
|
|
40864
|
+
switch (object.status) {
|
|
40865
|
+
case "UNKNOWN_CODE":
|
|
40866
|
+
case 0:
|
|
40867
|
+
message.status = 0;
|
|
40868
|
+
break;
|
|
40869
|
+
case "OK":
|
|
40870
|
+
case 200:
|
|
40871
|
+
message.status = 200;
|
|
40872
|
+
break;
|
|
40873
|
+
case "BAD_REQUEST":
|
|
40874
|
+
case 400:
|
|
40875
|
+
message.status = 400;
|
|
40876
|
+
break;
|
|
40877
|
+
case "UNAUTHORIZED":
|
|
40878
|
+
case 401:
|
|
40879
|
+
message.status = 401;
|
|
40880
|
+
break;
|
|
40881
|
+
case "FORBIDDEN":
|
|
40882
|
+
case 403:
|
|
40883
|
+
message.status = 403;
|
|
40884
|
+
break;
|
|
40885
|
+
case "UNPROCESSABLE_ENTITY":
|
|
40886
|
+
case 422:
|
|
40887
|
+
message.status = 422;
|
|
40888
|
+
break;
|
|
40889
|
+
case "INTERNAL_SERVER_ERROR":
|
|
40890
|
+
case 500:
|
|
40891
|
+
message.status = 500;
|
|
40892
|
+
break;
|
|
40893
|
+
case "GATEWAY_TIMEOUT":
|
|
40894
|
+
case 504:
|
|
40895
|
+
message.status = 504;
|
|
40896
|
+
break;
|
|
40897
|
+
}
|
|
40898
|
+
if (object.errors) {
|
|
40899
|
+
if (!Array.isArray(object.errors))
|
|
40900
|
+
throw TypeError(".CancelEventResponse.errors: array expected");
|
|
38733
40901
|
message.errors = [];
|
|
38734
40902
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
38735
40903
|
if (typeof object.errors[i] !== "object")
|
|
38736
|
-
throw TypeError(".
|
|
40904
|
+
throw TypeError(".CancelEventResponse.errors: object expected");
|
|
38737
40905
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
38738
40906
|
}
|
|
38739
40907
|
}
|
|
38740
|
-
if (object.
|
|
38741
|
-
|
|
38742
|
-
|
|
38743
|
-
message.
|
|
38744
|
-
|
|
38745
|
-
|
|
38746
|
-
throw TypeError(".ListEventsResponse.events: object expected");
|
|
38747
|
-
message.events[i] = $root.Event.fromObject(object.events[i]);
|
|
38748
|
-
}
|
|
38749
|
-
}
|
|
40908
|
+
if (object.ordersCount != null)
|
|
40909
|
+
message.ordersCount = object.ordersCount | 0;
|
|
40910
|
+
if (object.ordersRefundedCount != null)
|
|
40911
|
+
message.ordersRefundedCount = object.ordersRefundedCount | 0;
|
|
40912
|
+
if (object.cancel != null)
|
|
40913
|
+
message.cancel = Boolean(object.cancel);
|
|
38750
40914
|
return message;
|
|
38751
40915
|
};
|
|
38752
40916
|
|
|
38753
40917
|
/**
|
|
38754
|
-
* Creates a plain object from a
|
|
40918
|
+
* Creates a plain object from a CancelEventResponse message. Also converts values to other types if specified.
|
|
38755
40919
|
* @function toObject
|
|
38756
|
-
* @memberof
|
|
40920
|
+
* @memberof CancelEventResponse
|
|
38757
40921
|
* @static
|
|
38758
|
-
* @param {
|
|
40922
|
+
* @param {CancelEventResponse} message CancelEventResponse
|
|
38759
40923
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
38760
40924
|
* @returns {Object.<string,*>} Plain object
|
|
38761
40925
|
*/
|
|
38762
|
-
|
|
40926
|
+
CancelEventResponse.toObject = function toObject(message, options) {
|
|
38763
40927
|
if (!options)
|
|
38764
40928
|
options = {};
|
|
38765
40929
|
var object = {};
|
|
38766
|
-
if (options.arrays || options.defaults)
|
|
40930
|
+
if (options.arrays || options.defaults)
|
|
38767
40931
|
object.errors = [];
|
|
38768
|
-
|
|
38769
|
-
}
|
|
38770
|
-
if (options.defaults)
|
|
40932
|
+
if (options.defaults) {
|
|
38771
40933
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
40934
|
+
object.ordersCount = 0;
|
|
40935
|
+
object.ordersRefundedCount = 0;
|
|
40936
|
+
object.cancel = false;
|
|
40937
|
+
}
|
|
38772
40938
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
38773
40939
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
38774
40940
|
if (message.errors && message.errors.length) {
|
|
@@ -38776,48 +40942,54 @@ $root.ListEventsResponse = (function() {
|
|
|
38776
40942
|
for (var j = 0; j < message.errors.length; ++j)
|
|
38777
40943
|
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
38778
40944
|
}
|
|
38779
|
-
if (message.
|
|
38780
|
-
object.
|
|
38781
|
-
|
|
38782
|
-
|
|
38783
|
-
|
|
40945
|
+
if (message.ordersCount != null && message.hasOwnProperty("ordersCount"))
|
|
40946
|
+
object.ordersCount = message.ordersCount;
|
|
40947
|
+
if (message.ordersRefundedCount != null && message.hasOwnProperty("ordersRefundedCount"))
|
|
40948
|
+
object.ordersRefundedCount = message.ordersRefundedCount;
|
|
40949
|
+
if (message.cancel != null && message.hasOwnProperty("cancel"))
|
|
40950
|
+
object.cancel = message.cancel;
|
|
38784
40951
|
return object;
|
|
38785
40952
|
};
|
|
38786
40953
|
|
|
38787
40954
|
/**
|
|
38788
|
-
* Converts this
|
|
40955
|
+
* Converts this CancelEventResponse to JSON.
|
|
38789
40956
|
* @function toJSON
|
|
38790
|
-
* @memberof
|
|
40957
|
+
* @memberof CancelEventResponse
|
|
38791
40958
|
* @instance
|
|
38792
40959
|
* @returns {Object.<string,*>} JSON object
|
|
38793
40960
|
*/
|
|
38794
|
-
|
|
40961
|
+
CancelEventResponse.prototype.toJSON = function toJSON() {
|
|
38795
40962
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
38796
40963
|
};
|
|
38797
40964
|
|
|
38798
|
-
return
|
|
40965
|
+
return CancelEventResponse;
|
|
38799
40966
|
})();
|
|
38800
40967
|
|
|
38801
|
-
$root.
|
|
40968
|
+
$root.CancelTicketRequest = (function() {
|
|
38802
40969
|
|
|
38803
40970
|
/**
|
|
38804
|
-
* Properties of a
|
|
38805
|
-
* @exports
|
|
38806
|
-
* @interface
|
|
38807
|
-
* @property {string|null} [spanContext]
|
|
38808
|
-
* @property {string|null} [orgId]
|
|
38809
|
-
* @property {string|null} [eventId]
|
|
40971
|
+
* Properties of a CancelTicketRequest.
|
|
40972
|
+
* @exports ICancelTicketRequest
|
|
40973
|
+
* @interface ICancelTicketRequest
|
|
40974
|
+
* @property {string|null} [spanContext] CancelTicketRequest spanContext
|
|
40975
|
+
* @property {string|null} [orgId] CancelTicketRequest orgId
|
|
40976
|
+
* @property {string|null} [eventId] CancelTicketRequest eventId
|
|
40977
|
+
* @property {Array.<string>|null} [ticketTypeId] CancelTicketRequest ticketTypeId
|
|
40978
|
+
* @property {Array.<string>|null} [upgradesTypeId] CancelTicketRequest upgradesTypeId
|
|
40979
|
+
* @property {string|null} [promotionCode] CancelTicketRequest promotionCode
|
|
38810
40980
|
*/
|
|
38811
40981
|
|
|
38812
40982
|
/**
|
|
38813
|
-
* Constructs a new
|
|
38814
|
-
* @exports
|
|
38815
|
-
* @classdesc Represents a
|
|
38816
|
-
* @implements
|
|
40983
|
+
* Constructs a new CancelTicketRequest.
|
|
40984
|
+
* @exports CancelTicketRequest
|
|
40985
|
+
* @classdesc Represents a CancelTicketRequest.
|
|
40986
|
+
* @implements ICancelTicketRequest
|
|
38817
40987
|
* @constructor
|
|
38818
|
-
* @param {
|
|
40988
|
+
* @param {ICancelTicketRequest=} [properties] Properties to set
|
|
38819
40989
|
*/
|
|
38820
|
-
function
|
|
40990
|
+
function CancelTicketRequest(properties) {
|
|
40991
|
+
this.ticketTypeId = [];
|
|
40992
|
+
this.upgradesTypeId = [];
|
|
38821
40993
|
if (properties)
|
|
38822
40994
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
38823
40995
|
if (properties[keys[i]] != null)
|
|
@@ -38825,51 +40997,75 @@ $root.DeleteEventRequest = (function() {
|
|
|
38825
40997
|
}
|
|
38826
40998
|
|
|
38827
40999
|
/**
|
|
38828
|
-
*
|
|
41000
|
+
* CancelTicketRequest spanContext.
|
|
38829
41001
|
* @member {string} spanContext
|
|
38830
|
-
* @memberof
|
|
41002
|
+
* @memberof CancelTicketRequest
|
|
38831
41003
|
* @instance
|
|
38832
41004
|
*/
|
|
38833
|
-
|
|
41005
|
+
CancelTicketRequest.prototype.spanContext = "";
|
|
38834
41006
|
|
|
38835
41007
|
/**
|
|
38836
|
-
*
|
|
41008
|
+
* CancelTicketRequest orgId.
|
|
38837
41009
|
* @member {string} orgId
|
|
38838
|
-
* @memberof
|
|
41010
|
+
* @memberof CancelTicketRequest
|
|
38839
41011
|
* @instance
|
|
38840
41012
|
*/
|
|
38841
|
-
|
|
41013
|
+
CancelTicketRequest.prototype.orgId = "";
|
|
38842
41014
|
|
|
38843
41015
|
/**
|
|
38844
|
-
*
|
|
41016
|
+
* CancelTicketRequest eventId.
|
|
38845
41017
|
* @member {string} eventId
|
|
38846
|
-
* @memberof
|
|
41018
|
+
* @memberof CancelTicketRequest
|
|
38847
41019
|
* @instance
|
|
38848
41020
|
*/
|
|
38849
|
-
|
|
41021
|
+
CancelTicketRequest.prototype.eventId = "";
|
|
38850
41022
|
|
|
38851
41023
|
/**
|
|
38852
|
-
*
|
|
41024
|
+
* CancelTicketRequest ticketTypeId.
|
|
41025
|
+
* @member {Array.<string>} ticketTypeId
|
|
41026
|
+
* @memberof CancelTicketRequest
|
|
41027
|
+
* @instance
|
|
41028
|
+
*/
|
|
41029
|
+
CancelTicketRequest.prototype.ticketTypeId = $util.emptyArray;
|
|
41030
|
+
|
|
41031
|
+
/**
|
|
41032
|
+
* CancelTicketRequest upgradesTypeId.
|
|
41033
|
+
* @member {Array.<string>} upgradesTypeId
|
|
41034
|
+
* @memberof CancelTicketRequest
|
|
41035
|
+
* @instance
|
|
41036
|
+
*/
|
|
41037
|
+
CancelTicketRequest.prototype.upgradesTypeId = $util.emptyArray;
|
|
41038
|
+
|
|
41039
|
+
/**
|
|
41040
|
+
* CancelTicketRequest promotionCode.
|
|
41041
|
+
* @member {string} promotionCode
|
|
41042
|
+
* @memberof CancelTicketRequest
|
|
41043
|
+
* @instance
|
|
41044
|
+
*/
|
|
41045
|
+
CancelTicketRequest.prototype.promotionCode = "";
|
|
41046
|
+
|
|
41047
|
+
/**
|
|
41048
|
+
* Creates a new CancelTicketRequest instance using the specified properties.
|
|
38853
41049
|
* @function create
|
|
38854
|
-
* @memberof
|
|
41050
|
+
* @memberof CancelTicketRequest
|
|
38855
41051
|
* @static
|
|
38856
|
-
* @param {
|
|
38857
|
-
* @returns {
|
|
41052
|
+
* @param {ICancelTicketRequest=} [properties] Properties to set
|
|
41053
|
+
* @returns {CancelTicketRequest} CancelTicketRequest instance
|
|
38858
41054
|
*/
|
|
38859
|
-
|
|
38860
|
-
return new
|
|
41055
|
+
CancelTicketRequest.create = function create(properties) {
|
|
41056
|
+
return new CancelTicketRequest(properties);
|
|
38861
41057
|
};
|
|
38862
41058
|
|
|
38863
41059
|
/**
|
|
38864
|
-
* Encodes the specified
|
|
41060
|
+
* Encodes the specified CancelTicketRequest message. Does not implicitly {@link CancelTicketRequest.verify|verify} messages.
|
|
38865
41061
|
* @function encode
|
|
38866
|
-
* @memberof
|
|
41062
|
+
* @memberof CancelTicketRequest
|
|
38867
41063
|
* @static
|
|
38868
|
-
* @param {
|
|
41064
|
+
* @param {ICancelTicketRequest} message CancelTicketRequest message or plain object to encode
|
|
38869
41065
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38870
41066
|
* @returns {$protobuf.Writer} Writer
|
|
38871
41067
|
*/
|
|
38872
|
-
|
|
41068
|
+
CancelTicketRequest.encode = function encode(message, writer) {
|
|
38873
41069
|
if (!writer)
|
|
38874
41070
|
writer = $Writer.create();
|
|
38875
41071
|
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
@@ -38878,37 +41074,45 @@ $root.DeleteEventRequest = (function() {
|
|
|
38878
41074
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
|
|
38879
41075
|
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
38880
41076
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventId);
|
|
41077
|
+
if (message.ticketTypeId != null && message.ticketTypeId.length)
|
|
41078
|
+
for (var i = 0; i < message.ticketTypeId.length; ++i)
|
|
41079
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.ticketTypeId[i]);
|
|
41080
|
+
if (message.upgradesTypeId != null && message.upgradesTypeId.length)
|
|
41081
|
+
for (var i = 0; i < message.upgradesTypeId.length; ++i)
|
|
41082
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.upgradesTypeId[i]);
|
|
41083
|
+
if (message.promotionCode != null && Object.hasOwnProperty.call(message, "promotionCode"))
|
|
41084
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.promotionCode);
|
|
38881
41085
|
return writer;
|
|
38882
41086
|
};
|
|
38883
41087
|
|
|
38884
41088
|
/**
|
|
38885
|
-
* Encodes the specified
|
|
41089
|
+
* Encodes the specified CancelTicketRequest message, length delimited. Does not implicitly {@link CancelTicketRequest.verify|verify} messages.
|
|
38886
41090
|
* @function encodeDelimited
|
|
38887
|
-
* @memberof
|
|
41091
|
+
* @memberof CancelTicketRequest
|
|
38888
41092
|
* @static
|
|
38889
|
-
* @param {
|
|
41093
|
+
* @param {ICancelTicketRequest} message CancelTicketRequest message or plain object to encode
|
|
38890
41094
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38891
41095
|
* @returns {$protobuf.Writer} Writer
|
|
38892
41096
|
*/
|
|
38893
|
-
|
|
41097
|
+
CancelTicketRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
38894
41098
|
return this.encode(message, writer).ldelim();
|
|
38895
41099
|
};
|
|
38896
41100
|
|
|
38897
41101
|
/**
|
|
38898
|
-
* Decodes a
|
|
41102
|
+
* Decodes a CancelTicketRequest message from the specified reader or buffer.
|
|
38899
41103
|
* @function decode
|
|
38900
|
-
* @memberof
|
|
41104
|
+
* @memberof CancelTicketRequest
|
|
38901
41105
|
* @static
|
|
38902
41106
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38903
41107
|
* @param {number} [length] Message length if known beforehand
|
|
38904
|
-
* @returns {
|
|
41108
|
+
* @returns {CancelTicketRequest} CancelTicketRequest
|
|
38905
41109
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38906
41110
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38907
41111
|
*/
|
|
38908
|
-
|
|
41112
|
+
CancelTicketRequest.decode = function decode(reader, length) {
|
|
38909
41113
|
if (!(reader instanceof $Reader))
|
|
38910
41114
|
reader = $Reader.create(reader);
|
|
38911
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
41115
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CancelTicketRequest();
|
|
38912
41116
|
while (reader.pos < end) {
|
|
38913
41117
|
var tag = reader.uint32();
|
|
38914
41118
|
switch (tag >>> 3) {
|
|
@@ -38921,6 +41125,19 @@ $root.DeleteEventRequest = (function() {
|
|
|
38921
41125
|
case 2:
|
|
38922
41126
|
message.eventId = reader.string();
|
|
38923
41127
|
break;
|
|
41128
|
+
case 3:
|
|
41129
|
+
if (!(message.ticketTypeId && message.ticketTypeId.length))
|
|
41130
|
+
message.ticketTypeId = [];
|
|
41131
|
+
message.ticketTypeId.push(reader.string());
|
|
41132
|
+
break;
|
|
41133
|
+
case 4:
|
|
41134
|
+
if (!(message.upgradesTypeId && message.upgradesTypeId.length))
|
|
41135
|
+
message.upgradesTypeId = [];
|
|
41136
|
+
message.upgradesTypeId.push(reader.string());
|
|
41137
|
+
break;
|
|
41138
|
+
case 5:
|
|
41139
|
+
message.promotionCode = reader.string();
|
|
41140
|
+
break;
|
|
38924
41141
|
default:
|
|
38925
41142
|
reader.skipType(tag & 7);
|
|
38926
41143
|
break;
|
|
@@ -38930,30 +41147,30 @@ $root.DeleteEventRequest = (function() {
|
|
|
38930
41147
|
};
|
|
38931
41148
|
|
|
38932
41149
|
/**
|
|
38933
|
-
* Decodes a
|
|
41150
|
+
* Decodes a CancelTicketRequest message from the specified reader or buffer, length delimited.
|
|
38934
41151
|
* @function decodeDelimited
|
|
38935
|
-
* @memberof
|
|
41152
|
+
* @memberof CancelTicketRequest
|
|
38936
41153
|
* @static
|
|
38937
41154
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38938
|
-
* @returns {
|
|
41155
|
+
* @returns {CancelTicketRequest} CancelTicketRequest
|
|
38939
41156
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38940
41157
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38941
41158
|
*/
|
|
38942
|
-
|
|
41159
|
+
CancelTicketRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
38943
41160
|
if (!(reader instanceof $Reader))
|
|
38944
41161
|
reader = new $Reader(reader);
|
|
38945
41162
|
return this.decode(reader, reader.uint32());
|
|
38946
41163
|
};
|
|
38947
41164
|
|
|
38948
41165
|
/**
|
|
38949
|
-
* Verifies a
|
|
41166
|
+
* Verifies a CancelTicketRequest message.
|
|
38950
41167
|
* @function verify
|
|
38951
|
-
* @memberof
|
|
41168
|
+
* @memberof CancelTicketRequest
|
|
38952
41169
|
* @static
|
|
38953
41170
|
* @param {Object.<string,*>} message Plain object to verify
|
|
38954
41171
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
38955
41172
|
*/
|
|
38956
|
-
|
|
41173
|
+
CancelTicketRequest.verify = function verify(message) {
|
|
38957
41174
|
if (typeof message !== "object" || message === null)
|
|
38958
41175
|
return "object expected";
|
|
38959
41176
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
@@ -38965,47 +41182,85 @@ $root.DeleteEventRequest = (function() {
|
|
|
38965
41182
|
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
38966
41183
|
if (!$util.isString(message.eventId))
|
|
38967
41184
|
return "eventId: string expected";
|
|
41185
|
+
if (message.ticketTypeId != null && message.hasOwnProperty("ticketTypeId")) {
|
|
41186
|
+
if (!Array.isArray(message.ticketTypeId))
|
|
41187
|
+
return "ticketTypeId: array expected";
|
|
41188
|
+
for (var i = 0; i < message.ticketTypeId.length; ++i)
|
|
41189
|
+
if (!$util.isString(message.ticketTypeId[i]))
|
|
41190
|
+
return "ticketTypeId: string[] expected";
|
|
41191
|
+
}
|
|
41192
|
+
if (message.upgradesTypeId != null && message.hasOwnProperty("upgradesTypeId")) {
|
|
41193
|
+
if (!Array.isArray(message.upgradesTypeId))
|
|
41194
|
+
return "upgradesTypeId: array expected";
|
|
41195
|
+
for (var i = 0; i < message.upgradesTypeId.length; ++i)
|
|
41196
|
+
if (!$util.isString(message.upgradesTypeId[i]))
|
|
41197
|
+
return "upgradesTypeId: string[] expected";
|
|
41198
|
+
}
|
|
41199
|
+
if (message.promotionCode != null && message.hasOwnProperty("promotionCode"))
|
|
41200
|
+
if (!$util.isString(message.promotionCode))
|
|
41201
|
+
return "promotionCode: string expected";
|
|
38968
41202
|
return null;
|
|
38969
41203
|
};
|
|
38970
41204
|
|
|
38971
41205
|
/**
|
|
38972
|
-
* Creates a
|
|
41206
|
+
* Creates a CancelTicketRequest message from a plain object. Also converts values to their respective internal types.
|
|
38973
41207
|
* @function fromObject
|
|
38974
|
-
* @memberof
|
|
41208
|
+
* @memberof CancelTicketRequest
|
|
38975
41209
|
* @static
|
|
38976
41210
|
* @param {Object.<string,*>} object Plain object
|
|
38977
|
-
* @returns {
|
|
41211
|
+
* @returns {CancelTicketRequest} CancelTicketRequest
|
|
38978
41212
|
*/
|
|
38979
|
-
|
|
38980
|
-
if (object instanceof $root.
|
|
41213
|
+
CancelTicketRequest.fromObject = function fromObject(object) {
|
|
41214
|
+
if (object instanceof $root.CancelTicketRequest)
|
|
38981
41215
|
return object;
|
|
38982
|
-
var message = new $root.
|
|
41216
|
+
var message = new $root.CancelTicketRequest();
|
|
38983
41217
|
if (object.spanContext != null)
|
|
38984
41218
|
message.spanContext = String(object.spanContext);
|
|
38985
41219
|
if (object.orgId != null)
|
|
38986
41220
|
message.orgId = String(object.orgId);
|
|
38987
41221
|
if (object.eventId != null)
|
|
38988
41222
|
message.eventId = String(object.eventId);
|
|
41223
|
+
if (object.ticketTypeId) {
|
|
41224
|
+
if (!Array.isArray(object.ticketTypeId))
|
|
41225
|
+
throw TypeError(".CancelTicketRequest.ticketTypeId: array expected");
|
|
41226
|
+
message.ticketTypeId = [];
|
|
41227
|
+
for (var i = 0; i < object.ticketTypeId.length; ++i)
|
|
41228
|
+
message.ticketTypeId[i] = String(object.ticketTypeId[i]);
|
|
41229
|
+
}
|
|
41230
|
+
if (object.upgradesTypeId) {
|
|
41231
|
+
if (!Array.isArray(object.upgradesTypeId))
|
|
41232
|
+
throw TypeError(".CancelTicketRequest.upgradesTypeId: array expected");
|
|
41233
|
+
message.upgradesTypeId = [];
|
|
41234
|
+
for (var i = 0; i < object.upgradesTypeId.length; ++i)
|
|
41235
|
+
message.upgradesTypeId[i] = String(object.upgradesTypeId[i]);
|
|
41236
|
+
}
|
|
41237
|
+
if (object.promotionCode != null)
|
|
41238
|
+
message.promotionCode = String(object.promotionCode);
|
|
38989
41239
|
return message;
|
|
38990
41240
|
};
|
|
38991
41241
|
|
|
38992
41242
|
/**
|
|
38993
|
-
* Creates a plain object from a
|
|
41243
|
+
* Creates a plain object from a CancelTicketRequest message. Also converts values to other types if specified.
|
|
38994
41244
|
* @function toObject
|
|
38995
|
-
* @memberof
|
|
41245
|
+
* @memberof CancelTicketRequest
|
|
38996
41246
|
* @static
|
|
38997
|
-
* @param {
|
|
41247
|
+
* @param {CancelTicketRequest} message CancelTicketRequest
|
|
38998
41248
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
38999
41249
|
* @returns {Object.<string,*>} Plain object
|
|
39000
41250
|
*/
|
|
39001
|
-
|
|
41251
|
+
CancelTicketRequest.toObject = function toObject(message, options) {
|
|
39002
41252
|
if (!options)
|
|
39003
41253
|
options = {};
|
|
39004
41254
|
var object = {};
|
|
41255
|
+
if (options.arrays || options.defaults) {
|
|
41256
|
+
object.ticketTypeId = [];
|
|
41257
|
+
object.upgradesTypeId = [];
|
|
41258
|
+
}
|
|
39005
41259
|
if (options.defaults) {
|
|
39006
41260
|
object.spanContext = "";
|
|
39007
41261
|
object.orgId = "";
|
|
39008
41262
|
object.eventId = "";
|
|
41263
|
+
object.promotionCode = "";
|
|
39009
41264
|
}
|
|
39010
41265
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
39011
41266
|
object.spanContext = message.spanContext;
|
|
@@ -39013,45 +41268,55 @@ $root.DeleteEventRequest = (function() {
|
|
|
39013
41268
|
object.orgId = message.orgId;
|
|
39014
41269
|
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
39015
41270
|
object.eventId = message.eventId;
|
|
41271
|
+
if (message.ticketTypeId && message.ticketTypeId.length) {
|
|
41272
|
+
object.ticketTypeId = [];
|
|
41273
|
+
for (var j = 0; j < message.ticketTypeId.length; ++j)
|
|
41274
|
+
object.ticketTypeId[j] = message.ticketTypeId[j];
|
|
41275
|
+
}
|
|
41276
|
+
if (message.upgradesTypeId && message.upgradesTypeId.length) {
|
|
41277
|
+
object.upgradesTypeId = [];
|
|
41278
|
+
for (var j = 0; j < message.upgradesTypeId.length; ++j)
|
|
41279
|
+
object.upgradesTypeId[j] = message.upgradesTypeId[j];
|
|
41280
|
+
}
|
|
41281
|
+
if (message.promotionCode != null && message.hasOwnProperty("promotionCode"))
|
|
41282
|
+
object.promotionCode = message.promotionCode;
|
|
39016
41283
|
return object;
|
|
39017
41284
|
};
|
|
39018
41285
|
|
|
39019
41286
|
/**
|
|
39020
|
-
* Converts this
|
|
41287
|
+
* Converts this CancelTicketRequest to JSON.
|
|
39021
41288
|
* @function toJSON
|
|
39022
|
-
* @memberof
|
|
41289
|
+
* @memberof CancelTicketRequest
|
|
39023
41290
|
* @instance
|
|
39024
41291
|
* @returns {Object.<string,*>} JSON object
|
|
39025
41292
|
*/
|
|
39026
|
-
|
|
41293
|
+
CancelTicketRequest.prototype.toJSON = function toJSON() {
|
|
39027
41294
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39028
41295
|
};
|
|
39029
41296
|
|
|
39030
|
-
return
|
|
41297
|
+
return CancelTicketRequest;
|
|
39031
41298
|
})();
|
|
39032
41299
|
|
|
39033
|
-
$root.
|
|
41300
|
+
$root.CancelTicketResponse = (function() {
|
|
39034
41301
|
|
|
39035
41302
|
/**
|
|
39036
|
-
* Properties of a
|
|
39037
|
-
* @exports
|
|
39038
|
-
* @interface
|
|
39039
|
-
* @property {StatusCode|null} [status]
|
|
39040
|
-
* @property {Array.<IError>|null} [errors]
|
|
39041
|
-
* @property {
|
|
39042
|
-
* @property {number|null} [ordersRefundedCount] DeleteEventResponse ordersRefundedCount
|
|
39043
|
-
* @property {boolean|null} [deleted] DeleteEventResponse deleted
|
|
41303
|
+
* Properties of a CancelTicketResponse.
|
|
41304
|
+
* @exports ICancelTicketResponse
|
|
41305
|
+
* @interface ICancelTicketResponse
|
|
41306
|
+
* @property {StatusCode|null} [status] CancelTicketResponse status
|
|
41307
|
+
* @property {Array.<IError>|null} [errors] CancelTicketResponse errors
|
|
41308
|
+
* @property {boolean|null} [cancel] CancelTicketResponse cancel
|
|
39044
41309
|
*/
|
|
39045
41310
|
|
|
39046
41311
|
/**
|
|
39047
|
-
* Constructs a new
|
|
39048
|
-
* @exports
|
|
39049
|
-
* @classdesc Represents a
|
|
39050
|
-
* @implements
|
|
41312
|
+
* Constructs a new CancelTicketResponse.
|
|
41313
|
+
* @exports CancelTicketResponse
|
|
41314
|
+
* @classdesc Represents a CancelTicketResponse.
|
|
41315
|
+
* @implements ICancelTicketResponse
|
|
39051
41316
|
* @constructor
|
|
39052
|
-
* @param {
|
|
41317
|
+
* @param {ICancelTicketResponse=} [properties] Properties to set
|
|
39053
41318
|
*/
|
|
39054
|
-
function
|
|
41319
|
+
function CancelTicketResponse(properties) {
|
|
39055
41320
|
this.errors = [];
|
|
39056
41321
|
if (properties)
|
|
39057
41322
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -39060,67 +41325,51 @@ $root.DeleteEventResponse = (function() {
|
|
|
39060
41325
|
}
|
|
39061
41326
|
|
|
39062
41327
|
/**
|
|
39063
|
-
*
|
|
41328
|
+
* CancelTicketResponse status.
|
|
39064
41329
|
* @member {StatusCode} status
|
|
39065
|
-
* @memberof
|
|
41330
|
+
* @memberof CancelTicketResponse
|
|
39066
41331
|
* @instance
|
|
39067
41332
|
*/
|
|
39068
|
-
|
|
41333
|
+
CancelTicketResponse.prototype.status = 0;
|
|
39069
41334
|
|
|
39070
41335
|
/**
|
|
39071
|
-
*
|
|
41336
|
+
* CancelTicketResponse errors.
|
|
39072
41337
|
* @member {Array.<IError>} errors
|
|
39073
|
-
* @memberof
|
|
39074
|
-
* @instance
|
|
39075
|
-
*/
|
|
39076
|
-
DeleteEventResponse.prototype.errors = $util.emptyArray;
|
|
39077
|
-
|
|
39078
|
-
/**
|
|
39079
|
-
* DeleteEventResponse ordersCount.
|
|
39080
|
-
* @member {number} ordersCount
|
|
39081
|
-
* @memberof DeleteEventResponse
|
|
41338
|
+
* @memberof CancelTicketResponse
|
|
39082
41339
|
* @instance
|
|
39083
41340
|
*/
|
|
39084
|
-
|
|
41341
|
+
CancelTicketResponse.prototype.errors = $util.emptyArray;
|
|
39085
41342
|
|
|
39086
41343
|
/**
|
|
39087
|
-
*
|
|
39088
|
-
* @member {
|
|
39089
|
-
* @memberof
|
|
41344
|
+
* CancelTicketResponse cancel.
|
|
41345
|
+
* @member {boolean} cancel
|
|
41346
|
+
* @memberof CancelTicketResponse
|
|
39090
41347
|
* @instance
|
|
39091
41348
|
*/
|
|
39092
|
-
|
|
41349
|
+
CancelTicketResponse.prototype.cancel = false;
|
|
39093
41350
|
|
|
39094
41351
|
/**
|
|
39095
|
-
*
|
|
39096
|
-
* @member {boolean} deleted
|
|
39097
|
-
* @memberof DeleteEventResponse
|
|
39098
|
-
* @instance
|
|
39099
|
-
*/
|
|
39100
|
-
DeleteEventResponse.prototype.deleted = false;
|
|
39101
|
-
|
|
39102
|
-
/**
|
|
39103
|
-
* Creates a new DeleteEventResponse instance using the specified properties.
|
|
41352
|
+
* Creates a new CancelTicketResponse instance using the specified properties.
|
|
39104
41353
|
* @function create
|
|
39105
|
-
* @memberof
|
|
41354
|
+
* @memberof CancelTicketResponse
|
|
39106
41355
|
* @static
|
|
39107
|
-
* @param {
|
|
39108
|
-
* @returns {
|
|
41356
|
+
* @param {ICancelTicketResponse=} [properties] Properties to set
|
|
41357
|
+
* @returns {CancelTicketResponse} CancelTicketResponse instance
|
|
39109
41358
|
*/
|
|
39110
|
-
|
|
39111
|
-
return new
|
|
41359
|
+
CancelTicketResponse.create = function create(properties) {
|
|
41360
|
+
return new CancelTicketResponse(properties);
|
|
39112
41361
|
};
|
|
39113
41362
|
|
|
39114
41363
|
/**
|
|
39115
|
-
* Encodes the specified
|
|
41364
|
+
* Encodes the specified CancelTicketResponse message. Does not implicitly {@link CancelTicketResponse.verify|verify} messages.
|
|
39116
41365
|
* @function encode
|
|
39117
|
-
* @memberof
|
|
41366
|
+
* @memberof CancelTicketResponse
|
|
39118
41367
|
* @static
|
|
39119
|
-
* @param {
|
|
41368
|
+
* @param {ICancelTicketResponse} message CancelTicketResponse message or plain object to encode
|
|
39120
41369
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39121
41370
|
* @returns {$protobuf.Writer} Writer
|
|
39122
41371
|
*/
|
|
39123
|
-
|
|
41372
|
+
CancelTicketResponse.encode = function encode(message, writer) {
|
|
39124
41373
|
if (!writer)
|
|
39125
41374
|
writer = $Writer.create();
|
|
39126
41375
|
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
@@ -39128,43 +41377,39 @@ $root.DeleteEventResponse = (function() {
|
|
|
39128
41377
|
if (message.errors != null && message.errors.length)
|
|
39129
41378
|
for (var i = 0; i < message.errors.length; ++i)
|
|
39130
41379
|
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
39131
|
-
if (message.
|
|
39132
|
-
writer.uint32(/* id 2, wireType 0 =*/16).
|
|
39133
|
-
if (message.ordersRefundedCount != null && Object.hasOwnProperty.call(message, "ordersRefundedCount"))
|
|
39134
|
-
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.ordersRefundedCount);
|
|
39135
|
-
if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted"))
|
|
39136
|
-
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.deleted);
|
|
41380
|
+
if (message.cancel != null && Object.hasOwnProperty.call(message, "cancel"))
|
|
41381
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.cancel);
|
|
39137
41382
|
return writer;
|
|
39138
41383
|
};
|
|
39139
41384
|
|
|
39140
41385
|
/**
|
|
39141
|
-
* Encodes the specified
|
|
41386
|
+
* Encodes the specified CancelTicketResponse message, length delimited. Does not implicitly {@link CancelTicketResponse.verify|verify} messages.
|
|
39142
41387
|
* @function encodeDelimited
|
|
39143
|
-
* @memberof
|
|
41388
|
+
* @memberof CancelTicketResponse
|
|
39144
41389
|
* @static
|
|
39145
|
-
* @param {
|
|
41390
|
+
* @param {ICancelTicketResponse} message CancelTicketResponse message or plain object to encode
|
|
39146
41391
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39147
41392
|
* @returns {$protobuf.Writer} Writer
|
|
39148
41393
|
*/
|
|
39149
|
-
|
|
41394
|
+
CancelTicketResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39150
41395
|
return this.encode(message, writer).ldelim();
|
|
39151
41396
|
};
|
|
39152
41397
|
|
|
39153
41398
|
/**
|
|
39154
|
-
* Decodes a
|
|
41399
|
+
* Decodes a CancelTicketResponse message from the specified reader or buffer.
|
|
39155
41400
|
* @function decode
|
|
39156
|
-
* @memberof
|
|
41401
|
+
* @memberof CancelTicketResponse
|
|
39157
41402
|
* @static
|
|
39158
41403
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39159
41404
|
* @param {number} [length] Message length if known beforehand
|
|
39160
|
-
* @returns {
|
|
41405
|
+
* @returns {CancelTicketResponse} CancelTicketResponse
|
|
39161
41406
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39162
41407
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39163
41408
|
*/
|
|
39164
|
-
|
|
41409
|
+
CancelTicketResponse.decode = function decode(reader, length) {
|
|
39165
41410
|
if (!(reader instanceof $Reader))
|
|
39166
41411
|
reader = $Reader.create(reader);
|
|
39167
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
41412
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CancelTicketResponse();
|
|
39168
41413
|
while (reader.pos < end) {
|
|
39169
41414
|
var tag = reader.uint32();
|
|
39170
41415
|
switch (tag >>> 3) {
|
|
@@ -39177,13 +41422,7 @@ $root.DeleteEventResponse = (function() {
|
|
|
39177
41422
|
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
39178
41423
|
break;
|
|
39179
41424
|
case 2:
|
|
39180
|
-
message.
|
|
39181
|
-
break;
|
|
39182
|
-
case 3:
|
|
39183
|
-
message.ordersRefundedCount = reader.int32();
|
|
39184
|
-
break;
|
|
39185
|
-
case 4:
|
|
39186
|
-
message.deleted = reader.bool();
|
|
41425
|
+
message.cancel = reader.bool();
|
|
39187
41426
|
break;
|
|
39188
41427
|
default:
|
|
39189
41428
|
reader.skipType(tag & 7);
|
|
@@ -39194,30 +41433,30 @@ $root.DeleteEventResponse = (function() {
|
|
|
39194
41433
|
};
|
|
39195
41434
|
|
|
39196
41435
|
/**
|
|
39197
|
-
* Decodes a
|
|
41436
|
+
* Decodes a CancelTicketResponse message from the specified reader or buffer, length delimited.
|
|
39198
41437
|
* @function decodeDelimited
|
|
39199
|
-
* @memberof
|
|
41438
|
+
* @memberof CancelTicketResponse
|
|
39200
41439
|
* @static
|
|
39201
41440
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39202
|
-
* @returns {
|
|
41441
|
+
* @returns {CancelTicketResponse} CancelTicketResponse
|
|
39203
41442
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39204
41443
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39205
41444
|
*/
|
|
39206
|
-
|
|
41445
|
+
CancelTicketResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
39207
41446
|
if (!(reader instanceof $Reader))
|
|
39208
41447
|
reader = new $Reader(reader);
|
|
39209
41448
|
return this.decode(reader, reader.uint32());
|
|
39210
41449
|
};
|
|
39211
41450
|
|
|
39212
41451
|
/**
|
|
39213
|
-
* Verifies a
|
|
41452
|
+
* Verifies a CancelTicketResponse message.
|
|
39214
41453
|
* @function verify
|
|
39215
|
-
* @memberof
|
|
41454
|
+
* @memberof CancelTicketResponse
|
|
39216
41455
|
* @static
|
|
39217
41456
|
* @param {Object.<string,*>} message Plain object to verify
|
|
39218
41457
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
39219
41458
|
*/
|
|
39220
|
-
|
|
41459
|
+
CancelTicketResponse.verify = function verify(message) {
|
|
39221
41460
|
if (typeof message !== "object" || message === null)
|
|
39222
41461
|
return "object expected";
|
|
39223
41462
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
@@ -39243,30 +41482,24 @@ $root.DeleteEventResponse = (function() {
|
|
|
39243
41482
|
return "errors." + error;
|
|
39244
41483
|
}
|
|
39245
41484
|
}
|
|
39246
|
-
if (message.
|
|
39247
|
-
if (
|
|
39248
|
-
return "
|
|
39249
|
-
if (message.ordersRefundedCount != null && message.hasOwnProperty("ordersRefundedCount"))
|
|
39250
|
-
if (!$util.isInteger(message.ordersRefundedCount))
|
|
39251
|
-
return "ordersRefundedCount: integer expected";
|
|
39252
|
-
if (message.deleted != null && message.hasOwnProperty("deleted"))
|
|
39253
|
-
if (typeof message.deleted !== "boolean")
|
|
39254
|
-
return "deleted: boolean expected";
|
|
41485
|
+
if (message.cancel != null && message.hasOwnProperty("cancel"))
|
|
41486
|
+
if (typeof message.cancel !== "boolean")
|
|
41487
|
+
return "cancel: boolean expected";
|
|
39255
41488
|
return null;
|
|
39256
41489
|
};
|
|
39257
41490
|
|
|
39258
41491
|
/**
|
|
39259
|
-
* Creates a
|
|
41492
|
+
* Creates a CancelTicketResponse message from a plain object. Also converts values to their respective internal types.
|
|
39260
41493
|
* @function fromObject
|
|
39261
|
-
* @memberof
|
|
41494
|
+
* @memberof CancelTicketResponse
|
|
39262
41495
|
* @static
|
|
39263
41496
|
* @param {Object.<string,*>} object Plain object
|
|
39264
|
-
* @returns {
|
|
41497
|
+
* @returns {CancelTicketResponse} CancelTicketResponse
|
|
39265
41498
|
*/
|
|
39266
|
-
|
|
39267
|
-
if (object instanceof $root.
|
|
41499
|
+
CancelTicketResponse.fromObject = function fromObject(object) {
|
|
41500
|
+
if (object instanceof $root.CancelTicketResponse)
|
|
39268
41501
|
return object;
|
|
39269
|
-
var message = new $root.
|
|
41502
|
+
var message = new $root.CancelTicketResponse();
|
|
39270
41503
|
switch (object.status) {
|
|
39271
41504
|
case "UNKNOWN_CODE":
|
|
39272
41505
|
case 0:
|
|
@@ -39303,33 +41536,29 @@ $root.DeleteEventResponse = (function() {
|
|
|
39303
41536
|
}
|
|
39304
41537
|
if (object.errors) {
|
|
39305
41538
|
if (!Array.isArray(object.errors))
|
|
39306
|
-
throw TypeError(".
|
|
41539
|
+
throw TypeError(".CancelTicketResponse.errors: array expected");
|
|
39307
41540
|
message.errors = [];
|
|
39308
41541
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
39309
41542
|
if (typeof object.errors[i] !== "object")
|
|
39310
|
-
throw TypeError(".
|
|
41543
|
+
throw TypeError(".CancelTicketResponse.errors: object expected");
|
|
39311
41544
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
39312
41545
|
}
|
|
39313
41546
|
}
|
|
39314
|
-
if (object.
|
|
39315
|
-
message.
|
|
39316
|
-
if (object.ordersRefundedCount != null)
|
|
39317
|
-
message.ordersRefundedCount = object.ordersRefundedCount | 0;
|
|
39318
|
-
if (object.deleted != null)
|
|
39319
|
-
message.deleted = Boolean(object.deleted);
|
|
41547
|
+
if (object.cancel != null)
|
|
41548
|
+
message.cancel = Boolean(object.cancel);
|
|
39320
41549
|
return message;
|
|
39321
41550
|
};
|
|
39322
41551
|
|
|
39323
41552
|
/**
|
|
39324
|
-
* Creates a plain object from a
|
|
41553
|
+
* Creates a plain object from a CancelTicketResponse message. Also converts values to other types if specified.
|
|
39325
41554
|
* @function toObject
|
|
39326
|
-
* @memberof
|
|
41555
|
+
* @memberof CancelTicketResponse
|
|
39327
41556
|
* @static
|
|
39328
|
-
* @param {
|
|
41557
|
+
* @param {CancelTicketResponse} message CancelTicketResponse
|
|
39329
41558
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
39330
41559
|
* @returns {Object.<string,*>} Plain object
|
|
39331
41560
|
*/
|
|
39332
|
-
|
|
41561
|
+
CancelTicketResponse.toObject = function toObject(message, options) {
|
|
39333
41562
|
if (!options)
|
|
39334
41563
|
options = {};
|
|
39335
41564
|
var object = {};
|
|
@@ -39337,9 +41566,7 @@ $root.DeleteEventResponse = (function() {
|
|
|
39337
41566
|
object.errors = [];
|
|
39338
41567
|
if (options.defaults) {
|
|
39339
41568
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
39340
|
-
object.
|
|
39341
|
-
object.ordersRefundedCount = 0;
|
|
39342
|
-
object.deleted = false;
|
|
41569
|
+
object.cancel = false;
|
|
39343
41570
|
}
|
|
39344
41571
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
39345
41572
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
@@ -39348,27 +41575,23 @@ $root.DeleteEventResponse = (function() {
|
|
|
39348
41575
|
for (var j = 0; j < message.errors.length; ++j)
|
|
39349
41576
|
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
39350
41577
|
}
|
|
39351
|
-
if (message.
|
|
39352
|
-
object.
|
|
39353
|
-
if (message.ordersRefundedCount != null && message.hasOwnProperty("ordersRefundedCount"))
|
|
39354
|
-
object.ordersRefundedCount = message.ordersRefundedCount;
|
|
39355
|
-
if (message.deleted != null && message.hasOwnProperty("deleted"))
|
|
39356
|
-
object.deleted = message.deleted;
|
|
41578
|
+
if (message.cancel != null && message.hasOwnProperty("cancel"))
|
|
41579
|
+
object.cancel = message.cancel;
|
|
39357
41580
|
return object;
|
|
39358
41581
|
};
|
|
39359
41582
|
|
|
39360
41583
|
/**
|
|
39361
|
-
* Converts this
|
|
41584
|
+
* Converts this CancelTicketResponse to JSON.
|
|
39362
41585
|
* @function toJSON
|
|
39363
|
-
* @memberof
|
|
41586
|
+
* @memberof CancelTicketResponse
|
|
39364
41587
|
* @instance
|
|
39365
41588
|
* @returns {Object.<string,*>} JSON object
|
|
39366
41589
|
*/
|
|
39367
|
-
|
|
41590
|
+
CancelTicketResponse.prototype.toJSON = function toJSON() {
|
|
39368
41591
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
39369
41592
|
};
|
|
39370
41593
|
|
|
39371
|
-
return
|
|
41594
|
+
return CancelTicketResponse;
|
|
39372
41595
|
})();
|
|
39373
41596
|
|
|
39374
41597
|
$root.DuplicateEventRequest = (function() {
|
|
@@ -40146,6 +42369,72 @@ $root.EventService = (function() {
|
|
|
40146
42369
|
* @variation 2
|
|
40147
42370
|
*/
|
|
40148
42371
|
|
|
42372
|
+
/**
|
|
42373
|
+
* Callback as used by {@link EventService#cancelEvent}.
|
|
42374
|
+
* @memberof EventService
|
|
42375
|
+
* @typedef cancelEventCallback
|
|
42376
|
+
* @type {function}
|
|
42377
|
+
* @param {Error|null} error Error, if any
|
|
42378
|
+
* @param {CancelEventResponse} [response] CancelEventResponse
|
|
42379
|
+
*/
|
|
42380
|
+
|
|
42381
|
+
/**
|
|
42382
|
+
* Calls cancelEvent.
|
|
42383
|
+
* @function cancelEvent
|
|
42384
|
+
* @memberof EventService
|
|
42385
|
+
* @instance
|
|
42386
|
+
* @param {ICancelEventRequest} request CancelEventRequest message or plain object
|
|
42387
|
+
* @param {EventService.cancelEventCallback} callback Node-style callback called with the error, if any, and CancelEventResponse
|
|
42388
|
+
* @returns {undefined}
|
|
42389
|
+
* @variation 1
|
|
42390
|
+
*/
|
|
42391
|
+
Object.defineProperty(EventService.prototype.cancelEvent = function cancelEvent(request, callback) {
|
|
42392
|
+
return this.rpcCall(cancelEvent, $root.CancelEventRequest, $root.CancelEventResponse, request, callback);
|
|
42393
|
+
}, "name", { value: "cancelEvent" });
|
|
42394
|
+
|
|
42395
|
+
/**
|
|
42396
|
+
* Calls cancelEvent.
|
|
42397
|
+
* @function cancelEvent
|
|
42398
|
+
* @memberof EventService
|
|
42399
|
+
* @instance
|
|
42400
|
+
* @param {ICancelEventRequest} request CancelEventRequest message or plain object
|
|
42401
|
+
* @returns {Promise<CancelEventResponse>} Promise
|
|
42402
|
+
* @variation 2
|
|
42403
|
+
*/
|
|
42404
|
+
|
|
42405
|
+
/**
|
|
42406
|
+
* Callback as used by {@link EventService#cancelTicket}.
|
|
42407
|
+
* @memberof EventService
|
|
42408
|
+
* @typedef cancelTicketCallback
|
|
42409
|
+
* @type {function}
|
|
42410
|
+
* @param {Error|null} error Error, if any
|
|
42411
|
+
* @param {CancelTicketResponse} [response] CancelTicketResponse
|
|
42412
|
+
*/
|
|
42413
|
+
|
|
42414
|
+
/**
|
|
42415
|
+
* Calls cancelTicket.
|
|
42416
|
+
* @function cancelTicket
|
|
42417
|
+
* @memberof EventService
|
|
42418
|
+
* @instance
|
|
42419
|
+
* @param {ICancelTicketRequest} request CancelTicketRequest message or plain object
|
|
42420
|
+
* @param {EventService.cancelTicketCallback} callback Node-style callback called with the error, if any, and CancelTicketResponse
|
|
42421
|
+
* @returns {undefined}
|
|
42422
|
+
* @variation 1
|
|
42423
|
+
*/
|
|
42424
|
+
Object.defineProperty(EventService.prototype.cancelTicket = function cancelTicket(request, callback) {
|
|
42425
|
+
return this.rpcCall(cancelTicket, $root.CancelTicketRequest, $root.CancelTicketResponse, request, callback);
|
|
42426
|
+
}, "name", { value: "cancelTicket" });
|
|
42427
|
+
|
|
42428
|
+
/**
|
|
42429
|
+
* Calls cancelTicket.
|
|
42430
|
+
* @function cancelTicket
|
|
42431
|
+
* @memberof EventService
|
|
42432
|
+
* @instance
|
|
42433
|
+
* @param {ICancelTicketRequest} request CancelTicketRequest message or plain object
|
|
42434
|
+
* @returns {Promise<CancelTicketResponse>} Promise
|
|
42435
|
+
* @variation 2
|
|
42436
|
+
*/
|
|
42437
|
+
|
|
40149
42438
|
/**
|
|
40150
42439
|
* Callback as used by {@link EventService#duplicateEvent}.
|
|
40151
42440
|
* @memberof EventService
|
|
@@ -64541,6 +66830,535 @@ $root.RetrieveStripeChargeResponse = (function() {
|
|
|
64541
66830
|
return RetrieveStripeChargeResponse;
|
|
64542
66831
|
})();
|
|
64543
66832
|
|
|
66833
|
+
$root.RetrieveStripeChargeByIntentsRequest = (function() {
|
|
66834
|
+
|
|
66835
|
+
/**
|
|
66836
|
+
* Properties of a RetrieveStripeChargeByIntentsRequest.
|
|
66837
|
+
* @exports IRetrieveStripeChargeByIntentsRequest
|
|
66838
|
+
* @interface IRetrieveStripeChargeByIntentsRequest
|
|
66839
|
+
* @property {string|null} [spanContext] RetrieveStripeChargeByIntentsRequest spanContext
|
|
66840
|
+
* @property {string|null} [orgId] RetrieveStripeChargeByIntentsRequest orgId
|
|
66841
|
+
* @property {string|null} [stripeIntentId] RetrieveStripeChargeByIntentsRequest stripeIntentId
|
|
66842
|
+
*/
|
|
66843
|
+
|
|
66844
|
+
/**
|
|
66845
|
+
* Constructs a new RetrieveStripeChargeByIntentsRequest.
|
|
66846
|
+
* @exports RetrieveStripeChargeByIntentsRequest
|
|
66847
|
+
* @classdesc Represents a RetrieveStripeChargeByIntentsRequest.
|
|
66848
|
+
* @implements IRetrieveStripeChargeByIntentsRequest
|
|
66849
|
+
* @constructor
|
|
66850
|
+
* @param {IRetrieveStripeChargeByIntentsRequest=} [properties] Properties to set
|
|
66851
|
+
*/
|
|
66852
|
+
function RetrieveStripeChargeByIntentsRequest(properties) {
|
|
66853
|
+
if (properties)
|
|
66854
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66855
|
+
if (properties[keys[i]] != null)
|
|
66856
|
+
this[keys[i]] = properties[keys[i]];
|
|
66857
|
+
}
|
|
66858
|
+
|
|
66859
|
+
/**
|
|
66860
|
+
* RetrieveStripeChargeByIntentsRequest spanContext.
|
|
66861
|
+
* @member {string} spanContext
|
|
66862
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
66863
|
+
* @instance
|
|
66864
|
+
*/
|
|
66865
|
+
RetrieveStripeChargeByIntentsRequest.prototype.spanContext = "";
|
|
66866
|
+
|
|
66867
|
+
/**
|
|
66868
|
+
* RetrieveStripeChargeByIntentsRequest orgId.
|
|
66869
|
+
* @member {string} orgId
|
|
66870
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
66871
|
+
* @instance
|
|
66872
|
+
*/
|
|
66873
|
+
RetrieveStripeChargeByIntentsRequest.prototype.orgId = "";
|
|
66874
|
+
|
|
66875
|
+
/**
|
|
66876
|
+
* RetrieveStripeChargeByIntentsRequest stripeIntentId.
|
|
66877
|
+
* @member {string} stripeIntentId
|
|
66878
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
66879
|
+
* @instance
|
|
66880
|
+
*/
|
|
66881
|
+
RetrieveStripeChargeByIntentsRequest.prototype.stripeIntentId = "";
|
|
66882
|
+
|
|
66883
|
+
/**
|
|
66884
|
+
* Creates a new RetrieveStripeChargeByIntentsRequest instance using the specified properties.
|
|
66885
|
+
* @function create
|
|
66886
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
66887
|
+
* @static
|
|
66888
|
+
* @param {IRetrieveStripeChargeByIntentsRequest=} [properties] Properties to set
|
|
66889
|
+
* @returns {RetrieveStripeChargeByIntentsRequest} RetrieveStripeChargeByIntentsRequest instance
|
|
66890
|
+
*/
|
|
66891
|
+
RetrieveStripeChargeByIntentsRequest.create = function create(properties) {
|
|
66892
|
+
return new RetrieveStripeChargeByIntentsRequest(properties);
|
|
66893
|
+
};
|
|
66894
|
+
|
|
66895
|
+
/**
|
|
66896
|
+
* Encodes the specified RetrieveStripeChargeByIntentsRequest message. Does not implicitly {@link RetrieveStripeChargeByIntentsRequest.verify|verify} messages.
|
|
66897
|
+
* @function encode
|
|
66898
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
66899
|
+
* @static
|
|
66900
|
+
* @param {IRetrieveStripeChargeByIntentsRequest} message RetrieveStripeChargeByIntentsRequest message or plain object to encode
|
|
66901
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66902
|
+
* @returns {$protobuf.Writer} Writer
|
|
66903
|
+
*/
|
|
66904
|
+
RetrieveStripeChargeByIntentsRequest.encode = function encode(message, writer) {
|
|
66905
|
+
if (!writer)
|
|
66906
|
+
writer = $Writer.create();
|
|
66907
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
66908
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
66909
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
66910
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
|
|
66911
|
+
if (message.stripeIntentId != null && Object.hasOwnProperty.call(message, "stripeIntentId"))
|
|
66912
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.stripeIntentId);
|
|
66913
|
+
return writer;
|
|
66914
|
+
};
|
|
66915
|
+
|
|
66916
|
+
/**
|
|
66917
|
+
* Encodes the specified RetrieveStripeChargeByIntentsRequest message, length delimited. Does not implicitly {@link RetrieveStripeChargeByIntentsRequest.verify|verify} messages.
|
|
66918
|
+
* @function encodeDelimited
|
|
66919
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
66920
|
+
* @static
|
|
66921
|
+
* @param {IRetrieveStripeChargeByIntentsRequest} message RetrieveStripeChargeByIntentsRequest message or plain object to encode
|
|
66922
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66923
|
+
* @returns {$protobuf.Writer} Writer
|
|
66924
|
+
*/
|
|
66925
|
+
RetrieveStripeChargeByIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
66926
|
+
return this.encode(message, writer).ldelim();
|
|
66927
|
+
};
|
|
66928
|
+
|
|
66929
|
+
/**
|
|
66930
|
+
* Decodes a RetrieveStripeChargeByIntentsRequest message from the specified reader or buffer.
|
|
66931
|
+
* @function decode
|
|
66932
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
66933
|
+
* @static
|
|
66934
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66935
|
+
* @param {number} [length] Message length if known beforehand
|
|
66936
|
+
* @returns {RetrieveStripeChargeByIntentsRequest} RetrieveStripeChargeByIntentsRequest
|
|
66937
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66938
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66939
|
+
*/
|
|
66940
|
+
RetrieveStripeChargeByIntentsRequest.decode = function decode(reader, length) {
|
|
66941
|
+
if (!(reader instanceof $Reader))
|
|
66942
|
+
reader = $Reader.create(reader);
|
|
66943
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RetrieveStripeChargeByIntentsRequest();
|
|
66944
|
+
while (reader.pos < end) {
|
|
66945
|
+
var tag = reader.uint32();
|
|
66946
|
+
switch (tag >>> 3) {
|
|
66947
|
+
case 0:
|
|
66948
|
+
message.spanContext = reader.string();
|
|
66949
|
+
break;
|
|
66950
|
+
case 1:
|
|
66951
|
+
message.orgId = reader.string();
|
|
66952
|
+
break;
|
|
66953
|
+
case 2:
|
|
66954
|
+
message.stripeIntentId = reader.string();
|
|
66955
|
+
break;
|
|
66956
|
+
default:
|
|
66957
|
+
reader.skipType(tag & 7);
|
|
66958
|
+
break;
|
|
66959
|
+
}
|
|
66960
|
+
}
|
|
66961
|
+
return message;
|
|
66962
|
+
};
|
|
66963
|
+
|
|
66964
|
+
/**
|
|
66965
|
+
* Decodes a RetrieveStripeChargeByIntentsRequest message from the specified reader or buffer, length delimited.
|
|
66966
|
+
* @function decodeDelimited
|
|
66967
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
66968
|
+
* @static
|
|
66969
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66970
|
+
* @returns {RetrieveStripeChargeByIntentsRequest} RetrieveStripeChargeByIntentsRequest
|
|
66971
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66972
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66973
|
+
*/
|
|
66974
|
+
RetrieveStripeChargeByIntentsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
66975
|
+
if (!(reader instanceof $Reader))
|
|
66976
|
+
reader = new $Reader(reader);
|
|
66977
|
+
return this.decode(reader, reader.uint32());
|
|
66978
|
+
};
|
|
66979
|
+
|
|
66980
|
+
/**
|
|
66981
|
+
* Verifies a RetrieveStripeChargeByIntentsRequest message.
|
|
66982
|
+
* @function verify
|
|
66983
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
66984
|
+
* @static
|
|
66985
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
66986
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66987
|
+
*/
|
|
66988
|
+
RetrieveStripeChargeByIntentsRequest.verify = function verify(message) {
|
|
66989
|
+
if (typeof message !== "object" || message === null)
|
|
66990
|
+
return "object expected";
|
|
66991
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
66992
|
+
if (!$util.isString(message.spanContext))
|
|
66993
|
+
return "spanContext: string expected";
|
|
66994
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
66995
|
+
if (!$util.isString(message.orgId))
|
|
66996
|
+
return "orgId: string expected";
|
|
66997
|
+
if (message.stripeIntentId != null && message.hasOwnProperty("stripeIntentId"))
|
|
66998
|
+
if (!$util.isString(message.stripeIntentId))
|
|
66999
|
+
return "stripeIntentId: string expected";
|
|
67000
|
+
return null;
|
|
67001
|
+
};
|
|
67002
|
+
|
|
67003
|
+
/**
|
|
67004
|
+
* Creates a RetrieveStripeChargeByIntentsRequest message from a plain object. Also converts values to their respective internal types.
|
|
67005
|
+
* @function fromObject
|
|
67006
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
67007
|
+
* @static
|
|
67008
|
+
* @param {Object.<string,*>} object Plain object
|
|
67009
|
+
* @returns {RetrieveStripeChargeByIntentsRequest} RetrieveStripeChargeByIntentsRequest
|
|
67010
|
+
*/
|
|
67011
|
+
RetrieveStripeChargeByIntentsRequest.fromObject = function fromObject(object) {
|
|
67012
|
+
if (object instanceof $root.RetrieveStripeChargeByIntentsRequest)
|
|
67013
|
+
return object;
|
|
67014
|
+
var message = new $root.RetrieveStripeChargeByIntentsRequest();
|
|
67015
|
+
if (object.spanContext != null)
|
|
67016
|
+
message.spanContext = String(object.spanContext);
|
|
67017
|
+
if (object.orgId != null)
|
|
67018
|
+
message.orgId = String(object.orgId);
|
|
67019
|
+
if (object.stripeIntentId != null)
|
|
67020
|
+
message.stripeIntentId = String(object.stripeIntentId);
|
|
67021
|
+
return message;
|
|
67022
|
+
};
|
|
67023
|
+
|
|
67024
|
+
/**
|
|
67025
|
+
* Creates a plain object from a RetrieveStripeChargeByIntentsRequest message. Also converts values to other types if specified.
|
|
67026
|
+
* @function toObject
|
|
67027
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
67028
|
+
* @static
|
|
67029
|
+
* @param {RetrieveStripeChargeByIntentsRequest} message RetrieveStripeChargeByIntentsRequest
|
|
67030
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
67031
|
+
* @returns {Object.<string,*>} Plain object
|
|
67032
|
+
*/
|
|
67033
|
+
RetrieveStripeChargeByIntentsRequest.toObject = function toObject(message, options) {
|
|
67034
|
+
if (!options)
|
|
67035
|
+
options = {};
|
|
67036
|
+
var object = {};
|
|
67037
|
+
if (options.defaults) {
|
|
67038
|
+
object.spanContext = "";
|
|
67039
|
+
object.orgId = "";
|
|
67040
|
+
object.stripeIntentId = "";
|
|
67041
|
+
}
|
|
67042
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
67043
|
+
object.spanContext = message.spanContext;
|
|
67044
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
67045
|
+
object.orgId = message.orgId;
|
|
67046
|
+
if (message.stripeIntentId != null && message.hasOwnProperty("stripeIntentId"))
|
|
67047
|
+
object.stripeIntentId = message.stripeIntentId;
|
|
67048
|
+
return object;
|
|
67049
|
+
};
|
|
67050
|
+
|
|
67051
|
+
/**
|
|
67052
|
+
* Converts this RetrieveStripeChargeByIntentsRequest to JSON.
|
|
67053
|
+
* @function toJSON
|
|
67054
|
+
* @memberof RetrieveStripeChargeByIntentsRequest
|
|
67055
|
+
* @instance
|
|
67056
|
+
* @returns {Object.<string,*>} JSON object
|
|
67057
|
+
*/
|
|
67058
|
+
RetrieveStripeChargeByIntentsRequest.prototype.toJSON = function toJSON() {
|
|
67059
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
67060
|
+
};
|
|
67061
|
+
|
|
67062
|
+
return RetrieveStripeChargeByIntentsRequest;
|
|
67063
|
+
})();
|
|
67064
|
+
|
|
67065
|
+
$root.RetrieveStripeChargeByIntentsResponse = (function() {
|
|
67066
|
+
|
|
67067
|
+
/**
|
|
67068
|
+
* Properties of a RetrieveStripeChargeByIntentsResponse.
|
|
67069
|
+
* @exports IRetrieveStripeChargeByIntentsResponse
|
|
67070
|
+
* @interface IRetrieveStripeChargeByIntentsResponse
|
|
67071
|
+
* @property {StatusCode|null} [status] RetrieveStripeChargeByIntentsResponse status
|
|
67072
|
+
* @property {Array.<IError>|null} [errors] RetrieveStripeChargeByIntentsResponse errors
|
|
67073
|
+
* @property {string|null} [stripeChargeId] RetrieveStripeChargeByIntentsResponse stripeChargeId
|
|
67074
|
+
*/
|
|
67075
|
+
|
|
67076
|
+
/**
|
|
67077
|
+
* Constructs a new RetrieveStripeChargeByIntentsResponse.
|
|
67078
|
+
* @exports RetrieveStripeChargeByIntentsResponse
|
|
67079
|
+
* @classdesc Represents a RetrieveStripeChargeByIntentsResponse.
|
|
67080
|
+
* @implements IRetrieveStripeChargeByIntentsResponse
|
|
67081
|
+
* @constructor
|
|
67082
|
+
* @param {IRetrieveStripeChargeByIntentsResponse=} [properties] Properties to set
|
|
67083
|
+
*/
|
|
67084
|
+
function RetrieveStripeChargeByIntentsResponse(properties) {
|
|
67085
|
+
this.errors = [];
|
|
67086
|
+
if (properties)
|
|
67087
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
67088
|
+
if (properties[keys[i]] != null)
|
|
67089
|
+
this[keys[i]] = properties[keys[i]];
|
|
67090
|
+
}
|
|
67091
|
+
|
|
67092
|
+
/**
|
|
67093
|
+
* RetrieveStripeChargeByIntentsResponse status.
|
|
67094
|
+
* @member {StatusCode} status
|
|
67095
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67096
|
+
* @instance
|
|
67097
|
+
*/
|
|
67098
|
+
RetrieveStripeChargeByIntentsResponse.prototype.status = 0;
|
|
67099
|
+
|
|
67100
|
+
/**
|
|
67101
|
+
* RetrieveStripeChargeByIntentsResponse errors.
|
|
67102
|
+
* @member {Array.<IError>} errors
|
|
67103
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67104
|
+
* @instance
|
|
67105
|
+
*/
|
|
67106
|
+
RetrieveStripeChargeByIntentsResponse.prototype.errors = $util.emptyArray;
|
|
67107
|
+
|
|
67108
|
+
/**
|
|
67109
|
+
* RetrieveStripeChargeByIntentsResponse stripeChargeId.
|
|
67110
|
+
* @member {string} stripeChargeId
|
|
67111
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67112
|
+
* @instance
|
|
67113
|
+
*/
|
|
67114
|
+
RetrieveStripeChargeByIntentsResponse.prototype.stripeChargeId = "";
|
|
67115
|
+
|
|
67116
|
+
/**
|
|
67117
|
+
* Creates a new RetrieveStripeChargeByIntentsResponse instance using the specified properties.
|
|
67118
|
+
* @function create
|
|
67119
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67120
|
+
* @static
|
|
67121
|
+
* @param {IRetrieveStripeChargeByIntentsResponse=} [properties] Properties to set
|
|
67122
|
+
* @returns {RetrieveStripeChargeByIntentsResponse} RetrieveStripeChargeByIntentsResponse instance
|
|
67123
|
+
*/
|
|
67124
|
+
RetrieveStripeChargeByIntentsResponse.create = function create(properties) {
|
|
67125
|
+
return new RetrieveStripeChargeByIntentsResponse(properties);
|
|
67126
|
+
};
|
|
67127
|
+
|
|
67128
|
+
/**
|
|
67129
|
+
* Encodes the specified RetrieveStripeChargeByIntentsResponse message. Does not implicitly {@link RetrieveStripeChargeByIntentsResponse.verify|verify} messages.
|
|
67130
|
+
* @function encode
|
|
67131
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67132
|
+
* @static
|
|
67133
|
+
* @param {IRetrieveStripeChargeByIntentsResponse} message RetrieveStripeChargeByIntentsResponse message or plain object to encode
|
|
67134
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67135
|
+
* @returns {$protobuf.Writer} Writer
|
|
67136
|
+
*/
|
|
67137
|
+
RetrieveStripeChargeByIntentsResponse.encode = function encode(message, writer) {
|
|
67138
|
+
if (!writer)
|
|
67139
|
+
writer = $Writer.create();
|
|
67140
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
67141
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
67142
|
+
if (message.errors != null && message.errors.length)
|
|
67143
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
67144
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
67145
|
+
if (message.stripeChargeId != null && Object.hasOwnProperty.call(message, "stripeChargeId"))
|
|
67146
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.stripeChargeId);
|
|
67147
|
+
return writer;
|
|
67148
|
+
};
|
|
67149
|
+
|
|
67150
|
+
/**
|
|
67151
|
+
* Encodes the specified RetrieveStripeChargeByIntentsResponse message, length delimited. Does not implicitly {@link RetrieveStripeChargeByIntentsResponse.verify|verify} messages.
|
|
67152
|
+
* @function encodeDelimited
|
|
67153
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67154
|
+
* @static
|
|
67155
|
+
* @param {IRetrieveStripeChargeByIntentsResponse} message RetrieveStripeChargeByIntentsResponse message or plain object to encode
|
|
67156
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67157
|
+
* @returns {$protobuf.Writer} Writer
|
|
67158
|
+
*/
|
|
67159
|
+
RetrieveStripeChargeByIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
67160
|
+
return this.encode(message, writer).ldelim();
|
|
67161
|
+
};
|
|
67162
|
+
|
|
67163
|
+
/**
|
|
67164
|
+
* Decodes a RetrieveStripeChargeByIntentsResponse message from the specified reader or buffer.
|
|
67165
|
+
* @function decode
|
|
67166
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67167
|
+
* @static
|
|
67168
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67169
|
+
* @param {number} [length] Message length if known beforehand
|
|
67170
|
+
* @returns {RetrieveStripeChargeByIntentsResponse} RetrieveStripeChargeByIntentsResponse
|
|
67171
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67172
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67173
|
+
*/
|
|
67174
|
+
RetrieveStripeChargeByIntentsResponse.decode = function decode(reader, length) {
|
|
67175
|
+
if (!(reader instanceof $Reader))
|
|
67176
|
+
reader = $Reader.create(reader);
|
|
67177
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RetrieveStripeChargeByIntentsResponse();
|
|
67178
|
+
while (reader.pos < end) {
|
|
67179
|
+
var tag = reader.uint32();
|
|
67180
|
+
switch (tag >>> 3) {
|
|
67181
|
+
case 0:
|
|
67182
|
+
message.status = reader.int32();
|
|
67183
|
+
break;
|
|
67184
|
+
case 1:
|
|
67185
|
+
if (!(message.errors && message.errors.length))
|
|
67186
|
+
message.errors = [];
|
|
67187
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
67188
|
+
break;
|
|
67189
|
+
case 2:
|
|
67190
|
+
message.stripeChargeId = reader.string();
|
|
67191
|
+
break;
|
|
67192
|
+
default:
|
|
67193
|
+
reader.skipType(tag & 7);
|
|
67194
|
+
break;
|
|
67195
|
+
}
|
|
67196
|
+
}
|
|
67197
|
+
return message;
|
|
67198
|
+
};
|
|
67199
|
+
|
|
67200
|
+
/**
|
|
67201
|
+
* Decodes a RetrieveStripeChargeByIntentsResponse message from the specified reader or buffer, length delimited.
|
|
67202
|
+
* @function decodeDelimited
|
|
67203
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67204
|
+
* @static
|
|
67205
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67206
|
+
* @returns {RetrieveStripeChargeByIntentsResponse} RetrieveStripeChargeByIntentsResponse
|
|
67207
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67208
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67209
|
+
*/
|
|
67210
|
+
RetrieveStripeChargeByIntentsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
67211
|
+
if (!(reader instanceof $Reader))
|
|
67212
|
+
reader = new $Reader(reader);
|
|
67213
|
+
return this.decode(reader, reader.uint32());
|
|
67214
|
+
};
|
|
67215
|
+
|
|
67216
|
+
/**
|
|
67217
|
+
* Verifies a RetrieveStripeChargeByIntentsResponse message.
|
|
67218
|
+
* @function verify
|
|
67219
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67220
|
+
* @static
|
|
67221
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
67222
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
67223
|
+
*/
|
|
67224
|
+
RetrieveStripeChargeByIntentsResponse.verify = function verify(message) {
|
|
67225
|
+
if (typeof message !== "object" || message === null)
|
|
67226
|
+
return "object expected";
|
|
67227
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
67228
|
+
switch (message.status) {
|
|
67229
|
+
default:
|
|
67230
|
+
return "status: enum value expected";
|
|
67231
|
+
case 0:
|
|
67232
|
+
case 200:
|
|
67233
|
+
case 400:
|
|
67234
|
+
case 401:
|
|
67235
|
+
case 403:
|
|
67236
|
+
case 422:
|
|
67237
|
+
case 500:
|
|
67238
|
+
case 504:
|
|
67239
|
+
break;
|
|
67240
|
+
}
|
|
67241
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
67242
|
+
if (!Array.isArray(message.errors))
|
|
67243
|
+
return "errors: array expected";
|
|
67244
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
67245
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
67246
|
+
if (error)
|
|
67247
|
+
return "errors." + error;
|
|
67248
|
+
}
|
|
67249
|
+
}
|
|
67250
|
+
if (message.stripeChargeId != null && message.hasOwnProperty("stripeChargeId"))
|
|
67251
|
+
if (!$util.isString(message.stripeChargeId))
|
|
67252
|
+
return "stripeChargeId: string expected";
|
|
67253
|
+
return null;
|
|
67254
|
+
};
|
|
67255
|
+
|
|
67256
|
+
/**
|
|
67257
|
+
* Creates a RetrieveStripeChargeByIntentsResponse message from a plain object. Also converts values to their respective internal types.
|
|
67258
|
+
* @function fromObject
|
|
67259
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67260
|
+
* @static
|
|
67261
|
+
* @param {Object.<string,*>} object Plain object
|
|
67262
|
+
* @returns {RetrieveStripeChargeByIntentsResponse} RetrieveStripeChargeByIntentsResponse
|
|
67263
|
+
*/
|
|
67264
|
+
RetrieveStripeChargeByIntentsResponse.fromObject = function fromObject(object) {
|
|
67265
|
+
if (object instanceof $root.RetrieveStripeChargeByIntentsResponse)
|
|
67266
|
+
return object;
|
|
67267
|
+
var message = new $root.RetrieveStripeChargeByIntentsResponse();
|
|
67268
|
+
switch (object.status) {
|
|
67269
|
+
case "UNKNOWN_CODE":
|
|
67270
|
+
case 0:
|
|
67271
|
+
message.status = 0;
|
|
67272
|
+
break;
|
|
67273
|
+
case "OK":
|
|
67274
|
+
case 200:
|
|
67275
|
+
message.status = 200;
|
|
67276
|
+
break;
|
|
67277
|
+
case "BAD_REQUEST":
|
|
67278
|
+
case 400:
|
|
67279
|
+
message.status = 400;
|
|
67280
|
+
break;
|
|
67281
|
+
case "UNAUTHORIZED":
|
|
67282
|
+
case 401:
|
|
67283
|
+
message.status = 401;
|
|
67284
|
+
break;
|
|
67285
|
+
case "FORBIDDEN":
|
|
67286
|
+
case 403:
|
|
67287
|
+
message.status = 403;
|
|
67288
|
+
break;
|
|
67289
|
+
case "UNPROCESSABLE_ENTITY":
|
|
67290
|
+
case 422:
|
|
67291
|
+
message.status = 422;
|
|
67292
|
+
break;
|
|
67293
|
+
case "INTERNAL_SERVER_ERROR":
|
|
67294
|
+
case 500:
|
|
67295
|
+
message.status = 500;
|
|
67296
|
+
break;
|
|
67297
|
+
case "GATEWAY_TIMEOUT":
|
|
67298
|
+
case 504:
|
|
67299
|
+
message.status = 504;
|
|
67300
|
+
break;
|
|
67301
|
+
}
|
|
67302
|
+
if (object.errors) {
|
|
67303
|
+
if (!Array.isArray(object.errors))
|
|
67304
|
+
throw TypeError(".RetrieveStripeChargeByIntentsResponse.errors: array expected");
|
|
67305
|
+
message.errors = [];
|
|
67306
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
67307
|
+
if (typeof object.errors[i] !== "object")
|
|
67308
|
+
throw TypeError(".RetrieveStripeChargeByIntentsResponse.errors: object expected");
|
|
67309
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
67310
|
+
}
|
|
67311
|
+
}
|
|
67312
|
+
if (object.stripeChargeId != null)
|
|
67313
|
+
message.stripeChargeId = String(object.stripeChargeId);
|
|
67314
|
+
return message;
|
|
67315
|
+
};
|
|
67316
|
+
|
|
67317
|
+
/**
|
|
67318
|
+
* Creates a plain object from a RetrieveStripeChargeByIntentsResponse message. Also converts values to other types if specified.
|
|
67319
|
+
* @function toObject
|
|
67320
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67321
|
+
* @static
|
|
67322
|
+
* @param {RetrieveStripeChargeByIntentsResponse} message RetrieveStripeChargeByIntentsResponse
|
|
67323
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
67324
|
+
* @returns {Object.<string,*>} Plain object
|
|
67325
|
+
*/
|
|
67326
|
+
RetrieveStripeChargeByIntentsResponse.toObject = function toObject(message, options) {
|
|
67327
|
+
if (!options)
|
|
67328
|
+
options = {};
|
|
67329
|
+
var object = {};
|
|
67330
|
+
if (options.arrays || options.defaults)
|
|
67331
|
+
object.errors = [];
|
|
67332
|
+
if (options.defaults) {
|
|
67333
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
67334
|
+
object.stripeChargeId = "";
|
|
67335
|
+
}
|
|
67336
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
67337
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
67338
|
+
if (message.errors && message.errors.length) {
|
|
67339
|
+
object.errors = [];
|
|
67340
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
67341
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
67342
|
+
}
|
|
67343
|
+
if (message.stripeChargeId != null && message.hasOwnProperty("stripeChargeId"))
|
|
67344
|
+
object.stripeChargeId = message.stripeChargeId;
|
|
67345
|
+
return object;
|
|
67346
|
+
};
|
|
67347
|
+
|
|
67348
|
+
/**
|
|
67349
|
+
* Converts this RetrieveStripeChargeByIntentsResponse to JSON.
|
|
67350
|
+
* @function toJSON
|
|
67351
|
+
* @memberof RetrieveStripeChargeByIntentsResponse
|
|
67352
|
+
* @instance
|
|
67353
|
+
* @returns {Object.<string,*>} JSON object
|
|
67354
|
+
*/
|
|
67355
|
+
RetrieveStripeChargeByIntentsResponse.prototype.toJSON = function toJSON() {
|
|
67356
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
67357
|
+
};
|
|
67358
|
+
|
|
67359
|
+
return RetrieveStripeChargeByIntentsResponse;
|
|
67360
|
+
})();
|
|
67361
|
+
|
|
64544
67362
|
$root.CreateStripeCustomerRequest = (function() {
|
|
64545
67363
|
|
|
64546
67364
|
/**
|
|
@@ -68570,6 +71388,7 @@ $root.CaptureStripePaymentIntentResponse = (function() {
|
|
|
68570
71388
|
* @property {StatusCode|null} [status] CaptureStripePaymentIntentResponse status
|
|
68571
71389
|
* @property {Array.<IError>|null} [errors] CaptureStripePaymentIntentResponse errors
|
|
68572
71390
|
* @property {boolean|null} [success] CaptureStripePaymentIntentResponse success
|
|
71391
|
+
* @property {string|null} [chargeId] CaptureStripePaymentIntentResponse chargeId
|
|
68573
71392
|
*/
|
|
68574
71393
|
|
|
68575
71394
|
/**
|
|
@@ -68612,6 +71431,14 @@ $root.CaptureStripePaymentIntentResponse = (function() {
|
|
|
68612
71431
|
*/
|
|
68613
71432
|
CaptureStripePaymentIntentResponse.prototype.success = false;
|
|
68614
71433
|
|
|
71434
|
+
/**
|
|
71435
|
+
* CaptureStripePaymentIntentResponse chargeId.
|
|
71436
|
+
* @member {string} chargeId
|
|
71437
|
+
* @memberof CaptureStripePaymentIntentResponse
|
|
71438
|
+
* @instance
|
|
71439
|
+
*/
|
|
71440
|
+
CaptureStripePaymentIntentResponse.prototype.chargeId = "";
|
|
71441
|
+
|
|
68615
71442
|
/**
|
|
68616
71443
|
* Creates a new CaptureStripePaymentIntentResponse instance using the specified properties.
|
|
68617
71444
|
* @function create
|
|
@@ -68643,6 +71470,8 @@ $root.CaptureStripePaymentIntentResponse = (function() {
|
|
|
68643
71470
|
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
68644
71471
|
if (message.success != null && Object.hasOwnProperty.call(message, "success"))
|
|
68645
71472
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.success);
|
|
71473
|
+
if (message.chargeId != null && Object.hasOwnProperty.call(message, "chargeId"))
|
|
71474
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.chargeId);
|
|
68646
71475
|
return writer;
|
|
68647
71476
|
};
|
|
68648
71477
|
|
|
@@ -68688,6 +71517,9 @@ $root.CaptureStripePaymentIntentResponse = (function() {
|
|
|
68688
71517
|
case 2:
|
|
68689
71518
|
message.success = reader.bool();
|
|
68690
71519
|
break;
|
|
71520
|
+
case 3:
|
|
71521
|
+
message.chargeId = reader.string();
|
|
71522
|
+
break;
|
|
68691
71523
|
default:
|
|
68692
71524
|
reader.skipType(tag & 7);
|
|
68693
71525
|
break;
|
|
@@ -68749,6 +71581,9 @@ $root.CaptureStripePaymentIntentResponse = (function() {
|
|
|
68749
71581
|
if (message.success != null && message.hasOwnProperty("success"))
|
|
68750
71582
|
if (typeof message.success !== "boolean")
|
|
68751
71583
|
return "success: boolean expected";
|
|
71584
|
+
if (message.chargeId != null && message.hasOwnProperty("chargeId"))
|
|
71585
|
+
if (!$util.isString(message.chargeId))
|
|
71586
|
+
return "chargeId: string expected";
|
|
68752
71587
|
return null;
|
|
68753
71588
|
};
|
|
68754
71589
|
|
|
@@ -68810,6 +71645,8 @@ $root.CaptureStripePaymentIntentResponse = (function() {
|
|
|
68810
71645
|
}
|
|
68811
71646
|
if (object.success != null)
|
|
68812
71647
|
message.success = Boolean(object.success);
|
|
71648
|
+
if (object.chargeId != null)
|
|
71649
|
+
message.chargeId = String(object.chargeId);
|
|
68813
71650
|
return message;
|
|
68814
71651
|
};
|
|
68815
71652
|
|
|
@@ -68831,6 +71668,7 @@ $root.CaptureStripePaymentIntentResponse = (function() {
|
|
|
68831
71668
|
if (options.defaults) {
|
|
68832
71669
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
68833
71670
|
object.success = false;
|
|
71671
|
+
object.chargeId = "";
|
|
68834
71672
|
}
|
|
68835
71673
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
68836
71674
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
@@ -68841,6 +71679,8 @@ $root.CaptureStripePaymentIntentResponse = (function() {
|
|
|
68841
71679
|
}
|
|
68842
71680
|
if (message.success != null && message.hasOwnProperty("success"))
|
|
68843
71681
|
object.success = message.success;
|
|
71682
|
+
if (message.chargeId != null && message.hasOwnProperty("chargeId"))
|
|
71683
|
+
object.chargeId = message.chargeId;
|
|
68844
71684
|
return object;
|
|
68845
71685
|
};
|
|
68846
71686
|
|
|
@@ -72067,6 +74907,39 @@ $root.StripeService = (function() {
|
|
|
72067
74907
|
* @variation 2
|
|
72068
74908
|
*/
|
|
72069
74909
|
|
|
74910
|
+
/**
|
|
74911
|
+
* Callback as used by {@link StripeService#retrieveStripeChargeByIntent}.
|
|
74912
|
+
* @memberof StripeService
|
|
74913
|
+
* @typedef retrieveStripeChargeByIntentCallback
|
|
74914
|
+
* @type {function}
|
|
74915
|
+
* @param {Error|null} error Error, if any
|
|
74916
|
+
* @param {RetrieveStripeChargeByIntentsResponse} [response] RetrieveStripeChargeByIntentsResponse
|
|
74917
|
+
*/
|
|
74918
|
+
|
|
74919
|
+
/**
|
|
74920
|
+
* Calls retrieveStripeChargeByIntent.
|
|
74921
|
+
* @function retrieveStripeChargeByIntent
|
|
74922
|
+
* @memberof StripeService
|
|
74923
|
+
* @instance
|
|
74924
|
+
* @param {IRetrieveStripeChargeByIntentsRequest} request RetrieveStripeChargeByIntentsRequest message or plain object
|
|
74925
|
+
* @param {StripeService.retrieveStripeChargeByIntentCallback} callback Node-style callback called with the error, if any, and RetrieveStripeChargeByIntentsResponse
|
|
74926
|
+
* @returns {undefined}
|
|
74927
|
+
* @variation 1
|
|
74928
|
+
*/
|
|
74929
|
+
Object.defineProperty(StripeService.prototype.retrieveStripeChargeByIntent = function retrieveStripeChargeByIntent(request, callback) {
|
|
74930
|
+
return this.rpcCall(retrieveStripeChargeByIntent, $root.RetrieveStripeChargeByIntentsRequest, $root.RetrieveStripeChargeByIntentsResponse, request, callback);
|
|
74931
|
+
}, "name", { value: "retrieveStripeChargeByIntent" });
|
|
74932
|
+
|
|
74933
|
+
/**
|
|
74934
|
+
* Calls retrieveStripeChargeByIntent.
|
|
74935
|
+
* @function retrieveStripeChargeByIntent
|
|
74936
|
+
* @memberof StripeService
|
|
74937
|
+
* @instance
|
|
74938
|
+
* @param {IRetrieveStripeChargeByIntentsRequest} request RetrieveStripeChargeByIntentsRequest message or plain object
|
|
74939
|
+
* @returns {Promise<RetrieveStripeChargeByIntentsResponse>} Promise
|
|
74940
|
+
* @variation 2
|
|
74941
|
+
*/
|
|
74942
|
+
|
|
72070
74943
|
/**
|
|
72071
74944
|
* Callback as used by {@link StripeService#createStripeCustomer}.
|
|
72072
74945
|
* @memberof StripeService
|