vendor: update all dependencies
This commit is contained in:
+259
-259
@@ -1,265 +1,265 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/jjPNPRw3vV3kPmpQDcyXQEJTSyY\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidpublisher:v1.1",
|
||||
"name": "androidpublisher",
|
||||
"canonicalName": "Android Publisher",
|
||||
"version": "v1.1",
|
||||
"revision": "20171207",
|
||||
"title": "Google Play Developer API",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1.1/applications/",
|
||||
"basePath": "/androidpublisher/v1.1/applications/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "androidpublisher/v1.1/applications/",
|
||||
"batchPath": "batch/androidpublisher/v1.1",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Developer account"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"InappPurchase": {
|
||||
"id": "InappPurchase",
|
||||
"type": "object",
|
||||
"description": "An InappPurchase resource indicates the status of a user's inapp product purchase.",
|
||||
"properties": {
|
||||
"consumptionState": {
|
||||
"type": "integer",
|
||||
"description": "The consumption state of the inapp product. Possible values are: \n- Yet to be consumed \n- Consumed",
|
||||
"format": "int32"
|
||||
},
|
||||
"developerPayload": {
|
||||
"type": "string",
|
||||
"description": "A developer-specified string that contains supplemental information about an order."
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "This kind represents an inappPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#inappPurchase"
|
||||
},
|
||||
"orderId": {
|
||||
"type": "string",
|
||||
"description": "The order id associated with the purchase of the inapp product."
|
||||
},
|
||||
"purchaseState": {
|
||||
"type": "integer",
|
||||
"description": "The purchase state of the order. Possible values are: \n- Purchased \n- Cancelled",
|
||||
"format": "int32"
|
||||
},
|
||||
"purchaseTime": {
|
||||
"type": "string",
|
||||
"description": "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).",
|
||||
"format": "int64"
|
||||
},
|
||||
"purchaseType": {
|
||||
"type": "integer",
|
||||
"description": "The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: \n- Test (i.e. purchased from a license testing account)",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SubscriptionPurchase": {
|
||||
"id": "SubscriptionPurchase",
|
||||
"type": "object",
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time."
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#subscriptionPurchase"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"inapppurchases": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"id": "androidpublisher.inapppurchases.get",
|
||||
"path": "{packageName}/inapp/{productId}/purchases/{token}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Checks the purchase and consumption status of an inapp item.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"productId": {
|
||||
"type": "string",
|
||||
"description": "The inapp product SKU (for example, 'com.some.thing.inapp1').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the inapp product was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Developer account"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"productId",
|
||||
"token"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "InappPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"httpMethod": "POST",
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
"basePath": "/androidpublisher/v1.1/applications/",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1.1/applications/",
|
||||
"batchPath": "batch/androidpublisher/v1.1",
|
||||
"canonicalName": "Android Publisher",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/Xvb720kj6kaUU3p6XJECzzWJnek\"",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"id": "androidpublisher:v1.1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "androidpublisher",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"get": {
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userIp": {
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"inapppurchases": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Checks the purchase and consumption status of an inapp item.",
|
||||
"httpMethod": "GET",
|
||||
"id": "androidpublisher.inapppurchases.get",
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"productId",
|
||||
"token"
|
||||
],
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"productId": {
|
||||
"description": "The inapp product SKU (for example, 'com.some.thing.inapp1').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "The token provided to the user's device when the inapp product was purchased.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "{packageName}/inapp/{productId}/purchases/{token}",
|
||||
"response": {
|
||||
"$ref": "InappPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"httpMethod": "POST",
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"httpMethod": "GET",
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180211",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"InappPurchase": {
|
||||
"description": "An InappPurchase resource indicates the status of a user's inapp product purchase.",
|
||||
"id": "InappPurchase",
|
||||
"properties": {
|
||||
"consumptionState": {
|
||||
"description": "The consumption state of the inapp product. Possible values are: \n- Yet to be consumed \n- Consumed",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"developerPayload": {
|
||||
"description": "A developer-specified string that contains supplemental information about an order.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "androidpublisher#inappPurchase",
|
||||
"description": "This kind represents an inappPurchase object in the androidpublisher service.",
|
||||
"type": "string"
|
||||
},
|
||||
"orderId": {
|
||||
"description": "The order id associated with the purchase of the inapp product.",
|
||||
"type": "string"
|
||||
},
|
||||
"purchaseState": {
|
||||
"description": "The purchase state of the order. Possible values are: \n- Purchased \n- Canceled",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"purchaseTime": {
|
||||
"description": "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"purchaseType": {
|
||||
"description": "The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: \n- Test (i.e. purchased from a license testing account) \n- Promo (i.e. purchased using a promo code)",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SubscriptionPurchase": {
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"id": "SubscriptionPurchase",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "androidpublisher#subscriptionPurchase",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"type": "string"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "androidpublisher/v1.1/applications/",
|
||||
"title": "Google Play Developer API",
|
||||
"version": "v1.1"
|
||||
}
|
||||
+2
-1
@@ -120,7 +120,7 @@ type InappPurchase struct {
|
||||
// PurchaseState: The purchase state of the order. Possible values are:
|
||||
//
|
||||
// - Purchased
|
||||
// - Cancelled
|
||||
// - Canceled
|
||||
PurchaseState int64 `json:"purchaseState,omitempty"`
|
||||
|
||||
// PurchaseTime: The time the product was purchased, in milliseconds
|
||||
@@ -131,6 +131,7 @@ type InappPurchase struct {
|
||||
// is only set if this purchase was not made using the standard in-app
|
||||
// billing flow. Possible values are:
|
||||
// - Test (i.e. purchased from a license testing account)
|
||||
// - Promo (i.e. purchased using a promo code)
|
||||
PurchaseType int64 `json:"purchaseType,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
|
||||
+181
-181
@@ -1,184 +1,184 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/Ex2nsAPYjRP0NRWSGg4yyxwNJ18\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "androidpublisher:v1",
|
||||
"name": "androidpublisher",
|
||||
"canonicalName": "Android Publisher",
|
||||
"version": "v1",
|
||||
"revision": "20170913",
|
||||
"title": "Google Play Developer API",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1/applications/",
|
||||
"basePath": "/androidpublisher/v1/applications/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "androidpublisher/v1/applications/",
|
||||
"batchPath": "batch/androidpublisher/v1",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Developer account"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"SubscriptionPurchase": {
|
||||
"id": "SubscriptionPurchase",
|
||||
"type": "object",
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time."
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"default": "androidpublisher#subscriptionPurchase"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"type": "string",
|
||||
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
|
||||
"format": "int64"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"httpMethod": "POST",
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/androidpublisher": {
|
||||
"description": "View and manage your Google Play Developer account"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"type": "string",
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"type": "string",
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"token": {
|
||||
"type": "string",
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"basePath": "/androidpublisher/v1/applications/",
|
||||
"baseUrl": "https://www.googleapis.com/androidpublisher/v1/applications/",
|
||||
"batchPath": "batch/androidpublisher/v1",
|
||||
"canonicalName": "Android Publisher",
|
||||
"description": "Lets Android application developers access their Google Play accounts.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/android-publisher",
|
||||
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/R8egrhZl5j6Tk7CLvSpuFNhpTLc\"",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/android-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/android-32.png"
|
||||
},
|
||||
"id": "androidpublisher:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "androidpublisher",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userIp": {
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"purchases": {
|
||||
"methods": {
|
||||
"cancel": {
|
||||
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
|
||||
"httpMethod": "POST",
|
||||
"id": "androidpublisher.purchases.cancel",
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel",
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Checks whether a user's subscription purchase is valid and returns its expiry time.",
|
||||
"httpMethod": "GET",
|
||||
"id": "androidpublisher.purchases.get",
|
||||
"parameterOrder": [
|
||||
"packageName",
|
||||
"subscriptionId",
|
||||
"token"
|
||||
],
|
||||
"parameters": {
|
||||
"packageName": {
|
||||
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"subscriptionId": {
|
||||
"description": "The purchased subscription ID (for example, 'monthly001').",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "The token provided to the user's device when the subscription was purchased.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}",
|
||||
"response": {
|
||||
"$ref": "SubscriptionPurchase"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/androidpublisher"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180121",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"SubscriptionPurchase": {
|
||||
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
|
||||
"id": "SubscriptionPurchase",
|
||||
"properties": {
|
||||
"autoRenewing": {
|
||||
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"initiationTimestampMsec": {
|
||||
"description": "Time at which the subscription was granted, in milliseconds since the Epoch.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "androidpublisher#subscriptionPurchase",
|
||||
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
|
||||
"type": "string"
|
||||
},
|
||||
"validUntilTimestampMsec": {
|
||||
"description": "Time at which the subscription will expire, in milliseconds since the Epoch.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "androidpublisher/v1/applications/",
|
||||
"title": "Google Play Developer API",
|
||||
"version": "v1"
|
||||
}
|
||||
+3415
-3415
File diff suppressed because it is too large
Load Diff
+18
-13
@@ -1481,7 +1481,7 @@ type ProductPurchase struct {
|
||||
// PurchaseState: The purchase state of the order. Possible values are:
|
||||
//
|
||||
// - Purchased
|
||||
// - Cancelled
|
||||
// - Canceled
|
||||
PurchaseState int64 `json:"purchaseState,omitempty"`
|
||||
|
||||
// PurchaseTimeMillis: The time the product was purchased, in
|
||||
@@ -1492,6 +1492,7 @@ type ProductPurchase struct {
|
||||
// is only set if this purchase was not made using the standard in-app
|
||||
// billing flow. Possible values are:
|
||||
// - Test (i.e. purchased from a license testing account)
|
||||
// - Promo (i.e. purchased using a promo code)
|
||||
PurchaseType int64 `json:"purchaseType,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@@ -1797,13 +1798,13 @@ type SubscriptionPurchase struct {
|
||||
// when it reaches its current expiry time.
|
||||
AutoRenewing bool `json:"autoRenewing,omitempty"`
|
||||
|
||||
// CancelReason: The reason why a subscription was cancelled or is not
|
||||
// CancelReason: The reason why a subscription was canceled or is not
|
||||
// auto-renewing. Possible values are:
|
||||
// - User cancelled the subscription
|
||||
// - Subscription was cancelled by the system, for example because of a
|
||||
// - User canceled the subscription
|
||||
// - Subscription was canceled by the system, for example because of a
|
||||
// billing problem
|
||||
// - Subscription was replaced with a new subscription
|
||||
// - Subscription was cancelled by the developer
|
||||
// - Subscription was canceled by the developer
|
||||
CancelReason *int64 `json:"cancelReason,omitempty"`
|
||||
|
||||
// CountryCode: ISO 3166-1 alpha-2 billing country/region code of the
|
||||
@@ -2209,7 +2210,7 @@ func (s *UserComment) MarshalJSON() ([]byte, error) {
|
||||
}
|
||||
|
||||
// VoidedPurchase: A VoidedPurchase resource indicates a purchase that
|
||||
// was either cancelled/refunded/charged-back.
|
||||
// was either canceled/refunded/charged-back.
|
||||
type VoidedPurchase struct {
|
||||
// Kind: This kind represents a voided purchase object in the
|
||||
// androidpublisher service.
|
||||
@@ -2224,7 +2225,7 @@ type VoidedPurchase struct {
|
||||
PurchaseToken string `json:"purchaseToken,omitempty"`
|
||||
|
||||
// VoidedTimeMillis: The time at which the purchase was
|
||||
// cancelled/refunded/charged-back, in milliseconds since the epoch (Jan
|
||||
// canceled/refunded/charged-back, in milliseconds since the epoch (Jan
|
||||
// 1, 1970).
|
||||
VoidedTimeMillis int64 `json:"voidedTimeMillis,omitempty,string"`
|
||||
|
||||
@@ -4240,11 +4241,12 @@ func (c *EditsApksUploadCall) doRequest(alt string) (*http.Response, error) {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
gensupport.SetGetBody(req, getBody)
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageNameid,
|
||||
"editId": c.editId,
|
||||
@@ -4462,11 +4464,12 @@ func (c *EditsDeobfuscationfilesUploadCall) doRequest(alt string) (*http.Respons
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
gensupport.SetGetBody(req, getBody)
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageNameid,
|
||||
"editId": c.editId,
|
||||
@@ -5662,11 +5665,12 @@ func (c *EditsExpansionfilesUploadCall) doRequest(alt string) (*http.Response, e
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
gensupport.SetGetBody(req, getBody)
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageNameid,
|
||||
"editId": c.editId,
|
||||
@@ -6427,11 +6431,12 @@ func (c *EditsImagesUploadCall) doRequest(alt string) (*http.Response, error) {
|
||||
body = new(bytes.Buffer)
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
}
|
||||
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
|
||||
defer cleanup()
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req.Header = reqHeaders
|
||||
gensupport.SetGetBody(req, getBody)
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"packageName": c.packageNameid,
|
||||
"editId": c.editId,
|
||||
@@ -10391,7 +10396,7 @@ type PurchasesVoidedpurchasesListCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// List: Lists the purchases that were cancelled, refunded or
|
||||
// List: Lists the purchases that were canceled, refunded or
|
||||
// charged-back.
|
||||
func (r *PurchasesVoidedpurchasesService) List(packageName string) *PurchasesVoidedpurchasesListCall {
|
||||
c := &PurchasesVoidedpurchasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
@@ -10537,7 +10542,7 @@ func (c *PurchasesVoidedpurchasesListCall) Do(opts ...googleapi.CallOption) (*Vo
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Lists the purchases that were cancelled, refunded or charged-back.",
|
||||
// "description": "Lists the purchases that were canceled, refunded or charged-back.",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "androidpublisher.purchases.voidedpurchases.list",
|
||||
// "parameterOrder": [
|
||||
|
||||
Reference in New Issue
Block a user