|
465 | 465 | },
|
466 | 466 | {
|
467 | 467 | "value": {
|
468 |
| - "example": "// GetBalanceForOrg: Get balance for your org.\n// \n// This endpoint requires authentication by an org admin. It gets the balance information for the authenticated user's org.\n// \n// GetBalanceForOrg: Get balance for your org.\n// This endpoint requires authentication by an org admin. It gets the balance information for the authenticated user's org.\nfunc ExamplePaymentService_GetBalanceForOrg() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetBalanceForOrg()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
| 468 | + "example": "// GetBalanceForOrg: Get balance for your org.\n// \n// This endpoint requires authentication by an org admin. It gets the balance information for the authenticated user's org.\n// \n// \n// Parameters\n// \n// \t- `includeTotalDue`\n// \n// GetBalanceForOrg: Get balance for your org.\n// This endpoint requires authentication by an org admin. It gets the balance information for the authenticated user's org.\n//\n// Parameters\n//\n// - `includeTotalDue`\nfunc ExamplePaymentService_GetBalanceForOrg() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetBalanceForOrg(true)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
469 | 469 | "libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#PaymentService.GetBalanceForOrg"
|
470 | 470 | },
|
471 | 471 | "op": "add",
|
|
649 | 649 | },
|
650 | 650 | {
|
651 | 651 | "value": {
|
652 |
| - "example": "// GetBalanceForAnyOrg: Get balance for an org.\n// \n// This endpoint requires authentication by a Zoo employee. It gets the balance information for the specified org.\n// \n// \n// Parameters\n// \n// \t- `id`: A UUID usually v4 or v7\n// \n// GetBalanceForAnyOrg: Get balance for an org.\n// This endpoint requires authentication by a Zoo employee. It gets the balance information for the specified org.\n//\n// Parameters\n//\n// - `id`: A UUID usually v4 or v7\nfunc ExamplePaymentService_GetBalanceForAnyOrg() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetBalanceForAnyOrg(kittycad.ParseUUID(\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
| 652 | + "example": "// GetBalanceForAnyOrg: Get balance for an org.\n// \n// This endpoint requires authentication by a Zoo employee. It gets the balance information for the specified org.\n// \n// \n// Parameters\n// \n// \t- `includeTotalDue`\n// \t- `id`: A UUID usually v4 or v7\n// \n// GetBalanceForAnyOrg: Get balance for an org.\n// This endpoint requires authentication by a Zoo employee. It gets the balance information for the specified org.\n//\n// Parameters\n//\n// - `includeTotalDue`\n// - `id`: A UUID usually v4 or v7\nfunc ExamplePaymentService_GetBalanceForAnyOrg() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetBalanceForAnyOrg(true, kittycad.ParseUUID(\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
653 | 653 | "libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#PaymentService.GetBalanceForAnyOrg"
|
654 | 654 | },
|
655 | 655 | "op": "add",
|
656 | 656 | "path": "/paths/~1orgs~1{id}~1payment~1balance/get/x-go"
|
657 | 657 | },
|
658 | 658 | {
|
659 | 659 | "value": {
|
660 |
| - "example": "// UpdateBalanceForAnyOrg: Update balance for an org.\n// \n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified org.\n// \n// \n// Parameters\n// \n// \t- `id`: A UUID usually v4 or v7\n// \t- `body`: The data for updating a balance.\n// \n// UpdateBalanceForAnyOrg: Update balance for an org.\n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified org.\n//\n// Parameters\n//\n// - `id`: A UUID usually v4 or v7\n// - `body`: The data for updating a balance.\nfunc ExamplePaymentService_UpdateBalanceForAnyOrg() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.UpdateBalanceForAnyOrg(kittycad.ParseUUID(\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"), kittycad.UpdatePaymentBalance{MonthlyAPICreditsRemainingMonetaryValue: 123.45, StableAPICreditsRemainingMonetaryValue: 123.45})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
| 660 | + "example": "// UpdateBalanceForAnyOrg: Update balance for an org.\n// \n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified org.\n// \n// \n// Parameters\n// \n// \t- `id`: A UUID usually v4 or v7\n// \t- `includeTotalDue`\n// \t- `body`: The data for updating a balance.\n// \n// UpdateBalanceForAnyOrg: Update balance for an org.\n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified org.\n//\n// Parameters\n//\n// - `id`: A UUID usually v4 or v7\n// - `includeTotalDue`\n// - `body`: The data for updating a balance.\nfunc ExamplePaymentService_UpdateBalanceForAnyOrg() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.UpdateBalanceForAnyOrg(kittycad.ParseUUID(\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"), true, kittycad.UpdatePaymentBalance{MonthlyAPICreditsRemainingMonetaryValue: 123.45, StableAPICreditsRemainingMonetaryValue: 123.45})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
661 | 661 | "libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#PaymentService.UpdateBalanceForAnyOrg"
|
662 | 662 | },
|
663 | 663 | "op": "add",
|
|
929 | 929 | },
|
930 | 930 | {
|
931 | 931 | "value": {
|
932 |
| - "example": "// GetBalanceForUser: Get balance for your user.\n// \n// This endpoint requires authentication by any Zoo user. It gets the balance information for the authenticated user.\n// \n// GetBalanceForUser: Get balance for your user.\n// This endpoint requires authentication by any Zoo user. It gets the balance information for the authenticated user.\nfunc ExamplePaymentService_GetBalanceForUser() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetBalanceForUser()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
| 932 | + "example": "// GetBalanceForUser: Get balance for your user.\n// \n// This endpoint requires authentication by any Zoo user. It gets the balance information for the authenticated user.\n// \n// \n// Parameters\n// \n// \t- `includeTotalDue`\n// \n// GetBalanceForUser: Get balance for your user.\n// This endpoint requires authentication by any Zoo user. It gets the balance information for the authenticated user.\n//\n// Parameters\n//\n// - `includeTotalDue`\nfunc ExamplePaymentService_GetBalanceForUser() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetBalanceForUser(true)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
933 | 933 | "libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#PaymentService.GetBalanceForUser"
|
934 | 934 | },
|
935 | 935 | "op": "add",
|
|
1129 | 1129 | },
|
1130 | 1130 | {
|
1131 | 1131 | "value": {
|
1132 |
| - "example": "// GetBalanceForAnyUser: Get balance for an user.\n// \n// This endpoint requires authentication by a Zoo employee. It gets the balance information for the specified user.\n// \n// \n// Parameters\n// \n// \t- `id`\n// \n// GetBalanceForAnyUser: Get balance for an user.\n// This endpoint requires authentication by a Zoo employee. It gets the balance information for the specified user.\n//\n// Parameters\n//\n// - `id`\nfunc ExamplePaymentService_GetBalanceForAnyUser() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetBalanceForAnyUser(\"some-string\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
| 1132 | + "example": "// GetBalanceForAnyUser: Get balance for an user.\n// \n// This endpoint requires authentication by a Zoo employee. It gets the balance information for the specified user.\n// \n// \n// Parameters\n// \n// \t- `id`\n// \t- `includeTotalDue`\n// \n// GetBalanceForAnyUser: Get balance for an user.\n// This endpoint requires authentication by a Zoo employee. It gets the balance information for the specified user.\n//\n// Parameters\n//\n// - `id`\n// - `includeTotalDue`\nfunc ExamplePaymentService_GetBalanceForAnyUser() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetBalanceForAnyUser(\"some-string\", true)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
1133 | 1133 | "libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#PaymentService.GetBalanceForAnyUser"
|
1134 | 1134 | },
|
1135 | 1135 | "op": "add",
|
1136 | 1136 | "path": "/paths/~1users~1{id}~1payment~1balance/get/x-go"
|
1137 | 1137 | },
|
1138 | 1138 | {
|
1139 | 1139 | "value": {
|
1140 |
| - "example": "// UpdateBalanceForAnyUser: Update balance for an user.\n// \n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified user.\n// \n// \n// Parameters\n// \n// \t- `id`\n// \t- `body`: The data for updating a balance.\n// \n// UpdateBalanceForAnyUser: Update balance for an user.\n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified user.\n//\n// Parameters\n//\n// - `id`\n// - `body`: The data for updating a balance.\nfunc ExamplePaymentService_UpdateBalanceForAnyUser() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.UpdateBalanceForAnyUser(\"some-string\", kittycad.UpdatePaymentBalance{MonthlyAPICreditsRemainingMonetaryValue: 123.45, StableAPICreditsRemainingMonetaryValue: 123.45})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
| 1140 | + "example": "// UpdateBalanceForAnyUser: Update balance for an user.\n// \n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified user.\n// \n// \n// Parameters\n// \n// \t- `id`\n// \t- `includeTotalDue`\n// \t- `body`: The data for updating a balance.\n// \n// UpdateBalanceForAnyUser: Update balance for an user.\n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified user.\n//\n// Parameters\n//\n// - `id`\n// - `includeTotalDue`\n// - `body`: The data for updating a balance.\nfunc ExamplePaymentService_UpdateBalanceForAnyUser() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.UpdateBalanceForAnyUser(\"some-string\", true, kittycad.UpdatePaymentBalance{MonthlyAPICreditsRemainingMonetaryValue: 123.45, StableAPICreditsRemainingMonetaryValue: 123.45})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", |
1141 | 1141 | "libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#PaymentService.UpdateBalanceForAnyUser"
|
1142 | 1142 | },
|
1143 | 1143 | "op": "add",
|
|
0 commit comments