Skip to content

Commit

Permalink
APP-6845: Create GetBillingService API (#588)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jr22 and github-actions[bot] authored Nov 12, 2024
1 parent 9b9576c commit a2094d3
Show file tree
Hide file tree
Showing 9 changed files with 3,317 additions and 2,459 deletions.
5,061 changes: 2,602 additions & 2,459 deletions app/v1/app.pb.go

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions app/v1/app.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions app/v1/app_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 61 additions & 0 deletions gen/js/app/v1/app_grpc_web_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,67 @@ proto.viam.app.v1.AppServicePromiseClient.prototype.updateBillingService =
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.viam.app.v1.GetBillingServiceConfigRequest,
* !proto.viam.app.v1.GetBillingServiceConfigResponse>}
*/
const methodDescriptor_AppService_GetBillingServiceConfig = new grpc.web.MethodDescriptor(
'/viam.app.v1.AppService/GetBillingServiceConfig',
grpc.web.MethodType.UNARY,
proto.viam.app.v1.GetBillingServiceConfigRequest,
proto.viam.app.v1.GetBillingServiceConfigResponse,
/**
* @param {!proto.viam.app.v1.GetBillingServiceConfigRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.viam.app.v1.GetBillingServiceConfigResponse.deserializeBinary
);


/**
* @param {!proto.viam.app.v1.GetBillingServiceConfigRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.viam.app.v1.GetBillingServiceConfigResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.viam.app.v1.GetBillingServiceConfigResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.viam.app.v1.AppServiceClient.prototype.getBillingServiceConfig =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/viam.app.v1.AppService/GetBillingServiceConfig',
request,
metadata || {},
methodDescriptor_AppService_GetBillingServiceConfig,
callback);
};


/**
* @param {!proto.viam.app.v1.GetBillingServiceConfigRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.viam.app.v1.GetBillingServiceConfigResponse>}
* Promise that resolves to the response
*/
proto.viam.app.v1.AppServicePromiseClient.prototype.getBillingServiceConfig =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/viam.app.v1.AppService/GetBillingServiceConfig',
request,
metadata || {},
methodDescriptor_AppService_GetBillingServiceConfig);
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
Expand Down
54 changes: 54 additions & 0 deletions gen/js/app/v1/app_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,60 @@ export namespace UpdateBillingServiceResponse {
}
}

export class GetBillingServiceConfigRequest extends jspb.Message {
getOrgId(): string;
setOrgId(value: string): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetBillingServiceConfigRequest.AsObject;
static toObject(includeInstance: boolean, msg: GetBillingServiceConfigRequest): GetBillingServiceConfigRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetBillingServiceConfigRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetBillingServiceConfigRequest;
static deserializeBinaryFromReader(message: GetBillingServiceConfigRequest, reader: jspb.BinaryReader): GetBillingServiceConfigRequest;
}

export namespace GetBillingServiceConfigRequest {
export type AsObject = {
orgId: string,
}
}

export class GetBillingServiceConfigResponse extends jspb.Message {
hasBillingAddress(): boolean;
clearBillingAddress(): void;
getBillingAddress(): BillingAddress | undefined;
setBillingAddress(value?: BillingAddress): void;

getSupportEmail(): string;
setSupportEmail(value: string): void;

getLogoUrl(): string;
setLogoUrl(value: string): void;

getBillingDashboardUrl(): string;
setBillingDashboardUrl(value: string): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetBillingServiceConfigResponse.AsObject;
static toObject(includeInstance: boolean, msg: GetBillingServiceConfigResponse): GetBillingServiceConfigResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: GetBillingServiceConfigResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): GetBillingServiceConfigResponse;
static deserializeBinaryFromReader(message: GetBillingServiceConfigResponse, reader: jspb.BinaryReader): GetBillingServiceConfigResponse;
}

export namespace GetBillingServiceConfigResponse {
export type AsObject = {
billingAddress?: BillingAddress.AsObject,
supportEmail: string,
logoUrl: string,
billingDashboardUrl: string,
}
}

export class DisableBillingServiceRequest extends jspb.Message {
getOrgId(): string;
setOrgId(value: string): void;
Expand Down
Loading

0 comments on commit a2094d3

Please sign in to comment.