Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15.1.0 #690

Merged
merged 4 commits into from
Dec 28, 2016
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
##### 15.1.0 - 28 December 2016

###### Backwards compatible changes
- Added new methods to the `androidpublisher` `v2` API
- Added new methods to the `compute` `alpha` API
- Added new methods to the `sqladmin` `v1beta4` API

##### 15.0.0 - 05 December 2016

###### Breaking changes
Expand Down
1 change: 1 addition & 0 deletions apis/androidenterprise/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3783,6 +3783,7 @@ Possible values include:
* @property {string} data The body of the private key credentials file, in string format. This is only populated when the ServiceAccountKey is created, and is not stored by Google.
* @property {string} id An opaque, unique identifier for this ServiceAccountKey. Assigned by the server.
* @property {string} kind Identifies what kind of resource this is. Value: the fixed string "androidenterprise#serviceAccountKey".
* @property {string} publicData Public key data for the credentials file. This is an X.509 cert. If you are using the googleCredentials key type, this is identical to the cert that can be retrieved by using the X.509 cert url inside of the credentials file.
* @property {string} type The file format of the generated key data.
*/
/**
Expand Down
82 changes: 82 additions & 0 deletions apis/androidpublisher/v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -2074,6 +2074,49 @@ function Androidpublisher(options) { // eslint-disable-line
context: self
};

return createAPIRequest(parameters, callback);
}
},

voidedpurchases: {

/**
* androidpublisher.purchases.voidedpurchases.list
*
* @desc Lists the purchases that were cancelled, refunded or charged-back.
*
* @alias androidpublisher.purchases.voidedpurchases.list
* @memberOf! androidpublisher(v2)
*
* @param {object} params Parameters for request
* @param {string=} params.endTime The end time of list window, in milliseconds since the epoch (Jan 1, 1970). If not specified, default to current time, which is also the latest accepted end time. This parameter will be ignored if pagination token is set.
* @param {integer=} params.maxResults
* @param {string} params.packageName The package name of the application for which voided purchases need to be returned (for example, 'com.some.thing').
* @param {integer=} params.startIndex
* @param {string=} params.startTime The start time of list window, in milliseconds since the epoch (Jan 1, 1970). If not specified, default to current time - 30 days, which is also the earlies accepted start time. This parameter will be ignored if pagination token is set.
* @param {string=} params.token
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list: function (params, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
options || (options = {});

var parameters = {
options: utils.extend({
url: 'https://www.googleapis.com/androidpublisher/v2/applications/{packageName}/purchases/voidedpurchases',
method: 'GET'
}, options),
params: params,
requiredParams: ['packageName'],
pathParams: ['packageName'],
context: self
};

return createAPIRequest(parameters, callback);
}
}
Expand All @@ -2092,6 +2135,7 @@ function Androidpublisher(options) { // eslint-disable-line
* @param {object} params Parameters for request
* @param {string} params.packageName Unique identifier for the Android app for which we want reviews; for example, "com.spiffygame".
* @param {string} params.reviewId
* @param {string=} params.translationLanguage
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
Expand Down Expand Up @@ -2130,6 +2174,7 @@ function Androidpublisher(options) { // eslint-disable-line
* @param {string} params.packageName Unique identifier for the Android app for which we want reviews; for example, "com.spiffygame".
* @param {integer=} params.startIndex
* @param {string=} params.token
* @param {string=} params.translationLanguage
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
Expand Down Expand Up @@ -2283,6 +2328,22 @@ function Androidpublisher(options) { // eslint-disable-line
* @property {androidpublisher(v2).Timestamp} lastModified The last time at which this comment was updated.
* @property {string} text The content of the comment, i.e. reply body.
*/
/**
* @typedef DeviceMetadata
* @memberOf! androidpublisher(v2)
* @type object
* @property {string} cpuMake Device CPU make e.g. "Qualcomm"
* @property {string} cpuModel Device CPU model e.g. "MSM8974"
* @property {string} deviceClass Device class (e.g. tablet)
* @property {integer} glEsVersion OpenGL version
* @property {string} manufacturer Device manufacturer (e.g. Motorola)
* @property {string} nativePlatform Comma separated list of native platforms (e.g. "arm", "arm7")
* @property {string} productName Device model name (e.g. Droid)
* @property {integer} ramMb Device RAM in Megabytes e.g. "2048"
* @property {integer} screenDensityDpi Screen density in DPI
* @property {integer} screenHeightPx Screen height in pixels
* @property {integer} screenWidthPx Screen width in pixels
*/
/**
* @typedef Entitlement
* @memberOf! androidpublisher(v2)
Expand Down Expand Up @@ -2639,9 +2700,30 @@ function Androidpublisher(options) { // eslint-disable-line
* @property {integer} appVersionCode Integer version code of the app as installed at the time the review was written. May be absent.
* @property {string} appVersionName String version name of the app as installed at the time the review was written. May be absent.
* @property {string} device Codename for the reviewer's device, e.g. klte, flounder. May be absent.
* @property {androidpublisher(v2).DeviceMetadata} deviceMetadata Some information about the characteristics of the user's device
* @property {androidpublisher(v2).Timestamp} lastModified The last time at which this comment was updated.
* @property {string} originalText Untranslated text of the review, in the case where the review has been translated. If the review has not been translated this is left blank.
* @property {string} reviewerLanguage Language code for the reviewer. This is taken from the device settings so is not guaranteed to match the language the review is written in. May be absent.
* @property {integer} starRating The star rating associated with the review, from 1 to 5.
* @property {string} text The content of the comment, i.e. review body. In some cases users have been able to write a review with separate title and body; in those cases the title and body are concatenated and separated by a tab character.
* @property {integer} thumbsDownCount Number of users who have given this review a thumbs down
* @property {integer} thumbsUpCount Number of users who have given this review a thumbs up
*/
/**
* @typedef VoidedPurchase
* @memberOf! androidpublisher(v2)
* @type object
* @property {string} kind This kind represents a voided purchase object in the androidpublisher service.
* @property {string} purchaseTimeMillis The time the purchase was made, in milliseconds since the epoch (Jan 1, 1970).
* @property {string} purchaseToken The token that was generated when a purchase was made and uniquely identifies a purchase.
* @property {string} voidedTimeMillis The time when the purchase was cancelled/refunded/chargeback, in milliseconds since the epoch (Jan 1, 1970).
*/
/**
* @typedef VoidedPurchasesListResponse
* @memberOf! androidpublisher(v2)
* @type object
* @property {androidpublisher(v2).PageInfo} pageInfo
* @property {androidpublisher(v2).TokenPagination} tokenPagination
* @property {androidpublisher(v2).VoidedPurchase[]} voidedPurchases
*/
module.exports = Androidpublisher;
Loading