Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions docs/gen/redoc.v1.html

Large diffs are not rendered by default.

109 changes: 109 additions & 0 deletions docs/gen/swagger.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,19 @@
"in": "query",
"required": false,
"type": "string"
},
{
"name": "environment",
"description": "Payment environment for the request",
"in": "query",
"required": false,
"type": "string",
"enum": [
"PAYMENT_ENVIRONMENT_UNSPECIFIED",
"PAYMENT_ENVIRONMENT_TEST",
"PAYMENT_ENVIRONMENT_PRODUCTION"
],
"default": "PAYMENT_ENVIRONMENT_UNSPECIFIED"
}
],
"tags": [
Expand Down Expand Up @@ -2000,6 +2013,19 @@
"in": "query",
"required": false,
"type": "string"
},
{
"name": "environment",
"description": "Payment environment for the request",
"in": "query",
"required": false,
"type": "string",
"enum": [
"PAYMENT_ENVIRONMENT_UNSPECIFIED",
"PAYMENT_ENVIRONMENT_TEST",
"PAYMENT_ENVIRONMENT_PRODUCTION"
],
"default": "PAYMENT_ENVIRONMENT_UNSPECIFIED"
}
],
"tags": [
Expand Down Expand Up @@ -2097,6 +2123,19 @@
"in": "query",
"required": true,
"type": "string"
},
{
"name": "environment",
"description": "Payment environment for the request",
"in": "query",
"required": false,
"type": "string",
"enum": [
"PAYMENT_ENVIRONMENT_UNSPECIFIED",
"PAYMENT_ENVIRONMENT_TEST",
"PAYMENT_ENVIRONMENT_PRODUCTION"
],
"default": "PAYMENT_ENVIRONMENT_UNSPECIFIED"
}
],
"tags": [
Expand Down Expand Up @@ -2191,6 +2230,16 @@
"type": "string",
"description": "Optional checkout link identifier if purchase was made through a checkout link"
},
"environment": {
"type": "string",
"enum": [
"PAYMENT_ENVIRONMENT_UNSPECIFIED",
"PAYMENT_ENVIRONMENT_TEST",
"PAYMENT_ENVIRONMENT_PRODUCTION"
],
"default": "PAYMENT_ENVIRONMENT_UNSPECIFIED",
"description": "Payment environment for the request"
},
"items": {
"type": "array",
"items": {
Expand Down Expand Up @@ -2341,6 +2390,16 @@
"type": "string",
"description": "Optional checkout link identifier if purchase was made through a checkout link"
},
"environment": {
"type": "string",
"enum": [
"PAYMENT_ENVIRONMENT_UNSPECIFIED",
"PAYMENT_ENVIRONMENT_TEST",
"PAYMENT_ENVIRONMENT_PRODUCTION"
],
"default": "PAYMENT_ENVIRONMENT_UNSPECIFIED",
"description": "Payment environment for the request"
},
"currency": {
"type": "string",
"description": "Currency code (ISO-4217 code, e.g., 'USD', 'EUR')"
Expand Down Expand Up @@ -2632,6 +2691,16 @@
"type": "string",
"description": "Optional checkout link identifier if purchase was made through a checkout link"
},
"environment": {
"type": "string",
"enum": [
"PAYMENT_ENVIRONMENT_UNSPECIFIED",
"PAYMENT_ENVIRONMENT_TEST",
"PAYMENT_ENVIRONMENT_PRODUCTION"
],
"default": "PAYMENT_ENVIRONMENT_UNSPECIFIED",
"description": "Payment environment for the request"
},
"currency": {
"type": "string",
"description": "Currency code (ISO-4217 code, e.g., 'USD', 'EUR')"
Expand Down Expand Up @@ -12071,6 +12140,16 @@
"description": "Represents the type of non-purchasable item",
"title": "- NON_PURCHASABLE_ITEM_TYPE_UNSPECIFIED: Default non-purchasable item type\n - NON_PURCHASABLE_ITEM_TYPE_BANNER: Banner type non-purchasable item for emphasized full-width display"
},
"v1PaymentEnvironment": {
"type": "string",
"enum": [
"PAYMENT_ENVIRONMENT_UNSPECIFIED",
"PAYMENT_ENVIRONMENT_TEST",
"PAYMENT_ENVIRONMENT_PRODUCTION"
],
"default": "PAYMENT_ENVIRONMENT_UNSPECIFIED",
"description": "Represents the payment environment for the request"
},
"v1PurchasableItemType": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -12371,6 +12450,16 @@
"type": "string",
"description": "Optional checkout link identifier if purchase was made through a checkout link"
},
"environment": {
"type": "string",
"enum": [
"PAYMENT_ENVIRONMENT_UNSPECIFIED",
"PAYMENT_ENVIRONMENT_TEST",
"PAYMENT_ENVIRONMENT_PRODUCTION"
],
"default": "PAYMENT_ENVIRONMENT_UNSPECIFIED",
"description": "Payment environment for the request"
},
"items": {
"type": "array",
"items": {
Expand Down Expand Up @@ -12461,6 +12550,16 @@
"type": "string",
"description": "Optional checkout link identifier if purchase was made through a checkout link"
},
"environment": {
"type": "string",
"enum": [
"PAYMENT_ENVIRONMENT_UNSPECIFIED",
"PAYMENT_ENVIRONMENT_TEST",
"PAYMENT_ENVIRONMENT_PRODUCTION"
],
"default": "PAYMENT_ENVIRONMENT_UNSPECIFIED",
"description": "Payment environment for the request"
},
"currency": {
"type": "string",
"description": "Currency code (ISO-4217 code, e.g., 'USD', 'EUR')"
Expand Down Expand Up @@ -12740,6 +12839,16 @@
"type": "string",
"description": "Optional checkout link identifier if purchase was made through a checkout link"
},
"environment": {
"type": "string",
"enum": [
"PAYMENT_ENVIRONMENT_UNSPECIFIED",
"PAYMENT_ENVIRONMENT_TEST",
"PAYMENT_ENVIRONMENT_PRODUCTION"
],
"default": "PAYMENT_ENVIRONMENT_UNSPECIFIED",
"description": "Payment environment for the request"
},
"currency": {
"type": "string",
"description": "Currency code (ISO-4217 code, e.g., 'USD', 'EUR')"
Expand Down
3 changes: 3 additions & 0 deletions server/shop/catalog/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "google/api/field_behavior.proto";
import "google/protobuf/timestamp.proto";
import "protoc-gen-openapiv2/options/annotations.proto";
import "server/shop/catalog/v1/enums.proto";
import "server/shop/v1/enums.proto";
import "validate/validate.proto";

option go_package = "github.com/stashgg/public-api/gen/proto/server/shop/catalog/v1";
Expand Down Expand Up @@ -99,6 +100,7 @@ message GetCatalogRequest {
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Optional player ID filter to get player-specific catalog items"}
];
server.shop.v1.PaymentEnvironment environment = 5 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Payment environment for the request"}];
}

message GetCatalogResponse {
Expand Down Expand Up @@ -706,6 +708,7 @@ message GetOfferDetailsRequest {
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Optional player ID filter to get player-specific catalog items"}
];
server.shop.v1.PaymentEnvironment environment = 7 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Payment environment for the request"}];
}

message GetOfferDetailsResponse {
Expand Down
4 changes: 4 additions & 0 deletions server/shop/purchase/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "google/api/annotations.proto";
import "google/api/field_behavior.proto";
import "protoc-gen-openapiv2/options/annotations.proto";
import "server/shop/purchase/v1/enums.proto";
import "server/shop/v1/enums.proto";
import "validate/validate.proto";

option go_package = "github.com/stashgg/public-api/gen/proto/server/shop/purchase/v1";
Expand Down Expand Up @@ -88,6 +89,7 @@ message RegisterPaymentRequest {
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Unique transaction identifier for this purchase session"}
];
optional string checkout_link_id = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Optional checkout link identifier if purchase was made through a checkout link"}];
server.shop.v1.PaymentEnvironment environment = 12 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Payment environment for the request"}];

string currency = 4 [
(google.api.field_behavior) = REQUIRED,
Expand Down Expand Up @@ -219,6 +221,7 @@ message CancelPaymentRequest {
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Transaction identifier to cancel"}
];
optional string checkout_link_id = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Optional checkout link identifier if purchase was made through a checkout link"}];
server.shop.v1.PaymentEnvironment environment = 5 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Payment environment for the request"}];

message CanceledItem {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
Expand Down Expand Up @@ -300,6 +303,7 @@ message ConfirmPaymentRequest {
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Transaction identifier to confirm"}
];
optional string checkout_link_id = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Optional checkout link identifier if purchase was made through a checkout link"}];
server.shop.v1.PaymentEnvironment environment = 21 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Payment environment for the request"}];

string currency = 4 [
(google.api.field_behavior) = REQUIRED,
Expand Down
2 changes: 2 additions & 0 deletions server/shop/user/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package server.shop.user.v1;
import "google/api/annotations.proto";
import "google/api/field_behavior.proto";
import "protoc-gen-openapiv2/options/annotations.proto";
import "server/shop/v1/enums.proto";
import "validate/validate.proto";

option go_package = "github.com/stashgg/public-api/gen/proto/server/shop/user/v1";
Expand Down Expand Up @@ -41,6 +42,7 @@ message GetPlayerRequest {
(validate.rules).string.min_len = 1,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The player ID to retrieve"}
];
server.shop.v1.PaymentEnvironment environment = 2 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Payment environment for the request"}];
}

message GetPlayerResponse {
Expand Down
14 changes: 14 additions & 0 deletions server/shop/v1/enums.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
syntax = "proto3";

package server.shop.v1;

import "protoc-gen-openapiv2/options/annotations.proto";

option go_package = "github.com/stashgg/public-api/gen/proto/server/shop/v1";

enum PaymentEnvironment {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_enum) = {description: "Represents the payment environment for the request"};
PAYMENT_ENVIRONMENT_UNSPECIFIED = 0;
PAYMENT_ENVIRONMENT_TEST = 1;
PAYMENT_ENVIRONMENT_PRODUCTION = 2;
}
Loading