@devvit/protos 0.11.6 → 0.11.7-next-2025-01-28-641048aff.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. package/meta.min.json +7820 -0
  2. package/package.json +4 -4
  3. package/protos.min.js +2 -0
  4. package/protos.min.js.map +7 -0
  5. package/schema/.snootobuf/deps/buf/validate/expression.proto +92 -0
  6. package/schema/.snootobuf/deps/buf/validate/priv/private.proto +41 -0
  7. package/schema/.snootobuf/deps/buf/validate/validate.proto +4130 -0
  8. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +72 -0
  9. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +49 -0
  10. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +54 -0
  11. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +46 -0
  12. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +72 -0
  13. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +20 -0
  14. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +45 -0
  15. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +54 -0
  16. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +773 -0
  17. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +66 -0
  18. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +100 -0
  19. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +19 -0
  20. package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +446 -0
  21. package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +24 -0
  22. package/schema/.snootobuf/deps/devvit/options/options.proto +98 -0
  23. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +29 -0
  24. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +25 -0
  25. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +53 -0
  26. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +56 -0
  27. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +107 -0
  28. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +41 -0
  29. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +23 -0
  30. package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +162 -0
  31. package/schema/.snootobuf/deps/enum/account_gender_category.proto +14 -0
  32. package/schema/.snootobuf/deps/enum/approval_status.proto +15 -0
  33. package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +12 -0
  34. package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +13 -0
  35. package/schema/.snootobuf/deps/enum/ban_info_action.proto +12 -0
  36. package/schema/.snootobuf/deps/enum/block_relation_type.proto +11 -0
  37. package/schema/.snootobuf/deps/enum/comment_sort.proto +18 -0
  38. package/schema/.snootobuf/deps/enum/comment_type.proto +11 -0
  39. package/schema/.snootobuf/deps/enum/crowd_control_level.proto +12 -0
  40. package/schema/.snootobuf/deps/enum/discussion_type.proto +10 -0
  41. package/schema/.snootobuf/deps/enum/distinguish_type.proto +14 -0
  42. package/schema/.snootobuf/deps/enum/flair_position.proto +11 -0
  43. package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +12 -0
  44. package/schema/.snootobuf/deps/enum/link_content_type.proto +11 -0
  45. package/schema/.snootobuf/deps/enum/link_type.proto +11 -0
  46. package/schema/.snootobuf/deps/enum/link_visibility.proto +11 -0
  47. package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +11 -0
  48. package/schema/.snootobuf/deps/enum/promo_layout.proto +11 -0
  49. package/schema/.snootobuf/deps/enum/removed_by_type.proto +18 -0
  50. package/schema/.snootobuf/deps/enum/spam_level.proto +11 -0
  51. package/schema/.snootobuf/deps/enum/subreddit_type.proto +16 -0
  52. package/schema/.snootobuf/deps/enum/verdict.proto +14 -0
  53. package/schema/.snootobuf/deps/enum/vote.proto +12 -0
  54. package/schema/.snootobuf/deps/enum/whitelist_status.proto +17 -0
  55. package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +12 -0
  56. package/schema/.snootobuf/deps/evaluator/evaluator.proto +203 -0
  57. package/schema/.snootobuf/deps/google/api/annotations.proto +31 -0
  58. package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +288 -0
  59. package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +175 -0
  60. package/schema/.snootobuf/deps/google/api/auth.proto +237 -0
  61. package/schema/.snootobuf/deps/google/api/backend.proto +185 -0
  62. package/schema/.snootobuf/deps/google/api/billing.proto +77 -0
  63. package/schema/.snootobuf/deps/google/api/client.proto +431 -0
  64. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +322 -0
  65. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +315 -0
  66. package/schema/.snootobuf/deps/google/api/config_change.proto +84 -0
  67. package/schema/.snootobuf/deps/google/api/consumer.proto +82 -0
  68. package/schema/.snootobuf/deps/google/api/context.proto +92 -0
  69. package/schema/.snootobuf/deps/google/api/control.proto +41 -0
  70. package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
  71. package/schema/.snootobuf/deps/google/api/documentation.proto +168 -0
  72. package/schema/.snootobuf/deps/google/api/endpoint.proto +69 -0
  73. package/schema/.snootobuf/deps/google/api/error_reason.proto +589 -0
  74. package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +183 -0
  75. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +343 -0
  76. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +118 -0
  77. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +53 -0
  78. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +438 -0
  79. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +115 -0
  80. package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +84 -0
  81. package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +125 -0
  82. package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +265 -0
  83. package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +62 -0
  84. package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +114 -0
  85. package/schema/.snootobuf/deps/google/api/field_behavior.proto +104 -0
  86. package/schema/.snootobuf/deps/google/api/field_info.proto +106 -0
  87. package/schema/.snootobuf/deps/google/api/http.proto +371 -0
  88. package/schema/.snootobuf/deps/google/api/httpbody.proto +81 -0
  89. package/schema/.snootobuf/deps/google/api/label.proto +48 -0
  90. package/schema/.snootobuf/deps/google/api/launch_stage.proto +72 -0
  91. package/schema/.snootobuf/deps/google/api/log.proto +54 -0
  92. package/schema/.snootobuf/deps/google/api/logging.proto +81 -0
  93. package/schema/.snootobuf/deps/google/api/metric.proto +268 -0
  94. package/schema/.snootobuf/deps/google/api/monitored_resource.proto +130 -0
  95. package/schema/.snootobuf/deps/google/api/monitoring.proto +107 -0
  96. package/schema/.snootobuf/deps/google/api/policy.proto +85 -0
  97. package/schema/.snootobuf/deps/google/api/quota.proto +184 -0
  98. package/schema/.snootobuf/deps/google/api/resource.proto +243 -0
  99. package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
  100. package/schema/.snootobuf/deps/google/api/service.proto +191 -0
  101. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +124 -0
  102. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +166 -0
  103. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +93 -0
  104. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +126 -0
  105. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +81 -0
  106. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +123 -0
  107. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +245 -0
  108. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +260 -0
  109. package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +196 -0
  110. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +295 -0
  111. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +508 -0
  112. package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +130 -0
  113. package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +305 -0
  114. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +458 -0
  115. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +793 -0
  116. package/schema/.snootobuf/deps/google/api/source_info.proto +31 -0
  117. package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
  118. package/schema/.snootobuf/deps/google/api/usage.proto +96 -0
  119. package/schema/.snootobuf/deps/google/api/visibility.proto +113 -0
  120. package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
  121. package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
  122. package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
  123. package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
  124. package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
  125. package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
  126. package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
  127. package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
  128. package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
  129. package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
  130. package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
  131. package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
  132. package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
  133. package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
  134. package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
  135. package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
  136. package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
  137. package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
  138. package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
  139. package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
  140. package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
  141. package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
  142. package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
  143. package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
  144. package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
  145. package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
  146. package/schema/.snootobuf/deps/google/type/color.proto +170 -0
  147. package/schema/.snootobuf/deps/google/type/date.proto +50 -0
  148. package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
  149. package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
  150. package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
  151. package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
  152. package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
  153. package/schema/.snootobuf/deps/google/type/money.proto +43 -0
  154. package/schema/.snootobuf/deps/google/type/month.proto +66 -0
  155. package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
  156. package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
  157. package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
  158. package/schema/.snootobuf/deps/openapi/helper.proto +20 -0
  159. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  160. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
  161. package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
  162. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
  163. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
  164. package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
  165. package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
  166. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
  167. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
  168. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
  169. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
  170. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
  171. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
  172. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
  173. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
  174. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
  175. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
  176. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
  177. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
  178. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
  179. package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
  180. package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
  181. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
  182. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
  183. package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
  184. package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
  185. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
  186. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
  187. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
  188. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
  189. package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
  190. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
  191. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
  192. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +48 -0
  193. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +70 -0
  194. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +11 -0
  195. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
  196. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +89 -0
  197. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +322 -0
  198. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +17 -0
  199. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
  200. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +15 -0
  201. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +48 -0
  202. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
  203. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +26 -0
  204. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
  205. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
  206. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +23 -0
  207. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
  208. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
  209. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +49 -0
  210. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
  211. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +17 -0
  212. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
  213. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
  214. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +195 -0
  215. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
  216. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
  217. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
  218. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
  219. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  220. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
  221. package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +29 -0
  222. package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +3292 -0
  223. package/schema/.snootobuf/deps/validate/validate.proto +862 -0
  224. package/schema/devvit/plugin/buildpack/buildpack_common.proto +6 -1
  225. package/schema/snootobuf.devenv.lock +210 -102
  226. package/schema/snootobuf.lock +210 -102
  227. package/schema/snootobuf.redditapi.lock +210 -102
  228. package/schema/snootobuf.ts.lock +210 -102
  229. package/types/devvit/dev_portal/dev_portal.d.ts +2 -0
  230. package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
  231. package/types/devvit/plugin/builder/builder.d.ts +4 -0
  232. package/types/devvit/plugin/builder/builder.d.ts.map +1 -1
  233. package/types/devvit/plugin/buildpack/buildpack.d.ts +8 -0
  234. package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
  235. package/types/devvit/plugin/buildpack/buildpack_common.d.ts +3 -0
  236. package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
  237. package/types/devvit/plugin/buildpack/buildpack_common.js +37 -1
  238. package/types/devvit/plugin/linker/linker.d.ts +2 -0
  239. package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
  240. package/types/devvit/plugin/linker/resolver.d.ts +2 -0
  241. package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
@@ -0,0 +1,44 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.xpaymentsplatform.paypayments.v1;
4
+
5
+ import "google/protobuf/timestamp.proto";
6
+ import "reddit/xpaymentsplatform/paypayments/v1/paypayments.proto";
7
+ import "reddit/xpaymentsplatform/payproducts/v1/payproducts.proto";
8
+
9
+ option go_package = "github.snooguts.net/reddit/reddit-service-pay-payments/payments-api/api/xpaymentsplatform/paypaymentspb/v1;paypaymentspb";
10
+
11
+ message GetUserDataRequest {
12
+ string user_id = 1;
13
+ }
14
+
15
+ message Account {
16
+ string id = 1;
17
+ string owner_id = 2;
18
+ string currency = 3;
19
+ int64 balance = 4;
20
+ repeated Transaction transactions = 5;
21
+ google.protobuf.Timestamp created_at = 6;
22
+ }
23
+
24
+ message Transaction {
25
+ string order_id = 1;
26
+ string product_id = 2;
27
+ string product_type = 3;
28
+ string currency = 4;
29
+ int64 amount = 5;
30
+ reddit.xpaymentsplatform.paypayments.v1.PaymentUnitStatus status = 6;
31
+ reddit.xpaymentsplatform.payproducts.v1.PaymentProvider provider = 7;
32
+ string from_user_id = 8;
33
+ string to_user_id = 9;
34
+ string external_payment_id = 10;
35
+ google.protobuf.Timestamp timestamp = 11;
36
+ }
37
+
38
+ message GetUserDataResponse {
39
+ repeated Account accounts = 1;
40
+ }
41
+
42
+ service AdminService {
43
+ rpc GetUserData(GetUserDataRequest) returns (GetUserDataResponse) {}
44
+ }
@@ -0,0 +1,200 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.xpaymentsplatform.paypayments.v1;
4
+
5
+ import "google/protobuf/timestamp.proto";
6
+
7
+ option go_package = "github.snooguts.net/reddit/reddit-service-pay-payments/payments-api/api/xpaymentsplatform/paypaymentspb/v1;paypaymentspb";
8
+
9
+ enum PaymentProvider {
10
+ PAYMENT_PROVIDER_UNSPECIFIED = 0;
11
+ STRIPE = 1;
12
+ PAYPAL = 2;
13
+ GOOGLE_INAPP = 3;
14
+ APPLE_INAPP = 4;
15
+ REDDIT_GOLD = 5;
16
+ }
17
+
18
+ enum Environment {
19
+ ENVIRONMENT_UNSPECIFIED = 0;
20
+ PRODUCTION = 1;
21
+ SANDBOX = 2;
22
+ }
23
+
24
+ message PutGoldPurchaseRequest {
25
+ // Idempotency key, unique identifier of the transaction (eg. order_id)
26
+ string transaction_id = 1;
27
+ // t2_ user ID of buyer
28
+ string user_id = 2;
29
+ // Fiat payment amount, in 1/100 units
30
+ int64 local_currency_amount = 3;
31
+ string local_currency = 4;
32
+ // GOLD product listing USD price, in cents.
33
+ // Required to calculate GOLD unit price in USD at the time of purchase, for accounting
34
+ int64 listing_price_usd = 5;
35
+ PaymentProvider payment_provider = 6;
36
+ // Payment provider order ID
37
+ string external_order_id = 7;
38
+ // Amount of GOLD purchased
39
+ int64 gold_amount = 8;
40
+ Environment environment = 9;
41
+ }
42
+
43
+ message PutGoldPurchaseResponse {
44
+ // Updated spendable balance
45
+ int64 spendable_gold = 1;
46
+ }
47
+
48
+ message PutGoldSpendingRequest {
49
+ // Idempotency key, unique identifier of the transaction (eg. order_id)
50
+ string transaction_id = 1;
51
+ // t2_ user ID of spender
52
+ string user_id = 2;
53
+ // t2_ user ID of GOLD receiver
54
+ string receiver_id = 3;
55
+ // Amount of GOLD awarded
56
+ int64 gold_amount = 4;
57
+ Environment environment = 5;
58
+ }
59
+
60
+ message PutGoldSpendingResponse {
61
+ // Updated spendable balance of spender
62
+ int64 spender_spendable_gold = 1;
63
+ // Updated earned balance of receiver
64
+ int64 receiver_earned_gold = 2;
65
+ }
66
+
67
+ message PutPayoutRequest {
68
+ // Idempotency key, unique identifier of payout operation
69
+ string transaction_id = 1;
70
+ // t2_ user ID
71
+ string user_id = 2;
72
+
73
+ // Payout parameters
74
+ int64 base_payout_amount_usd = 3;
75
+ int64 gold_balance_delta = 4;
76
+ int64 karma = 5;
77
+ int64 payout_percent = 6;
78
+ int64 fee = 7;
79
+ int64 final_payout_amount_usd = 8;
80
+ optional string local_payout_currency = 9;
81
+ optional int64 local_payout_amount = 10;
82
+ google.protobuf.Timestamp cutoff_time = 11;
83
+ repeated string payout_transactions = 12;
84
+
85
+ string stripe_bank_id = 14;
86
+ string stripe_account_id = 15;
87
+ string stripe_transfer_id = 16;
88
+ string stripe_payout_id = 17;
89
+ string stripe_error_reason = 18;
90
+
91
+ Environment environment = 13;
92
+ }
93
+
94
+ message PutPayoutResponse {
95
+ // Updated earned balance
96
+ int64 earned_gold = 1;
97
+ }
98
+
99
+ message PutPayoutFiatRequest {
100
+ // Idempotency key, unique identifier of payout operation
101
+ string transaction_id = 1;
102
+ // t2_ user ID
103
+ string user_id = 2;
104
+
105
+ // Payout parameters
106
+ string local_payout_currency = 3;
107
+ int64 local_payout_amount = 4;
108
+
109
+ Environment environment = 5;
110
+
111
+ // Stripe metadata
112
+ string stripe_bank_id = 6;
113
+ string stripe_account_id = 7;
114
+ string stripe_transfer_id = 8;
115
+ string stripe_payout_id = 9;
116
+ string stripe_error_reason = 10;
117
+ }
118
+
119
+ message PutPayoutFiatResponse {}
120
+
121
+ message RevertTransactionRequest {
122
+ // Idempotency key, unique identifier of refund operation
123
+ string transaction_id = 1;
124
+ // ID of original transaction which should be refunded
125
+ string original_transaction_id = 2;
126
+ // t2_ user ID of original transaction creator (for ownership verification)
127
+ string user_id = 3;
128
+ string reason = 4;
129
+ Environment environment = 5;
130
+ bool cover_payouts = 6;
131
+ }
132
+
133
+ message RevertTransactionResponse {
134
+ // Transaction IDs of reverted spendings which were not covered
135
+ // with the remaining user's balance, so the corresponding goods
136
+ // should be reverted, including the original_transaction_id if
137
+ // it was a spending
138
+ repeated string reverted_transaction_ids = 1;
139
+ }
140
+
141
+ message GetGoldBalanceRequest {
142
+ // t2_ user ID
143
+ string user_id = 1;
144
+ Environment environment = 2;
145
+ }
146
+
147
+ message GetGoldBalanceResponse {
148
+ int64 earned_gold = 1;
149
+ int64 spendable_gold = 2;
150
+ }
151
+
152
+ message MigrateEarnedGoldBalanceRequest {
153
+ // Idempotency key, unique identifier of the transaction
154
+ string transaction_id = 1;
155
+ // t2_ user ID of the balance owner
156
+ string user_id = 2;
157
+ // Amount of earned GOLD to migrate
158
+ // = total amount of scaled (aka new) Gold
159
+ int64 earned_gold_amount = 3;
160
+ // USD cost of the migrated GOLD, in cents
161
+ // = total USD cost of all purchases accumulated in gold_amount
162
+ int64 usd_cost = 4;
163
+ // Timestamp to store this historical balance at
164
+ // Might be a fixed point in the past or a timestamp of the last
165
+ // awarding transaction in the aggregate
166
+ google.protobuf.Timestamp timestamp = 5;
167
+ Environment environment = 6;
168
+ }
169
+
170
+ message MigrateEarnedGoldBalanceResponse {
171
+ // Updated earned balance
172
+ int64 earned_gold = 1;
173
+ }
174
+
175
+ service LedgerService {
176
+ // PutGoldPurchase stores GOLD pack purchase in Ledger
177
+ rpc PutGoldPurchase(PutGoldPurchaseRequest) returns (PutGoldPurchaseResponse) {}
178
+
179
+ // PutGoldSpending stores GOLD spending in Ledger
180
+ rpc PutGoldSpending(PutGoldSpendingRequest) returns (PutGoldSpendingResponse) {}
181
+
182
+ // PutPayout stores Earned GOLD payout in Ledger
183
+ rpc PutPayout(PutPayoutRequest) returns (PutPayoutResponse) {}
184
+
185
+ // PutPayoutFiat stores fiat payout in Ledger
186
+ rpc PutPayoutFiat(PutPayoutFiatRequest) returns (PutPayoutFiatResponse) {}
187
+
188
+ // RevertTransaction stores purchase or spending refund in Ledger rolling
189
+ // back all the consequentive spendings.
190
+ // Tries to use user's remaining balance to cover rolled back spendings.
191
+ // Transaction IDs for uncovered spendings are returned to roll back the
192
+ // corresponding goods, except if were already paid out
193
+ rpc RevertTransaction(RevertTransactionRequest) returns (RevertTransactionResponse) {}
194
+
195
+ // GetGoldBalance returns user's spendable and earned Gold balances
196
+ rpc GetGoldBalance(GetGoldBalanceRequest) returns (GetGoldBalanceResponse) {}
197
+
198
+ // MigrateEarnedGoldBalance migrates historical gold balance
199
+ rpc MigrateEarnedGoldBalance(MigrateEarnedGoldBalanceRequest) returns (MigrateEarnedGoldBalanceResponse) {}
200
+ }
@@ -0,0 +1,18 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.xpaymentsplatform.paypayments.v1;
4
+
5
+ option go_package = "github.snooguts.net/reddit/reddit-service-pay-payments/payments-api/api/xpaymentsplatform/paypaymentspb/v1;paypaymentspb";
6
+
7
+ message DeleteUsersDataRequest {
8
+ string requester_id = 1;
9
+ repeated string user_ids = 2;
10
+ }
11
+
12
+ message DeleteUsersDataResponse {
13
+ repeated string user_ids = 1;
14
+ }
15
+
16
+ service DataComplianceService {
17
+ rpc DeleteUsersData(DeleteUsersDataRequest) returns (DeleteUsersDataResponse) {}
18
+ }
@@ -0,0 +1,210 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.xpaymentsplatform.paypayments.v1;
4
+
5
+ import "google/protobuf/timestamp.proto";
6
+ import "reddit/xpaymentsplatform/payproducts/v1/payproducts.proto";
7
+
8
+ option go_package = "github.snooguts.net/reddit/reddit-service-pay-payments/payments-api/api/xpaymentsplatform/paypaymentspb/v1;paypaymentspb";
9
+
10
+ message CreatePaymentEventRequest {
11
+ reddit.xpaymentsplatform.payproducts.v1.Environment environment = 1;
12
+ string order_id = 2;
13
+ string buyer_id = 3;
14
+ repeated PaymentUnit units = 4;
15
+ }
16
+
17
+ message PaymentUnit {
18
+ PaymentMode mode = 1;
19
+ reddit.xpaymentsplatform.payproducts.v1.PaymentProvider provider = 2;
20
+ string seller_id = 3;
21
+ reddit.xpaymentsplatform.payproducts.v1.ProductPrice checkout_price = 4;
22
+ reddit.xpaymentsplatform.payproducts.v1.Product product = 5;
23
+ }
24
+
25
+ message CreatePaymentEventResponse {
26
+ string order_id = 1;
27
+ PaymentEventStatus status = 2;
28
+ repeated PaymentUnitResponse units = 3;
29
+ }
30
+
31
+ message PaymentUnitResponse {
32
+ PaymentMode mode = 1;
33
+ reddit.xpaymentsplatform.payproducts.v1.PaymentProvider provider = 2;
34
+ PaymentAction action = 3;
35
+ }
36
+
37
+ message PaymentAction {
38
+ PaymentUnitStatus status = 1;
39
+ string client_token = 2;
40
+ }
41
+
42
+ message CreatePaymentRefundRequest {
43
+ string order_id = 1;
44
+ RefundReason reason = 2;
45
+
46
+ // One of the below fields must be present
47
+ string initiator_user_id = 3; // The user who initiated the refund request, if present.
48
+ string initiator_service_id = 4; // The service that initiated the refund request, if present.
49
+ }
50
+
51
+ message CreatePaymentRefundResponse {}
52
+
53
+ message GetGoldBalancesRequest {
54
+ reddit.xpaymentsplatform.payproducts.v1.Environment environment = 1;
55
+ string user_id = 2;
56
+ bool include_earned_gold = 3;
57
+ bool include_spendable_gold = 4;
58
+ bool include_earned_gold_transactions = 5;
59
+ bool include_spendable_gold_transactions = 6;
60
+ }
61
+
62
+ message GetGoldBalancesResponse {
63
+ GoldBalance earned_gold = 1;
64
+ GoldBalance spendable_gold = 2;
65
+ }
66
+
67
+ message GoldBalance {
68
+ int32 available = 1;
69
+ int32 total = 2;
70
+ GoldTransactionsConnection transactions_connection = 3;
71
+ }
72
+
73
+ message GoldTransactionsConnection {
74
+ repeated GoldTransaction transactions = 1;
75
+ PageInfo page_info = 2;
76
+ }
77
+
78
+ message GoldTransaction {
79
+ string transaction_id = 1; // order_id
80
+ string product_id = 2; // Required to support atomic checkout. Not required to be populated at MVP
81
+ reddit.xpaymentsplatform.payproducts.v1.ProductPrice checkout_price = 3;
82
+ string from_user_id = 4; // If empty, user was removed from the system
83
+ string to_user_id = 5; // If empty, user was removed from the system
84
+ google.protobuf.Timestamp date = 6;
85
+ }
86
+
87
+ // Required to support pagination of GoldTransactions.
88
+ // Pagination will not be required at MVP.
89
+ message PageInfo {
90
+ string start_cursor = 1; // if empty, start from the most recent transaction
91
+ int32 page_size = 2;
92
+ bool has_next_page = 3;
93
+ }
94
+
95
+ message AcknowledgeOrderDeliveryRequest {
96
+ string order_id = 1;
97
+ string package_name = 2;
98
+ string product_id = 3;
99
+ string purchase_token = 4;
100
+ reddit.xpaymentsplatform.payproducts.v1.Environment environment = 5;
101
+ }
102
+
103
+ message AcknowledgeOrderDeliveryResponse {}
104
+
105
+ message ProcessPaymentNotificationRequest {
106
+ reddit.xpaymentsplatform.payproducts.v1.Environment environment = 1;
107
+ string order_id = 2;
108
+ string external_payment_id = 3;
109
+ payproducts.v1.PaymentProvider payment_provider = 4;
110
+ PaymentNotificationType notification_type = 5;
111
+ payproducts.v1.ProductPrice price = 6; // The price paid by the buyer, it must be the localised price.
112
+ google.protobuf.Timestamp notification_date = 7; // The date and time of the payment notification, as show inside the payment provider's system.
113
+ string external_product_id = 8; // The product id for the payment
114
+ // Leaving some space in case we find other mandatory fields to add
115
+
116
+ string raw_notification = 50; // JSON string of the raw notification. Stored for debugging purposes.
117
+ }
118
+
119
+ message ProcessPaymentNotificationResponse {}
120
+
121
+ message GetUserProfilesRequest {
122
+ repeated string user_ids = 1;
123
+ }
124
+
125
+ message UserProfileList {
126
+ repeated UserProfile user_profiles = 1;
127
+ }
128
+
129
+ message UserProfile {
130
+ reddit.xpaymentsplatform.payproducts.v1.Environment environment = 1;
131
+ StripeProfile stripe_profile = 2;
132
+ }
133
+
134
+ message StripeProfile {
135
+ string stripe_account_id = 1;
136
+ }
137
+
138
+ message GetUserProfilesResponse {
139
+ map<string, UserProfileList> user_profiles = 1;
140
+ }
141
+
142
+ enum RefundReason {
143
+ REFUND_REASON_UNSPECIFIED = 0;
144
+
145
+ REFUND_REASON_DUPLICATED = 1;
146
+ REFUND_REASON_FRAUDULENT = 2;
147
+ REFUND_REASON_CHARGEBACK = 3;
148
+ REFUND_REASON_REQUESTED_BY_USER = 4;
149
+ REFUND_REASON_REQUESTED_BY_REDDIT_ADMIN = 5;
150
+ REFUND_REASON_REVERTED = 6;
151
+ }
152
+
153
+ // Indicates where the payment will be executed
154
+ enum PaymentMode {
155
+ PAYMENT_MODE_UNSPECIFIED = 0;
156
+
157
+ PAYMENT_MODE_CLIENT_SIDE = 1;
158
+ PAYMENT_MODE_CLIENT_SIDE_REDIRECT = 2;
159
+ PAYMENT_MODE_SERVER_SIDE = 3;
160
+ }
161
+
162
+ enum PaymentEventStatus {
163
+ PAYMENT_EVENT_STATUS_UNSPECIFIED = 0;
164
+
165
+ PAYMENT_EVENT_STATUS_NEW = 1;
166
+ PAYMENT_EVENT_STATUS_SUCCEEDED = 2;
167
+ PAYMENT_EVENT_STATUS_FAILED = 3;
168
+
169
+ PAYMENT_EVENT_STATUS_REVERTED_CREATED = 4;
170
+ PAYMENT_EVENT_STATUS_REVERTED_COMPLETED = 5;
171
+ PAYMENT_EVENT_STATUS_REVERTED_FAILED = 6;
172
+
173
+ PAYMENT_EVENT_STATUS_ACKNOWLEDGED = 7;
174
+ }
175
+
176
+ enum PaymentUnitStatus {
177
+ PAYMENT_UNIT_STATUS_UNSPECIFIED = 0;
178
+
179
+ PAYMENT_UNIT_STATUS_NEW = 1;
180
+ PAYMENT_UNIT_STATUS_ACTION_REQUIRED = 2;
181
+ PAYMENT_UNIT_STATUS_SUCCEEDED = 3;
182
+ PAYMENT_UNIT_STATUS_FAILED = 4;
183
+
184
+ PAYMENT_UNIT_STATUS_REVERTED_CREATED = 5;
185
+ PAYMENT_UNIT_STATUS_REVERTED_COMPLETED = 6;
186
+ PAYMENT_UNIT_STATUS_REVERTED_FAILED = 7;
187
+ }
188
+
189
+ enum PaymentNotificationType {
190
+ PAYMENT_NOTIFICATION_TYPE_UNSPECIFIED = 0;
191
+
192
+ PAYMENT_NOTIFICATION_TYPE_SUCCEEDED = 1;
193
+ PAYMENT_NOTIFICATION_TYPE_FAILED = 2;
194
+ PAYMENT_NOTIFICATION_TYPE_REFUNDED = 3;
195
+ PAYMENT_NOTIFICATION_TYPE_DISPUTE = 4;
196
+ }
197
+
198
+ service PayPaymentsService {
199
+ rpc AcknowledgeOrderDelivery(AcknowledgeOrderDeliveryRequest) returns (AcknowledgeOrderDeliveryResponse) {}
200
+
201
+ rpc CreatePaymentEvent(CreatePaymentEventRequest) returns (CreatePaymentEventResponse) {}
202
+
203
+ rpc CreatePaymentRefund(CreatePaymentRefundRequest) returns (CreatePaymentRefundResponse) {}
204
+
205
+ rpc GetGoldBalances(GetGoldBalancesRequest) returns (GetGoldBalancesResponse) {}
206
+
207
+ rpc ProcessPaymentNotification(ProcessPaymentNotificationRequest) returns (ProcessPaymentNotificationResponse) {}
208
+
209
+ rpc GetUserProfiles(GetUserProfilesRequest) returns (GetUserProfilesResponse) {}
210
+ }
@@ -0,0 +1,189 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.xpaymentsplatform.payproducts.v1;
4
+
5
+ option go_package = "github.snooguts.net/reddit/reddit-service-pay-products/products-api/api/xpaymentsplatform/payproductspb/v1;payproductspb";
6
+
7
+ enum Currency {
8
+ CURRENCY_UNSPECIFIED = 0;
9
+
10
+ AED = 1; // United Arab Emirates dirham
11
+ AFN = 2; // Afghan afghani
12
+ ALL = 3; // Albanian lek
13
+ AMD = 4; // Armenian dram
14
+ ANG = 5; // Netherlands Antillean guilder
15
+ AOA = 6; // Angolan kwanza
16
+ ARS = 7; // Argentine peso
17
+ AUD = 8; // Australian dollar
18
+ AWG = 9; // Aruban florin
19
+ AZN = 10; // Azerbaijani manat
20
+ BAM = 11; // Bosnia and Herzegovina convertible mark
21
+ BBD = 12; // Barbados dollar
22
+ BDT = 13; // Bangladeshi taka
23
+ BGN = 14; // Bulgarian lev
24
+ BHD = 15; // Bahraini dinar
25
+ BIF = 16; // Burundian franc
26
+ BMD = 17; // Bermudian dollar
27
+ BND = 18; // Brunei dollar
28
+ BOB = 19; // Boliviano
29
+ BOV = 20; // Bolivian Mvdol (funds code)
30
+ BRL = 21; // Brazilian real
31
+ BSD = 22; // Bahamian dollar
32
+ BTN = 23; // Bhutanese ngultrum
33
+ BWP = 24; // Botswana pula
34
+ BYN = 25; // Belarusian ruble
35
+ BZD = 26; // Belize dollar
36
+ CAD = 27; // Canadian dollar
37
+ CDF = 28; // Congolese franc
38
+ CHE = 29; // WIR euro (complementary currency)
39
+ CHF = 30; // Swiss franc
40
+ CHW = 31; // WIR franc (complementary currency)
41
+ CLF = 32; // Unidad de Fomento (funds code)
42
+ CLP = 33; // Chilean peso
43
+ CNY = 34; // Chinese yuan
44
+ COP = 35; // Colombian peso
45
+ COU = 36; // Unidad de Valor Real (UVR) (funds code)
46
+ CRC = 37; // Costa Rican colon
47
+ CUC = 38; // Cuban convertible peso
48
+ CUP = 39; // Cuban peso
49
+ CVE = 40; // Cape Verdean escudo
50
+ CZK = 41; // Czech koruna
51
+ DJF = 42; // Djiboutian franc
52
+ DKK = 43; // Danish krone
53
+ DOP = 44; // Dominican peso
54
+ DZD = 45; // Algerian dinar
55
+ EGP = 46; // Egyptian pound
56
+ ERN = 47; // Eritrean nakfa
57
+ ETB = 48; // Ethiopian birr
58
+ EUR = 49; // Euro
59
+ FJD = 50; // Fiji dollar
60
+ FKP = 51; // Falkland Islands pound
61
+ GBP = 52; // Pound sterling
62
+ GEL = 53; // Georgian lari
63
+ GHS = 54; // Ghanaian cedi
64
+ GIP = 55; // Gibraltar pound
65
+ GMD = 56; // Gambian dalasi
66
+ GNF = 57; // Guinean franc
67
+ GTQ = 58; // Guatemalan quetzal
68
+ GYD = 59; // Guyanese dollar
69
+ HKD = 60; // Hong Kong dollar
70
+ HNL = 61; // Honduran lempira
71
+ HRK = 62; // Croatian kuna
72
+ HTG = 63; // Haitian gourde
73
+ HUF = 64; // Hungarian forint
74
+ IDR = 65; // Indonesian rupiah
75
+ ILS = 66; // Israeli new shekel
76
+ INR = 67; // Indian rupee
77
+ IQD = 68; // Iraqi dinar
78
+ IRR = 69; // Iranian rial
79
+ ISK = 70; // Icelandic krona
80
+ JMD = 71; // Jamaican dollar
81
+ JOD = 72; // Jordanian dinar
82
+ JPY = 73; // Japanese yen
83
+ KES = 74; // Kenyan shilling
84
+ KGS = 75; // Kyrgyzstani som
85
+ KHR = 76; // Cambodian riel
86
+ KMF = 77; // Comoro franc
87
+ KPW = 78; // North Korean won
88
+ KRW = 79; // South Korean won
89
+ KWD = 80; // Kuwaiti dinar
90
+ KYD = 81; // Cayman Islands dollar
91
+ KZT = 82; // Kazakhstani tenge
92
+ LAK = 83; // Lao kip
93
+ LBP = 84; // Lebanese pound
94
+ LKR = 85; // Sri Lankan rupee
95
+ LRD = 86; // Liberian dollar
96
+ LSL = 87; // Lesotho loti
97
+ LYD = 88; // Libyan dinar
98
+ MAD = 89; // Moroccan dirham
99
+ MDL = 90; // Moldovan leu
100
+ MGA = 91; // Malagasy ariary
101
+ MKD = 92; // Macedonian denar
102
+ MMK = 93; // Myanmar kyat
103
+ MNT = 94; // Mongolian togrog
104
+ MOP = 95; // Macanese pataca
105
+ MRU = 96; // Mauritanian ouguiya
106
+ MUR = 97; // Mauritian rupee
107
+ MVR = 98; // Maldivian rufiyaa
108
+ MWK = 99; // Malawian kwacha
109
+ MXN = 100; // Mexican peso
110
+ MXV = 101; // Mexican Unidad de Inversion (UDI) (funds code)
111
+ MYR = 102; // Malaysian ringgit
112
+ MZN = 103; // Mozambican metical
113
+ NAD = 104; // Namibian dollar
114
+ NGN = 105; // Nigerian naira
115
+ NIO = 106; // Nicaraguan cordoba
116
+ NOK = 107; // Norwegian krone
117
+ NPR = 108; // Nepalese rupee
118
+ NZD = 109; // New Zealand dollar
119
+ OMR = 110; // Omani rial
120
+ PAB = 111; // Panamanian balboa
121
+ PEN = 112; // Peruvian sol
122
+ PGK = 113; // Papua New Guinean kina
123
+ PHP = 114; // Philippine peso
124
+ PKR = 115; // Pakistani rupee
125
+ PLN = 116; // Polish zloty
126
+ PYG = 117; // Paraguayan guarani
127
+ QAR = 118; // Qatari riyal
128
+ RON = 119; // Romanian leu
129
+ RSD = 120; // Serbian dinar
130
+ RUB = 121; // Russian ruble
131
+ RWF = 122; // Rwandan franc
132
+ SAR = 123; // Saudi riyal
133
+ SBD = 124; // Solomon Islands dollar
134
+ SCR = 125; // Seychelles rupee
135
+ SDG = 126; // Sudanese pound
136
+ SEK = 127; // Swedish krona/kronor
137
+ SGD = 128; // Singapore dollar
138
+ SHP = 129; // Saint Helena pound
139
+ SLL = 130; // Sierra Leonean leone
140
+ SOS = 131; // Somali shilling
141
+ SRD = 132; // Surinamese dollar
142
+ SSP = 133; // South Sudanese pound
143
+ STN = 134; // Sao Tome and Principe dobra
144
+ SVC = 135; // Salvadoran colon
145
+ SYP = 136; // Syrian pound
146
+ SZL = 137; // Swazi lilangeni
147
+ THB = 138; // Thai baht
148
+ TJS = 139; // Tajikistani somoni
149
+ TMT = 140; // Turkmenistan manat
150
+ TND = 141; // Tunisian dinar
151
+ TOP = 142; // Tongan pa anga
152
+ TRY = 143; // Turkish lira
153
+ TTD = 144; // Trinidad and Tobago dollar
154
+ TWD = 145; // New Taiwan dollar
155
+ TZS = 146; // Tanzanian shilling
156
+ UAH = 147; // Ukrainian hryvnia
157
+ UGX = 148; // Ugandan shilling
158
+ USD = 149; // United States dollar
159
+ USN = 150; // United States dollar (next day) (funds code)
160
+ UYI = 151; // Uruguay Peso en Unidades Indexadas (URUIURUI) (funds code)
161
+ UYU = 152; // Uruguayan peso
162
+ UYW = 153; // Unidad previsional
163
+ UZS = 154; // Uzbekistan som
164
+ VES = 155; // Venezuelan bolivar soberano
165
+ VND = 156; // Vietnamese dong
166
+ VUV = 157; // Vanuatu vatu
167
+ WST = 158; // Samoan tala
168
+ XAF = 159; // CFA franc BEAC
169
+ XAG = 160; // Silver (one troy ounce)
170
+ XAU = 161; // Gold (one troy ounce)
171
+ XBA = 162; // European Composite Unit (EURCO) (bond market unit)
172
+ XBB = 163; // European Monetary Unit (E.M.U.-6) (bond market unit)
173
+ XBC = 164; // European Unit of Account 9 (E.U.A.-9) (bond market unit)
174
+ XBD = 165; // European Unit of Account 17 (E.U.A.-17) (bond market unit)
175
+ XCD = 166; // East Caribbean dollar
176
+ XDR = 167; // Special drawing rights
177
+ XOF = 168; // CFA franc BCEAO
178
+ XPD = 169; // Palladium (one troy ounce)
179
+ XPF = 170; // CFP franc (franc Pacifique)
180
+ XPT = 171; // Platinum (one troy ounce)
181
+ XSU = 172; // SUCRE
182
+ XUA = 173; // ADB Unit of Account
183
+ YER = 174; // Yemeni rial
184
+ ZAR = 175; // South African rand
185
+ ZMW = 176; // Zambian kwacha
186
+ ZWL = 177; // Zimbabwean dollar
187
+
188
+ GOLD = 200; // Reddit internal currency
189
+ }