@devvit/protos 0.11.7-next-2025-02-10-a03b99540.0 → 0.11.7
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -4
- package/meta.min.json +0 -7820
- package/protos.min.js +0 -2
- package/protos.min.js.map +0 -7
- package/schema/.snootobuf/deps/buf/validate/expression.proto +0 -92
- package/schema/.snootobuf/deps/buf/validate/priv/private.proto +0 -41
- package/schema/.snootobuf/deps/buf/validate/validate.proto +0 -4130
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +0 -72
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +0 -49
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +0 -54
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +0 -46
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +0 -72
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +0 -20
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +0 -45
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +0 -54
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +0 -773
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +0 -66
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +0 -100
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +0 -19
- package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +0 -446
- package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +0 -24
- package/schema/.snootobuf/deps/devvit/options/options.proto +0 -98
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +0 -29
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +0 -25
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +0 -53
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +0 -56
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +0 -107
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +0 -41
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +0 -23
- package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +0 -162
- package/schema/.snootobuf/deps/enum/account_gender_category.proto +0 -14
- package/schema/.snootobuf/deps/enum/approval_status.proto +0 -15
- package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +0 -12
- package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +0 -13
- package/schema/.snootobuf/deps/enum/ban_info_action.proto +0 -12
- package/schema/.snootobuf/deps/enum/block_relation_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/comment_sort.proto +0 -18
- package/schema/.snootobuf/deps/enum/comment_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/crowd_control_level.proto +0 -12
- package/schema/.snootobuf/deps/enum/discussion_type.proto +0 -10
- package/schema/.snootobuf/deps/enum/distinguish_type.proto +0 -14
- package/schema/.snootobuf/deps/enum/flair_position.proto +0 -11
- package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +0 -12
- package/schema/.snootobuf/deps/enum/link_content_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/link_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/link_visibility.proto +0 -11
- package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/promo_layout.proto +0 -11
- package/schema/.snootobuf/deps/enum/removed_by_type.proto +0 -18
- package/schema/.snootobuf/deps/enum/spam_level.proto +0 -11
- package/schema/.snootobuf/deps/enum/subreddit_type.proto +0 -16
- package/schema/.snootobuf/deps/enum/verdict.proto +0 -14
- package/schema/.snootobuf/deps/enum/vote.proto +0 -12
- package/schema/.snootobuf/deps/enum/whitelist_status.proto +0 -17
- package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +0 -12
- package/schema/.snootobuf/deps/evaluator/evaluator.proto +0 -203
- package/schema/.snootobuf/deps/google/api/annotations.proto +0 -31
- package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +0 -288
- package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +0 -175
- package/schema/.snootobuf/deps/google/api/auth.proto +0 -237
- package/schema/.snootobuf/deps/google/api/backend.proto +0 -185
- package/schema/.snootobuf/deps/google/api/billing.proto +0 -77
- package/schema/.snootobuf/deps/google/api/client.proto +0 -431
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +0 -315
- package/schema/.snootobuf/deps/google/api/config_change.proto +0 -84
- package/schema/.snootobuf/deps/google/api/consumer.proto +0 -82
- package/schema/.snootobuf/deps/google/api/context.proto +0 -92
- package/schema/.snootobuf/deps/google/api/control.proto +0 -41
- package/schema/.snootobuf/deps/google/api/distribution.proto +0 -213
- package/schema/.snootobuf/deps/google/api/documentation.proto +0 -168
- package/schema/.snootobuf/deps/google/api/endpoint.proto +0 -69
- package/schema/.snootobuf/deps/google/api/error_reason.proto +0 -589
- package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +0 -343
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +0 -118
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +0 -53
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +0 -438
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +0 -115
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +0 -84
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +0 -125
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +0 -265
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +0 -62
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +0 -114
- package/schema/.snootobuf/deps/google/api/field_behavior.proto +0 -104
- package/schema/.snootobuf/deps/google/api/field_info.proto +0 -106
- package/schema/.snootobuf/deps/google/api/http.proto +0 -371
- package/schema/.snootobuf/deps/google/api/httpbody.proto +0 -81
- package/schema/.snootobuf/deps/google/api/label.proto +0 -48
- package/schema/.snootobuf/deps/google/api/launch_stage.proto +0 -72
- package/schema/.snootobuf/deps/google/api/log.proto +0 -54
- package/schema/.snootobuf/deps/google/api/logging.proto +0 -81
- package/schema/.snootobuf/deps/google/api/metric.proto +0 -268
- package/schema/.snootobuf/deps/google/api/monitored_resource.proto +0 -130
- package/schema/.snootobuf/deps/google/api/monitoring.proto +0 -107
- package/schema/.snootobuf/deps/google/api/policy.proto +0 -85
- package/schema/.snootobuf/deps/google/api/quota.proto +0 -184
- package/schema/.snootobuf/deps/google/api/resource.proto +0 -243
- package/schema/.snootobuf/deps/google/api/routing.proto +0 -461
- package/schema/.snootobuf/deps/google/api/service.proto +0 -191
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +0 -124
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +0 -166
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +0 -93
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +0 -126
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +0 -81
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +0 -123
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +0 -245
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +0 -260
- package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +0 -196
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +0 -295
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +0 -508
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +0 -130
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +0 -305
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +0 -458
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
- package/schema/.snootobuf/deps/google/api/source_info.proto +0 -31
- package/schema/.snootobuf/deps/google/api/system_parameter.proto +0 -96
- package/schema/.snootobuf/deps/google/api/usage.proto +0 -96
- package/schema/.snootobuf/deps/google/api/visibility.proto +0 -113
- package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +0 -150
- package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +0 -1087
- package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +0 -145
- package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +0 -34
- package/schema/.snootobuf/deps/google/iam/v1/options.proto +0 -41
- package/schema/.snootobuf/deps/google/iam/v1/policy.proto +0 -240
- package/schema/.snootobuf/deps/google/logging/type/http_request.proto +0 -92
- package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +0 -72
- package/schema/.snootobuf/deps/google/longrunning/operations.proto +0 -247
- package/schema/.snootobuf/deps/google/protobuf/any.proto +0 -158
- package/schema/.snootobuf/deps/google/protobuf/api.proto +0 -208
- package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +0 -183
- package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +0 -921
- package/schema/.snootobuf/deps/google/protobuf/duration.proto +0 -116
- package/schema/.snootobuf/deps/google/protobuf/empty.proto +0 -51
- package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +0 -245
- package/schema/.snootobuf/deps/google/protobuf/source_context.proto +0 -48
- package/schema/.snootobuf/deps/google/protobuf/struct.proto +0 -95
- package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +0 -147
- package/schema/.snootobuf/deps/google/protobuf/type.proto +0 -187
- package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +0 -123
- package/schema/.snootobuf/deps/google/rpc/code.proto +0 -186
- package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +0 -287
- package/schema/.snootobuf/deps/google/rpc/error_details.proto +0 -246
- package/schema/.snootobuf/deps/google/rpc/status.proto +0 -47
- package/schema/.snootobuf/deps/google/type/calendar_period.proto +0 -57
- package/schema/.snootobuf/deps/google/type/color.proto +0 -170
- package/schema/.snootobuf/deps/google/type/date.proto +0 -50
- package/schema/.snootobuf/deps/google/type/datetime.proto +0 -97
- package/schema/.snootobuf/deps/google/type/dayofweek.proto +0 -51
- package/schema/.snootobuf/deps/google/type/expr.proto +0 -51
- package/schema/.snootobuf/deps/google/type/fraction.proto +0 -34
- package/schema/.snootobuf/deps/google/type/latlng.proto +0 -37
- package/schema/.snootobuf/deps/google/type/money.proto +0 -43
- package/schema/.snootobuf/deps/google/type/month.proto +0 -66
- package/schema/.snootobuf/deps/google/type/postal_address.proto +0 -135
- package/schema/.snootobuf/deps/google/type/quaternion.proto +0 -95
- package/schema/.snootobuf/deps/google/type/timeofday.proto +0 -44
- package/schema/.snootobuf/deps/openapi/helper.proto +0 -20
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -118
- package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +0 -55
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +0 -579
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +0 -43
- package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +0 -82
- package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +0 -221
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +0 -78
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +0 -189
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +0 -29
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +0 -417
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +0 -72
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +0 -25
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +0 -52
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +0 -16
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +0 -20
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +0 -149
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +0 -197
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +0 -116
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +0 -25
- package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +0 -101
- package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +0 -34
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +0 -798
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +0 -186
- package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +0 -110
- package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +0 -51
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +0 -1202
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +0 -85
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +0 -363
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +0 -301
- package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +0 -2869
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +0 -15
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +0 -11
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +0 -48
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +0 -70
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +0 -11
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +0 -89
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +0 -322
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +0 -14
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +0 -15
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +0 -48
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +0 -31
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +0 -26
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +0 -15
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +0 -52
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +0 -23
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +0 -28
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +0 -49
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +0 -20
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +0 -158
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +0 -18
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +0 -195
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +0 -44
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +0 -200
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +0 -18
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +0 -210
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -135
- package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +0 -29
- package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +0 -3292
- package/schema/.snootobuf/deps/validate/validate.proto +0 -862
@@ -1,44 +0,0 @@
|
|
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
|
-
}
|
@@ -1,200 +0,0 @@
|
|
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
|
-
}
|
@@ -1,18 +0,0 @@
|
|
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
|
-
}
|
@@ -1,210 +0,0 @@
|
|
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
|
-
}
|
@@ -1,189 +0,0 @@
|
|
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
|
-
}
|