passkit-ruby-grpc-sdk 1.1.105
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.
- checksums.yaml +7 -0
- data/lib/ct/scheduler/scheduler_pb.rb +21 -0
- data/lib/io/analytics/a_rpc_pb.rb +17 -0
- data/lib/io/analytics/a_rpc_services_pb.rb +28 -0
- data/lib/io/certificate/certificate_pb.rb +24 -0
- data/lib/io/common/attributes_pb.rb +18 -0
- data/lib/io/common/billing_pb.rb +16 -0
- data/lib/io/common/common_objects_pb.rb +48 -0
- data/lib/io/common/distribution_pb.rb +32 -0
- data/lib/io/common/expiry_pb.rb +18 -0
- data/lib/io/common/filter_pb.rb +19 -0
- data/lib/io/common/integration_pb.rb +40 -0
- data/lib/io/common/links_pb.rb +20 -0
- data/lib/io/common/localization_pb.rb +16 -0
- data/lib/io/common/message_pb.rb +27 -0
- data/lib/io/common/metrics_pb.rb +23 -0
- data/lib/io/common/note_pb.rb +17 -0
- data/lib/io/common/operation_pb.rb +15 -0
- data/lib/io/common/pagination_pb.rb +17 -0
- data/lib/io/common/pass_pb.rb +25 -0
- data/lib/io/common/personal_pb.rb +20 -0
- data/lib/io/common/project_pb.rb +22 -0
- data/lib/io/common/protocols_pb.rb +16 -0
- data/lib/io/common/proximity_pb.rb +19 -0
- data/lib/io/common/reporting_pb.rb +25 -0
- data/lib/io/common/template_pb.rb +65 -0
- data/lib/io/common/tracking_pb.rb +23 -0
- data/lib/io/common/transaction_pb.rb +20 -0
- data/lib/io/common/useragent_pb.rb +15 -0
- data/lib/io/core/a_rpc_certificates_pb.rb +21 -0
- data/lib/io/core/a_rpc_certificates_services_pb.rb +30 -0
- data/lib/io/core/a_rpc_distribution_pb.rb +19 -0
- data/lib/io/core/a_rpc_distribution_services_pb.rb +27 -0
- data/lib/io/core/a_rpc_images_pb.rb +21 -0
- data/lib/io/core/a_rpc_images_services_pb.rb +45 -0
- data/lib/io/core/a_rpc_messages_pb.rb +19 -0
- data/lib/io/core/a_rpc_messages_services_pb.rb +26 -0
- data/lib/io/core/a_rpc_others_pb.rb +23 -0
- data/lib/io/core/a_rpc_others_services_pb.rb +85 -0
- data/lib/io/core/a_rpc_templates_pb.rb +23 -0
- data/lib/io/core/a_rpc_templates_services_pb.rb +62 -0
- data/lib/io/event_tickets/a_rpc_pb.rb +25 -0
- data/lib/io/event_tickets/a_rpc_services_pb.rb +67 -0
- data/lib/io/event_tickets/event_pb.rb +27 -0
- data/lib/io/event_tickets/production_pb.rb +25 -0
- data/lib/io/event_tickets/ticket_pb.rb +49 -0
- data/lib/io/event_tickets/ticket_type_pb.rb +22 -0
- data/lib/io/event_tickets/venue_pb.rb +20 -0
- data/lib/io/flights/a_rpc_pb.rb +22 -0
- data/lib/io/flights/a_rpc_services_pb.rb +68 -0
- data/lib/io/flights/airport_pb.rb +18 -0
- data/lib/io/flights/barcode_pb.rb +25 -0
- data/lib/io/flights/boarding_pass_pb.rb +29 -0
- data/lib/io/flights/cabin_codes/cabin_codes_pb.rb +15 -0
- data/lib/io/flights/carrier_pb.rb +18 -0
- data/lib/io/flights/flight_designator_pb.rb +26 -0
- data/lib/io/flights/flight_pb.rb +24 -0
- data/lib/io/flights/passenger_pb.rb +23 -0
- data/lib/io/image/image_pb.rb +31 -0
- data/lib/io/member/a_rpc_pb.rb +27 -0
- data/lib/io/member/a_rpc_services_pb.rb +87 -0
- data/lib/io/member/event_pb.rb +15 -0
- data/lib/io/member/member_events_pb.rb +20 -0
- data/lib/io/member/member_pb.rb +38 -0
- data/lib/io/member/program_pb.rb +33 -0
- data/lib/io/member/tier_pb.rb +21 -0
- data/lib/io/raw/a_rpc_pb.rb +20 -0
- data/lib/io/raw/a_rpc_services_pb.rb +38 -0
- data/lib/io/raw/pass_pb.rb +24 -0
- data/lib/io/raw/project_pb.rb +22 -0
- data/lib/io/scheduler/a_rpc_pb.rb +20 -0
- data/lib/io/scheduler/a_rpc_services_pb.rb +33 -0
- data/lib/io/scheduler/scheduler_pb.rb +17 -0
- data/lib/io/single_use_coupons/a_rpc_pb.rb +25 -0
- data/lib/io/single_use_coupons/a_rpc_services_pb.rb +53 -0
- data/lib/io/single_use_coupons/campaign_pb.rb +22 -0
- data/lib/io/single_use_coupons/coupon_pb.rb +28 -0
- data/lib/io/single_use_coupons/offer_pb.rb +38 -0
- data/lib/io/user/user_pb.rb +50 -0
- metadata +135 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/member/program.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'io/common/distribution_pb'
|
|
9
|
+
require 'io/common/localization_pb'
|
|
10
|
+
require 'io/common/metrics_pb'
|
|
11
|
+
require 'io/common/project_pb'
|
|
12
|
+
require 'io/common/billing_pb'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
descriptor_data = "\n\x17io/member/program.proto\x12\x07members\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cio/common/distribution.proto\x1a\x1cio/common/localization.proto\x1a\x17io/common/metrics.proto\x1a\x17io/common/project.proto\x1a\x17io/common/billing.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"M\n\nPointsType\x12)\n\x0b\x62\x61lanceType\x18\x01 \x01(\x0e\x32\x14.members.BalanceType\x12\x14\n\x0c\x63urrencyCode\x18\x02 \x01(\t\"\xc5\x07\n\x07Program\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12*\n\rlocalizedName\x18\x03 \x01(\x0b\x32\x13.io.LocalizedString\x12!\n\x06status\x18\x04 \x03(\x0e\x32\x11.io.ProjectStatus\x12\x18\n\x05quota\x18\x05 \x01(\x0b\x32\t.io.Quota\x12\x1a\n\x12passTypeIdentifier\x18\x06 \x01(\t\x12\x36\n\x14\x64istributionSettings\x18\x07 \x01(\x0b\x32\x18.io.DistributionSettings\x12!\n\x19\x61utoDeleteDaysAfterExpiry\x18\x08 \x01(\r\x12\x15\n\rexpiryMessage\x18\n \x01(\t\x12\x33\n\x16localizedExpiryMessage\x18\x0b \x01(\x0b\x32\x13.io.LocalizedString\x12\'\n\npointsType\x18\x10 \x01(\x0b\x32\x13.members.PointsType\x12\x30\n\x13secondaryPointsType\x18\x11 \x01(\x0b\x32\x13.members.PointsType\x12\x1c\n\x07metrics\x18\x13 \x01(\x0b\x32\x0b.io.Metrics\x12\x16\n\x0emetaFieldsList\x18\x14 \x03(\t\x12+\n\x07\x63reated\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07updated\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x14profileImageSettings\x18\x17 \x01(\x0e\x32\x1c.members.ProfileImageSetting\x12@\n\x1d\x61pplyFieldToExternalIdOnEnrol\x18\x18 \x01(\x0b\x32\x19.members.CustomExternalId\x12;\n\x14\x65ventCaptureSettings\x18\x19 \x01(\x0b\x32\x1d.members.EventCaptureSettings\x12;\n\x14passRecoverySettings\x18\x1a \x01(\x0b\x32\x1d.members.PassRecoverySettings:s\x92\x41p\nn*\x07Program2SMembership Programs allow a company to control the business logic of their program.\xd2\x01\x04name\xd2\x01\x06statusJ\x04\x08\t\x10\nJ\x04\x08\x0c\x10\rJ\x04\x08\r\x10\x0eJ\x04\x08\x0e\x10\x0fJ\x04\x08\x12\x10\x13\"\xfc\x01\n\x14\x45ventCaptureSettings\x12\x61\n\x1a\x65ventDataRetentionSettings\x18\x01 \x03(\x0b\x32=.members.EventCaptureSettings.EventDataRetentionSettingsEntry\x12\x1d\n\x15smsConfirmUponCheckIn\x18\x02 \x01(\x08\x12\x1f\n\x17\x65mailConfirmUponCheckIn\x18\x03 \x01(\x08\x1a\x41\n\x1f\x45ventDataRetentionSettingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\"m\n\x12ProgramCopyRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12!\n\x06status\x18\x03 \x03(\x0e\x32\x11.io.ProjectStatus\x12\x1a\n\x12passTypeIdentifier\x18\x04 \x01(\t\":\n\x14ListProgramsResponse\x12\"\n\x08programs\x18\x01 \x03(\x0b\x32\x10.members.Program\"#\n\x13GetMetaKeysResponse\x12\x0c\n\x04keys\x18\x01 \x03(\t\"A\n\x10\x43ustomExternalId\x12\x17\n\x0f\x66ieldUniqueName\x18\x01 \x01(\t\x12\x14\n\x0c\x65rrorMessage\x18\x02 \x01(\t\"\xaa\x01\n\x14PassRecoverySettings\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12.\n\x08\x64\x65livery\x18\x02 \x01(\x0e\x32\x1c.members.RecoverPassDelivery\x12\x17\n\x0f\x65rrorPageHeader\x18\x03 \x01(\t\x12\x15\n\rerrorPageBody\x18\x04 \x01(\t\x12!\n\x19\x66ieldsToMatchUponRecovery\x18\x05 \x03(\t*\x8f\x01\n\x1eProgramAutoUpDownGradeTierType\x12\x16\n\x12UPDOWNGRADE_POINTS\x10\x00\x12 \n\x1cUPDOWNGRADE_SECONDARY_POINTS\x10\x01\x12\x1b\n\x17UPDOWNGRADE_TIER_POINTS\x10\x02\x12\x16\n\x12UPDOWNGRADE_VISITS\x10\x03*m\n\x0b\x42\x61lanceType\x12\x17\n\x13\x42\x41LANCE_TYPE_STRING\x10\x00\x12\x14\n\x10\x42\x41LANCE_TYPE_INT\x10\x01\x12\x17\n\x13\x42\x41LANCE_TYPE_DOUBLE\x10\x02\x12\x16\n\x12\x42\x41LANCE_TYPE_MONEY\x10\x03*\x83\x01\n\x13ProfileImageSetting\x12\x16\n\x12PROFILE_IMAGE_NONE\x10\x00\x12\x1a\n\x16PROFILE_IMAGE_OPTIONAL\x10\x01\x12\x1a\n\x16PROFILE_IMAGE_REQUIRED\x10\x02\x12\x1c\n\x18PROFILE_IMAGE_RESTRICTED\x10\x03*R\n\x13RecoverPassDelivery\x12\x15\n\x11\x44\x45LIVERY_REDIRECT\x10\x00\x12\x12\n\x0e\x44\x45LIVERY_EMAIL\x10\x01\x12\x10\n\x0c\x44\x45LIVERY_SMS\x10\x02\x42_\n\x18\x63om.passkit.grpc.MembersZ,stash.passkit.com/io/model/sdk/go/io/members\xaa\x02\x14PassKit.Grpc.Membersb\x06proto3"
|
|
16
|
+
|
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
|
|
20
|
+
module Members
|
|
21
|
+
PointsType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.PointsType").msgclass
|
|
22
|
+
Program = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.Program").msgclass
|
|
23
|
+
EventCaptureSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.EventCaptureSettings").msgclass
|
|
24
|
+
ProgramCopyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.ProgramCopyRequest").msgclass
|
|
25
|
+
ListProgramsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.ListProgramsResponse").msgclass
|
|
26
|
+
GetMetaKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.GetMetaKeysResponse").msgclass
|
|
27
|
+
CustomExternalId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.CustomExternalId").msgclass
|
|
28
|
+
PassRecoverySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.PassRecoverySettings").msgclass
|
|
29
|
+
ProgramAutoUpDownGradeTierType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.ProgramAutoUpDownGradeTierType").enummodule
|
|
30
|
+
BalanceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.BalanceType").enummodule
|
|
31
|
+
ProfileImageSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.ProfileImageSetting").enummodule
|
|
32
|
+
RecoverPassDelivery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.RecoverPassDelivery").enummodule
|
|
33
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/member/tier.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'io/common/localization_pb'
|
|
9
|
+
require 'io/common/common_objects_pb'
|
|
10
|
+
require 'io/common/expiry_pb'
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
descriptor_data = "\n\x14io/member/tier.proto\x12\x07members\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x1cio/common/localization.proto\x1a\x1eio/common/common_objects.proto\x1a\x16io/common/expiry.proto\"\xa3\x06\n\x04Tier\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\ttierIndex\x18\x02 \x01(\r\x12\x0c\n\x04name\x18\x03 \x01(\t\x12*\n\rlocalizedName\x18\x04 \x01(\x0b\x32\x13.io.LocalizedString\x12\x19\n\x11secondaryTierName\x18\x05 \x01(\t\x12\x37\n\x1alocalizedSecondaryTierName\x18\x06 \x01(\x0b\x32\x13.io.LocalizedString\x12\x11\n\tprogramId\x18\x07 \x01(\t\x12\x16\n\x0epassTemplateId\x18\x08 \x01(\t\x12\x1a\n\x12tierUpgradeMessage\x18\t \x01(\t\x12\x38\n\x1blocalizedTierUpgradeMessage\x18\n \x01(\x0b\x32\x13.io.LocalizedString\x12\x1c\n\x14tierDowngradeMessage\x18\x0b \x01(\t\x12:\n\x1dlocalizedTierDowngradeMessage\x18\x0c \x01(\x0b\x32\x13.io.LocalizedString\x12+\n\x07\x63reated\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07updated\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fpointsOverdrawn\x18\x0f \x01(\x08\x12 \n\x18secondaryPointsOverdrawn\x18\x10 \x01(\x08\x12*\n\x0e\x65xpirySettings\x18\x11 \x01(\x0b\x32\x12.io.ExpirySettings\x12\x10\n\x08timezone\x18\x12 \x01(\t\x12&\n\x12\x61llowTierEnrolment\x18\x13 \x01(\x0b\x32\n.io.PkBool\x12\x11\n\tshortCode\x18\x14 \x01(\t:\x84\x01\x92\x41\x80\x01\n~*\x04Tier2ATier allows a company to override certain details in the program.\xd2\x01\x02id\xd2\x01\ttierIndex\xd2\x01\tprogramId\xd2\x01\x04name\xd2\x01\x0epassTemplateId\"5\n\x10TierRequestInput\x12\x11\n\tprogramId\x18\x01 \x01(\t\x12\x0e\n\x06tierId\x18\x02 \x01(\tB_\n\x18\x63om.passkit.grpc.MembersZ,stash.passkit.com/io/model/sdk/go/io/members\xaa\x02\x14PassKit.Grpc.Membersb\x06proto3"
|
|
14
|
+
|
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
|
17
|
+
|
|
18
|
+
module Members
|
|
19
|
+
Tier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.Tier").msgclass
|
|
20
|
+
TierRequestInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("members.TierRequestInput").msgclass
|
|
21
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/raw/a_rpc.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/empty_pb'
|
|
8
|
+
require 'google/api/annotations_pb'
|
|
9
|
+
require 'io/common/common_objects_pb'
|
|
10
|
+
require 'io/raw/project_pb'
|
|
11
|
+
require 'io/raw/pass_pb'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
descriptor_data = "\n\x12io/raw/a_rpc.proto\x12\x03raw\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1eio/common/common_objects.proto\x1a\x14io/raw/project.proto\x1a\x11io/raw/pass.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\xd8\x0f\n\x03Raw\x12\x7f\n\x11\x63reatePassProject\x12\x10.raw.PassProject\x1a\x06.io.Id\"P\x92\x41\x32\n\x03Raw\x12\x13\x43reate Pass Project\x1a\x16\x43reates a Pass Project\x82\xd3\xe4\x93\x02\x15\"\x10/raw/passProject:\x01*\x12\x93\x01\n\x11updatePassProject\x12\x10.raw.PassProject\x1a\x10.raw.PassProject\"Z\x92\x41<\n\x03Raw\x12\x13Update Pass Project\x1a Updates an existing Pass Project\x82\xd3\xe4\x93\x02\x15\x1a\x10/raw/passProject:\x01*\x12\x82\x01\n\x0egetPassProject\x12\x06.io.Id\x1a\x10.raw.PassProject\"V\x92\x41\x36\n\x03Raw\x12\x10Get Pass Project\x1a\x1dGets an existing Pass Project\x82\xd3\xe4\x93\x02\x17\x12\x15/raw/passProject/{id}\x12\x94\x01\n\x0f\x63opyPassProject\x12\x1b.raw.PassProjectCopyRequest\x1a\x06.io.Id\"\\\x92\x41\x39\n\x03Raw\x12\x11\x43opy Pass Project\x1a\x1f\x43opies an existing Pass Project\x82\xd3\xe4\x93\x02\x1a\"\x15/raw/passProject/copy:\x01*\x12\x84\x02\n\x11\x64\x65letePassProject\x12\x06.io.Id\x1a\x16.google.protobuf.Empty\"\xce\x01\x92\x41\xad\x01\n\x03Raw\x12\x13\x44\x65lete Pass Project\x1a\x90\x01\x44\x65letes an existing Pass Project by id. Deleting a Pass Project results in all passes being invalidated and removed. Needs to be used with care.\x82\xd3\xe4\x93\x02\x17*\x15/raw/passProject/{id}\x12\x65\n\ncreatePass\x12\t.raw.Pass\x1a\x06.io.Id\"D\x92\x41-\n\x03Raw\x12\x0b\x43reate Pass\x1a\x19\x43reates a new Pass record\x82\xd3\xe4\x93\x02\x0e\"\t/raw/pass:\x01*\x12k\n\nupdatePass\x12\t.raw.Pass\x1a\x06.io.Id\"J\x92\x41\x33\n\x03Raw\x12\x0bUpdate Pass\x1a\x1fUpdates an existing Pass record\x82\xd3\xe4\x93\x02\x0e\x1a\t/raw/pass:\x01*\x12\x92\x01\n\x11streamPassUpdates\x12\t.raw.Pass\x1a\x06.io.Id\"f\x92\x41\x63\n\x03Raw\x12\x32Stream Pass Updates (official SDK\'s only, no REST)\x1a(Updates existing Pass records via stream(\x01\x30\x01\x12\x64\n\x0bgetPassById\x12\x06.io.Id\x1a\t.raw.Pass\"B\x92\x41)\n\x03Raw\x12\x0eGet Pass by ID\x1a\x12Gets a pass record\x82\xd3\xe4\x93\x02\x10\x12\x0e/raw/pass/{id}\x12\xc3\x01\n\x13getPassByExternalId\x12\".raw.PassRecordByExternalIdRequest\x1a\t.raw.Pass\"}\x92\x41\x41\n\x03Raw\x12\x17Get Pass by External ID\x1a!Gets a pass record by External ID\x82\xd3\xe4\x93\x02\x33\x12\x31/raw/pass/externalId/{passProjectId}/{externalId}\x12v\n\ndeletePass\x12\t.raw.Pass\x1a\x16.google.protobuf.Empty\"E\x92\x41)\n\x03Raw\x12\x0b\x44\x65lete Pass\x1a\x15\x44\x65letes a pass record\x82\xd3\xe4\x93\x02\x13*\x0e/raw/pass/{id}:\x01*\x12\xc0\x01\n\x17listPassesByPassProject\x12#.raw.ListPassesByPassProjectRequest\x1a\t.raw.Pass\"s\x92\x41J\n\x03Raw\x12\x0bList Passes\x1a\x36List all passes for pass project. Supports pagination.\x82\xd3\xe4\x93\x02 \"\x1b/raw/pass/listByPassProject:\x01*0\x01\x12\xc6\x01\n\x18listPassesByPassTemplate\x12$.raw.ListPassesByPassTemplateRequest\x1a\t.raw.Pass\"w\x92\x41M\n\x03Raw\x12\x0bList Passes\x1a\x39List all passes for a pass template. Supports pagination.\x82\xd3\xe4\x93\x02!\"\x1c/raw/pass/listByPassTemplate:\x01*0\x01\x42\x8a\x07\n\x14\x63om.passkit.grpc.RawZ(stash.passkit.com/io/model/sdk/go/io/raw\xaa\x02\x10PassKit.Grpc.Raw\x92\x41\xb3\x06\x12\xc0\x02\n\x16PassKit Raw Passes API\x12\xa5\x01This protocol is suit for cases where the business logic is handled elsewhere, and the purpose is purely to issue and update content for Apple Wallet and Google Pay.\x1a\x38https://passkit.com/legal/terms-of-subscription-service/\"?\n\x0fPassKit Support\x12\x17https://docs.passkit.io\x1a\x13support@passkit.com2\x03\x30.1*\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonR9\n\x03\x32\x30\x30\x12\x32\n(Returned when the request is successful.\x12\x06\n\x04\x9a\x02\x01\x07R4\n\x03\x34\x30\x30\x12-\n+Returned when wrong user input is provided.R0\n\x03\x34\x30\x31\x12)\n\'Returned when the user is unauthorized.RP\n\x03\x34\x30\x33\x12I\nGReturned when the user does not have permission to access the resource.R;\n\x03\x34\x30\x34\x12\x34\n*Returned when the resource does not exist.\x12\x06\n\x04\x9a\x02\x01\x07R<\n\x03\x35\x30\x30\x12\x35\n+Returned when there is an unexpected error.\x12\x06\n\x04\x9a\x02\x01\x07RW\n\x03\x35\x30\x33\x12P\nNServer is unavailable. Back off for 250ms and repeat request until successful.b\x06proto3"
|
|
15
|
+
|
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
18
|
+
|
|
19
|
+
module Raw
|
|
20
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: io/raw/a_rpc.proto for package 'raw'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# *
|
|
5
|
+
# This protocol is suit for cases where the business logic is handled elsewhere, and the purpose is purely to issue and
|
|
6
|
+
# update content for Apple Wallet and Google Pay.
|
|
7
|
+
|
|
8
|
+
require 'grpc'
|
|
9
|
+
require 'io/raw/a_rpc_pb'
|
|
10
|
+
|
|
11
|
+
module Raw
|
|
12
|
+
module Raw
|
|
13
|
+
class Service
|
|
14
|
+
|
|
15
|
+
include ::GRPC::GenericService
|
|
16
|
+
|
|
17
|
+
self.marshal_class_method = :encode
|
|
18
|
+
self.unmarshal_class_method = :decode
|
|
19
|
+
self.service_name = 'raw.Raw'
|
|
20
|
+
|
|
21
|
+
rpc :createPassProject, ::Raw::PassProject, ::Io::Id
|
|
22
|
+
rpc :updatePassProject, ::Raw::PassProject, ::Raw::PassProject
|
|
23
|
+
rpc :getPassProject, ::Io::Id, ::Raw::PassProject
|
|
24
|
+
rpc :copyPassProject, ::Raw::PassProjectCopyRequest, ::Io::Id
|
|
25
|
+
rpc :deletePassProject, ::Io::Id, ::Google::Protobuf::Empty
|
|
26
|
+
rpc :createPass, ::Raw::Pass, ::Io::Id
|
|
27
|
+
rpc :updatePass, ::Raw::Pass, ::Io::Id
|
|
28
|
+
rpc :streamPassUpdates, stream(::Raw::Pass), stream(::Io::Id)
|
|
29
|
+
rpc :getPassById, ::Io::Id, ::Raw::Pass
|
|
30
|
+
rpc :getPassByExternalId, ::Raw::PassRecordByExternalIdRequest, ::Raw::Pass
|
|
31
|
+
rpc :deletePass, ::Raw::Pass, ::Google::Protobuf::Empty
|
|
32
|
+
rpc :listPassesByPassProject, ::Raw::ListPassesByPassProjectRequest, stream(::Raw::Pass)
|
|
33
|
+
rpc :listPassesByPassTemplate, ::Raw::ListPassesByPassTemplateRequest, stream(::Raw::Pass)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
Stub = Service.rpc_stub_class
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/raw/pass.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'io/common/metrics_pb'
|
|
9
|
+
require 'io/common/filter_pb'
|
|
10
|
+
require 'io/common/pass_pb'
|
|
11
|
+
require 'io/common/personal_pb'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
descriptor_data = "\n\x11io/raw/pass.proto\x12\x03raw\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17io/common/metrics.proto\x1a\x16io/common/filter.proto\x1a\x14io/common/pass.proto\x1a\x18io/common/personal.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xc7\x05\n\x04Pass\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nexternalId\x18\x02 \x01(\t\x12\x15\n\rpassProjectId\x18\x03 \x01(\t\x12\x16\n\x0epassTemplateId\x18\x04 \x01(\t\x12#\n\x0fpersonalDetails\x18\x05 \x01(\x0b\x32\n.io.Person\x12/\n\x0b\x64ynamicData\x18\x06 \x03(\x0b\x32\x1a.raw.Pass.DynamicDataEntry\x12\x0e\n\x06optOut\x18\x08 \x01(\x08\x12\x10\n\x08isVoided\x18\t \x01(\x08\x12\x32\n\x0einvalidateDate\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nexpiryDate\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12$\n\x0bpassOptions\x18\x0c \x01(\x0b\x32\x0f.io.PassOptions\x12(\n\rpassOverrides\x18\r \x01(\x0b\x32\x11.io.PassOverrides\x12\"\n\x0cpassMetaData\x18\x0e \x01(\x0b\x32\x0c.io.Metadata\x12+\n\x07\x63reated\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07updated\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x32\n\x10\x44ynamicDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x91\x01\x92\x41\x8d\x01\n\x8a\x01*\x04Pass2aPass contains dynamic information that combined with a Pass Project & Template results in a pass.\xd2\x01\rpassProjectId\xd2\x01\x0epassTemplateId\"J\n\x1dPassRecordByExternalIdRequest\x12\x15\n\rpassProjectId\x18\x01 \x01(\t\x12\x12\n\nexternalId\x18\x02 \x01(\t\"U\n\x1eListPassesByPassProjectRequest\x12\x15\n\rpassProjectId\x18\x01 \x01(\t\x12\x1c\n\x07\x66ilters\x18\x02 \x01(\x0b\x32\x0b.io.Filters\"V\n\x1fListPassesByPassTemplateRequest\x12\x15\n\rpassProjectId\x18\x01 \x01(\t\x12\x1c\n\x07\x66ilters\x18\x02 \x01(\x0b\x32\x0b.io.FiltersBS\n\x14\x63om.passkit.grpc.RawZ(stash.passkit.com/io/model/sdk/go/io/raw\xaa\x02\x10PassKit.Grpc.Rawb\x06proto3"
|
|
15
|
+
|
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
18
|
+
|
|
19
|
+
module Raw
|
|
20
|
+
Pass = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("raw.Pass").msgclass
|
|
21
|
+
PassRecordByExternalIdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("raw.PassRecordByExternalIdRequest").msgclass
|
|
22
|
+
ListPassesByPassProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("raw.ListPassesByPassProjectRequest").msgclass
|
|
23
|
+
ListPassesByPassTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("raw.ListPassesByPassTemplateRequest").msgclass
|
|
24
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/raw/project.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'io/common/distribution_pb'
|
|
9
|
+
require 'io/common/localization_pb'
|
|
10
|
+
require 'io/common/project_pb'
|
|
11
|
+
require 'io/common/billing_pb'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
descriptor_data = "\n\x14io/raw/project.proto\x12\x03raw\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cio/common/distribution.proto\x1a\x1cio/common/localization.proto\x1a\x17io/common/project.proto\x1a\x17io/common/billing.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xfe\x03\n\x0bPassProject\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12*\n\rlocalizedName\x18\x03 \x01(\x0b\x32\x13.io.LocalizedString\x12!\n\x06status\x18\x04 \x03(\x0e\x32\x11.io.ProjectStatus\x12\x18\n\x05quota\x18\x05 \x01(\x0b\x32\t.io.Quota\x12\x1a\n\x12passTypeIdentifier\x18\x06 \x01(\t\x12\x36\n\x14\x64istributionSettings\x18\x07 \x01(\x0b\x32\x18.io.DistributionSettings\x12+\n\x07\x63reated\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07updated\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\xbd\x01\x92\x41\xb9\x01\n\xb6\x01*\x0cPass Project2\x95\x01Pass Project holds the basic business logic. Pass Project holds details on pass distribution, quotas, Apple certificate, integrations & hooks to use.\xd2\x01\x04name\xd2\x01\x06status\"q\n\x16PassProjectCopyRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12!\n\x06status\x18\x03 \x03(\x0e\x32\x11.io.ProjectStatus\x12\x1a\n\x12passTypeIdentifier\x18\x04 \x01(\tBS\n\x14\x63om.passkit.grpc.RawZ(stash.passkit.com/io/model/sdk/go/io/raw\xaa\x02\x10PassKit.Grpc.Rawb\x06proto3"
|
|
15
|
+
|
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
18
|
+
|
|
19
|
+
module Raw
|
|
20
|
+
PassProject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("raw.PassProject").msgclass
|
|
21
|
+
PassProjectCopyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("raw.PassProjectCopyRequest").msgclass
|
|
22
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/scheduler/a_rpc.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/protobuf/empty_pb'
|
|
9
|
+
require 'io/common/common_objects_pb'
|
|
10
|
+
require 'io/scheduler/scheduler_pb'
|
|
11
|
+
require 'ct/scheduler/scheduler_pb'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
descriptor_data = "\n\x18io/scheduler/a_rpc.proto\x12\tscheduler\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x1eio/common/common_objects.proto\x1a\x1cio/scheduler/scheduler.proto\x1a\x1c\x63t/scheduler/scheduler.proto2\xac\x11\n\tScheduler\x12\x8f\x02\n\x13\x63reateSchedulingJob\x12\x11.ct.SchedulingJob\x1a\x19.ct.SchedulingJobResponse\"\xc9\x01\x92\x41\xab\x01\n\x0fScheduling Jobs\x12\x15\x43reate Scheduling Job\x1a\x19\x43reates a scheduling job.J0\n\x03\x34\x30\x30\x12)\n\'There is a problem with the input data.J4\n\x03\x34\x30\x33\x12-\n+Returned when the user lacks authorization.\x82\xd3\xe4\x93\x02\x14\"\x0f/scheduling/job:\x01*\x12\x88\x02\n\x10getSchedulingJob\x12\x06.io.Id\x1a\x11.ct.SchedulingJob\"\xd8\x01\x92\x41\xb8\x01\n\x0fScheduling Jobs\x12\x12Get Scheduling Job\x1aMRetrieves a scheduling job. Deleted job will return history logs only if any.J\"\n\x03\x34\x30\x33\x12\x1b\n\x19User lacks authorization.J\x1e\n\x03\x34\x30\x34\x12\x17\n\x15Record was not found.\x82\xd3\xe4\x93\x02\x16\x12\x14/scheduling/job/{id}\x12\xd5\x03\n\x13updateSchedulingJob\x12\x11.ct.SchedulingJob\x1a\x19.ct.SchedulingJobResponse\"\x8f\x03\x92\x41\xf1\x02\n\x0fScheduling Jobs\x12\x15Update Scheduling Job\x1axUpdates a scheduling job. Full SchedulerJob object is required. An empty or null value will override any existing value.J0\n\x03\x34\x30\x30\x12)\n\'There is a problem with the input data.J\"\n\x03\x34\x30\x33\x12\x1b\n\x19User lacks authorization.J\x1e\n\x03\x34\x30\x34\x12\x17\n\x15Record was not found.JW\n\x03\x35\x30\x33\x12P\nNServer is unavailable. Back off for 250ms and repeat request until successful.\x82\xd3\xe4\x93\x02\x14\x1a\x0f/scheduling/job:\x01*\x12\xfa\x02\n\x12patchSchedulingJob\x12\x11.ct.SchedulingJob\x1a\x19.ct.SchedulingJobResponse\"\xb5\x02\x92\x41\x97\x02\n\x0fScheduling Jobs\x12\x14Patch Scheduling Job\x1a\x1fPatch updates a scheduling job.J0\n\x03\x34\x30\x30\x12)\n\'There is a problem with the input data.J\"\n\x03\x34\x30\x33\x12\x1b\n\x19User lacks authorization.J\x1e\n\x03\x34\x30\x34\x12\x17\n\x15Record was not found.JW\n\x03\x35\x30\x33\x12P\nNServer is unavailable. Back off for 250ms and repeat request until successful.\x82\xd3\xe4\x93\x02\x14\x32\x0f/scheduling/job:\x01*\x12\xaa\x02\n\x13\x64\x65leteSchedulingJob\x12\x06.io.Id\x1a\x16.google.protobuf.Empty\"\xf2\x01\x92\x41\xd2\x01\n\x0fScheduling Jobs\x12\x15\x44\x65lete Scheduling Job\x1aRDeletes a scheduling job. History logs are still available after deleting the job.J4\n\x03\x34\x30\x33\x12-\n+Returned when the user lacks authorization.J\x1e\n\x03\x34\x30\x34\x12\x17\n\x15Record was not found.\x82\xd3\xe4\x93\x02\x16*\x14/scheduling/job/{id}\x12\xfa\x01\n\x17getSchedulingJobHistory\x12\x06.io.Id\x1a\x0e.ct.JobHistory\"\xc6\x01\x92\x41\xa2\x01\n\rJob Histories\x12\x1aGet Scheduling Job History\x1a\x31Retrieves a scheduling job history by the log id.J\"\n\x03\x34\x30\x33\x12\x1b\n\x19User lacks authorization.J\x1e\n\x03\x34\x30\x34\x12\x17\n\x15Record was not found.\x82\xd3\xe4\x93\x02\x1a\x12\x18/scheduling/history/{id}\x12\x82\x02\n\x1alistSchedulingJobHistories\x12\x16.scheduler.ListRequest\x1a\x0e.ct.JobHistory\"\xb9\x01\x92\x41\x92\x01\n\rJob Histories\x12\x1dList Scheduling Job Histories\x1a\x1eList scheduling job histories.J\"\n\x03\x34\x30\x33\x12\x1b\n\x19User lacks authorization.J\x1e\n\x03\x34\x30\x34\x12\x17\n\x15Record was not found.\x82\xd3\xe4\x93\x02\x1d\"\x18/scheduling/history/list:\x01*0\x01\x42\xdd\x02\n\x1a\x63om.passkit.grpc.SchedulerZ.stash.passkit.com/io/model/sdk/go/io/scheduler\xaa\x02\x16PassKit.Grpc.Scheduler\x92\x41\xf4\x01\x12\xca\x01\n\x15PassKit Scheduler API\x12\x31This protocol schedule recursive or one-off jobs.\x1a\x38https://passkit.com/legal/terms-of-subscription-service/\"?\n\x0fPassKit Support\x12\x17https://docs.passkit.io\x1a\x13support@passkit.com2\x03\x31.0*\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonb\x06proto3"
|
|
15
|
+
|
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
18
|
+
|
|
19
|
+
module Scheduler
|
|
20
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: io/scheduler/a_rpc.proto for package 'scheduler'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# *
|
|
5
|
+
# Scheduler RPC
|
|
6
|
+
#
|
|
7
|
+
# The PassKit Scheduler API lets you schedule a job.
|
|
8
|
+
|
|
9
|
+
require 'grpc'
|
|
10
|
+
require 'io/scheduler/a_rpc_pb'
|
|
11
|
+
|
|
12
|
+
module Scheduler
|
|
13
|
+
module Scheduler
|
|
14
|
+
class Service
|
|
15
|
+
|
|
16
|
+
include ::GRPC::GenericService
|
|
17
|
+
|
|
18
|
+
self.marshal_class_method = :encode
|
|
19
|
+
self.unmarshal_class_method = :decode
|
|
20
|
+
self.service_name = 'scheduler.Scheduler'
|
|
21
|
+
|
|
22
|
+
rpc :createSchedulingJob, ::Ct::SchedulingJob, ::Ct::SchedulingJobResponse
|
|
23
|
+
rpc :getSchedulingJob, ::Io::Id, ::Ct::SchedulingJob
|
|
24
|
+
rpc :updateSchedulingJob, ::Ct::SchedulingJob, ::Ct::SchedulingJobResponse
|
|
25
|
+
rpc :patchSchedulingJob, ::Ct::SchedulingJob, ::Ct::SchedulingJobResponse
|
|
26
|
+
rpc :deleteSchedulingJob, ::Io::Id, ::Google::Protobuf::Empty
|
|
27
|
+
rpc :getSchedulingJobHistory, ::Io::Id, ::Ct::JobHistory
|
|
28
|
+
rpc :listSchedulingJobHistories, ::Scheduler::ListRequest, stream(::Ct::JobHistory)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
Stub = Service.rpc_stub_class
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/scheduler/scheduler.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'io/common/filter_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x1cio/scheduler/scheduler.proto\x12\tscheduler\x1a\x16io/common/filter.proto\":\n\x0bListRequest\x12\r\n\x05jobId\x18\x01 \x01(\t\x12\x1c\n\x07\x66ilters\x18\x02 \x01(\x0b\x32\x0b.io.FiltersBe\n\x1a\x63om.passkit.grpc.SchedulerZ.stash.passkit.com/io/model/sdk/go/io/scheduler\xaa\x02\x16PassKit.Grpc.Schedulerb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Scheduler
|
|
16
|
+
ListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("scheduler.ListRequest").msgclass
|
|
17
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/single_use_coupons/a_rpc.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/empty_pb'
|
|
8
|
+
require 'google/api/annotations_pb'
|
|
9
|
+
require 'io/common/common_objects_pb'
|
|
10
|
+
require 'io/common/pagination_pb'
|
|
11
|
+
require 'io/common/filter_pb'
|
|
12
|
+
require 'io/common/reporting_pb'
|
|
13
|
+
require 'io/common/personal_pb'
|
|
14
|
+
require 'io/single_use_coupons/campaign_pb'
|
|
15
|
+
require 'io/single_use_coupons/offer_pb'
|
|
16
|
+
require 'io/single_use_coupons/coupon_pb'
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
descriptor_data = "\n!io/single_use_coupons/a_rpc.proto\x12\x12single_use_coupons\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1eio/common/common_objects.proto\x1a\x1aio/common/pagination.proto\x1a\x16io/common/filter.proto\x1a\x19io/common/reporting.proto\x1a\x18io/common/personal.proto\x1a$io/single_use_coupons/campaign.proto\x1a!io/single_use_coupons/offer.proto\x1a\"io/single_use_coupons/coupon.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\xe5@\n\x10SingleUseCoupons\x12\xc0\x01\n\x14\x63reateCouponCampaign\x12\".single_use_coupons.CouponCampaign\x1a\x06.io.Id\"|\x92\x41T\n\x10\x43oupon Campaigns\x12\x16\x43reate Coupon Campaign\x1a(Creates a new Single Use Coupon Campaign\x82\xd3\xe4\x93\x02\x1f\"\x1a/coupon/singleUse/campaign:\x01*\x12\xd4\x01\n\x14updateCouponCampaign\x12\".single_use_coupons.CouponCampaign\x1a\".single_use_coupons.CouponCampaign\"t\x92\x41L\n\x10\x43oupon Campaigns\x12\x16Update Coupon Campaign\x1a Updates an existing Pass Project\x82\xd3\xe4\x93\x02\x1f\x1a\x1a/coupon/singleUse/campaign:\x01*\x12\xb4\x01\n\x11getCouponCampaign\x12\x06.io.Id\x1a\".single_use_coupons.CouponCampaign\"s\x92\x41I\n\x10\x43oupon Campaigns\x12\x13Get Coupon Campaign\x1a Gets an existing Coupon Campaign\x82\xd3\xe4\x93\x02!\x12\x1f/coupon/singleUse/campaign/{id}\x12\x9b\x03\n\x14\x64\x65leteCouponCampaign\x12\x06.io.Id\x1a\x16.google.protobuf.Empty\"\xe2\x02\x92\x41\xb7\x02\n\x10\x43oupon Campaigns\x12\x16\x44\x65lete Coupon Campaign\x1a\x8a\x02\x44\x65letes an existing Coupon Campaign by id. Deleting a Coupon Campaign results in the related offer being deleted, and all coupons being invalidated in the customers Mobile Wallet; rendering them unusable. This method needs to be used with care, this is irreversible.\x82\xd3\xe4\x93\x02!*\x1f/coupon/singleUse/campaign/{id}\x12\x94\x02\n\x1dlistCouponCampaignsDeprecated\x12\x0e.io.Pagination\x1a\".single_use_coupons.CouponCampaign\"\xbc\x01\x92\x41\x95\x01\n\x10\x43oupon Campaigns\x12\"List Coupon Campaigns [DEPRECATED]\x1a][DEPRECATED: OR operator is not supported] Lists all Coupon Campaigns for the logged in user.\x82\xd3\xe4\x93\x02\x1d\x12\x1b/coupon/singleUse/campaigns0\x01\x12\xbe\x04\n\x13listCouponCampaigns\x12\x0b.io.Filters\x1a\".single_use_coupons.CouponCampaign\"\xf3\x03\x92\x41\xc4\x03\n\x10\x43oupon Campaigns\x12\x15List Coupon Campaigns\x1a\x98\x03Lists all Coupon Campaigns for the logged in user.\n\n<span style=\"font-weight:bold\">About filter field names, operators and sample payloads:</span> <a target=\"_blank\" href=\"https://help.passkit.com/en/articles/4130967-coupon-protocol-filtering-listing-and-counting-by-api#filter-campaigns\">https://help.passkit.com/en/articles/4130967-coupon-protocol-filtering-listing-and-counting-by-api#filter-campaigns</a>\x82\xd3\xe4\x93\x02%\" /coupon/singleUse/campaigns/list:\x01*0\x01\x12\xf2\x01\n\x0cgetAnalytics\x12\x14.io.AnalyticsRequest\x1a\x33.single_use_coupons.CouponCampaignAnalyticsResponse\"\x96\x01\x92\x41]\n\x10\x43oupon Campaigns\x12\x1dGet Coupon Campaign Analytics\x1a*Retrieves protocol specific analytics data\x82\xd3\xe4\x93\x02\x30\x12./coupon/singleUse/campaign/{classId}/analytics\x12\xa3\x01\n\x11\x63reateCouponOffer\x12\x1f.single_use_coupons.CouponOffer\x1a\x06.io.Id\"e\x92\x41@\n\rCoupon Offers\x12\x13\x43reate Coupon Offer\x1a\x1a\x43reates a new Coupon Offer\x82\xd3\xe4\x93\x02\x1c\"\x17/coupon/singleUse/offer:\x01*\x12\xc2\x01\n\x11updateCouponOffer\x12\x1f.single_use_coupons.CouponOffer\x1a\x1f.single_use_coupons.CouponOffer\"k\x92\x41\x46\n\rCoupon Offers\x12\x13Update Coupon Offer\x1a Updates an existing Coupon Offer\x82\xd3\xe4\x93\x02\x1c\x1a\x17/coupon/singleUse/offer:\x01*\x12\xa2\x01\n\x0egetCouponOffer\x12\x06.io.Id\x1a\x1f.single_use_coupons.CouponOffer\"g\x92\x41@\n\rCoupon Offers\x12\x10Get Coupon Offer\x1a\x1dGets an existing Coupon Offer\x82\xd3\xe4\x93\x02\x1e\x12\x1c/coupon/singleUse/offer/{id}\x12\xd8\x02\n\x11\x64\x65leteCouponOffer\x12\x06.io.Id\x1a\x16.google.protobuf.Empty\"\xa2\x02\x92\x41\xfa\x01\n\rCoupon Offers\x12\x13\x44\x65lete Coupon Offer\x1a\xd3\x01\x44\x65letes an existing Coupon Offer by id. Deleting a Coupon Offer results in all coupons being invalidated in the customers Mobile Wallet; rendering them unusable. Needs to be used with care, this is irreversible.\x82\xd3\xe4\x93\x02\x1e*\x1c/coupon/singleUse/offer/{id}\x12\xa1\x02\n\x1alistCouponOffersDeprecated\x12\x35.single_use_coupons.CouponOffersListRequestDeprecated\x1a\x1f.single_use_coupons.CouponOffer\"\xa8\x01\x92\x41\x84\x01\n\rCoupon Offers\x12\x1fList Coupon Offers [DEPRECATED]\x1aR[DEPRECATED: OR operator is not supported] Lists all Coupon Offers for a campaign.\x82\xd3\xe4\x93\x02\x1a\x12\x18/coupon/singleUse/offers0\x01\x12\xbe\x04\n\x10listCouponOffers\x12+.single_use_coupons.CouponOffersListRequest\x1a\x1f.single_use_coupons.CouponOffer\"\xd9\x03\x92\x41\xad\x03\n\rCoupon Offers\x12\x12List Coupon Offers\x1a\x87\x03Lists all Coupon Offers for a campaign.\n\n<span style=\"font-weight:bold\">About filter field names, operators and sample payloads:</span> <a target=\"_blank\" href=\"https://help.passkit.com/en/articles/4130967-coupon-protocol-filtering-listing-and-counting-by-api#filter-offers\">https://help.passkit.com/en/articles/4130967-coupon-protocol-filtering-listing-and-counting-by-api#filter-offers</a>\x82\xd3\xe4\x93\x02\"\"\x1d/coupon/singleUse/offers/list:\x01*0\x01\x12\x8f\x01\n\x0c\x63reateCoupon\x12\x1a.single_use_coupons.Coupon\x1a\x06.io.Id\"[\x92\x41\x35\n\x07\x43oupons\x12\rCreate Coupon\x1a\x1b\x43reates a new unique Coupon\x82\xd3\xe4\x93\x02\x1d\"\x18/coupon/singleUse/coupon:\x01*\x12\x8e\x01\n\x0cupdateCoupon\x12\x1a.single_use_coupons.Coupon\x1a\x06.io.Id\"Z\x92\x41\x34\n\x07\x43oupons\x12\rUpdate Coupon\x1a\x1aUpdates an existing Coupon\x82\xd3\xe4\x93\x02\x1d\x1a\x18/coupon/singleUse/coupon:\x01*\x12\xbe\x01\n\x13streamCouponUpdates\x12\x1a.single_use_coupons.Coupon\x1a\x06.io.Id\"\x7f\x92\x41|\n\x07\x43oupons\x12\'Stream Coupon Updates (gRPC SDKss only)\x1aHUpdates existing Coupon records via stream. To be used for batch update.(\x01\x30\x01\x12\xeb\x02\n\x0credeemCoupon\x12\x1a.single_use_coupons.Coupon\x1a\x06.io.Id\"\xb6\x02\x92\x41\x88\x02\n\x07\x43oupons\x12\rRedeem Coupon\x1a\xed\x01Redeems an existing Coupon. Use this endpoint when you want to capture redemption data and trigger the switch to the redemption design of the coupon. The coupon cannot be used again after calling this endpoint, and is marked as redeemed.\x82\xd3\xe4\x93\x02$\x1a\x1f/coupon/singleUse/coupon/redeem:\x01*\x12\x8b\x02\n\x16updateCouponExternalId\x12..single_use_coupons.CouponNewExternalIdRequest\x1a\x06.io.Id\"\xb8\x01\x92\x41\x86\x01\n\x07\x43oupons\x12\x19Update Coupon External Id\x1a`Updates an external id of an existing coupon. Extenal id needs to be unique within the campaign.\x82\xd3\xe4\x93\x02(\x1a#/coupon/singleUse/coupon/externalId:\x01*\x12\xcb\x01\n\x17streamCouponRedemptions\x12\x1a.single_use_coupons.Coupon\x1a\x06.io.Id\"\x87\x01\x92\x41\x83\x01\n\x07\x43oupons\x12*Stream Coupon Redemptions (gRPC SDKs only)\x1aLRedeems existing Coupon records via stream. To be used for batch redemption.(\x01\x30\x01\x12\x8e\x01\n\rgetCouponById\x12\x06.io.Id\x1a\x1a.single_use_coupons.Coupon\"Y\x92\x41\x31\n\x07\x43oupons\x12\x10Get Coupon by ID\x1a\x14Gets a Coupon record\x82\xd3\xe4\x93\x02\x1f\x12\x1d/coupon/singleUse/coupon/{id}\x12\xf4\x01\n\x15getCouponByExternalId\x12%.single_use_coupons.ExternalIdRequest\x1a\x1a.single_use_coupons.Coupon\"\x97\x01\x92\x41I\n\x07\x43oupons\x12\x19Get Coupon by External ID\x1a#Gets a Coupon record by External ID\x82\xd3\xe4\x93\x02\x45\x12\x43/coupon/singleUse/coupon/externalId/{couponCampaignId}/{externalId}\x12\xc2\x02\n\nvoidCoupon\x12\x1a.single_use_coupons.Coupon\x1a\x16.google.protobuf.Empty\"\xff\x01\x92\x41\xd8\x01\n\x07\x43oupons\x12\x0bVoid Coupon\x1a\xbf\x01Voids (deletes) an existing Coupon by ID or External ID. Invalidates the coupon in the customers Mobile Wallet; rendering it useless. This method is irreversible and should be used with care.\x82\xd3\xe4\x93\x02\x1d*\x18/coupon/singleUse/coupon:\x01*\x12\xb8\x02\n%listCouponsByCouponCampaignDeprecated\x12).single_use_coupons.ListRequestDeprecated\x1a\x1a.single_use_coupons.Coupon\"\xc5\x01\x92\x41\x8d\x01\n\x07\x43oupons\x12\x19List Coupons [DEPRECATED]\x1ag[DEPRECATED: OR operator is not supported] List all coupons for a Coupon Campaign. Supports pagination.\x82\xd3\xe4\x93\x02.\x12,/coupon/singleUse/coupons/{couponCampaignId}0\x01\x12\xd7\x04\n\x1blistCouponsByCouponCampaign\x12\x1f.single_use_coupons.ListRequest\x1a\x1a.single_use_coupons.Coupon\"\xf8\x03\x92\x41\xb8\x03\n\x07\x43oupons\x12\x0cList Coupons\x1a\x9e\x03List all coupons for a Coupon Campaign. Supports pagination.\n\n<span style=\"font-weight:bold\">About filter field names, operators and sample payloads:</span> <a target=\"_blank\" href=\"https://help.passkit.com/en/articles/4130967-coupon-protocol-filtering-listing-and-counting-by-api#filter-coupons\">https://help.passkit.com/en/articles/4130967-coupon-protocol-filtering-listing-and-counting-by-api#filter-coupons</a>\x82\xd3\xe4\x93\x02\x36\"1/coupon/singleUse/coupons/list/{couponCampaignId}:\x01*0\x01\x12\x98\x02\n&countCouponsByCouponCampaignDeprecated\x12).single_use_coupons.ListRequestDeprecated\x1a\t.io.Count\"\xb7\x01\x92\x41z\n\x07\x43oupons\x12\x1a\x43ount Coupons [DEPRECATED]\x1aS[DEPRECATED: OR operator is not supported] Count all coupons for a Coupon Campaign.\x82\xd3\xe4\x93\x02\x34\x12\x32/coupon/singleUse/coupons/count/{couponCampaignId}\x12\xb3\x04\n\x1c\x63ountCouponsByCouponCampaign\x12\x1f.single_use_coupons.ListRequest\x1a\t.io.Count\"\xe6\x03\x92\x41\xa5\x03\n\x07\x43oupons\x12\rCount Coupons\x1a\x8a\x03\x43ount all coupons for a Coupon Campaign.\n\n<span style=\"font-weight:bold\">About filter field names, operators and sample payloads:</span> <a target=\"_blank\" href=\"https://help.passkit.com/en/articles/4130967-coupon-protocol-filtering-listing-and-counting-by-api#filter-coupons\">https://help.passkit.com/en/articles/4130967-coupon-protocol-filtering-listing-and-counting-by-api#filter-coupons</a>\x82\xd3\xe4\x93\x02\x37\"2/coupon/singleUse/coupons/count/{couponCampaignId}:\x01*\x12\xb4\x01\n\x0bpatchPerson\x12\x11.io.PersonRequest\x1a\x06.io.Id\"\x89\x01\x92\x41\\\n\x07\x43oupons\x12\x1bUpdate Personal Information\x1a\x34Updates personal information of a coupon pass holder\x82\xd3\xe4\x93\x02$2\x1f/coupon/singleUse/coupon/person:\x01*\x12\xb9\x01\n\x12\x63opyCouponCampaign\x12\'.single_use_coupons.CampaignCopyRequest\x1a\x06.io.Id\"r\x92\x41\x45\n\x10\x43oupon Campaigns\x12\rCopy Campaign\x1a\"Copies an existing campaign record\x82\xd3\xe4\x93\x02$\"\x1f/coupon/singleUse/campaign/copy:\x01*\x12\xf0\x01\n\x16getMetaKeysForCampaign\x12\x06.io.Id\x1a\x0b.io.Strings\"\xc0\x01\x92\x41\x90\x01\n\x10\x43oupon Campaigns\x12\x1cGet Meta Keys for a Campaign\x1a^Returns a list of distinct meta field keys. Can be used for building filters / table headings.\x82\xd3\xe4\x93\x02&\x12$/coupon/singleUse/campaign/meta/{id}B\x83\x08\n!com.passkit.grpc.SingleUseCouponsZ7stash.passkit.com/io/model/sdk/go/io/single_use_coupons\xaa\x02\x1dPassKit.Grpc.SingleUseCoupons\x92\x41\x83\x07\x12\xbe\x02\n\x1dPassKit Single Use Coupon API\x12\x9c\x01This protocol is suit for cases where the user requires a clean and simple single use coupon for short term coupon campaigns in Apple Wallet and Google Pay.\x1a\x38https://passkit.com/legal/terms-of-subscription-service/\"?\n\x0fPassKit Support\x12\x17https://docs.passkit.io\x1a\x13support@passkit.com2\x03\x31.0*\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonR9\n\x03\x32\x30\x30\x12\x32\n(Returned when the request is successful.\x12\x06\n\x04\x9a\x02\x01\x07R4\n\x03\x34\x30\x30\x12-\n+Returned when wrong user input is provided.R0\n\x03\x34\x30\x31\x12)\n\'Returned when the user is unauthorized.RP\n\x03\x34\x30\x33\x12I\nGReturned when the user does not have permission to access the resource.R;\n\x03\x34\x30\x34\x12\x34\n*Returned when the resource does not exist.\x12\x06\n\x04\x9a\x02\x01\x07R<\n\x03\x35\x30\x30\x12\x35\n+Returned when there is an unexpected error.\x12\x06\n\x04\x9a\x02\x01\x07RW\n\x03\x35\x30\x33\x12P\nNServer is unavailable. Back off for 250ms and repeat request until successful.Z>\n<\n\napiKeyAuth\x12.\x08\x02\x12\x19JWT Authentication token.\x1a\rAuthorization \x02\x62\x10\n\x0e\n\napiKeyAuth\x12\x00\x62\x06proto3"
|
|
20
|
+
|
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
22
|
+
pool.add_serialized_file(descriptor_data)
|
|
23
|
+
|
|
24
|
+
module SingleUseCoupons
|
|
25
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: io/single_use_coupons/a_rpc.proto for package 'single_use_coupons'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# *
|
|
5
|
+
# Single Use Coupon Protocol is suit for cases where the user requires a clean and simple single use coupon for short term coupon campaigns in Apple Wallet and Google Pay.
|
|
6
|
+
|
|
7
|
+
require 'grpc'
|
|
8
|
+
require 'io/single_use_coupons/a_rpc_pb'
|
|
9
|
+
|
|
10
|
+
module SingleUseCoupons
|
|
11
|
+
module SingleUseCoupons
|
|
12
|
+
class Service
|
|
13
|
+
|
|
14
|
+
include ::GRPC::GenericService
|
|
15
|
+
|
|
16
|
+
self.marshal_class_method = :encode
|
|
17
|
+
self.unmarshal_class_method = :decode
|
|
18
|
+
self.service_name = 'single_use_coupons.SingleUseCoupons'
|
|
19
|
+
|
|
20
|
+
rpc :createCouponCampaign, ::SingleUseCoupons::CouponCampaign, ::Io::Id
|
|
21
|
+
rpc :updateCouponCampaign, ::SingleUseCoupons::CouponCampaign, ::SingleUseCoupons::CouponCampaign
|
|
22
|
+
rpc :getCouponCampaign, ::Io::Id, ::SingleUseCoupons::CouponCampaign
|
|
23
|
+
rpc :deleteCouponCampaign, ::Io::Id, ::Google::Protobuf::Empty
|
|
24
|
+
rpc :listCouponCampaignsDeprecated, ::Io::Pagination, stream(::SingleUseCoupons::CouponCampaign)
|
|
25
|
+
rpc :listCouponCampaigns, ::Io::Filters, stream(::SingleUseCoupons::CouponCampaign)
|
|
26
|
+
rpc :getAnalytics, ::Io::AnalyticsRequest, ::SingleUseCoupons::CouponCampaignAnalyticsResponse
|
|
27
|
+
rpc :createCouponOffer, ::SingleUseCoupons::CouponOffer, ::Io::Id
|
|
28
|
+
rpc :updateCouponOffer, ::SingleUseCoupons::CouponOffer, ::SingleUseCoupons::CouponOffer
|
|
29
|
+
rpc :getCouponOffer, ::Io::Id, ::SingleUseCoupons::CouponOffer
|
|
30
|
+
rpc :deleteCouponOffer, ::Io::Id, ::Google::Protobuf::Empty
|
|
31
|
+
rpc :listCouponOffersDeprecated, ::SingleUseCoupons::CouponOffersListRequestDeprecated, stream(::SingleUseCoupons::CouponOffer)
|
|
32
|
+
rpc :listCouponOffers, ::SingleUseCoupons::CouponOffersListRequest, stream(::SingleUseCoupons::CouponOffer)
|
|
33
|
+
rpc :createCoupon, ::SingleUseCoupons::Coupon, ::Io::Id
|
|
34
|
+
rpc :updateCoupon, ::SingleUseCoupons::Coupon, ::Io::Id
|
|
35
|
+
rpc :streamCouponUpdates, stream(::SingleUseCoupons::Coupon), stream(::Io::Id)
|
|
36
|
+
rpc :redeemCoupon, ::SingleUseCoupons::Coupon, ::Io::Id
|
|
37
|
+
rpc :updateCouponExternalId, ::SingleUseCoupons::CouponNewExternalIdRequest, ::Io::Id
|
|
38
|
+
rpc :streamCouponRedemptions, stream(::SingleUseCoupons::Coupon), stream(::Io::Id)
|
|
39
|
+
rpc :getCouponById, ::Io::Id, ::SingleUseCoupons::Coupon
|
|
40
|
+
rpc :getCouponByExternalId, ::SingleUseCoupons::ExternalIdRequest, ::SingleUseCoupons::Coupon
|
|
41
|
+
rpc :voidCoupon, ::SingleUseCoupons::Coupon, ::Google::Protobuf::Empty
|
|
42
|
+
rpc :listCouponsByCouponCampaignDeprecated, ::SingleUseCoupons::ListRequestDeprecated, stream(::SingleUseCoupons::Coupon)
|
|
43
|
+
rpc :listCouponsByCouponCampaign, ::SingleUseCoupons::ListRequest, stream(::SingleUseCoupons::Coupon)
|
|
44
|
+
rpc :countCouponsByCouponCampaignDeprecated, ::SingleUseCoupons::ListRequestDeprecated, ::Io::Count
|
|
45
|
+
rpc :countCouponsByCouponCampaign, ::SingleUseCoupons::ListRequest, ::Io::Count
|
|
46
|
+
rpc :patchPerson, ::Io::PersonRequest, ::Io::Id
|
|
47
|
+
rpc :copyCouponCampaign, ::SingleUseCoupons::CampaignCopyRequest, ::Io::Id
|
|
48
|
+
rpc :getMetaKeysForCampaign, ::Io::Id, ::Io::Strings
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
Stub = Service.rpc_stub_class
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/single_use_coupons/campaign.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'io/common/localization_pb'
|
|
9
|
+
require 'io/common/project_pb'
|
|
10
|
+
require 'io/common/reporting_pb'
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
descriptor_data = "\n$io/single_use_coupons/campaign.proto\x12\x12single_use_coupons\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cio/common/localization.proto\x1a\x17io/common/project.proto\x1a\x19io/common/reporting.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xac\x03\n\x0e\x43ouponCampaign\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12*\n\rlocalizedName\x18\x03 \x01(\x0b\x32\x13.io.LocalizedString\x12!\n\x06status\x18\x05 \x03(\x0e\x32\x11.io.ProjectStatus\x12\x1a\n\x12passTypeIdentifier\x18\x06 \x01(\t\x12\x14\n\x0cianaTimezone\x18\x07 \x01(\t\x12+\n\x07\x63reated\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07updated\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\x92\x01\x92\x41\x8e\x01\n\x8b\x01*\x0f\x43oupon Campaign2HHolds the business logic & distribution settings of the Coupon Campaign.\xd2\x01\x04name\xd2\x01\x07offerId\xd2\x01\x06status\xd2\x01\tstartDate\xd2\x01\x07\x65ndDateJ\x04\x08\x04\x10\x05J\x04\x08\x08\x10\tJ\x04\x08\t\x10\n\"\x9b\x02\n\x1f\x43ouponCampaignAnalyticsResponse\x12\x1a\n\x06period\x18\x01 \x01(\x0e\x32\n.io.Period\x12\x10\n\x08redeemed\x18\x02 \x01(\r\x12$\n\x07\x64\x65vices\x18\x03 \x01(\x0b\x32\x13.io.DeviceBreakdown\x12Q\n\x07sources\x18\x04 \x03(\x0b\x32@.single_use_coupons.CouponCampaignAnalyticsResponse.SourcesEntry\x12!\n\x04\x64\x61ta\x18\x05 \x03(\x0b\x32\x13.io.ChartDataPoints\x1a.\n\x0cSourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\"n\n\x13\x43\x61mpaignCopyRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12!\n\x06status\x18\x03 \x03(\x0e\x32\x11.io.ProjectStatus\x12\x1a\n\x12passTypeIdentifier\x18\x04 \x01(\tB|\n!com.passkit.grpc.SingleUseCouponsZ7stash.passkit.com/io/model/sdk/go/io/single_use_coupons\xaa\x02\x1dPassKit.Grpc.SingleUseCouponsb\x06proto3"
|
|
14
|
+
|
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
|
17
|
+
|
|
18
|
+
module SingleUseCoupons
|
|
19
|
+
CouponCampaign = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CouponCampaign").msgclass
|
|
20
|
+
CouponCampaignAnalyticsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CouponCampaignAnalyticsResponse").msgclass
|
|
21
|
+
CampaignCopyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CampaignCopyRequest").msgclass
|
|
22
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/single_use_coupons/coupon.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'io/common/pagination_pb'
|
|
9
|
+
require 'io/common/filter_pb'
|
|
10
|
+
require 'io/common/pass_pb'
|
|
11
|
+
require 'io/common/personal_pb'
|
|
12
|
+
require 'io/common/metrics_pb'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
descriptor_data = "\n\"io/single_use_coupons/coupon.proto\x12\x12single_use_coupons\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1aio/common/pagination.proto\x1a\x16io/common/filter.proto\x1a\x14io/common/pass.proto\x1a\x18io/common/personal.proto\x1a\x17io/common/metrics.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xbc\x05\n\x06\x43oupon\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nexternalId\x18\x02 \x01(\t\x12\x0f\n\x07offerId\x18\x03 \x01(\t\x12\x12\n\ncampaignId\x18\x04 \x01(\t\x12\x1a\n\x06person\x18\x05 \x01(\x0b\x32\n.io.Person\x12:\n\x08metaData\x18\x06 \x03(\x0b\x32(.single_use_coupons.Coupon.MetaDataEntry\x12\x0b\n\x03sku\x18\x07 \x01(\t\x12\x0e\n\x06optOut\x18\x08 \x01(\x08\x12\x30\n\x06status\x18\n \x01(\x0e\x32 .single_use_coupons.CouponStatus\x12.\n\nexpiryDate\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x11redemptionDetails\x18\x0c \x01(\x0b\x32%.single_use_coupons.RedemptionDetails\x12(\n\rpassOverrides\x18\r \x01(\x0b\x32\x11.io.PassOverrides\x12\"\n\x0cpassMetaData\x18\x0e \x01(\x0b\x32\x0c.io.Metadata\x12+\n\x07\x63reated\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07updated\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a/\n\rMetaDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:u\x92\x41r\np*\x06\x43oupon2OHolds the details & state of a unique individual coupon instance (i.e. a pass).\xd2\x01\x07offerId\xd2\x01\ncampaignIdJ\x04\x08\t\x10\n\"\xee\x02\n\x11RedemptionDetails\x12\x32\n\x0eredemptionDate\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eredemptionCode\x18\x02 \x01(\t\x12\x0b\n\x03lat\x18\x03 \x01(\x01\x12\x0b\n\x03lon\x18\x04 \x01(\x01\x12\x0b\n\x03\x61lt\x18\x05 \x01(\x05\x12\x18\n\x10redemptionSource\x18\x06 \x01(\t\x12\x1b\n\x13redemptionReference\x18\x07 \x01(\t\x12\x1c\n\x14transactionReference\x18\x08 \x01(\t\x12\x19\n\x11transactionAmount\x18\t \x01(\x01\x12\x45\n\x08metaData\x18\n \x03(\x0b\x32\x33.single_use_coupons.RedemptionDetails.MetaDataEntry\x1a/\n\rMetaDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\x11\x45xternalIdRequest\x12\x18\n\x10\x63ouponCampaignId\x18\x01 \x01(\t\x12\x12\n\nexternalId\x18\x02 \x01(\t\"U\n\x15ListRequestDeprecated\x12\x18\n\x10\x63ouponCampaignId\x18\x01 \x01(\t\x12\"\n\npagination\x18\x02 \x01(\x0b\x32\x0e.io.Pagination\"Y\n\x0bListRequest\x12\x18\n\x10\x63ouponCampaignId\x18\x01 \x01(\t\x12\x1c\n\x07\x66ilters\x18\x02 \x01(\x0b\x32\x0b.io.Filters\x12\x12\n\nemailAsCsv\x18\x03 \x01(\x08\"m\n\x1a\x43ouponNewExternalIdRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x18\n\x10\x63ouponCampaignId\x18\x02 \x01(\t\x12\x12\n\nexternalId\x18\x03 \x01(\t\x12\x15\n\rnewExternalId\x18\x04 \x01(\t*,\n\x0c\x43ouponStatus\x12\x0e\n\nUNREDEEMED\x10\x00\x12\x0c\n\x08REDEEMED\x10\x01\x42|\n!com.passkit.grpc.SingleUseCouponsZ7stash.passkit.com/io/model/sdk/go/io/single_use_coupons\xaa\x02\x1dPassKit.Grpc.SingleUseCouponsb\x06proto3"
|
|
16
|
+
|
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
|
|
20
|
+
module SingleUseCoupons
|
|
21
|
+
Coupon = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.Coupon").msgclass
|
|
22
|
+
RedemptionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.RedemptionDetails").msgclass
|
|
23
|
+
ExternalIdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.ExternalIdRequest").msgclass
|
|
24
|
+
ListRequestDeprecated = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.ListRequestDeprecated").msgclass
|
|
25
|
+
ListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.ListRequest").msgclass
|
|
26
|
+
CouponNewExternalIdRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CouponNewExternalIdRequest").msgclass
|
|
27
|
+
CouponStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CouponStatus").enummodule
|
|
28
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/single_use_coupons/offer.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'io/common/billing_pb'
|
|
9
|
+
require 'io/common/operation_pb'
|
|
10
|
+
require 'io/common/distribution_pb'
|
|
11
|
+
require 'io/common/localization_pb'
|
|
12
|
+
require 'io/common/pagination_pb'
|
|
13
|
+
require 'io/common/filter_pb'
|
|
14
|
+
require 'io/common/template_pb'
|
|
15
|
+
require 'io/image/image_pb'
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
descriptor_data = "\n!io/single_use_coupons/offer.proto\x12\x12single_use_coupons\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17io/common/billing.proto\x1a\x19io/common/operation.proto\x1a\x1cio/common/distribution.proto\x1a\x1cio/common/localization.proto\x1a\x1aio/common/pagination.proto\x1a\x16io/common/filter.proto\x1a\x18io/common/template.proto\x1a\x14io/image/image.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x82\t\n\x0b\x43ouponOffer\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nofferTitle\x18\x02 \x01(\t\x12\x30\n\x13localizedOfferTitle\x18\x03 \x01(\x0b\x32\x13.io.LocalizedString\x12\x17\n\x0fofferShortTitle\x18\x04 \x01(\t\x12\x35\n\x18localizedOfferShortTitle\x18\x05 \x01(\x0b\x32\x13.io.LocalizedString\x12\x14\n\x0cofferDetails\x18\x06 \x01(\t\x12\x32\n\x15localizedOfferDetails\x18\x07 \x01(\x0b\x32\x13.io.LocalizedString\x12\x16\n\x0eofferFinePrint\x18\x08 \x01(\t\x12\x34\n\x17localizedOfferFinePrint\x18\t \x01(\x0b\x32\x13.io.LocalizedString\x12\"\n\x1a\x62\x65\x66oreRedeemPassTemplateId\x18\n \x01(\t\x12!\n\x19\x61\x66terRedeemPassTemplateId\x18\x0b \x01(\t\x12\x18\n\x05quota\x18\x0c \x01(\x0b\x32\t.io.Quota\x12\x46\n\x14\x63ouponExpirySettings\x18\r \x01(\x0b\x32(.single_use_coupons.CouponExpirySettings\x12\x42\n\x12redemptionSettings\x18\x0e \x01(\x0b\x32&.single_use_coupons.RedemptionSettings\x12\x32\n\x0eissueStartDate\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cissueEndDate\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07\x63reated\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07updated\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncampaignId\x18\x13 \x01(\t\x12\x36\n\x14\x64istributionSettings\x18\x14 \x01(\x0b\x32\x18.io.DistributionSettings\x12\x11\n\tshortCode\x18\x15 \x01(\t\x12\x14\n\x0cianaTimezone\x18\x16 \x01(\t\x12\x10\n\x08\x64isabled\x18\x17 \x01(\x08\x12 \n\toperation\x18\x64 \x01(\x0e\x32\r.io.Operation:\xe2\x01\x92\x41\xde\x01\n\xdb\x01*\x0c\x43oupon Offer2\x91\x01Holds the offer details, redemption settings and before & after-redeem template designs (Apple Wallet & Google Pay designs) for the Coupon Offer.\xd2\x01\nofferTitle\xd2\x01\x0cofferDetails\xd2\x01\x1a\x62\x65\x66oreRedeemPassTemplateId\"p\n\x14\x43ouponExpirySettings\x12>\n\x10\x63ouponExpiryType\x18\x01 \x01(\x0e\x32$.single_use_coupons.CouponExpiryType\x12\x18\n\x10\x65xpireAfterXDays\x18\x03 \x01(\r\"\xdc\x03\n\x12RedemptionSettings\x12\x37\n\x13redemptionStartDate\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11redemptionEndDate\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x0eredemptionType\x18\x03 \x03(\x0e\x32\".single_use_coupons.RedemptionType\x12\x66\n\x1c\x63odeProvidedOnRedeemSettings\x18\x05 \x01(\x0b\x32@.single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings\x12Q\n\x11\x66ixedCodeSettings\x18\x06 \x01(\x0b\x32\x36.single_use_coupons.CustomerInitiatedFixedCodeSettings\x12G\n\x10standardSettings\x18\x07 \x01(\x0b\x32-.single_use_coupons.StandardPassKitHostedPageJ\x04\x08\x04\x10\x05J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0b\"\xb5\x01\n\"CustomerInitiatedFixedCodeSettings\x12\x11\n\tfixedCode\x18\x01 \x01(\t\x12\x14\n\x0cuseCouponSku\x18\x02 \x01(\x08\x12 \n\x07\x62\x61rcode\x18\x03 \x01(\x0e\x32\x0f.io.BarcodeType\x12\x44\n\x0fredemptionTimer\x18\x04 \x01(\x0b\x32+.single_use_coupons.RedemptionTimerSettings\"|\n\x17RedemptionTimerSettings\x12\x16\n\x0etimeoutSeconds\x18\x01 \x01(\r\x12\x15\n\rtimerHelpText\x18\x02 \x01(\t\x12\x32\n\x15localizedTimeHelpText\x18\x03 \x01(\x0b\x32\x13.io.LocalizedString\"\xd1\x01\n,CustomerInitiatedCodeProvideOnRedeemSettings\x12\x12\n\nvalidCodes\x18\x01 \x03(\t\x12;\n\x13redemptionCodeInput\x18\x02 \x01(\x0b\x32\x1e.single_use_coupons.InputField\x12\x18\n\x10submitButtonText\x18\x03 \x01(\t\x12\x36\n\x19localizedSubmitButtonText\x18\x04 \x01(\x0b\x32\x13.io.LocalizedString\"\xfe\x02\n\nInputField\x12\r\n\x05label\x18\x01 \x01(\t\x12+\n\x0elocalizedLabel\x18\x02 \x01(\x0b\x32\x13.io.LocalizedString\x12\x12\n\nhelperText\x18\x03 \x01(\t\x12\x30\n\x13localizedHelperText\x18\x04 \x01(\x0b\x32\x13.io.LocalizedString\x12\x14\n\x0c\x65rrorMessage\x18\x05 \x01(\t\x12\x32\n\x15localizedErrorMessage\x18\x06 \x01(\x0b\x32\x13.io.LocalizedString\x12\x14\n\x0c\x64\x65\x66\x61ultValue\x18\x07 \x01(\t\x12\x32\n\x15localizedDefaultValue\x18\x08 \x01(\x0b\x32\x13.io.LocalizedString\x12\x13\n\x0bplaceholder\x18\t \x01(\t\x12\x31\n\x14localizedPlaceholder\x18\n \x01(\x0b\x32\x13.io.LocalizedString\x12\x12\n\nvalidation\x18\x0b \x01(\t\"\x89\x04\n\x19StandardPassKitHostedPage\x12\r\n\x05title\x18\x01 \x01(\t\x12+\n\x0elocalizedTitle\x18\x02 \x01(\x0b\x32\x13.io.LocalizedString\x12\x1e\n\x16redemptionInstructions\x18\x03 \x01(\t\x12<\n\x1flocalizedRedemptionInstructions\x18\x04 \x01(\x0b\x32\x13.io.LocalizedString\x12 \n\x08imageIds\x18\x05 \x01(\x0b\x32\x0c.io.ImageIdsH\x00\x12\x1f\n\x06images\x18\x06 \x01(\x0b\x32\r.io.ImageDataH\x00\x12\x12\n\nfooterText\x18\x07 \x01(\t\x12\x30\n\x13localizedFooterText\x18\x08 \x01(\x0b\x32\x13.io.LocalizedString\x12\x38\n\rresponseTexts\x18\t \x01(\x0b\x32!.single_use_coupons.ResponseTexts\x12\x1c\n\x14hideRedeemedDateTime\x18\n \x01(\x08\x12\x42\n\x12\x63\x61llToActionButton\x18\x0b \x01(\x0b\x32&.single_use_coupons.CallToActionButton\x12\x14\n\x0c\x63ssOverrides\x18\x0c \x01(\tB\x17\n\x15RedemptionImageAssets\"\xb4\x01\n\x12\x43\x61llToActionButton\x12\x1e\n\x16hideCallToActionButton\x18\x01 \x01(\x08\x12\x12\n\nbuttonText\x18\x02 \x01(\t\x12\x30\n\x13localizedButtonText\x18\x03 \x01(\x0b\x32\x13.io.LocalizedString\x12\x0c\n\x04link\x18\x04 \x01(\t\x12*\n\rlocalizedLink\x18\x05 \x01(\x0b\x32\x13.io.LocalizedString\"\xab\x04\n\rResponseTexts\x12\'\n\x1fredeemConfirmationDialogBoxText\x18\x01 \x01(\t\x12\x45\n(localizedRedeemConfirmationDialogBoxText\x18\x02 \x01(\x0b\x32\x13.io.LocalizedString\x12\x18\n\x10\x63\x61ncelRedeemText\x18\x03 \x01(\t\x12\x36\n\x19localizedCancelRedeemText\x18\x04 \x01(\x0b\x32\x13.io.LocalizedString\x12\x17\n\x0f\x61\x66terRedeemText\x18\x05 \x01(\t\x12\x35\n\x18localizedAfterRedeemText\x18\x06 \x01(\x0b\x32\x13.io.LocalizedString\x12!\n\x19\x63ouponAlreadyRedeemedText\x18\x07 \x01(\t\x12?\n\"localizedCouponAlreadyRedeemedText\x18\x08 \x01(\x0b\x32\x13.io.LocalizedString\x12\x18\n\x10offerExpiredText\x18\t \x01(\t\x12\x36\n\x19localizedOfferExpiredText\x18\n \x01(\x0b\x32\x13.io.LocalizedString\x12\x19\n\x11\x63ouponExpiredText\x18\x0b \x01(\t\x12\x37\n\x1alocalizedCouponExpiredText\x18\x0c \x01(\x0b\x32\x13.io.LocalizedString\"[\n!CouponOffersListRequestDeprecated\x12\x12\n\ncampaignId\x18\x01 \x01(\t\x12\"\n\npagination\x18\x02 \x01(\x0b\x32\x0e.io.Pagination\"K\n\x17\x43ouponOffersListRequest\x12\x12\n\ncampaignId\x18\x01 \x01(\t\x12\x1c\n\x07\x66ilters\x18\x02 \x01(\x0b\x32\x0b.io.Filters*\xa9\x01\n\x10\x43ouponExpiryType\x12\x15\n\x11\x45XPIRY_DO_NOT_USE\x10\x00\x12\x1e\n\x1a\x41UTO_EXPIRE_OFFER_END_DATE\x10\x01\x12#\n\x1f\x41UTO_EXPIRE_REDEMPTION_END_DATE\x10\x02\x12\x17\n\x13\x45XPIRE_AFTER_X_DAYS\x10\x03\x12 \n\x1c\x45XPIRE_ON_VARIABLE_DATE_TIME\x10\x04*\xe4\x01\n\x0eRedemptionType\x12\x1e\n\x1aREDEMPTION_TYPE_DO_NOT_USE\x10\x00\x12\x17\n\x13REDEMPTION_TYPE_API\x10\x01\x12&\n\"REDEMPTION_TYPE_CUSTOMER_INITIATED\x10\x02\x12\x31\n-REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_FIXED\x10\x03\x12>\n:REDEMPTION_TYPE_CUSTOMER_INITIATED_CODE_PROVIDED_ON_REDEEM\x10\x04\x42|\n!com.passkit.grpc.SingleUseCouponsZ7stash.passkit.com/io/model/sdk/go/io/single_use_coupons\xaa\x02\x1dPassKit.Grpc.SingleUseCouponsb\x06proto3"
|
|
19
|
+
|
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
|
22
|
+
|
|
23
|
+
module SingleUseCoupons
|
|
24
|
+
CouponOffer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CouponOffer").msgclass
|
|
25
|
+
CouponExpirySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CouponExpirySettings").msgclass
|
|
26
|
+
RedemptionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.RedemptionSettings").msgclass
|
|
27
|
+
CustomerInitiatedFixedCodeSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CustomerInitiatedFixedCodeSettings").msgclass
|
|
28
|
+
RedemptionTimerSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.RedemptionTimerSettings").msgclass
|
|
29
|
+
CustomerInitiatedCodeProvideOnRedeemSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CustomerInitiatedCodeProvideOnRedeemSettings").msgclass
|
|
30
|
+
InputField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.InputField").msgclass
|
|
31
|
+
StandardPassKitHostedPage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.StandardPassKitHostedPage").msgclass
|
|
32
|
+
CallToActionButton = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CallToActionButton").msgclass
|
|
33
|
+
ResponseTexts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.ResponseTexts").msgclass
|
|
34
|
+
CouponOffersListRequestDeprecated = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CouponOffersListRequestDeprecated").msgclass
|
|
35
|
+
CouponOffersListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CouponOffersListRequest").msgclass
|
|
36
|
+
CouponExpiryType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.CouponExpiryType").enummodule
|
|
37
|
+
RedemptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("single_use_coupons.RedemptionType").enummodule
|
|
38
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: io/user/user.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'io/common/personal_pb'
|
|
9
|
+
require 'io/common/attributes_pb'
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
descriptor_data = "\n\x12io/user/user.proto\x12\x02io\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18io/common/personal.proto\x1a\x1aio/common/attributes.proto\"\xb4\x02\n\x08\x41uditLog\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tcompanyId\x18\x02 \x01(\t\x12\x10\n\x08username\x18\x03 \x01(\t\x12\x1e\n\x08userType\x18\x04 \x01(\x0e\x32\x0c.io.UserType\x12*\n\x0e\x61uthentication\x18\x05 \x01(\x0e\x32\x12.io.Authentication\x12\x1c\n\x07\x63hannel\x18\x06 \x01(\x0e\x32\x0b.io.Channel\x12\x11\n\tipAddress\x18\x07 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x08 \x01(\t\x12\x0f\n\x07payload\x18\t \x01(\t\x12\x12\n\nstatusCode\x18\n \x01(\r\x12\x0e\n\x06status\x18\x0b \x01(\t\x12\x10\n\x08response\x18\x0c \x01(\t\"v\n\x0f\x41uditLogRequest\x12\x10\n\x08username\x18\x01 \x01(\t\x12.\n\nbeforeTime\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05limit\x18\x03 \x01(\r\x12\x12\n\nerrorsOnly\x18\x04 \x01(\x08\"\xee\x01\n\x0fNewUserResponse\x12\x0e\n\x06userId\x18\x01 \x01(\t\x12\x11\n\tcompanyId\x18\x02 \x01(\t\x12\x10\n\x08username\x18\x03 \x01(\t\x12\x14\n\x0c\x65mailAddress\x18\x04 \x01(\t\x12\x0e\n\x06secret\x18\x05 \x01(\t\x12\x13\n\x0b\x63\x65rtificate\x18\x06 \x01(\t\x12\x12\n\nprivateKey\x18\x07 \x01(\t\x12\x16\n\x0ejavaPrivateKey\x18\x08 \x01(\t\x12-\n\texpiresAt\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08regionId\x18\n \x01(\t\"\xcf\x01\n\x07NewUser\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x14\n\x0c\x65mailAddress\x18\x03 \x01(\t\x12\x11\n\tsendEmail\x18\x04 \x01(\x08\x12\x13\n\x0b\x63ompanyName\x18\x05 \x01(\t\x12\x14\n\x0cmobileNumber\x18\x06 \x01(\t\x12\x15\n\rtwoFactorAuth\x18\x07 \x01(\x08\x12\x0f\n\x07isOwner\x18\x08 \x01(\x08\x12\x10\n\x08readOnly\x18\t \x01(\x08\x12\x12\n\nteamMember\x18\n \x01(\x08\"\xf5\x01\n\x0fGetUserResponse\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x11\n\tcompanyId\x18\x03 \x01(\t\x12\x13\n\x0b\x63ompanyName\x18\x04 \x01(\t\x12\x15\n\rcompanyStatus\x18\x05 \x01(\x04\x12-\n\tcreatedAt\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\texpiresAt\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08regionId\x18\x08 \x01(\t\x12\x12\n\nuserStatus\x18\t \x01(\x04\"i\n\x0b\x42illingMeta\x12\x13\n\x0b\x63ompanyName\x18\x01 \x01(\t\x12\r\n\x05taxId\x18\x02 \x01(\t\x12\x11\n\treference\x18\x03 \x01(\t\x12#\n\x0e\x62illingAddress\x18\x04 \x01(\x0b\x32\x0b.io.Address\"X\n\x0b\x43redentials\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x12\n\ntwoFAToken\x18\x03 \x01(\t\x12\x11\n\ttwoFACode\x18\x04 \x01(\t\"+\n\rVerifyRequest\x12\x0b\n\x03uid\x18\x01 \x01(\t\x12\r\n\x05token\x18\x02 \x01(\t\"\x14\n\x03JWT\x12\r\n\x05token\x18\x01 \x01(\t\"j\n\x12PasswordResetInput\x12\n\n\x02id\x18\x01 \x01(\t\x12\x17\n\x0fregisteredEmail\x18\x02 \x01(\t\x12\x13\n\x0bnewPassword\x18\x03 \x01(\t\x12\x1a\n\x12\x63onfirmNewPassword\x18\x04 \x01(\t\"\x1c\n\x08Username\x12\x10\n\x08username\x18\x01 \x01(\t\"k\n\x1aOAuth2AuthorizationRequest\x12\x12\n\nclientCode\x18\x01 \x01(\t\x12$\n\x08provider\x18\x02 \x01(\x0e\x32\x12.io.OAuth2Provider\x12\x13\n\x0bredirectUri\x18\x03 \x01(\t\"\x8c\x02\n\x14ScannerConfiguration\x12?\n\x15membershipPermissions\x18\x01 \x03(\x0e\x32 .io.ScannerMembershipPermissions\x12\x37\n\x11\x63ouponPermissions\x18\x02 \x03(\x0e\x32\x1c.io.ScannerCouponPermissions\x12@\n\x17\x64\x65\x66\x61ultMembershipAction\x18\x03 \x03(\x0e\x32\x1f.io.DefaultMembershipScanAction\x12\x38\n\x13\x64\x65\x66\x61ultCouponAction\x18\x04 \x03(\x0e\x32\x1b.io.DefaultCouponScanAction\"\x16\n\x05\x45mail\x12\r\n\x05\x65mail\x18\x01 \x01(\t\"L\n\x17\x43onfirmEmailChangeInput\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\r\n\x05token\x18\x03 \x01(\t\"\"\n\x0b\x43ompanyName\x12\x13\n\x0b\x63ompanyName\x18\x01 \x01(\t\"Z\n\x14\x44\x65leteAccountRequest\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x1e\n\x16\x63onfirmPermanentDelete\x18\x03 \x01(\x08\" \n\x0cProjectsList\x12\x10\n\x08projects\x18\x01 \x03(\t\"(\n\x10\x43\x65rtificatesList\x12\x14\n\x0c\x63\x65rtificates\x18\x01 \x03(\t\" \n\x0cProtocolList\x12\x10\n\x08\x63lassIds\x18\x01 \x03(\t\"\x8c\x03\n\x13ResourcePermissions\x12+\n\x0f\x61llowedProjects\x18\x01 \x01(\x0b\x32\x10.io.ProjectsListH\x00\x12.\n\x12\x64isallowedProjects\x18\x02 \x01(\x0b\x32\x10.io.ProjectsListH\x00\x12\x33\n\x13\x61llowedCertificates\x18\x03 \x01(\x0b\x32\x14.io.CertificatesListH\x01\x12\x36\n\x16\x64isallowedCertificates\x18\x04 \x01(\x0b\x32\x14.io.CertificatesListH\x01\x12+\n\x0f\x61llowedPrograms\x18\x05 \x01(\x0b\x32\x10.io.ProtocolListH\x02\x12.\n\x12\x64isallowedPrograms\x18\x06 \x01(\x0b\x32\x10.io.ProtocolListH\x02\x42\x14\n\x12ProjectPermissionsB\x18\n\x16\x43\x65rtificatePermissionsB\x1e\n\x1cMembershipProgramPermissions\"\x97\x02\n\x15TeamMemberPermissions\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06userId\x18\x02 \x01(\t\x12,\n\x0fpermissionScope\x18\x03 \x01(\x0e\x32\x13.io.PermissionScope\x12$\n\x06status\x18\x04 \x01(\x0e\x32\x14.io.TeamMemberStatus\x12\x34\n\x13resourcePermissions\x18\x05 \x01(\x0b\x32\x17.io.ResourcePermissions\x12+\n\x07\x63reated\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07updated\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Z\n\rNewTeamMember\x12\x19\n\x04user\x18\x01 \x01(\x0b\x32\x0b.io.NewUser\x12.\n\x0bpermissions\x18\x02 \x01(\x0b\x32\x19.io.TeamMemberPermissions\"j\n\x15GetTeamMemberResponse\x12!\n\x04user\x18\x01 \x01(\x0b\x32\x13.io.GetUserResponse\x12.\n\x0bpermissions\x18\x02 \x01(\x0b\x32\x19.io.TeamMemberPermissions\"[\n\x17ListTeamMembersResponse\x12\x0b\n\x03uid\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12$\n\x06status\x18\x03 \x01(\x0e\x32\x14.io.TeamMemberStatus*q\n\x0eOAuth2Provider\x12\x14\n\x10OAUTH_DO_NOT_USE\x10\x00\x12\x11\n\rOAUTH_PATREON\x10\n\x12\x10\n\x0cOAUTH_SPROUT\x10\x32\x12\x13\n\x0fOAUTH_MAILCHIMP\x10\x64\x12\x0f\n\nOAUTH_XERO\x10\x96\x01*\xc6\x03\n\x1cScannerMembershipPermissions\x12\x1e\n\x1aMEMBERSHIP_PERMISSION_NONE\x10\x00\x12%\n!MEMBERSHIP_PERMISSION_VIEW_MEMBER\x10\x01\x12%\n!MEMBERSHIP_PERMISSION_EDIT_MEMBER\x10\x02\x12%\n!MEMBERSHIP_PERMISSION_EARN_POINTS\x10\x04\x12%\n!MEMBERSHIP_PERMISSION_BURN_POINTS\x10\x08\x12$\n MEMBERSHIP_PERMISSION_SET_POINTS\x10\x10\x12%\n!MEMBERSHIP_PERMISSION_CHANGE_TIER\x10 \x12%\n!MEMBERSHIP_PERMISSION_VIEW_EVENTS\x10@\x12(\n#MEMBERSHIP_PERMISSION_CHANGE_EXPIRY\x10\x80\x01\x12\'\n\"MEMBERSHIP_PERMISSION_CHECK_IN_OUT\x10\x80\x02\x12#\n\x1eMEMBERSHIP_PERMISSION_VALIDATE\x10\x80\x04*\x82\x02\n\x18ScannerCouponPermissions\x12\x1a\n\x16\x43OUPON_PERMISSION_NONE\x10\x00\x12!\n\x1d\x43OUPON_PERMISSION_VIEW_COUPON\x10\x01\x12!\n\x1d\x43OUPON_PERMISSION_EDIT_COUPON\x10\x02\x12\x1c\n\x18\x43OUPON_PERMISSION_REDEEM\x10\x04\x12!\n\x1d\x43OUPON_PERMISSION_VIEW_EVENTS\x10\x08\x12#\n\x1f\x43OUPON_PERMISSION_CHANGE_EXPIRY\x10\x10\x12\x1e\n\x1a\x43OUPON_PERMISSION_VALIDATE\x10 *\xc8\x01\n\x1b\x44\x65\x66\x61ultMembershipScanAction\x12\x1b\n\x17MEMBERSHIP_DEFAULT_NONE\x10\x00\x12\"\n\x1eMEMBERSHIP_DEFAULT_EARN_POINTS\x10\x01\x12\"\n\x1eMEMBERSHIP_DEFAULT_BURN_POINTS\x10\x02\x12#\n\x1fMEMBERSHIP_DEFAULT_CHECK_IN_OUT\x10\x04\x12\x1f\n\x1bMEMBERSHIP_DEFAULT_VALIDATE\x10\x08*j\n\x17\x44\x65\x66\x61ultCouponScanAction\x12\x17\n\x13\x43OUPON_DEFAULT_NONE\x10\x00\x12\x19\n\x15\x43OUPON_DEFAULT_REDEEM\x10\x01\x12\x1b\n\x17\x43OUPON_DEFAULT_VALIDATE\x10\x02*\xed\x01\n\x0fPermissionScope\x12\x13\n\x0fPERMISSION_NONE\x10\x00\x12\x0e\n\nWEB_ACCESS\x10\x01\x12\x0e\n\nAPP_ACCESS\x10\x02\x12\x10\n\x0c\x41LL_PROJECTS\x10\x04\x12\x14\n\x10\x41LL_CERTIFICATES\x10\x08\x12\x12\n\x0e\x42ILLING_ACCESS\x10\x10\x12\x17\n\x13\x43\x45RTIFICATES_ACCESS\x10 \x12\x12\n\x0eMEMBERS_ACCESS\x10@\x12\x13\n\x0e\x43OUPONS_ACCESS\x10\x80\x01\x12\x12\n\rEVENTS_ACCESS\x10\x80\x02\x12\x13\n\x0e\x46LIGHTS_ACCESS\x10\x80\x04*\x87\x01\n\x10TeamMemberStatus\x12\x0f\n\x0bSTATUS_NONE\x10\x00\x12\x16\n\x12TEAM_MEMBER_ACTIVE\x10\x01\x12\x18\n\x14TEAM_MEMBER_DISABLED\x10\x02\x12\x17\n\x13TEAM_MEMBER_EXPIRED\x10\x04\x12\x17\n\x13TEAM_MEMBER_PENDING\x10\x08\x42G\n\x10\x63om.passkit.grpcZ$stash.passkit.com/io/model/sdk/go/io\xaa\x02\x0cPassKit.Grpcb\x06proto3"
|
|
13
|
+
|
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
|
|
17
|
+
module Io
|
|
18
|
+
AuditLog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.AuditLog").msgclass
|
|
19
|
+
AuditLogRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.AuditLogRequest").msgclass
|
|
20
|
+
NewUserResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.NewUserResponse").msgclass
|
|
21
|
+
NewUser = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.NewUser").msgclass
|
|
22
|
+
GetUserResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.GetUserResponse").msgclass
|
|
23
|
+
BillingMeta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.BillingMeta").msgclass
|
|
24
|
+
Credentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.Credentials").msgclass
|
|
25
|
+
VerifyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.VerifyRequest").msgclass
|
|
26
|
+
JWT = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.JWT").msgclass
|
|
27
|
+
PasswordResetInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.PasswordResetInput").msgclass
|
|
28
|
+
Username = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.Username").msgclass
|
|
29
|
+
OAuth2AuthorizationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.OAuth2AuthorizationRequest").msgclass
|
|
30
|
+
ScannerConfiguration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.ScannerConfiguration").msgclass
|
|
31
|
+
Email = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.Email").msgclass
|
|
32
|
+
ConfirmEmailChangeInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.ConfirmEmailChangeInput").msgclass
|
|
33
|
+
CompanyName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.CompanyName").msgclass
|
|
34
|
+
DeleteAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.DeleteAccountRequest").msgclass
|
|
35
|
+
ProjectsList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.ProjectsList").msgclass
|
|
36
|
+
CertificatesList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.CertificatesList").msgclass
|
|
37
|
+
ProtocolList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.ProtocolList").msgclass
|
|
38
|
+
ResourcePermissions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.ResourcePermissions").msgclass
|
|
39
|
+
TeamMemberPermissions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.TeamMemberPermissions").msgclass
|
|
40
|
+
NewTeamMember = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.NewTeamMember").msgclass
|
|
41
|
+
GetTeamMemberResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.GetTeamMemberResponse").msgclass
|
|
42
|
+
ListTeamMembersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.ListTeamMembersResponse").msgclass
|
|
43
|
+
OAuth2Provider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.OAuth2Provider").enummodule
|
|
44
|
+
ScannerMembershipPermissions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.ScannerMembershipPermissions").enummodule
|
|
45
|
+
ScannerCouponPermissions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.ScannerCouponPermissions").enummodule
|
|
46
|
+
DefaultMembershipScanAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.DefaultMembershipScanAction").enummodule
|
|
47
|
+
DefaultCouponScanAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.DefaultCouponScanAction").enummodule
|
|
48
|
+
PermissionScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.PermissionScope").enummodule
|
|
49
|
+
TeamMemberStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("io.TeamMemberStatus").enummodule
|
|
50
|
+
end
|